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

void logeventf(Ssh_conflict ssh,char *fmt,...)

{
  char *ptr;
  undefined4 in_a2;
  undefined4 in_a3;
  undefined4 local_res8;
  undefined4 local_resc;
  va_list ap;
  
  local_res8 = in_a2;
  local_resc = in_a3;
  ptr = dupvprintf(fmt,&local_res8);
  (*(code *)PTR_logevent_001113ac)(ssh->frontend,ptr);
                    /* WARNING: Subroutine does not return */
  safefree(ptr);
}



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

{
  int iVar1;
  int iVar2;
  undefined *puVar3;
  undefined4 local_res8;
  undefined4 local_resc;
  
  puVar3 = PTR___stack_chk_guard_00112630;
  iVar1 = *(int *)PTR___stack_chk_guard_00112630;
  local_res8 = param_3;
  local_resc = param_4;
  iVar2 = dupvprintf(param_2,&local_res8);
  (*(code *)PTR_logevent_001113ac)(*(undefined4 *)(param_1 + 0x110),iVar2);
  safefree();
  if (iVar1 == *(int *)puVar3) {
    return;
  }
  puVar3 = PTR___stack_chk_fail_001122c8;
  (*(code *)PTR___stack_chk_fail_001122c8)();
  puVar3 = puVar3 + 0xd20ac;
  iVar1 = (**(code **)(iVar2 + 0x240))();
  if (iVar1 != 0) {
    (**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);
    safefree(*(undefined4 *)(iVar1 + 0x10));
    safefree(iVar1);
    return;
  }
  return;
}


