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

void ssh_sharing_logf(Ssh_conflict ssh,uint id,char *logfmt,...)

{
  char *pcVar1;
  undefined4 in_a3;
  undefined4 local_resc;
  va_list ap;
  
  local_resc = in_a3;
  pcVar1 = dupvprintf(logfmt,&local_resc);
  if (id != 0) {
                    /* WARNING: Subroutine does not return */
    logeventf(ssh,PTR_E0_218__00121388 + -0x5454,id,pcVar1);
  }
                    /* WARNING: Subroutine does not return */
  logeventf(ssh,PTR_E0_218__00121388 + -0x542c,pcVar1);
}



void ssh_sharing_logf(undefined4 param_1,int param_2,undefined4 param_3,int param_4)

{
  int iVar1;
  int iVar2;
  undefined *puVar3;
  
  iVar1 = *(int *)PTR___stack_chk_guard_00122654;
  iVar2 = dupvprintf(param_3);
  if (param_2 == 0) {
    param_2 = iVar2;
    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);
  }
  else {
    param_4 = iVar2;
    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);
  }
  safefree();
  if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {
    return;
  }
  puVar3 = PTR___stack_chk_fail_001222ec;
  (*(code *)PTR___stack_chk_fail_001222ec)();
  iVar1 = (**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194));
  *(int *)(iVar1 + 0x20) = param_2;
  *(int *)(iVar1 + 0x24) = param_4;
  return;
}


