
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void share_send_verstring(ssh_sharing_connstate *cs)

{
  char *pcVar1;
  int iVar2;
  Socket ppsVar3;
  
  pcVar1 = (char *)(*(code *)PTR_dupcat_000b8728)
                             (PTR_PC2_1357_27__000b8348 + 0x22e4,cs->parent->server_verstring,
                              PTR_PC2_1357_27__000b8348 + -0x6f70,0);
  ppsVar3 = cs->sock;
  iVar2 = (*(code *)PTR_strlen_000b8c40)(pcVar1);
  (*(*ppsVar3)->write)(ppsVar3,pcVar1,iVar2);
  (*(code *)PTR_safefree_000b82e8)(pcVar1);
  cs->sent_verstring = 1;
  return;
}



void FUN_00076d38(int param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int *piVar3;
  
  uVar1 = (*(code *)PTR_dupcat_000b8728)
                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),
                     PTR_DAT_000b8348 + -0x6f70,0);
  piVar3 = *(int **)(param_1 + 8);
  uVar2 = (*(code *)PTR_strlen_000b8c40)(uVar1);
  (**(code **)(*piVar3 + 8))(piVar3,uVar1,uVar2);
  (*(code *)PTR_safefree_000b82e8)(uVar1);
  *(undefined4 *)(param_1 + 0x14) = 1;
  return;
}