lui gp,0xd
addiu gp,gp,0x2158
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x7cd8(gp)
addiu v0,sp,0x38
sw s0,0x24(sp)
sw a2,0x38(sp)
sw a3,0x3c(sp)
sw s1,0x28(sp)
or s1,a0,zero
sw v0,0x18(sp)
or a0,a1,zero
lw s0,-0x6c80(gp)
or a1,v0,zero
sw ra,0x2c(sp)
sw gp,0x10(sp)
lw v0,0x0(s0)
sw v0,0x1c(sp)
bal 0x00039e3c
_nop
lw gp,0x10(sp)
or a1,v0,zero
lw a0,0x110(s1)
lw t9,-0x7f04(gp)
jalr t9
_or s1,v0,zero
lw gp,0x10(sp)
lw t9,-0x7fc0(gp)
bal 0x0003a244
_or a0,s1,zero
lw v1,0x1c(sp)
lw v0,0x0(s0)
bne v1,v0,0x000471f8
_lw gp,0x10(sp)
lw ra,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x6fe8(gp)
jalr t9
_nop
(translation_unit "void FUN_00047158(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar3 = PTR___stack_chk_guard_00112630;\n  iVar1 = *(int *)PTR___stack_chk_guard_00112630;\n  local_res8 = param_3;\n  local_resc = param_4;\n  iVar2 = dupvprintf(param_2,&local_res8);\n  (*(code *)PTR_logevent_001113ac)(*(undefined4 *)(param_1 + 0x110),iVar2);\n  safefree();\n  if (iVar1 == *(int *)puVar3) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  puVar3 = puVar3 + 0xd20ac;\n  iVar1 = (**(code **)(iVar2 + 0x240))();\n  if (iVar1 != 0) {\n    (**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);\n    safefree(*(undefined4 *)(iVar1 + 0x10));\n    safefree(iVar1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00047158(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar3 = PTR___stack_chk_guard_00112630;\n  iVar1 = *(int *)PTR___stack_chk_guard_00112630;\n  local_res8 = param_3;\n  local_resc = param_4;\n  iVar2 = dupvprintf(param_2,&local_res8);\n  (*(code *)PTR_logevent_001113ac)(*(undefined4 *)(param_1 + 0x110),iVar2);\n  safefree();\n  if (iVar1 == *(int *)puVar3) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  puVar3 = puVar3 + 0xd20ac;\n  iVar1 = (**(code **)(iVar2 + 0x240))();\n  if (iVar1 != 0) {\n    (**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);\n    safefree(*(undefined4 *)(iVar1 + 0x10));\n    safefree(iVar1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00047158(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar3 = PTR___stack_chk_guard_00112630;\n  iVar1 = *(int *)PTR___stack_chk_guard_00112630;\n  local_res8 = param_3;\n  local_resc = param_4;\n  iVar2 = dupvprintf(param_2,&local_res8);\n  (*(code *)PTR_logevent_001113ac)(*(undefined4 *)(param_1 + 0x110),iVar2);\n  safefree();\n  if (iVar1 == *(int *)puVar3) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  puVar3 = puVar3 + 0xd20ac;\n  iVar1 = (**(code **)(iVar2 + 0x240))();\n  if (iVar1 != 0) {\n    (**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);\n    safefree(*(undefined4 *)(iVar1 + 0x10));\n    safefree(iVar1);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_00112630;" (assignment_expression "puVar3 = PTR___stack_chk_guard_00112630" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_00112630;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_00112630" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00112630" * (cast_expression "(int *)PTR___stack_chk_guard_00112630" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" identifier = identifier) ;) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" identifier = identifier) ;) (expression_statement "iVar2 = dupvprintf(param_2,&local_res8);" (assignment_expression "iVar2 = dupvprintf(param_2,&local_res8)" identifier = (call_expression "dupvprintf(param_2,&local_res8)" identifier (argument_list "(param_2,&local_res8)" ( identifier , (pointer_expression "&local_res8" & identifier) )))) ;) (expression_statement "(*(code *)PTR_logevent_001113ac)(*(undefined4 *)(param_1 + 0x110),iVar2);" (call_expression "(*(code *)PTR_logevent_001113ac)(*(undefined4 *)(param_1 + 0x110),iVar2)" (parenthesized_expression "(*(code *)PTR_logevent_001113ac)" ( (pointer_expression "*(code *)PTR_logevent_001113ac" * (cast_expression "(code *)PTR_logevent_001113ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x110),iVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x110)" * (cast_expression "(undefined4 *)(param_1 + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "safefree();" (call_expression "safefree()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar1 == *(int *)puVar3) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)puVar3)" ( (binary_expression "iVar1 == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (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_001122c8;" (assignment_expression "puVar3 = PTR___stack_chk_fail_001122c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001122c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_001122c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001122c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001122c8" * (cast_expression "(code *)PTR___stack_chk_fail_001122c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar3 = puVar3 + 0xd20ac;" (assignment_expression "puVar3 = puVar3 + 0xd20ac" identifier = (binary_expression "puVar3 + 0xd20ac" identifier + number_literal)) ;) (expression_statement "iVar1 = (**(code **)(iVar2 + 0x240))();" (assignment_expression "iVar1 = (**(code **)(iVar2 + 0x240))()" identifier = (call_expression "(**(code **)(iVar2 + 0x240))()" (parenthesized_expression "(**(code **)(iVar2 + 0x240))" ( (pointer_expression "**(code **)(iVar2 + 0x240)" * (pointer_expression "*(code **)(iVar2 + 0x240)" * (cast_expression "(code **)(iVar2 + 0x240)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x240)" ( (binary_expression "iVar2 + 0x240" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    (**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);\n    safefree(*(undefined4 *)(iVar1 + 0x10));\n    safefree(iVar1);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    (**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);\n    safefree(*(undefined4 *)(iVar1 + 0x10));\n    safefree(iVar1);\n    return;\n  }" { (expression_statement "(**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);" (call_expression "(**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3)" (parenthesized_expression "(**(code **)(iVar2 + 0x23c))" ( (pointer_expression "**(code **)(iVar2 + 0x23c)" * (pointer_expression "*(code **)(iVar2 + 0x23c)" * (cast_expression "(code **)(iVar2 + 0x23c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x23c)" ( (binary_expression "iVar2 + 0x23c" identifier + number_literal) ))))) )) (argument_list "(iVar2,0,0,iVar1,puVar3)" ( identifier , number_literal , number_literal , identifier , identifier ))) ;) (expression_statement "safefree(*(undefined4 *)(iVar1 + 0x10));" (call_expression "safefree(*(undefined4 *)(iVar1 + 0x10))" identifier (argument_list "(*(undefined4 *)(iVar1 + 0x10))" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "safefree(iVar1);" (call_expression "safefree(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid logeventf(Ssh_conflict ssh,char *fmt,...)\n\n{\n  char *ptr;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  va_list ap;\n  \n  local_res8 = in_a2;\n  local_resc = in_a3;\n  ptr = dupvprintf(fmt,&local_res8);\n  (*(code *)PTR_logevent_001113ac)(ssh->frontend,ptr);\n                    /* WARNING: Subroutine does not return */\n  safefree(ptr);\n}\n\n" comment (function_definition "void logeventf(Ssh_conflict ssh,char *fmt,...)\n\n{\n  char *ptr;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  va_list ap;\n  \n  local_res8 = in_a2;\n  local_resc = in_a3;\n  ptr = dupvprintf(fmt,&local_res8);\n  (*(code *)PTR_logevent_001113ac)(ssh->frontend,ptr);\n                    /* WARNING: Subroutine does not return */\n  safefree(ptr);\n}" primitive_type (function_declarator "logeventf(Ssh_conflict ssh,char *fmt,...)" identifier (parameter_list "(Ssh_conflict ssh,char *fmt,...)" ( (parameter_declaration "Ssh_conflict ssh" type_identifier identifier) , (parameter_declaration "char *fmt" primitive_type (pointer_declarator "*fmt" * identifier)) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  char *ptr;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  va_list ap;\n  \n  local_res8 = in_a2;\n  local_resc = in_a3;\n  ptr = dupvprintf(fmt,&local_res8);\n  (*(code *)PTR_logevent_001113ac)(ssh->frontend,ptr);\n                    /* WARNING: Subroutine does not return */\n  safefree(ptr);\n}" { (declaration "char *ptr;" primitive_type (pointer_declarator "*ptr" * identifier) ;) (declaration "undefined4 in_a2;" type_identifier identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (declaration "va_list ap;" type_identifier identifier ;) (expression_statement "local_res8 = in_a2;" (assignment_expression "local_res8 = in_a2" identifier = identifier) ;) (expression_statement "local_resc = in_a3;" (assignment_expression "local_resc = in_a3" identifier = identifier) ;) (expression_statement "ptr = dupvprintf(fmt,&local_res8);" (assignment_expression "ptr = dupvprintf(fmt,&local_res8)" identifier = (call_expression "dupvprintf(fmt,&local_res8)" identifier (argument_list "(fmt,&local_res8)" ( identifier , (pointer_expression "&local_res8" & identifier) )))) ;) (expression_statement "(*(code *)PTR_logevent_001113ac)(ssh->frontend,ptr);" (call_expression "(*(code *)PTR_logevent_001113ac)(ssh->frontend,ptr)" (parenthesized_expression "(*(code *)PTR_logevent_001113ac)" ( (pointer_expression "*(code *)PTR_logevent_001113ac" * (cast_expression "(code *)PTR_logevent_001113ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ssh->frontend,ptr)" ( (field_expression "ssh->frontend" identifier -> field_identifier) , identifier ))) ;) comment (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) })))
(translation_unit "void FUN_00047158(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar3 = PTR___stack_chk_guard_00112630;\n  iVar1 = *(int *)PTR___stack_chk_guard_00112630;\n  local_res8 = param_3;\n  local_resc = param_4;\n  iVar2 = dupvprintf(param_2,&local_res8);\n  (*(code *)PTR_logevent_001113ac)(*(undefined4 *)(param_1 + 0x110),iVar2);\n  safefree();\n  if (iVar1 == *(int *)puVar3) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  puVar3 = puVar3 + 0xd20ac;\n  iVar1 = (**(code **)(iVar2 + 0x240))();\n  if (iVar1 != 0) {\n    (**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);\n    safefree(*(undefined4 *)(iVar1 + 0x10));\n    safefree(iVar1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00047158(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar3 = PTR___stack_chk_guard_00112630;\n  iVar1 = *(int *)PTR___stack_chk_guard_00112630;\n  local_res8 = param_3;\n  local_resc = param_4;\n  iVar2 = dupvprintf(param_2,&local_res8);\n  (*(code *)PTR_logevent_001113ac)(*(undefined4 *)(param_1 + 0x110),iVar2);\n  safefree();\n  if (iVar1 == *(int *)puVar3) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  puVar3 = puVar3 + 0xd20ac;\n  iVar1 = (**(code **)(iVar2 + 0x240))();\n  if (iVar1 != 0) {\n    (**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);\n    safefree(*(undefined4 *)(iVar1 + 0x10));\n    safefree(iVar1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00047158(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar3 = PTR___stack_chk_guard_00112630;\n  iVar1 = *(int *)PTR___stack_chk_guard_00112630;\n  local_res8 = param_3;\n  local_resc = param_4;\n  iVar2 = dupvprintf(param_2,&local_res8);\n  (*(code *)PTR_logevent_001113ac)(*(undefined4 *)(param_1 + 0x110),iVar2);\n  safefree();\n  if (iVar1 == *(int *)puVar3) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  puVar3 = puVar3 + 0xd20ac;\n  iVar1 = (**(code **)(iVar2 + 0x240))();\n  if (iVar1 != 0) {\n    (**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);\n    safefree(*(undefined4 *)(iVar1 + 0x10));\n    safefree(iVar1);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_00112630;" (assignment_expression "puVar3 = PTR___stack_chk_guard_00112630" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_00112630;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_00112630" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00112630" * (cast_expression "(int *)PTR___stack_chk_guard_00112630" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" identifier = identifier) ;) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" identifier = identifier) ;) (expression_statement "iVar2 = dupvprintf(param_2,&local_res8);" (assignment_expression "iVar2 = dupvprintf(param_2,&local_res8)" identifier = (call_expression "dupvprintf(param_2,&local_res8)" identifier (argument_list "(param_2,&local_res8)" ( identifier , (pointer_expression "&local_res8" & identifier) )))) ;) (expression_statement "(*(code *)PTR_logevent_001113ac)(*(undefined4 *)(param_1 + 0x110),iVar2);" (call_expression "(*(code *)PTR_logevent_001113ac)(*(undefined4 *)(param_1 + 0x110),iVar2)" (parenthesized_expression "(*(code *)PTR_logevent_001113ac)" ( (pointer_expression "*(code *)PTR_logevent_001113ac" * (cast_expression "(code *)PTR_logevent_001113ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x110),iVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x110)" * (cast_expression "(undefined4 *)(param_1 + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "safefree();" (call_expression "safefree()" identifier (argument_list "()" ( ))) ;) (if_statement "if (iVar1 == *(int *)puVar3) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)puVar3)" ( (binary_expression "iVar1 == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (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_001122c8;" (assignment_expression "puVar3 = PTR___stack_chk_fail_001122c8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_001122c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_001122c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001122c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_001122c8" * (cast_expression "(code *)PTR___stack_chk_fail_001122c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar3 = puVar3 + 0xd20ac;" (assignment_expression "puVar3 = puVar3 + 0xd20ac" identifier = (binary_expression "puVar3 + 0xd20ac" identifier + number_literal)) ;) (expression_statement "iVar1 = (**(code **)(iVar2 + 0x240))();" (assignment_expression "iVar1 = (**(code **)(iVar2 + 0x240))()" identifier = (call_expression "(**(code **)(iVar2 + 0x240))()" (parenthesized_expression "(**(code **)(iVar2 + 0x240))" ( (pointer_expression "**(code **)(iVar2 + 0x240)" * (pointer_expression "*(code **)(iVar2 + 0x240)" * (cast_expression "(code **)(iVar2 + 0x240)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x240)" ( (binary_expression "iVar2 + 0x240" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    (**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);\n    safefree(*(undefined4 *)(iVar1 + 0x10));\n    safefree(iVar1);\n    return;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    (**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);\n    safefree(*(undefined4 *)(iVar1 + 0x10));\n    safefree(iVar1);\n    return;\n  }" { (expression_statement "(**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);" (call_expression "(**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3)" (parenthesized_expression "(**(code **)(iVar2 + 0x23c))" ( (pointer_expression "**(code **)(iVar2 + 0x23c)" * (pointer_expression "*(code **)(iVar2 + 0x23c)" * (cast_expression "(code **)(iVar2 + 0x23c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x23c)" ( (binary_expression "iVar2 + 0x23c" identifier + number_literal) ))))) )) (argument_list "(iVar2,0,0,iVar1,puVar3)" ( identifier , number_literal , number_literal , identifier , identifier ))) ;) (expression_statement "safefree(*(undefined4 *)(iVar1 + 0x10));" (call_expression "safefree(*(undefined4 *)(iVar1 + 0x10))" identifier (argument_list "(*(undefined4 *)(iVar1 + 0x10))" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "safefree(iVar1);" (call_expression "safefree(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (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) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (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 = (binary_expression IDENT + LIT)) ;) (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 ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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 IDENT + LIT) ))))) )) (argument_list ( IDENT , LIT , LIT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_00047158(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar3 = PTR___stack_chk_guard_00112630;\n  iVar1 = *(int *)PTR___stack_chk_guard_00112630;\n  local_res8 = param_3;\n  local_resc = param_4;\n  iVar2 = dupvprintf(param_2,&local_res8);\n  (*(code *)PTR_logevent_001113ac)(*(undefined4 *)(param_1 + 0x110),iVar2);\n  safefree();\n  if (iVar1 == *(int *)puVar3) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  puVar3 = puVar3 + 0xd20ac;\n  iVar1 = (**(code **)(iVar2 + 0x240))();\n  if (iVar1 != 0) {\n    (**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);\n    safefree(*(undefined4 *)(iVar1 + 0x10));\n    safefree(iVar1);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00047158(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_00047158") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined *puVar3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar3 = PTR___stack_chk_guard_00112630;\n  iVar1 = *(int *)PTR___stack_chk_guard_00112630;\n  local_res8 = param_3;\n  local_resc = param_4;\n  iVar2 = dupvprintf(param_2,&local_res8);\n  (*(code *)PTR_logevent_001113ac)(*(undefined4 *)(param_1 + 0x110),iVar2);\n  safefree();\n  if (iVar1 == *(int *)puVar3) {\n    return;\n  }\n  puVar3 = PTR___stack_chk_fail_001122c8;\n  (*(code *)PTR___stack_chk_fail_001122c8)();\n  puVar3 = puVar3 + 0xd20ac;\n  iVar1 = (**(code **)(iVar2 + 0x240))();\n  if (iVar1 != 0) {\n    (**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);\n    safefree(*(undefined4 *)(iVar1 + 0x10));\n    safefree(iVar1);\n    return;\n  }\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")) (; ";")) (declaration "undefined4 local_res8;" (type_identifier "undefined4") (identifier "local_res8") (; ";")) (declaration "undefined4 local_resc;" (type_identifier "undefined4") (identifier "local_resc") (; ";")) (expression_statement "puVar3 = PTR___stack_chk_guard_00112630;" (assignment_expression "puVar3 = PTR___stack_chk_guard_00112630" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_guard_00112630")) (; ";")) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_00112630;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_00112630" (identifier "iVar1") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00112630" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00112630" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00112630")))) (; ";")) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" (identifier "local_res8") (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" (identifier "local_resc") (= "=") (identifier "param_4")) (; ";")) (expression_statement "iVar2 = dupvprintf(param_2,&local_res8);" (assignment_expression "iVar2 = dupvprintf(param_2,&local_res8)" (identifier "iVar2") (= "=") (call_expression "dupvprintf(param_2,&local_res8)" (identifier "dupvprintf") (argument_list "(param_2,&local_res8)" (( "(") (identifier "param_2") (, ",") (pointer_expression "&local_res8" (& "&") (identifier "local_res8")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_logevent_001113ac)(*(undefined4 *)(param_1 + 0x110),iVar2);" (call_expression "(*(code *)PTR_logevent_001113ac)(*(undefined4 *)(param_1 + 0x110),iVar2)" (parenthesized_expression "(*(code *)PTR_logevent_001113ac)" (( "(") (pointer_expression "*(code *)PTR_logevent_001113ac" (* "*") (cast_expression "(code *)PTR_logevent_001113ac" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_logevent_001113ac"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x110),iVar2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x110)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x110)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x110)" (( "(") (binary_expression "param_1 + 0x110" (identifier "param_1") (+ "+") (number_literal "0x110")) () ")")))) (, ",") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "safefree();" (call_expression "safefree()" (identifier "safefree") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (iVar1 == *(int *)puVar3) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)puVar3)" (( "(") (binary_expression "iVar1 == *(int *)puVar3" (identifier "iVar1") (== "==") (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar3 = PTR___stack_chk_fail_001122c8;" (assignment_expression "puVar3 = PTR___stack_chk_fail_001122c8" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_fail_001122c8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_001122c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_001122c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_001122c8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_001122c8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_001122c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_001122c8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar3 = puVar3 + 0xd20ac;" (assignment_expression "puVar3 = puVar3 + 0xd20ac" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 0xd20ac" (identifier "puVar3") (+ "+") (number_literal "0xd20ac"))) (; ";")) (expression_statement "iVar1 = (**(code **)(iVar2 + 0x240))();" (assignment_expression "iVar1 = (**(code **)(iVar2 + 0x240))()" (identifier "iVar1") (= "=") (call_expression "(**(code **)(iVar2 + 0x240))()" (parenthesized_expression "(**(code **)(iVar2 + 0x240))" (( "(") (pointer_expression "**(code **)(iVar2 + 0x240)" (* "*") (pointer_expression "*(code **)(iVar2 + 0x240)" (* "*") (cast_expression "(code **)(iVar2 + 0x240)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x240)" (( "(") (binary_expression "iVar2 + 0x240" (identifier "iVar2") (+ "+") (number_literal "0x240")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    (**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);\n    safefree(*(undefined4 *)(iVar1 + 0x10));\n    safefree(iVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);\n    safefree(*(undefined4 *)(iVar1 + 0x10));\n    safefree(iVar1);\n    return;\n  }" ({ "{") (expression_statement "(**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);" (call_expression "(**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3)" (parenthesized_expression "(**(code **)(iVar2 + 0x23c))" (( "(") (pointer_expression "**(code **)(iVar2 + 0x23c)" (* "*") (pointer_expression "*(code **)(iVar2 + 0x23c)" (* "*") (cast_expression "(code **)(iVar2 + 0x23c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x23c)" (( "(") (binary_expression "iVar2 + 0x23c" (identifier "iVar2") (+ "+") (number_literal "0x23c")) () ")"))))) () ")")) (argument_list "(iVar2,0,0,iVar1,puVar3)" (( "(") (identifier "iVar2") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "iVar1") (, ",") (identifier "puVar3") () ")"))) (; ";")) (expression_statement "safefree(*(undefined4 *)(iVar1 + 0x10));" (call_expression "safefree(*(undefined4 *)(iVar1 + 0x10))" (identifier "safefree") (argument_list "(*(undefined4 *)(iVar1 + 0x10))" (( "(") (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "safefree(iVar1);" (call_expression "safefree(iVar1)" (identifier "safefree") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 ssh,char *fmt,...)

{
  char *ptr;
  type_2 in_a2;
  type_2 in_a3;
  type_2 local_res8;
  type_2 local_resc;
  type_3 ap;
  
  local_res8 = in_a2;
  local_resc = in_a3;
  ptr = var_1(fmt,&local_res8);
  (*(type_4 *)PTR_logevent_001113ac)(ssh->frontend,ptr);
                    /* WARNING: Subroutine does not return */
  var_2(ptr);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) 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))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (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 (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))))) (identifier)))) (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: (binary_expression left: (identifier) right: (number_literal)))) (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (number_literal) (number_literal) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) 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 (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (return_statement))))

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

{
  int iVar1;
  int iVar2;
  undefined *puVar3;
  undefined4 local_res8;
  undefined4 local_resc;
  
  puVar3 = PTR___stack_chk_guard_00112630;
  iVar1 = *(int *)PTR___stack_chk_guard_00112630;
  local_res8 = param_3;
  local_resc = param_4;
  iVar2 = dupvprintf(param_2,&local_res8);
  (*(code *)PTR_logevent_001113ac)(*(undefined4 *)(param_1 + 0x110),iVar2);
  safefree();
  if (iVar1 == *(int *)puVar3) {
    return;
  }
  puVar3 = PTR___stack_chk_fail_001122c8;
  (*(code *)PTR___stack_chk_fail_001122c8)();
  puVar3 = puVar3 + 0xd20ac;
  iVar1 = (**(code **)(iVar2 + 0x240))();
  if (iVar1 != 0) {
    (**(code **)(iVar2 + 0x23c))(iVar2,0,0,iVar1,puVar3);
    safefree(*(undefined4 *)(iVar1 + 0x10));
    safefree(iVar1);
    return;
  }
  return;
}

