
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int demangle_nested_args(work_stuff *work,char **mangled,string *declp)

{
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 __regparm3 FUN_00233910(int param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 *__ptr;
  
  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + 1;
  uVar1 = *(undefined4 *)(param_1 + 0x4c);
  uVar2 = *(undefined4 *)(param_1 + 0x50);
  *(undefined4 *)(param_1 + 0x4c) = 0;
  *(undefined4 *)(param_1 + 0x50) = 0;
  uVar3 = FUN_002335c0();
  __ptr = *(undefined4 **)(param_1 + 0x4c);
  if (__ptr != (undefined4 *)0x0) {
    if ((void *)*__ptr != (void *)0x0) {
      free((void *)*__ptr);
      __ptr[1] = 0;
      __ptr[2] = 0;
      *__ptr = 0;
      __ptr = *(undefined4 **)(param_1 + 0x4c);
    }
    free(__ptr);
  }
  *(undefined4 *)(param_1 + 0x4c) = uVar1;
  *(undefined4 *)(param_1 + 0x50) = uVar2;
  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + -1;
  return uVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x0003a210
ADD EBX,0x1e06e5
SUB ESP,0x1c
ADD dword ptr [EAX + 0x48],0x1
MOV EBP,dword ptr [EAX + 0x4c]
MOV EDI,dword ptr [EAX + 0x50]
MOV dword ptr [EAX + 0x4c],0x0
MOV dword ptr [EAX + 0x50],0x0
CALL 0x002335c0
MOV EDX,dword ptr [ESI + 0x4c]
TEST EDX,EDX
JZ 0x00233995
MOV ECX,dword ptr [EDX]
TEST ECX,ECX
JZ 0x00233981
MOV dword ptr [ESP + 0xc],EAX
SUB ESP,0xc
MOV dword ptr [ESP + 0x14],EDX
PUSH ECX
CALL 0x0002c700
MOV EDX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EDX + 0x4],0x0
MOV dword ptr [EDX + 0x8],0x0
MOV dword ptr [EDX],0x0
MOV EDX,dword ptr [ESI + 0x4c]
MOV dword ptr [ESP + 0x8],EAX
SUB ESP,0xc
PUSH EDX
CALL 0x0002c700
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [ESI + 0x4c],EBP
MOV dword ptr [ESI + 0x50],EDI
SUB dword ptr [ESI + 0x48],0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_00233910(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 *__ptr;\n  \n  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + 1;\n  uVar1 = *(undefined4 *)(param_1 + 0x4c);\n  uVar2 = *(undefined4 *)(param_1 + 0x50);\n  *(undefined4 *)(param_1 + 0x4c) = 0;\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  uVar3 = FUN_002335c0();\n  __ptr = *(undefined4 **)(param_1 + 0x4c);\n  if (__ptr != (undefined4 *)0x0) {\n    if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }\n    free(__ptr);\n  }\n  *(undefined4 *)(param_1 + 0x4c) = uVar1;\n  *(undefined4 *)(param_1 + 0x50) = uVar2;\n  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + -1;\n  return uVar3;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_00233910(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 *__ptr;\n  \n  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + 1;\n  uVar1 = *(undefined4 *)(param_1 + 0x4c);\n  uVar2 = *(undefined4 *)(param_1 + 0x50);\n  *(undefined4 *)(param_1 + 0x4c) = 0;\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  uVar3 = FUN_002335c0();\n  __ptr = *(undefined4 **)(param_1 + 0x4c);\n  if (__ptr != (undefined4 *)0x0) {\n    if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }\n    free(__ptr);\n  }\n  *(undefined4 *)(param_1 + 0x4c) = uVar1;\n  *(undefined4 *)(param_1 + 0x50) = uVar2;\n  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + -1;\n  return uVar3;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00233910(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  undefined4 uVar3;\n  undefined4 *__ptr;\n  \n  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + 1;\n  uVar1 = *(undefined4 *)(param_1 + 0x4c);\n  uVar2 = *(undefined4 *)(param_1 + 0x50);\n  *(undefined4 *)(param_1 + 0x4c) = 0;\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  uVar3 = FUN_002335c0();\n  __ptr = *(undefined4 **)(param_1 + 0x4c);\n  if (__ptr != (undefined4 *)0x0) {\n    if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }\n    free(__ptr);\n  }\n  *(undefined4 *)(param_1 + 0x4c) = uVar1;\n  *(undefined4 *)(param_1 + 0x50) = uVar2;\n  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + -1;\n  return uVar3;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "*(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + 1;" (assignment_expression "*(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + 1" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x48) + 1" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x4c);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x4c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x50);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x50)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = FUN_002335c0();" (assignment_expression "uVar3 = FUN_002335c0()" identifier = (call_expression "FUN_002335c0()" identifier (argument_list "()" ( )))) ;) (expression_statement "__ptr = *(undefined4 **)(param_1 + 0x4c);" (assignment_expression "__ptr = *(undefined4 **)(param_1 + 0x4c)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x4c)" * (cast_expression "(undefined4 **)(param_1 + 0x4c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (if_statement "if (__ptr != (undefined4 *)0x0) {\n    if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }\n    free(__ptr);\n  }" if (parenthesized_expression "(__ptr != (undefined4 *)0x0)" ( (binary_expression "__ptr != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }\n    free(__ptr);\n  }" { (if_statement "if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }" if (parenthesized_expression "((void *)*__ptr != (void *)0x0)" ( (binary_expression "(void *)*__ptr != (void *)0x0" (cast_expression "(void *)*__ptr" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*__ptr" * identifier)) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }" { (expression_statement "free((void *)*__ptr);" (call_expression "free((void *)*__ptr)" identifier (argument_list "((void *)*__ptr)" ( (cast_expression "(void *)*__ptr" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*__ptr" * identifier)) ))) ;) (expression_statement "__ptr[1] = 0;" (assignment_expression "__ptr[1] = 0" (subscript_expression "__ptr[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "__ptr[2] = 0;" (assignment_expression "__ptr[2] = 0" (subscript_expression "__ptr[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*__ptr = 0;" (assignment_expression "*__ptr = 0" (pointer_expression "*__ptr" * identifier) = number_literal) ;) (expression_statement "__ptr = *(undefined4 **)(param_1 + 0x4c);" (assignment_expression "__ptr = *(undefined4 **)(param_1 + 0x4c)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x4c)" * (cast_expression "(undefined4 **)(param_1 + 0x4c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x50) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + -1;" (assignment_expression "*(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + -1" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x48) + -1" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint demangle_nested_args(work_stuff *work,char **mangled,string *declp)\n\n{\n}\n\n" comment (function_definition "int demangle_nested_args(work_stuff *work,char **mangled,string *declp)\n\n{\n}" primitive_type (function_declarator "demangle_nested_args(work_stuff *work,char **mangled,string *declp)" identifier (parameter_list "(work_stuff *work,char **mangled,string *declp)" ( (parameter_declaration "work_stuff *work" type_identifier (pointer_declarator "*work" * identifier)) , (parameter_declaration "char **mangled" primitive_type (pointer_declarator "**mangled" * (pointer_declarator "*mangled" * identifier))) , (parameter_declaration "string *declp" type_identifier (pointer_declarator "*declp" * identifier)) ))) (compound_statement "{\n}" { })))
(translation_unit "undefined4 __regparm3 FUN_00233910(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 *__ptr;\n  \n  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + 1;\n  uVar1 = *(undefined4 *)(param_1 + 0x4c);\n  uVar2 = *(undefined4 *)(param_1 + 0x50);\n  *(undefined4 *)(param_1 + 0x4c) = 0;\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  uVar3 = FUN_002335c0();\n  __ptr = *(undefined4 **)(param_1 + 0x4c);\n  if (__ptr != (undefined4 *)0x0) {\n    if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }\n    free(__ptr);\n  }\n  *(undefined4 *)(param_1 + 0x4c) = uVar1;\n  *(undefined4 *)(param_1 + 0x50) = uVar2;\n  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + -1;\n  return uVar3;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00233910(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 *__ptr;\n  \n  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + 1;\n  uVar1 = *(undefined4 *)(param_1 + 0x4c);\n  uVar2 = *(undefined4 *)(param_1 + 0x50);\n  *(undefined4 *)(param_1 + 0x4c) = 0;\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  uVar3 = FUN_002335c0();\n  __ptr = *(undefined4 **)(param_1 + 0x4c);\n  if (__ptr != (undefined4 *)0x0) {\n    if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }\n    free(__ptr);\n  }\n  *(undefined4 *)(param_1 + 0x4c) = uVar1;\n  *(undefined4 *)(param_1 + 0x50) = uVar2;\n  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + -1;\n  return uVar3;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00233910(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  undefined4 uVar3;\n  undefined4 *__ptr;\n  \n  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + 1;\n  uVar1 = *(undefined4 *)(param_1 + 0x4c);\n  uVar2 = *(undefined4 *)(param_1 + 0x50);\n  *(undefined4 *)(param_1 + 0x4c) = 0;\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  uVar3 = FUN_002335c0();\n  __ptr = *(undefined4 **)(param_1 + 0x4c);\n  if (__ptr != (undefined4 *)0x0) {\n    if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }\n    free(__ptr);\n  }\n  *(undefined4 *)(param_1 + 0x4c) = uVar1;\n  *(undefined4 *)(param_1 + 0x50) = uVar2;\n  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + -1;\n  return uVar3;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "*(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + 1;" (assignment_expression "*(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + 1" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x48) + 1" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x4c);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x4c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x50);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x50)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = FUN_002335c0();" (assignment_expression "uVar3 = FUN_002335c0()" identifier = (call_expression "FUN_002335c0()" identifier (argument_list "()" ( )))) ;) (expression_statement "__ptr = *(undefined4 **)(param_1 + 0x4c);" (assignment_expression "__ptr = *(undefined4 **)(param_1 + 0x4c)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x4c)" * (cast_expression "(undefined4 **)(param_1 + 0x4c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (if_statement "if (__ptr != (undefined4 *)0x0) {\n    if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }\n    free(__ptr);\n  }" if (parenthesized_expression "(__ptr != (undefined4 *)0x0)" ( (binary_expression "__ptr != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }\n    free(__ptr);\n  }" { (if_statement "if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }" if (parenthesized_expression "((void *)*__ptr != (void *)0x0)" ( (binary_expression "(void *)*__ptr != (void *)0x0" (cast_expression "(void *)*__ptr" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*__ptr" * identifier)) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }" { (expression_statement "free((void *)*__ptr);" (call_expression "free((void *)*__ptr)" identifier (argument_list "((void *)*__ptr)" ( (cast_expression "(void *)*__ptr" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*__ptr" * identifier)) ))) ;) (expression_statement "__ptr[1] = 0;" (assignment_expression "__ptr[1] = 0" (subscript_expression "__ptr[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "__ptr[2] = 0;" (assignment_expression "__ptr[2] = 0" (subscript_expression "__ptr[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*__ptr = 0;" (assignment_expression "*__ptr = 0" (pointer_expression "*__ptr" * identifier) = number_literal) ;) (expression_statement "__ptr = *(undefined4 **)(param_1 + 0x4c);" (assignment_expression "__ptr = *(undefined4 **)(param_1 + 0x4c)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x4c)" * (cast_expression "(undefined4 **)(param_1 + 0x4c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x50) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + -1;" (assignment_expression "*(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + -1" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x48) + -1" (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) + number_literal)) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (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) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = 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 (call_expression IDENT (argument_list ( IDENT ))) ;) })) (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) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3 FUN_00233910(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined4 *__ptr;\n  \n  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + 1;\n  uVar1 = *(undefined4 *)(param_1 + 0x4c);\n  uVar2 = *(undefined4 *)(param_1 + 0x50);\n  *(undefined4 *)(param_1 + 0x4c) = 0;\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  uVar3 = FUN_002335c0();\n  __ptr = *(undefined4 **)(param_1 + 0x4c);\n  if (__ptr != (undefined4 *)0x0) {\n    if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }\n    free(__ptr);\n  }\n  *(undefined4 *)(param_1 + 0x4c) = uVar1;\n  *(undefined4 *)(param_1 + 0x50) = uVar2;\n  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + -1;\n  return uVar3;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00233910(int param_1)" (identifier "FUN_00233910") (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  undefined4 uVar3;\n  undefined4 *__ptr;\n  \n  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + 1;\n  uVar1 = *(undefined4 *)(param_1 + 0x4c);\n  uVar2 = *(undefined4 *)(param_1 + 0x50);\n  *(undefined4 *)(param_1 + 0x4c) = 0;\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  uVar3 = FUN_002335c0();\n  __ptr = *(undefined4 **)(param_1 + 0x4c);\n  if (__ptr != (undefined4 *)0x0) {\n    if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }\n    free(__ptr);\n  }\n  *(undefined4 *)(param_1 + 0x4c) = uVar1;\n  *(undefined4 *)(param_1 + 0x50) = uVar2;\n  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + -1;\n  return uVar3;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 *__ptr;" (type_identifier "undefined4") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (expression_statement "*(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + 1;" (assignment_expression "*(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + 1" (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x48) + 1" (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x4c);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x4c)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x50);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x50)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = FUN_002335c0();" (assignment_expression "uVar3 = FUN_002335c0()" (identifier "uVar3") (= "=") (call_expression "FUN_002335c0()" (identifier "FUN_002335c0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "__ptr = *(undefined4 **)(param_1 + 0x4c);" (assignment_expression "__ptr = *(undefined4 **)(param_1 + 0x4c)" (identifier "__ptr") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")"))))) (; ";")) (if_statement "if (__ptr != (undefined4 *)0x0) {\n    if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }\n    free(__ptr);\n  }" (if "if") (parenthesized_expression "(__ptr != (undefined4 *)0x0)" (( "(") (binary_expression "__ptr != (undefined4 *)0x0" (identifier "__ptr") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }\n    free(__ptr);\n  }" ({ "{") (if_statement "if ((void *)*__ptr != (void *)0x0) {\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }" (if "if") (parenthesized_expression "((void *)*__ptr != (void *)0x0)" (( "(") (binary_expression "(void *)*__ptr != (void *)0x0" (cast_expression "(void *)*__ptr" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*__ptr" (* "*") (identifier "__ptr"))) (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      free((void *)*__ptr);\n      __ptr[1] = 0;\n      __ptr[2] = 0;\n      *__ptr = 0;\n      __ptr = *(undefined4 **)(param_1 + 0x4c);\n    }" ({ "{") (expression_statement "free((void *)*__ptr);" (call_expression "free((void *)*__ptr)" (identifier "free") (argument_list "((void *)*__ptr)" (( "(") (cast_expression "(void *)*__ptr" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*__ptr" (* "*") (identifier "__ptr"))) () ")"))) (; ";")) (expression_statement "__ptr[1] = 0;" (assignment_expression "__ptr[1] = 0" (subscript_expression "__ptr[1]" (identifier "__ptr") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "__ptr[2] = 0;" (assignment_expression "__ptr[2] = 0" (subscript_expression "__ptr[2]" (identifier "__ptr") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*__ptr = 0;" (assignment_expression "*__ptr = 0" (pointer_expression "*__ptr" (* "*") (identifier "__ptr")) (= "=") (number_literal "0")) (; ";")) (expression_statement "__ptr = *(undefined4 **)(param_1 + 0x4c);" (assignment_expression "__ptr = *(undefined4 **)(param_1 + 0x4c)" (identifier "__ptr") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")"))))) (; ";")) (} "}"))) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x50) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + -1;" (assignment_expression "*(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + -1" (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x48) + -1" (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int function_1(type_1 *work,char **mangled,type_2 *declp)

{
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) 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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (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: (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)))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) right: (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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (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))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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))))))))) (expression_statement (call_expression function: (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: (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: (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: (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)))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 __regparm3 MASKED(int param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined4 *__ptr;
  
  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + 1;
  uVar1 = *(undefined4 *)(param_1 + 0x4c);
  uVar2 = *(undefined4 *)(param_1 + 0x50);
  *(undefined4 *)(param_1 + 0x4c) = 0;
  *(undefined4 *)(param_1 + 0x50) = 0;
  uVar3 = FUN_002335c0();
  __ptr = *(undefined4 **)(param_1 + 0x4c);
  if (__ptr != (undefined4 *)0x0) {
    if ((void *)*__ptr != (void *)0x0) {
      free((void *)*__ptr);
      __ptr[1] = 0;
      __ptr[2] = 0;
      *__ptr = 0;
      __ptr = *(undefined4 **)(param_1 + 0x4c);
    }
    free(__ptr);
  }
  *(undefined4 *)(param_1 + 0x4c) = uVar1;
  *(undefined4 *)(param_1 + 0x50) = uVar2;
  *(int *)(param_1 + 0x48) = *(int *)(param_1 + 0x48) + -1;
  return uVar3;
}