lui gp,0x5
addiu gp,gp,-0x6aa8
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s0,a0,zero
lw v0,0xc(a0)
or a3,zero,zero
lw a2,-0x7f48(gp)
addiu a2,a2,-0x6f70
lw a1,0x18(v0)
lw a0,-0x7f48(gp)
addiu a0,a0,0x22e4
lw t9,-0x7b68(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s1,v0,zero
lw s2,0x8(s0)
or a0,v0,zero
lw t9,-0x7650(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v1,0x0(s2)
lw t9,0x8(v1)
or a2,v0,zero
or a1,s1,zero
or a0,s2,zero
jalr t9
_nop
lw gp,0x10(sp)
or a0,s1,zero
lw t9,-0x7fa8(gp)
jalr t9
_nop
lw gp,0x10(sp)
li v0,0x1
sw v0,0x14(s0)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_00076d38(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar1 = (*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0);\n  piVar3 = *(int **)(param_1 + 8);\n  uVar2 = (*(code *)PTR_strlen_000b8c40)(uVar1);\n  (**(code **)(*piVar3 + 8))(piVar3,uVar1,uVar2);\n  (*(code *)PTR_safefree_000b82e8)(uVar1);\n  *(undefined4 *)(param_1 + 0x14) = 1;\n  return;\n}\n\n" (function_definition "void FUN_00076d38(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar1 = (*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0);\n  piVar3 = *(int **)(param_1 + 8);\n  uVar2 = (*(code *)PTR_strlen_000b8c40)(uVar1);\n  (**(code **)(*piVar3 + 8))(piVar3,uVar1,uVar2);\n  (*(code *)PTR_safefree_000b82e8)(uVar1);\n  *(undefined4 *)(param_1 + 0x14) = 1;\n  return;\n}" primitive_type (function_declarator "FUN_00076d38(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar1 = (*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0);\n  piVar3 = *(int **)(param_1 + 8);\n  uVar2 = (*(code *)PTR_strlen_000b8c40)(uVar1);\n  (**(code **)(*piVar3 + 8))(piVar3,uVar1,uVar2);\n  (*(code *)PTR_safefree_000b82e8)(uVar1);\n  *(undefined4 *)(param_1 + 0x14) = 1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "uVar1 = (*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0);" (assignment_expression "uVar1 = (*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0)" identifier = (call_expression "(*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0)" (parenthesized_expression "(*(code *)PTR_dupcat_000b8728)" ( (pointer_expression "*(code *)PTR_dupcat_000b8728" * (cast_expression "(code *)PTR_dupcat_000b8728" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0)" ( (binary_expression "PTR_DAT_000b8348 + 0x22e4" identifier + number_literal) , (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + 0x18)" ( (binary_expression "*(int *)(param_1 + 0xc) + 0x18" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal) )))) , (binary_expression "PTR_DAT_000b8348 + -0x6f70" identifier + number_literal) , number_literal )))) ;) (expression_statement "piVar3 = *(int **)(param_1 + 8);" (assignment_expression "piVar3 = *(int **)(param_1 + 8)" identifier = (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = (*(code *)PTR_strlen_000b8c40)(uVar1);" (assignment_expression "uVar2 = (*(code *)PTR_strlen_000b8c40)(uVar1)" identifier = (call_expression "(*(code *)PTR_strlen_000b8c40)(uVar1)" (parenthesized_expression "(*(code *)PTR_strlen_000b8c40)" ( (pointer_expression "*(code *)PTR_strlen_000b8c40" * (cast_expression "(code *)PTR_strlen_000b8c40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "(**(code **)(*piVar3 + 8))(piVar3,uVar1,uVar2);" (call_expression "(**(code **)(*piVar3 + 8))(piVar3,uVar1,uVar2)" (parenthesized_expression "(**(code **)(*piVar3 + 8))" ( (pointer_expression "**(code **)(*piVar3 + 8)" * (pointer_expression "*(code **)(*piVar3 + 8)" * (cast_expression "(code **)(*piVar3 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 8)" ( (binary_expression "*piVar3 + 8" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3,uVar1,uVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b82e8)(uVar1);" (call_expression "(*(code *)PTR_safefree_000b82e8)(uVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000b82e8)" ( (pointer_expression "*(code *)PTR_safefree_000b82e8" * (cast_expression "(code *)PTR_safefree_000b82e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid share_send_verstring(ssh_sharing_connstate *cs)\n\n{\n  char *pcVar1;\n  int iVar2;\n  Socket ppsVar3;\n  \n  pcVar1 = (char *)(*(code *)PTR_dupcat_000b8728)\n                             (PTR_PC2_1357_27__000b8348 + 0x22e4,cs->parent->server_verstring,\n                              PTR_PC2_1357_27__000b8348 + -0x6f70,0);\n  ppsVar3 = cs->sock;\n  iVar2 = (*(code *)PTR_strlen_000b8c40)(pcVar1);\n  (*(*ppsVar3)->write)(ppsVar3,pcVar1,iVar2);\n  (*(code *)PTR_safefree_000b82e8)(pcVar1);\n  cs->sent_verstring = 1;\n  return;\n}\n\n" comment (function_definition "void share_send_verstring(ssh_sharing_connstate *cs)\n\n{\n  char *pcVar1;\n  int iVar2;\n  Socket ppsVar3;\n  \n  pcVar1 = (char *)(*(code *)PTR_dupcat_000b8728)\n                             (PTR_PC2_1357_27__000b8348 + 0x22e4,cs->parent->server_verstring,\n                              PTR_PC2_1357_27__000b8348 + -0x6f70,0);\n  ppsVar3 = cs->sock;\n  iVar2 = (*(code *)PTR_strlen_000b8c40)(pcVar1);\n  (*(*ppsVar3)->write)(ppsVar3,pcVar1,iVar2);\n  (*(code *)PTR_safefree_000b82e8)(pcVar1);\n  cs->sent_verstring = 1;\n  return;\n}" primitive_type (function_declarator "share_send_verstring(ssh_sharing_connstate *cs)" identifier (parameter_list "(ssh_sharing_connstate *cs)" ( (parameter_declaration "ssh_sharing_connstate *cs" type_identifier (pointer_declarator "*cs" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  Socket ppsVar3;\n  \n  pcVar1 = (char *)(*(code *)PTR_dupcat_000b8728)\n                             (PTR_PC2_1357_27__000b8348 + 0x22e4,cs->parent->server_verstring,\n                              PTR_PC2_1357_27__000b8348 + -0x6f70,0);\n  ppsVar3 = cs->sock;\n  iVar2 = (*(code *)PTR_strlen_000b8c40)(pcVar1);\n  (*(*ppsVar3)->write)(ppsVar3,pcVar1,iVar2);\n  (*(code *)PTR_safefree_000b82e8)(pcVar1);\n  cs->sent_verstring = 1;\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Socket ppsVar3;" type_identifier identifier ;) (expression_statement "pcVar1 = (char *)(*(code *)PTR_dupcat_000b8728)\n                             (PTR_PC2_1357_27__000b8348 + 0x22e4,cs->parent->server_verstring,\n                              PTR_PC2_1357_27__000b8348 + -0x6f70,0);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_dupcat_000b8728)\n                             (PTR_PC2_1357_27__000b8348 + 0x22e4,cs->parent->server_verstring,\n                              PTR_PC2_1357_27__000b8348 + -0x6f70,0)" identifier = (cast_expression "(char *)(*(code *)PTR_dupcat_000b8728)\n                             (PTR_PC2_1357_27__000b8348 + 0x22e4,cs->parent->server_verstring,\n                              PTR_PC2_1357_27__000b8348 + -0x6f70,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupcat_000b8728)\n                             (PTR_PC2_1357_27__000b8348 + 0x22e4,cs->parent->server_verstring,\n                              PTR_PC2_1357_27__000b8348 + -0x6f70,0)" (parenthesized_expression "(*(code *)PTR_dupcat_000b8728)" ( (pointer_expression "*(code *)PTR_dupcat_000b8728" * (cast_expression "(code *)PTR_dupcat_000b8728" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_PC2_1357_27__000b8348 + 0x22e4,cs->parent->server_verstring,\n                              PTR_PC2_1357_27__000b8348 + -0x6f70,0)" ( (binary_expression "PTR_PC2_1357_27__000b8348 + 0x22e4" identifier + number_literal) , (field_expression "cs->parent->server_verstring" (field_expression "cs->parent" identifier -> field_identifier) -> field_identifier) , (binary_expression "PTR_PC2_1357_27__000b8348 + -0x6f70" identifier + number_literal) , number_literal ))))) ;) (expression_statement "ppsVar3 = cs->sock;" (assignment_expression "ppsVar3 = cs->sock" identifier = (field_expression "cs->sock" identifier -> field_identifier)) ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_000b8c40)(pcVar1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_000b8c40)(pcVar1)" identifier = (call_expression "(*(code *)PTR_strlen_000b8c40)(pcVar1)" (parenthesized_expression "(*(code *)PTR_strlen_000b8c40)" ( (pointer_expression "*(code *)PTR_strlen_000b8c40" * (cast_expression "(code *)PTR_strlen_000b8c40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier )))) ;) (expression_statement "(*(*ppsVar3)->write)(ppsVar3,pcVar1,iVar2);" (call_expression "(*(*ppsVar3)->write)(ppsVar3,pcVar1,iVar2)" (parenthesized_expression "(*(*ppsVar3)->write)" ( (pointer_expression "*(*ppsVar3)->write" * (field_expression "(*ppsVar3)->write" (parenthesized_expression "(*ppsVar3)" ( (pointer_expression "*ppsVar3" * identifier) )) -> field_identifier)) )) (argument_list "(ppsVar3,pcVar1,iVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b82e8)(pcVar1);" (call_expression "(*(code *)PTR_safefree_000b82e8)(pcVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000b82e8)" ( (pointer_expression "*(code *)PTR_safefree_000b82e8" * (cast_expression "(code *)PTR_safefree_000b82e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1)" ( identifier ))) ;) (expression_statement "cs->sent_verstring = 1;" (assignment_expression "cs->sent_verstring = 1" (field_expression "cs->sent_verstring" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00076d38(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar1 = (*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0);\n  piVar3 = *(int **)(param_1 + 8);\n  uVar2 = (*(code *)PTR_strlen_000b8c40)(uVar1);\n  (**(code **)(*piVar3 + 8))(piVar3,uVar1,uVar2);\n  (*(code *)PTR_safefree_000b82e8)(uVar1);\n  *(undefined4 *)(param_1 + 0x14) = 1;\n  return;\n}\n\n" (function_definition "void FUN_00076d38(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar1 = (*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0);\n  piVar3 = *(int **)(param_1 + 8);\n  uVar2 = (*(code *)PTR_strlen_000b8c40)(uVar1);\n  (**(code **)(*piVar3 + 8))(piVar3,uVar1,uVar2);\n  (*(code *)PTR_safefree_000b82e8)(uVar1);\n  *(undefined4 *)(param_1 + 0x14) = 1;\n  return;\n}" primitive_type (function_declarator "FUN_00076d38(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar1 = (*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0);\n  piVar3 = *(int **)(param_1 + 8);\n  uVar2 = (*(code *)PTR_strlen_000b8c40)(uVar1);\n  (**(code **)(*piVar3 + 8))(piVar3,uVar1,uVar2);\n  (*(code *)PTR_safefree_000b82e8)(uVar1);\n  *(undefined4 *)(param_1 + 0x14) = 1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (expression_statement "uVar1 = (*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0);" (assignment_expression "uVar1 = (*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0)" identifier = (call_expression "(*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0)" (parenthesized_expression "(*(code *)PTR_dupcat_000b8728)" ( (pointer_expression "*(code *)PTR_dupcat_000b8728" * (cast_expression "(code *)PTR_dupcat_000b8728" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0)" ( (binary_expression "PTR_DAT_000b8348 + 0x22e4" identifier + number_literal) , (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + 0x18)" ( (binary_expression "*(int *)(param_1 + 0xc) + 0x18" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal) )))) , (binary_expression "PTR_DAT_000b8348 + -0x6f70" identifier + number_literal) , number_literal )))) ;) (expression_statement "piVar3 = *(int **)(param_1 + 8);" (assignment_expression "piVar3 = *(int **)(param_1 + 8)" identifier = (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = (*(code *)PTR_strlen_000b8c40)(uVar1);" (assignment_expression "uVar2 = (*(code *)PTR_strlen_000b8c40)(uVar1)" identifier = (call_expression "(*(code *)PTR_strlen_000b8c40)(uVar1)" (parenthesized_expression "(*(code *)PTR_strlen_000b8c40)" ( (pointer_expression "*(code *)PTR_strlen_000b8c40" * (cast_expression "(code *)PTR_strlen_000b8c40" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "(**(code **)(*piVar3 + 8))(piVar3,uVar1,uVar2);" (call_expression "(**(code **)(*piVar3 + 8))(piVar3,uVar1,uVar2)" (parenthesized_expression "(**(code **)(*piVar3 + 8))" ( (pointer_expression "**(code **)(*piVar3 + 8)" * (pointer_expression "*(code **)(*piVar3 + 8)" * (cast_expression "(code **)(*piVar3 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 8)" ( (binary_expression "*piVar3 + 8" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3,uVar1,uVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b82e8)(uVar1);" (call_expression "(*(code *)PTR_safefree_000b82e8)(uVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000b82e8)" ( (pointer_expression "*(code *)PTR_safefree_000b82e8" * (cast_expression "(code *)PTR_safefree_000b82e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00076d38(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar1 = (*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0);\n  piVar3 = *(int **)(param_1 + 8);\n  uVar2 = (*(code *)PTR_strlen_000b8c40)(uVar1);\n  (**(code **)(*piVar3 + 8))(piVar3,uVar1,uVar2);\n  (*(code *)PTR_safefree_000b82e8)(uVar1);\n  *(undefined4 *)(param_1 + 0x14) = 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00076d38(int param_1)" (identifier "FUN_00076d38") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  \n  uVar1 = (*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0);\n  piVar3 = *(int **)(param_1 + 8);\n  uVar2 = (*(code *)PTR_strlen_000b8c40)(uVar1);\n  (**(code **)(*piVar3 + 8))(piVar3,uVar1,uVar2);\n  (*(code *)PTR_safefree_000b82e8)(uVar1);\n  *(undefined4 *)(param_1 + 0x14) = 1;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (expression_statement "uVar1 = (*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0);" (assignment_expression "uVar1 = (*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_dupcat_000b8728)\n                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0)" (parenthesized_expression "(*(code *)PTR_dupcat_000b8728)" (( "(") (pointer_expression "*(code *)PTR_dupcat_000b8728" (* "*") (cast_expression "(code *)PTR_dupcat_000b8728" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupcat_000b8728"))) () ")")) (argument_list "(PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),\n                     PTR_DAT_000b8348 + -0x6f70,0)" (( "(") (binary_expression "PTR_DAT_000b8348 + 0x22e4" (identifier "PTR_DAT_000b8348") (+ "+") (number_literal "0x22e4")) (, ",") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0xc) + 0x18)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) + 0x18" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "0x18")) () ")")))) (, ",") (binary_expression "PTR_DAT_000b8348 + -0x6f70" (identifier "PTR_DAT_000b8348") (+ "+") (number_literal "-0x6f70")) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "piVar3 = *(int **)(param_1 + 8);" (assignment_expression "piVar3 = *(int **)(param_1 + 8)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar2 = (*(code *)PTR_strlen_000b8c40)(uVar1);" (assignment_expression "uVar2 = (*(code *)PTR_strlen_000b8c40)(uVar1)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_strlen_000b8c40)(uVar1)" (parenthesized_expression "(*(code *)PTR_strlen_000b8c40)" (( "(") (pointer_expression "*(code *)PTR_strlen_000b8c40" (* "*") (cast_expression "(code *)PTR_strlen_000b8c40" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000b8c40"))) () ")")) (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "(**(code **)(*piVar3 + 8))(piVar3,uVar1,uVar2);" (call_expression "(**(code **)(*piVar3 + 8))(piVar3,uVar1,uVar2)" (parenthesized_expression "(**(code **)(*piVar3 + 8))" (( "(") (pointer_expression "**(code **)(*piVar3 + 8)" (* "*") (pointer_expression "*(code **)(*piVar3 + 8)" (* "*") (cast_expression "(code **)(*piVar3 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 8)" (( "(") (binary_expression "*piVar3 + 8" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(piVar3,uVar1,uVar2)" (( "(") (identifier "piVar3") (, ",") (identifier "uVar1") (, ",") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000b82e8)(uVar1);" (call_expression "(*(code *)PTR_safefree_000b82e8)(uVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000b82e8)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b82e8" (* "*") (cast_expression "(code *)PTR_safefree_000b82e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b82e8"))) () ")")) (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 *cs)

{
  char *pcVar1;
  int iVar2;
  type_2 ppsVar3;
  
  pcVar1 = (char *)(*(type_3 *)PTR_dupcat_000b8728)
                             (var_1 + 0x22e4,cs->parent->server_verstring,
                              var_1 + -0x6f70,0);
  ppsVar3 = cs->sock;
  iVar2 = (*(type_3 *)PTR_strlen_000b8c40)(pcVar1);
  (*(*ppsVar3)->write)(ppsVar3,pcVar1,iVar2);
  (*(type_3 *)PTR_safefree_000b82e8)(pcVar1);
  cs->sent_verstring = 1;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement))))

void MASKED(int param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int *piVar3;
  
  uVar1 = (*(code *)PTR_dupcat_000b8728)
                    (PTR_DAT_000b8348 + 0x22e4,*(undefined4 *)(*(int *)(param_1 + 0xc) + 0x18),
                     PTR_DAT_000b8348 + -0x6f70,0);
  piVar3 = *(int **)(param_1 + 8);
  uVar2 = (*(code *)PTR_strlen_000b8c40)(uVar1);
  (**(code **)(*piVar3 + 8))(piVar3,uVar1,uVar2);
  (*(code *)PTR_safefree_000b82e8)(uVar1);
  *(undefined4 *)(param_1 + 0x14) = 1;
  return;
}