lui gp,0xd
addiu gp,gp,0x5ab0
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
sw gp,0x10(sp)
or s2,a0,zero
or s1,a1,zero
sw a3,0x3c(sp)
lw v0,-0x6c5c(gp)
lw v0,0x0(v0)
sw v0,0x1c(sp)
addiu a1,sp,0x3c
sw a1,0x18(sp)
or a0,a2,zero
lw t9,-0x7d2c(gp)
bal 0x0003bd04
_nop
lw gp,0x10(sp)
beq s1,zero,0x000538c4
_or s0,v0,zero
or a3,v0,zero
or a2,s1,zero
lw a1,-0x7f28(gp)
addiu a1,a1,-0x5454
or a0,s2,zero
lw t9,-0x7b94(gp)
addiu t9,t9,-0x4b54
bal 0x0004b4ac
_nop
lw gp,0x10(sp)
or a0,s0,zero
lw t9,-0x7fac(gp)
bal 0x0003c018
_nop
lw gp,0x10(sp)
lw v1,0x1c(sp)
lw v0,-0x6c5c(gp)
lw v0,0x0(v0)
bne v1,v0,0x000538f0
_lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
or a2,v0,zero
lw a1,-0x7f28(gp)
addiu a1,a1,-0x542c
or a0,s2,zero
lw t9,-0x7b94(gp)
addiu t9,t9,-0x4b54
bal 0x0004b4ac
_nop
lw gp,0x10(sp)
b 0x0005388c
_or a0,s0,zero
lw t9,-0x6fc4(gp)
jalr t9
_nop
(translation_unit "void ssh_sharing_logf(undefined4 param_1,int param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_00122654;\n  iVar2 = dupvprintf(param_3);\n  if (param_2 == 0) {\n    param_2 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);\n  }\n  else {\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }\n  safefree();\n  if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar1 = (**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194));\n  *(int *)(iVar1 + 0x20) = param_2;\n  *(int *)(iVar1 + 0x24) = param_4;\n  return;\n}\n\n" (function_definition "void ssh_sharing_logf(undefined4 param_1,int param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_00122654;\n  iVar2 = dupvprintf(param_3);\n  if (param_2 == 0) {\n    param_2 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);\n  }\n  else {\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }\n  safefree();\n  if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar1 = (**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194));\n  *(int *)(iVar1 + 0x20) = param_2;\n  *(int *)(iVar1 + 0x24) = param_4;\n  return;\n}" primitive_type (function_declarator "ssh_sharing_logf(undefined4 param_1,int param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_00122654;\n  iVar2 = dupvprintf(param_3);\n  if (param_2 == 0) {\n    param_2 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);\n  }\n  else {\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }\n  safefree();\n  if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar1 = (**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194));\n  *(int *)(iVar1 + 0x20) = param_2;\n  *(int *)(iVar1 + 0x24) = param_4;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_00122654;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_00122654" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" * (cast_expression "(int *)PTR___stack_chk_guard_00122654" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = dupvprintf(param_3);" (assignment_expression "iVar2 = dupvprintf(param_3)" identifier = (call_expression "dupvprintf(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (if_statement "if (param_2 == 0) {\n    param_2 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);\n  }\n  else {\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);\n  }" { (expression_statement "param_2 = iVar2;" (assignment_expression "param_2 = iVar2" identifier = identifier) ;) (expression_statement "FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);" (call_expression "FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c)" identifier (argument_list "(param_1,PTR_DAT_00121388 + -0x542c)" ( identifier , (binary_expression "PTR_DAT_00121388 + -0x542c" identifier + number_literal) ))) ;) }) (else_clause "else {\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }" else (compound_statement "{\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }" { (expression_statement "param_4 = iVar2;" (assignment_expression "param_4 = iVar2" identifier = identifier) ;) (expression_statement "FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);" (call_expression "FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454)" identifier (argument_list "(param_1,PTR_DAT_00121388 + -0x5454)" ( identifier , (binary_expression "PTR_DAT_00121388 + -0x5454" identifier + number_literal) ))) ;) }))) (expression_statement "safefree();" (call_expression "safefree()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)PTR___stack_chk_guard_00122654)" ( (binary_expression "iVar1 == *(int *)PTR___stack_chk_guard_00122654" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" * (cast_expression "(int *)PTR___stack_chk_guard_00122654" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar3 = PTR___stack_chk_fail_001222ec;" (assignment_expression "puVar3 = PTR___stack_chk_fail_001222ec" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001222ec)();" (call_expression "(*(code *)PTR___stack_chk_fail_001222ec)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001222ec)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001222ec" * (cast_expression "(code *)PTR___stack_chk_fail_001222ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = (**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194));" (assignment_expression "iVar1 = (**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194))" identifier = (call_expression "(**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194))" (parenthesized_expression "(**(code **)(puVar3 + 0xcdec4))" ( (pointer_expression "**(code **)(puVar3 + 0xcdec4)" * (pointer_expression "*(code **)(puVar3 + 0xcdec4)" * (cast_expression "(code **)(puVar3 + 0xcdec4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0xcdec4)" ( (binary_expression "puVar3 + 0xcdec4" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar2 + 0x194))" ( (pointer_expression "*(undefined4 *)(iVar2 + 0x194)" * (cast_expression "(undefined4 *)(iVar2 + 0x194)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x194)" ( (binary_expression "iVar2 + 0x194" identifier + number_literal) )))) )))) ;) (expression_statement "*(int *)(iVar1 + 0x20) = param_2;" (assignment_expression "*(int *)(iVar1 + 0x20) = param_2" (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar1 + 0x24) = param_4;" (assignment_expression "*(int *)(iVar1 + 0x24) = param_4" (pointer_expression "*(int *)(iVar1 + 0x24)" * (cast_expression "(int *)(iVar1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid ssh_sharing_logf(Ssh_conflict ssh,uint id,char *logfmt,...)\n\n{\n  char *pcVar1;\n  undefined4 in_a3;\n  undefined4 local_resc;\n  va_list ap;\n  \n  local_resc = in_a3;\n  pcVar1 = dupvprintf(logfmt,&local_resc);\n  if (id != 0) {\n                    /* WARNING: Subroutine does not return */\n    logeventf(ssh,PTR_E0_218__00121388 + -0x5454,id,pcVar1);\n  }\n                    /* WARNING: Subroutine does not return */\n  logeventf(ssh,PTR_E0_218__00121388 + -0x542c,pcVar1);\n}\n\n" comment (function_definition "void ssh_sharing_logf(Ssh_conflict ssh,uint id,char *logfmt,...)\n\n{\n  char *pcVar1;\n  undefined4 in_a3;\n  undefined4 local_resc;\n  va_list ap;\n  \n  local_resc = in_a3;\n  pcVar1 = dupvprintf(logfmt,&local_resc);\n  if (id != 0) {\n                    /* WARNING: Subroutine does not return */\n    logeventf(ssh,PTR_E0_218__00121388 + -0x5454,id,pcVar1);\n  }\n                    /* WARNING: Subroutine does not return */\n  logeventf(ssh,PTR_E0_218__00121388 + -0x542c,pcVar1);\n}" primitive_type (function_declarator "ssh_sharing_logf(Ssh_conflict ssh,uint id,char *logfmt,...)" identifier (parameter_list "(Ssh_conflict ssh,uint id,char *logfmt,...)" ( (parameter_declaration "Ssh_conflict ssh" type_identifier identifier) , (parameter_declaration "uint id" type_identifier identifier) , (parameter_declaration "char *logfmt" primitive_type (pointer_declarator "*logfmt" * identifier)) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  char *pcVar1;\n  undefined4 in_a3;\n  undefined4 local_resc;\n  va_list ap;\n  \n  local_resc = in_a3;\n  pcVar1 = dupvprintf(logfmt,&local_resc);\n  if (id != 0) {\n                    /* WARNING: Subroutine does not return */\n    logeventf(ssh,PTR_E0_218__00121388 + -0x5454,id,pcVar1);\n  }\n                    /* WARNING: Subroutine does not return */\n  logeventf(ssh,PTR_E0_218__00121388 + -0x542c,pcVar1);\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (declaration "va_list ap;" type_identifier identifier ;) (expression_statement "local_resc = in_a3;" (assignment_expression "local_resc = in_a3" identifier = identifier) ;) (expression_statement "pcVar1 = dupvprintf(logfmt,&local_resc);" (assignment_expression "pcVar1 = dupvprintf(logfmt,&local_resc)" identifier = (call_expression "dupvprintf(logfmt,&local_resc)" identifier (argument_list "(logfmt,&local_resc)" ( identifier , (pointer_expression "&local_resc" & identifier) )))) ;) (if_statement "if (id != 0) {\n                    /* WARNING: Subroutine does not return */\n    logeventf(ssh,PTR_E0_218__00121388 + -0x5454,id,pcVar1);\n  }" if (parenthesized_expression "(id != 0)" ( (binary_expression "id != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    logeventf(ssh,PTR_E0_218__00121388 + -0x5454,id,pcVar1);\n  }" { comment (expression_statement "logeventf(ssh,PTR_E0_218__00121388 + -0x5454,id,pcVar1);" (call_expression "logeventf(ssh,PTR_E0_218__00121388 + -0x5454,id,pcVar1)" identifier (argument_list "(ssh,PTR_E0_218__00121388 + -0x5454,id,pcVar1)" ( identifier , (binary_expression "PTR_E0_218__00121388 + -0x5454" identifier + number_literal) , identifier , identifier ))) ;) })) comment (expression_statement "logeventf(ssh,PTR_E0_218__00121388 + -0x542c,pcVar1);" (call_expression "logeventf(ssh,PTR_E0_218__00121388 + -0x542c,pcVar1)" identifier (argument_list "(ssh,PTR_E0_218__00121388 + -0x542c,pcVar1)" ( identifier , (binary_expression "PTR_E0_218__00121388 + -0x542c" identifier + number_literal) , identifier ))) ;) })))
(translation_unit "void ssh_sharing_logf(undefined4 param_1,int param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_00122654;\n  iVar2 = dupvprintf(param_3);\n  if (param_2 == 0) {\n    param_2 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);\n  }\n  else {\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }\n  safefree();\n  if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar1 = (**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194));\n  *(int *)(iVar1 + 0x20) = param_2;\n  *(int *)(iVar1 + 0x24) = param_4;\n  return;\n}\n\n" (function_definition "void ssh_sharing_logf(undefined4 param_1,int param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_00122654;\n  iVar2 = dupvprintf(param_3);\n  if (param_2 == 0) {\n    param_2 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);\n  }\n  else {\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }\n  safefree();\n  if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar1 = (**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194));\n  *(int *)(iVar1 + 0x20) = param_2;\n  *(int *)(iVar1 + 0x24) = param_4;\n  return;\n}" primitive_type (function_declarator "ssh_sharing_logf(undefined4 param_1,int param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_00122654;\n  iVar2 = dupvprintf(param_3);\n  if (param_2 == 0) {\n    param_2 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);\n  }\n  else {\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }\n  safefree();\n  if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar1 = (**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194));\n  *(int *)(iVar1 + 0x20) = param_2;\n  *(int *)(iVar1 + 0x24) = param_4;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_00122654;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_00122654" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" * (cast_expression "(int *)PTR___stack_chk_guard_00122654" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = dupvprintf(param_3);" (assignment_expression "iVar2 = dupvprintf(param_3)" identifier = (call_expression "dupvprintf(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (if_statement "if (param_2 == 0) {\n    param_2 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);\n  }\n  else {\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);\n  }" { (expression_statement "param_2 = iVar2;" (assignment_expression "param_2 = iVar2" identifier = identifier) ;) (expression_statement "FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);" (call_expression "FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c)" identifier (argument_list "(param_1,PTR_DAT_00121388 + -0x542c)" ( identifier , (binary_expression "PTR_DAT_00121388 + -0x542c" identifier + number_literal) ))) ;) }) (else_clause "else {\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }" else (compound_statement "{\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }" { (expression_statement "param_4 = iVar2;" (assignment_expression "param_4 = iVar2" identifier = identifier) ;) (expression_statement "FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);" (call_expression "FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454)" identifier (argument_list "(param_1,PTR_DAT_00121388 + -0x5454)" ( identifier , (binary_expression "PTR_DAT_00121388 + -0x5454" identifier + number_literal) ))) ;) }))) (expression_statement "safefree();" (call_expression "safefree()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)PTR___stack_chk_guard_00122654)" ( (binary_expression "iVar1 == *(int *)PTR___stack_chk_guard_00122654" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" * (cast_expression "(int *)PTR___stack_chk_guard_00122654" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar3 = PTR___stack_chk_fail_001222ec;" (assignment_expression "puVar3 = PTR___stack_chk_fail_001222ec" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001222ec)();" (call_expression "(*(code *)PTR___stack_chk_fail_001222ec)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001222ec)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001222ec" * (cast_expression "(code *)PTR___stack_chk_fail_001222ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = (**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194));" (assignment_expression "iVar1 = (**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194))" identifier = (call_expression "(**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194))" (parenthesized_expression "(**(code **)(puVar3 + 0xcdec4))" ( (pointer_expression "**(code **)(puVar3 + 0xcdec4)" * (pointer_expression "*(code **)(puVar3 + 0xcdec4)" * (cast_expression "(code **)(puVar3 + 0xcdec4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0xcdec4)" ( (binary_expression "puVar3 + 0xcdec4" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(iVar2 + 0x194))" ( (pointer_expression "*(undefined4 *)(iVar2 + 0x194)" * (cast_expression "(undefined4 *)(iVar2 + 0x194)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x194)" ( (binary_expression "iVar2 + 0x194" identifier + number_literal) )))) )))) ;) (expression_statement "*(int *)(iVar1 + 0x20) = param_2;" (assignment_expression "*(int *)(iVar1 + 0x20) = param_2" (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar1 + 0x24) = param_4;" (assignment_expression "*(int *)(iVar1 + 0x24) = param_4" (pointer_expression "*(int *)(iVar1 + 0x24)" * (cast_expression "(int *)(iVar1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void ssh_sharing_logf(undefined4 param_1,int param_2,undefined4 param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_00122654;\n  iVar2 = dupvprintf(param_3);\n  if (param_2 == 0) {\n    param_2 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);\n  }\n  else {\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }\n  safefree();\n  if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar1 = (**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194));\n  *(int *)(iVar1 + 0x20) = param_2;\n  *(int *)(iVar1 + 0x24) = param_4;\n  return;\n}" (primitive_type "void") (function_declarator "ssh_sharing_logf(undefined4 param_1,int param_2,undefined4 param_3,int param_4)" (identifier "ssh_sharing_logf") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_00122654;\n  iVar2 = dupvprintf(param_3);\n  if (param_2 == 0) {\n    param_2 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);\n  }\n  else {\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }\n  safefree();\n  if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_001222ec;\n  (*(code *)PTR___stack_chk_fail_001222ec)();\n  iVar1 = (**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194));\n  *(int *)(iVar1 + 0x20) = param_2;\n  *(int *)(iVar1 + 0x24) = param_4;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_00122654;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_00122654" (identifier "iVar1") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00122654" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00122654")))) (; ";")) (expression_statement "iVar2 = dupvprintf(param_3);" (assignment_expression "iVar2 = dupvprintf(param_3)" (identifier "iVar2") (= "=") (call_expression "dupvprintf(param_3)" (identifier "dupvprintf") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (param_2 == 0) {\n    param_2 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);\n  }\n  else {\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);\n  }" ({ "{") (expression_statement "param_2 = iVar2;" (assignment_expression "param_2 = iVar2" (identifier "param_2") (= "=") (identifier "iVar2")) (; ";")) (expression_statement "FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);" (call_expression "FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c)" (identifier "FUN_0004b4ac") (argument_list "(param_1,PTR_DAT_00121388 + -0x542c)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_DAT_00121388 + -0x542c" (identifier "PTR_DAT_00121388") (+ "+") (number_literal "-0x542c")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }" (else "else") (compound_statement "{\n    param_4 = iVar2;\n    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);\n  }" ({ "{") (expression_statement "param_4 = iVar2;" (assignment_expression "param_4 = iVar2" (identifier "param_4") (= "=") (identifier "iVar2")) (; ";")) (expression_statement "FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);" (call_expression "FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454)" (identifier "FUN_0004b4ac") (argument_list "(param_1,PTR_DAT_00121388 + -0x5454)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_DAT_00121388 + -0x5454" (identifier "PTR_DAT_00121388") (+ "+") (number_literal "-0x5454")) () ")"))) (; ";")) (} "}")))) (expression_statement "safefree();" (call_expression "safefree()" (identifier "safefree") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)PTR___stack_chk_guard_00122654)" (( "(") (binary_expression "iVar1 == *(int *)PTR___stack_chk_guard_00122654" (identifier "iVar1") (== "==") (pointer_expression "*(int *)PTR___stack_chk_guard_00122654" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00122654" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00122654")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar3 = PTR___stack_chk_fail_001222ec;" (assignment_expression "puVar3 = PTR___stack_chk_fail_001222ec" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_fail_001222ec")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_001222ec)();" (call_expression "(*(code *)PTR___stack_chk_fail_001222ec)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001222ec)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_001222ec" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_001222ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_001222ec"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = (**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194));" (assignment_expression "iVar1 = (**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194))" (identifier "iVar1") (= "=") (call_expression "(**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194))" (parenthesized_expression "(**(code **)(puVar3 + 0xcdec4))" (( "(") (pointer_expression "**(code **)(puVar3 + 0xcdec4)" (* "*") (pointer_expression "*(code **)(puVar3 + 0xcdec4)" (* "*") (cast_expression "(code **)(puVar3 + 0xcdec4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 0xcdec4)" (( "(") (binary_expression "puVar3 + 0xcdec4" (identifier "puVar3") (+ "+") (number_literal "0xcdec4")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(iVar2 + 0x194))" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 0x194)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x194)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x194)" (( "(") (binary_expression "iVar2 + 0x194" (identifier "iVar2") (+ "+") (number_literal "0x194")) () ")")))) () ")")))) (; ";")) (expression_statement "*(int *)(iVar1 + 0x20) = param_2;" (assignment_expression "*(int *)(iVar1 + 0x20) = param_2" (pointer_expression "*(int *)(iVar1 + 0x20)" (* "*") (cast_expression "(int *)(iVar1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(int *)(iVar1 + 0x24) = param_4;" (assignment_expression "*(int *)(iVar1 + 0x24) = param_4" (pointer_expression "*(int *)(iVar1 + 0x24)" (* "*") (cast_expression "(int *)(iVar1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (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))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) right: (number_literal))))))) arguments: (argument_list (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))))))))) (expression_statement (assignment_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: (identifier))) (expression_statement (assignment_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: (identifier))) (return_statement))))

void MASKED(undefined4 param_1,int param_2,undefined4 param_3,int param_4)

{
  int iVar1;
  int iVar2;
  undefined *puVar3;
  
  iVar1 = *(int *)PTR___stack_chk_guard_00122654;
  iVar2 = dupvprintf(param_3);
  if (param_2 == 0) {
    param_2 = iVar2;
    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x542c);
  }
  else {
    param_4 = iVar2;
    FUN_0004b4ac(param_1,PTR_DAT_00121388 + -0x5454);
  }
  safefree();
  if (iVar1 == *(int *)PTR___stack_chk_guard_00122654) {
    return;
  }
  puVar3 = PTR___stack_chk_fail_001222ec;
  (*(code *)PTR___stack_chk_fail_001222ec)();
  iVar1 = (**(code **)(puVar3 + 0xcdec4))(*(undefined4 *)(iVar2 + 0x194));
  *(int *)(iVar1 + 0x20) = param_2;
  *(int *)(iVar1 + 0x24) = param_4;
  return;
}

