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

bfd_boolean pr_function_parameter(void *p,char *name,debug_parm_kind kind,bfd_vma val)

{
  bfd_boolean bVar1;
  char *__ptr;
  char ab [22];
  
  if ((((1 < kind - DEBUG_PARM_REFERENCE) || (bVar1 = pr_reference_type(p), bVar1 != 0)) &&
      (bVar1 = substitute_type((pr_handle *)p,name), bVar1 != 0)) &&
     (__ptr = pop_type((pr_handle *)((int)p + 8)), __ptr != (char *)0x0)) {
    if (*(int *)((int)p + 0xc) != 1) {
                    /* WARNING: Load size is inaccurate */
      fwrite(", ",1,2,*p);
    }
    if ((kind - DEBUG_PARM_REG & 0xfffffffd) == 0) {
                    /* WARNING: Load size is inaccurate */
      fwrite("register ",1,9,*p);
    }
    sprintf(ab,"0x%llx",(undefined4)val,val._4_4_);
                    /* WARNING: Load size is inaccurate */
    fprintf(*p,"%s /* %s */",__ptr,ab);
    free(__ptr);
    *(int *)((int)p + 0xc) = *(int *)((int)p + 0xc) + 1;
    return 1;
  }
  return 0;
}



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

undefined4
FUN_00038a50(undefined4 *param_1,undefined4 param_2,int param_3,undefined4 param_4,
            undefined4 param_5)

{
  int iVar1;
  void *__ptr;
  char local_32 [30];
  undefined4 uStack_14;
  
  uStack_14 = 0x38a59;
  if ((((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&
      (iVar1 = FUN_00037630(), iVar1 != 0)) &&
     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)) {
    if (param_1[3] != 1) {
      fwrite(", ",1,2,(FILE *)*param_1);
    }
    if ((param_3 - 2U & 0xfffffffd) == 0) {
      fwrite("register ",1,9,(FILE *)*param_1);
    }
    sprintf(local_32,"0x%llx",param_4,param_5);
    fprintf((FILE *)*param_1,"%s /* %s */",__ptr,local_32);
    free(__ptr);
    param_1[3] = param_1[3] + 1;
    return 1;
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x3a5a7
SUB ESP,0x3c
MOV EAX,dword ptr [ESP + 0x58]
MOV ESI,dword ptr [ESP + 0x50]
MOV EDI,dword ptr [ESP + 0x5c]
MOV EBP,dword ptr [ESP + 0x60]
SUB EAX,0x3
CMP EAX,0x1
JBE 0x00038b10
MOV EDX,dword ptr [ESP + 0x54]
MOV EAX,ESI
CALL 0x00037630
TEST EAX,EAX
JNZ 0x00038aa0
ADD ESP,0x3c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[ESI + 0x8]
CALL 0x00036d90
MOV dword ptr [ESP + 0xc],EAX
TEST EAX,EAX
JZ 0x00038a8d
CMP dword ptr [ESI + 0xc],0x1
JNZ 0x00038b30
MOV EAX,dword ptr [ESP + 0x58]
SUB EAX,0x2
AND EAX,0xfffffffd
JZ 0x00038b55
LEA EAX,[EBX + 0xfffe4117]
PUSH EBP
PUSH EDI
PUSH EAX
LEA EDI,[ESP + 0x26]
PUSH EDI
CALL 0x000146d0
PUSH EDI
MOV EDI,dword ptr [ESP + 0x20]
LEA EAX,[EBX + 0xfffe42af]
PUSH EDI
PUSH EAX
PUSH dword ptr [ESI]
CALL 0x00014878
ADD ESP,0x14
PUSH EDI
CALL 0x00014120
ADD ESP,0x10
ADD dword ptr [ESI + 0xc],0x1
MOV EAX,0x1
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH ESI
CALL 0x00038a00
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00038a7e
JMP 0x00038a8d
LEA EAX,[EBX + 0xfffdc754]
PUSH dword ptr [ESI]
PUSH 0x2
PUSH 0x1
PUSH EAX
CALL 0x000142a0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x58]
SUB EAX,0x2
AND EAX,0xfffffffd
JNZ 0x00038ac6
LEA EAX,[EBX + 0xfffe4287]
PUSH dword ptr [ESI]
PUSH 0x9
PUSH 0x1
PUSH EAX
CALL 0x000142a0
ADD ESP,0x10
JMP 0x00038ac6
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4\nFUN_00038a50(undefined4 *param_1,undefined4 param_2,int param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  int iVar1;\n  void *__ptr;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38a59;\n  if ((((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)) {\n    if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }\n    if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }\n    sprintf(local_32,"0x%llx",param_4,param_5);\n    fprintf((FILE *)*param_1,"%s /* %s */",__ptr,local_32);\n    free(__ptr);\n    param_1[3] = param_1[3] + 1;\n    return 1;\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4\nFUN_00038a50(undefined4 *param_1,undefined4 param_2,int param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  int iVar1;\n  void *__ptr;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38a59;\n  if ((((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)) {\n    if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }\n    if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }\n    sprintf(local_32,"0x%llx",param_4,param_5);\n    fprintf((FILE *)*param_1,"%s /* %s */",__ptr,local_32);\n    free(__ptr);\n    param_1[3] = param_1[3] + 1;\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00038a50(undefined4 *param_1,undefined4 param_2,int param_3,undefined4 param_4,\n            undefined4 param_5)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,int param_3,undefined4 param_4,\n            undefined4 param_5)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  void *__ptr;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38a59;\n  if ((((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)) {\n    if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }\n    if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }\n    sprintf(local_32,"0x%llx",param_4,param_5);\n    fprintf((FILE *)*param_1,"%s /* %s */",__ptr,local_32);\n    free(__ptr);\n    param_1[3] = param_1[3] + 1;\n    return 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "char local_32 [30];" primitive_type (array_declarator "local_32 [30]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x38a59;" (assignment_expression "uStack_14 = 0x38a59" identifier = number_literal) ;) (if_statement "if ((((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)) {\n    if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }\n    if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }\n    sprintf(local_32,"0x%llx",param_4,param_5);\n    fprintf((FILE *)*param_1,"%s /* %s */",__ptr,local_32);\n    free(__ptr);\n    param_1[3] = param_1[3] + 1;\n    return 1;\n  }" if (parenthesized_expression "((((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0))" ( (binary_expression "(((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)" (parenthesized_expression "(((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0))" ( (binary_expression "((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)" (parenthesized_expression "((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0))" ( (binary_expression "(1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)" (parenthesized_expression "(1 < param_3 - 3U)" ( (binary_expression "1 < param_3 - 3U" number_literal < (binary_expression "param_3 - 3U" identifier - number_literal)) )) || (parenthesized_expression "(iVar1 = FUN_00038a00(param_1), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00038a00(param_1), iVar1 != 0" (assignment_expression "iVar1 = FUN_00038a00(param_1)" identifier = (call_expression "FUN_00038a00(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(iVar1 = FUN_00037630(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00037630(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00037630()" identifier = (call_expression "FUN_00037630()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)" ( (comma_expression "__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0" (assignment_expression "__ptr = (void *)FUN_00036d90()" identifier = (cast_expression "(void *)FUN_00036d90()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036d90()" identifier (argument_list "()" ( ))))) , (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }\n    if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }\n    sprintf(local_32,"0x%llx",param_4,param_5);\n    fprintf((FILE *)*param_1,"%s /* %s */",__ptr,local_32);\n    free(__ptr);\n    param_1[3] = param_1[3] + 1;\n    return 1;\n  }" { (if_statement "if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }" if (parenthesized_expression "(param_1[3] != 1)" ( (binary_expression "param_1[3] != 1" (subscript_expression "param_1[3]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }" { (expression_statement "fwrite(", ",1,2,(FILE *)*param_1);" (call_expression "fwrite(", ",1,2,(FILE *)*param_1)" identifier (argument_list "(", ",1,2,(FILE *)*param_1)" ( (string_literal "", "" " string_content ") , number_literal , number_literal , (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) })) (if_statement "if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }" if (parenthesized_expression "((param_3 - 2U & 0xfffffffd) == 0)" ( (binary_expression "(param_3 - 2U & 0xfffffffd) == 0" (parenthesized_expression "(param_3 - 2U & 0xfffffffd)" ( (binary_expression "param_3 - 2U & 0xfffffffd" (binary_expression "param_3 - 2U" identifier - number_literal) & number_literal) )) == number_literal) )) (compound_statement "{\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }" { (expression_statement "fwrite("register ",1,9,(FILE *)*param_1);" (call_expression "fwrite("register ",1,9,(FILE *)*param_1)" identifier (argument_list "("register ",1,9,(FILE *)*param_1)" ( (string_literal ""register "" " string_content ") , number_literal , number_literal , (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) })) (expression_statement "sprintf(local_32,"0x%llx",param_4,param_5);" (call_expression "sprintf(local_32,"0x%llx",param_4,param_5)" identifier (argument_list "(local_32,"0x%llx",param_4,param_5)" ( identifier , (string_literal ""0x%llx"" " string_content ") , identifier , identifier ))) ;) (expression_statement "fprintf((FILE *)*param_1,"%s /* %s */",__ptr,local_32);" (call_expression "fprintf((FILE *)*param_1,"%s /* %s */",__ptr,local_32)" identifier (argument_list "((FILE *)*param_1,"%s /* %s */",__ptr,local_32)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""%s /* %s */"" " string_content ") , identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "param_1[3] = param_1[3] + 1;" (assignment_expression "param_1[3] = param_1[3] + 1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (binary_expression "param_1[3] + 1" (subscript_expression "param_1[3]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean pr_function_parameter(void *p,char *name,debug_parm_kind kind,bfd_vma val)\n\n{\n  bfd_boolean bVar1;\n  char *__ptr;\n  char ab [22];\n  \n  if ((((1 < kind - DEBUG_PARM_REFERENCE) || (bVar1 = pr_reference_type(p), bVar1 != 0)) &&\n      (bVar1 = substitute_type((pr_handle *)p,name), bVar1 != 0)) &&\n     (__ptr = pop_type((pr_handle *)((int)p + 8)), __ptr != (char *)0x0)) {\n    if (*(int *)((int)p + 0xc) != 1) {\n                    /* WARNING: Load size is inaccurate */\n      fwrite(", ",1,2,*p);\n    }\n    if ((kind - DEBUG_PARM_REG & 0xfffffffd) == 0) {\n                    /* WARNING: Load size is inaccurate */\n      fwrite("register ",1,9,*p);\n    }\n    sprintf(ab,"0x%llx",(undefined4)val,val._4_4_);\n                    /* WARNING: Load size is inaccurate */\n    fprintf(*p,"%s /* %s */",__ptr,ab);\n    free(__ptr);\n    *(int *)((int)p + 0xc) = *(int *)((int)p + 0xc) + 1;\n    return 1;\n  }\n  return 0;\n}\n\n" comment comment (function_definition "bfd_boolean pr_function_parameter(void *p,char *name,debug_parm_kind kind,bfd_vma val)\n\n{\n  bfd_boolean bVar1;\n  char *__ptr;\n  char ab [22];\n  \n  if ((((1 < kind - DEBUG_PARM_REFERENCE) || (bVar1 = pr_reference_type(p), bVar1 != 0)) &&\n      (bVar1 = substitute_type((pr_handle *)p,name), bVar1 != 0)) &&\n     (__ptr = pop_type((pr_handle *)((int)p + 8)), __ptr != (char *)0x0)) {\n    if (*(int *)((int)p + 0xc) != 1) {\n                    /* WARNING: Load size is inaccurate */\n      fwrite(", ",1,2,*p);\n    }\n    if ((kind - DEBUG_PARM_REG & 0xfffffffd) == 0) {\n                    /* WARNING: Load size is inaccurate */\n      fwrite("register ",1,9,*p);\n    }\n    sprintf(ab,"0x%llx",(undefined4)val,val._4_4_);\n                    /* WARNING: Load size is inaccurate */\n    fprintf(*p,"%s /* %s */",__ptr,ab);\n    free(__ptr);\n    *(int *)((int)p + 0xc) = *(int *)((int)p + 0xc) + 1;\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "pr_function_parameter(void *p,char *name,debug_parm_kind kind,bfd_vma val)" identifier (parameter_list "(void *p,char *name,debug_parm_kind kind,bfd_vma val)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "debug_parm_kind kind" type_identifier identifier) , (parameter_declaration "bfd_vma val" type_identifier identifier) ))) (compound_statement "{\n  bfd_boolean bVar1;\n  char *__ptr;\n  char ab [22];\n  \n  if ((((1 < kind - DEBUG_PARM_REFERENCE) || (bVar1 = pr_reference_type(p), bVar1 != 0)) &&\n      (bVar1 = substitute_type((pr_handle *)p,name), bVar1 != 0)) &&\n     (__ptr = pop_type((pr_handle *)((int)p + 8)), __ptr != (char *)0x0)) {\n    if (*(int *)((int)p + 0xc) != 1) {\n                    /* WARNING: Load size is inaccurate */\n      fwrite(", ",1,2,*p);\n    }\n    if ((kind - DEBUG_PARM_REG & 0xfffffffd) == 0) {\n                    /* WARNING: Load size is inaccurate */\n      fwrite("register ",1,9,*p);\n    }\n    sprintf(ab,"0x%llx",(undefined4)val,val._4_4_);\n                    /* WARNING: Load size is inaccurate */\n    fprintf(*p,"%s /* %s */",__ptr,ab);\n    free(__ptr);\n    *(int *)((int)p + 0xc) = *(int *)((int)p + 0xc) + 1;\n    return 1;\n  }\n  return 0;\n}" { (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "char *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "char ab [22];" primitive_type (array_declarator "ab [22]" identifier [ number_literal ]) ;) (if_statement "if ((((1 < kind - DEBUG_PARM_REFERENCE) || (bVar1 = pr_reference_type(p), bVar1 != 0)) &&\n      (bVar1 = substitute_type((pr_handle *)p,name), bVar1 != 0)) &&\n     (__ptr = pop_type((pr_handle *)((int)p + 8)), __ptr != (char *)0x0)) {\n    if (*(int *)((int)p + 0xc) != 1) {\n                    /* WARNING: Load size is inaccurate */\n      fwrite(", ",1,2,*p);\n    }\n    if ((kind - DEBUG_PARM_REG & 0xfffffffd) == 0) {\n                    /* WARNING: Load size is inaccurate */\n      fwrite("register ",1,9,*p);\n    }\n    sprintf(ab,"0x%llx",(undefined4)val,val._4_4_);\n                    /* WARNING: Load size is inaccurate */\n    fprintf(*p,"%s /* %s */",__ptr,ab);\n    free(__ptr);\n    *(int *)((int)p + 0xc) = *(int *)((int)p + 0xc) + 1;\n    return 1;\n  }" if (parenthesized_expression "((((1 < kind - DEBUG_PARM_REFERENCE) || (bVar1 = pr_reference_type(p), bVar1 != 0)) &&\n      (bVar1 = substitute_type((pr_handle *)p,name), bVar1 != 0)) &&\n     (__ptr = pop_type((pr_handle *)((int)p + 8)), __ptr != (char *)0x0))" ( (binary_expression "(((1 < kind - DEBUG_PARM_REFERENCE) || (bVar1 = pr_reference_type(p), bVar1 != 0)) &&\n      (bVar1 = substitute_type((pr_handle *)p,name), bVar1 != 0)) &&\n     (__ptr = pop_type((pr_handle *)((int)p + 8)), __ptr != (char *)0x0)" (parenthesized_expression "(((1 < kind - DEBUG_PARM_REFERENCE) || (bVar1 = pr_reference_type(p), bVar1 != 0)) &&\n      (bVar1 = substitute_type((pr_handle *)p,name), bVar1 != 0))" ( (binary_expression "((1 < kind - DEBUG_PARM_REFERENCE) || (bVar1 = pr_reference_type(p), bVar1 != 0)) &&\n      (bVar1 = substitute_type((pr_handle *)p,name), bVar1 != 0)" (parenthesized_expression "((1 < kind - DEBUG_PARM_REFERENCE) || (bVar1 = pr_reference_type(p), bVar1 != 0))" ( (binary_expression "(1 < kind - DEBUG_PARM_REFERENCE) || (bVar1 = pr_reference_type(p), bVar1 != 0)" (parenthesized_expression "(1 < kind - DEBUG_PARM_REFERENCE)" ( (binary_expression "1 < kind - DEBUG_PARM_REFERENCE" number_literal < (binary_expression "kind - DEBUG_PARM_REFERENCE" identifier - identifier)) )) || (parenthesized_expression "(bVar1 = pr_reference_type(p), bVar1 != 0)" ( (comma_expression "bVar1 = pr_reference_type(p), bVar1 != 0" (assignment_expression "bVar1 = pr_reference_type(p)" identifier = (call_expression "pr_reference_type(p)" identifier (argument_list "(p)" ( identifier )))) , (binary_expression "bVar1 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(bVar1 = substitute_type((pr_handle *)p,name), bVar1 != 0)" ( (comma_expression "bVar1 = substitute_type((pr_handle *)p,name), bVar1 != 0" (assignment_expression "bVar1 = substitute_type((pr_handle *)p,name)" identifier = (call_expression "substitute_type((pr_handle *)p,name)" identifier (argument_list "((pr_handle *)p,name)" ( (cast_expression "(pr_handle *)p" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) , (binary_expression "bVar1 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(__ptr = pop_type((pr_handle *)((int)p + 8)), __ptr != (char *)0x0)" ( (comma_expression "__ptr = pop_type((pr_handle *)((int)p + 8)), __ptr != (char *)0x0" (assignment_expression "__ptr = pop_type((pr_handle *)((int)p + 8))" identifier = (call_expression "pop_type((pr_handle *)((int)p + 8))" identifier (argument_list "((pr_handle *)((int)p + 8))" ( (cast_expression "(pr_handle *)((int)p + 8)" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) )))) , (binary_expression "__ptr != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    if (*(int *)((int)p + 0xc) != 1) {\n                    /* WARNING: Load size is inaccurate */\n      fwrite(", ",1,2,*p);\n    }\n    if ((kind - DEBUG_PARM_REG & 0xfffffffd) == 0) {\n                    /* WARNING: Load size is inaccurate */\n      fwrite("register ",1,9,*p);\n    }\n    sprintf(ab,"0x%llx",(undefined4)val,val._4_4_);\n                    /* WARNING: Load size is inaccurate */\n    fprintf(*p,"%s /* %s */",__ptr,ab);\n    free(__ptr);\n    *(int *)((int)p + 0xc) = *(int *)((int)p + 0xc) + 1;\n    return 1;\n  }" { (if_statement "if (*(int *)((int)p + 0xc) != 1) {\n                    /* WARNING: Load size is inaccurate */\n      fwrite(", ",1,2,*p);\n    }" if (parenthesized_expression "(*(int *)((int)p + 0xc) != 1)" ( (binary_expression "*(int *)((int)p + 0xc) != 1" (pointer_expression "*(int *)((int)p + 0xc)" * (cast_expression "(int *)((int)p + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0xc)" ( (binary_expression "(int)p + 0xc" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      fwrite(", ",1,2,*p);\n    }" { comment (expression_statement "fwrite(", ",1,2,*p);" (call_expression "fwrite(", ",1,2,*p)" identifier (argument_list "(", ",1,2,*p)" ( (string_literal "", "" " string_content ") , number_literal , number_literal , (pointer_expression "*p" * identifier) ))) ;) })) (if_statement "if ((kind - DEBUG_PARM_REG & 0xfffffffd) == 0) {\n                    /* WARNING: Load size is inaccurate */\n      fwrite("register ",1,9,*p);\n    }" if (parenthesized_expression "((kind - DEBUG_PARM_REG & 0xfffffffd) == 0)" ( (binary_expression "(kind - DEBUG_PARM_REG & 0xfffffffd) == 0" (parenthesized_expression "(kind - DEBUG_PARM_REG & 0xfffffffd)" ( (binary_expression "kind - DEBUG_PARM_REG & 0xfffffffd" (binary_expression "kind - DEBUG_PARM_REG" identifier - identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      fwrite("register ",1,9,*p);\n    }" { comment (expression_statement "fwrite("register ",1,9,*p);" (call_expression "fwrite("register ",1,9,*p)" identifier (argument_list "("register ",1,9,*p)" ( (string_literal ""register "" " string_content ") , number_literal , number_literal , (pointer_expression "*p" * identifier) ))) ;) })) (expression_statement "sprintf(ab,"0x%llx",(undefined4)val,val._4_4_);" (call_expression "sprintf(ab,"0x%llx",(undefined4)val,val._4_4_)" identifier (argument_list "(ab,"0x%llx",(undefined4)val,val._4_4_)" ( identifier , (string_literal ""0x%llx"" " string_content ") , (cast_expression "(undefined4)val" ( (type_descriptor "undefined4" type_identifier) ) identifier) , (field_expression "val._4_4_" identifier . field_identifier) ))) ;) comment (expression_statement "fprintf(*p,"%s /* %s */",__ptr,ab);" (call_expression "fprintf(*p,"%s /* %s */",__ptr,ab)" identifier (argument_list "(*p,"%s /* %s */",__ptr,ab)" ( (pointer_expression "*p" * identifier) , (string_literal ""%s /* %s */"" " string_content ") , identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "*(int *)((int)p + 0xc) = *(int *)((int)p + 0xc) + 1;" (assignment_expression "*(int *)((int)p + 0xc) = *(int *)((int)p + 0xc) + 1" (pointer_expression "*(int *)((int)p + 0xc)" * (cast_expression "(int *)((int)p + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0xc)" ( (binary_expression "(int)p + 0xc" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((int)p + 0xc) + 1" (pointer_expression "*(int *)((int)p + 0xc)" * (cast_expression "(int *)((int)p + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0xc)" ( (binary_expression "(int)p + 0xc" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal)) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4\nFUN_00038a50(undefined4 *param_1,undefined4 param_2,int param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  int iVar1;\n  void *__ptr;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38a59;\n  if ((((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)) {\n    if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }\n    if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }\n    sprintf(local_32,"0x%llx",param_4,param_5);\n    fprintf((FILE *)*param_1,"%s ",__ptr,local_32);\n    free(__ptr);\n    param_1[3] = param_1[3] + 1;\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4\nFUN_00038a50(undefined4 *param_1,undefined4 param_2,int param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  int iVar1;\n  void *__ptr;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38a59;\n  if ((((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)) {\n    if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }\n    if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }\n    sprintf(local_32,"0x%llx",param_4,param_5);\n    fprintf((FILE *)*param_1,"%s ",__ptr,local_32);\n    free(__ptr);\n    param_1[3] = param_1[3] + 1;\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00038a50(undefined4 *param_1,undefined4 param_2,int param_3,undefined4 param_4,\n            undefined4 param_5)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,int param_3,undefined4 param_4,\n            undefined4 param_5)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  void *__ptr;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38a59;\n  if ((((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)) {\n    if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }\n    if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }\n    sprintf(local_32,"0x%llx",param_4,param_5);\n    fprintf((FILE *)*param_1,"%s ",__ptr,local_32);\n    free(__ptr);\n    param_1[3] = param_1[3] + 1;\n    return 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "char local_32 [30];" primitive_type (array_declarator "local_32 [30]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x38a59;" (assignment_expression "uStack_14 = 0x38a59" identifier = number_literal) ;) (if_statement "if ((((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)) {\n    if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }\n    if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }\n    sprintf(local_32,"0x%llx",param_4,param_5);\n    fprintf((FILE *)*param_1,"%s ",__ptr,local_32);\n    free(__ptr);\n    param_1[3] = param_1[3] + 1;\n    return 1;\n  }" if (parenthesized_expression "((((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0))" ( (binary_expression "(((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)" (parenthesized_expression "(((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0))" ( (binary_expression "((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)" (parenthesized_expression "((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0))" ( (binary_expression "(1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)" (parenthesized_expression "(1 < param_3 - 3U)" ( (binary_expression "1 < param_3 - 3U" number_literal < (binary_expression "param_3 - 3U" identifier - number_literal)) )) || (parenthesized_expression "(iVar1 = FUN_00038a00(param_1), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00038a00(param_1), iVar1 != 0" (assignment_expression "iVar1 = FUN_00038a00(param_1)" identifier = (call_expression "FUN_00038a00(param_1)" identifier (argument_list "(param_1)" ( identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(iVar1 = FUN_00037630(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00037630(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00037630()" identifier = (call_expression "FUN_00037630()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)" ( (comma_expression "__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0" (assignment_expression "__ptr = (void *)FUN_00036d90()" identifier = (cast_expression "(void *)FUN_00036d90()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036d90()" identifier (argument_list "()" ( ))))) , (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }\n    if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }\n    sprintf(local_32,"0x%llx",param_4,param_5);\n    fprintf((FILE *)*param_1,"%s ",__ptr,local_32);\n    free(__ptr);\n    param_1[3] = param_1[3] + 1;\n    return 1;\n  }" { (if_statement "if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }" if (parenthesized_expression "(param_1[3] != 1)" ( (binary_expression "param_1[3] != 1" (subscript_expression "param_1[3]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }" { (expression_statement "fwrite(", ",1,2,(FILE *)*param_1);" (call_expression "fwrite(", ",1,2,(FILE *)*param_1)" identifier (argument_list "(", ",1,2,(FILE *)*param_1)" ( (string_literal "", "" " string_content ") , number_literal , number_literal , (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) })) (if_statement "if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }" if (parenthesized_expression "((param_3 - 2U & 0xfffffffd) == 0)" ( (binary_expression "(param_3 - 2U & 0xfffffffd) == 0" (parenthesized_expression "(param_3 - 2U & 0xfffffffd)" ( (binary_expression "param_3 - 2U & 0xfffffffd" (binary_expression "param_3 - 2U" identifier - number_literal) & number_literal) )) == number_literal) )) (compound_statement "{\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }" { (expression_statement "fwrite("register ",1,9,(FILE *)*param_1);" (call_expression "fwrite("register ",1,9,(FILE *)*param_1)" identifier (argument_list "("register ",1,9,(FILE *)*param_1)" ( (string_literal ""register "" " string_content ") , number_literal , number_literal , (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) })) (expression_statement "sprintf(local_32,"0x%llx",param_4,param_5);" (call_expression "sprintf(local_32,"0x%llx",param_4,param_5)" identifier (argument_list "(local_32,"0x%llx",param_4,param_5)" ( identifier , (string_literal ""0x%llx"" " string_content ") , identifier , identifier ))) ;) (expression_statement "fprintf((FILE *)*param_1,"%s ",__ptr,local_32);" (call_expression "fprintf((FILE *)*param_1,"%s ",__ptr,local_32)" identifier (argument_list "((FILE *)*param_1,"%s ",__ptr,local_32)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""%s "" " string_content ") , identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "param_1[3] = param_1[3] + 1;" (assignment_expression "param_1[3] = param_1[3] + 1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (binary_expression "param_1[3] + 1" (subscript_expression "param_1[3]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT != LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT != LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (string_literal " string_content ") , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4\nFUN_00038a50(undefined4 *param_1,undefined4 param_2,int param_3,undefined4 param_4,\n            undefined4 param_5)\n\n{\n  int iVar1;\n  void *__ptr;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38a59;\n  if ((((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)) {\n    if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }\n    if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }\n    sprintf(local_32,"0x%llx",param_4,param_5);\n    fprintf((FILE *)*param_1,"%s ",__ptr,local_32);\n    free(__ptr);\n    param_1[3] = param_1[3] + 1;\n    return 1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00038a50(undefined4 *param_1,undefined4 param_2,int param_3,undefined4 param_4,\n            undefined4 param_5)" (identifier "FUN_00038a50") (parameter_list "(undefined4 *param_1,undefined4 param_2,int param_3,undefined4 param_4,\n            undefined4 param_5)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  void *__ptr;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x38a59;\n  if ((((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)) {\n    if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }\n    if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }\n    sprintf(local_32,"0x%llx",param_4,param_5);\n    fprintf((FILE *)*param_1,"%s ",__ptr,local_32);\n    free(__ptr);\n    param_1[3] = param_1[3] + 1;\n    return 1;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "char local_32 [30];" (primitive_type "char") (array_declarator "local_32 [30]" (identifier "local_32") ([ "[") (number_literal "30") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x38a59;" (assignment_expression "uStack_14 = 0x38a59" (identifier "uStack_14") (= "=") (number_literal "0x38a59")) (; ";")) (if_statement "if ((((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)) {\n    if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }\n    if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }\n    sprintf(local_32,"0x%llx",param_4,param_5);\n    fprintf((FILE *)*param_1,"%s ",__ptr,local_32);\n    free(__ptr);\n    param_1[3] = param_1[3] + 1;\n    return 1;\n  }" (if "if") (parenthesized_expression "((((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0))" (( "(") (binary_expression "(((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)) &&\n     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)" (parenthesized_expression "(((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0))" (( "(") (binary_expression "((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&\n      (iVar1 = FUN_00037630(), iVar1 != 0)" (parenthesized_expression "((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0))" (( "(") (binary_expression "(1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)" (parenthesized_expression "(1 < param_3 - 3U)" (( "(") (binary_expression "1 < param_3 - 3U" (number_literal "1") (< "<") (binary_expression "param_3 - 3U" (identifier "param_3") (- "-") (number_literal "3U"))) () ")")) (|| "||") (parenthesized_expression "(iVar1 = FUN_00038a00(param_1), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_00038a00(param_1), iVar1 != 0" (assignment_expression "iVar1 = FUN_00038a00(param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_00038a00(param_1)" (identifier "FUN_00038a00") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_00037630(), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_00037630(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00037630()" (identifier "iVar1") (= "=") (call_expression "FUN_00037630()" (identifier "FUN_00037630") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)" (( "(") (comma_expression "__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0" (assignment_expression "__ptr = (void *)FUN_00036d90()" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_00036d90()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00036d90()" (identifier "FUN_00036d90") (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "__ptr != (void *)0x0" (identifier "__ptr") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }\n    if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }\n    sprintf(local_32,"0x%llx",param_4,param_5);\n    fprintf((FILE *)*param_1,"%s ",__ptr,local_32);\n    free(__ptr);\n    param_1[3] = param_1[3] + 1;\n    return 1;\n  }" ({ "{") (if_statement "if (param_1[3] != 1) {\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }" (if "if") (parenthesized_expression "(param_1[3] != 1)" (( "(") (binary_expression "param_1[3] != 1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      fwrite(", ",1,2,(FILE *)*param_1);\n    }" ({ "{") (expression_statement "fwrite(", ",1,2,(FILE *)*param_1);" (call_expression "fwrite(", ",1,2,(FILE *)*param_1)" (identifier "fwrite") (argument_list "(", ",1,2,(FILE *)*param_1)" (( "(") (string_literal "", "" (" """) (string_content ", ") (" """)) (, ",") (number_literal "1") (, ",") (number_literal "2") (, ",") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (} "}"))) (if_statement "if ((param_3 - 2U & 0xfffffffd) == 0) {\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }" (if "if") (parenthesized_expression "((param_3 - 2U & 0xfffffffd) == 0)" (( "(") (binary_expression "(param_3 - 2U & 0xfffffffd) == 0" (parenthesized_expression "(param_3 - 2U & 0xfffffffd)" (( "(") (binary_expression "param_3 - 2U & 0xfffffffd" (binary_expression "param_3 - 2U" (identifier "param_3") (- "-") (number_literal "2U")) (& "&") (number_literal "0xfffffffd")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      fwrite("register ",1,9,(FILE *)*param_1);\n    }" ({ "{") (expression_statement "fwrite("register ",1,9,(FILE *)*param_1);" (call_expression "fwrite("register ",1,9,(FILE *)*param_1)" (identifier "fwrite") (argument_list "("register ",1,9,(FILE *)*param_1)" (( "(") (string_literal ""register "" (" """) (string_content "register ") (" """)) (, ",") (number_literal "1") (, ",") (number_literal "9") (, ",") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (} "}"))) (expression_statement "sprintf(local_32,"0x%llx",param_4,param_5);" (call_expression "sprintf(local_32,"0x%llx",param_4,param_5)" (identifier "sprintf") (argument_list "(local_32,"0x%llx",param_4,param_5)" (( "(") (identifier "local_32") (, ",") (string_literal ""0x%llx"" (" """) (string_content "0x%llx") (" """)) (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")"))) (; ";")) (expression_statement "fprintf((FILE *)*param_1,"%s ",__ptr,local_32);" (call_expression "fprintf((FILE *)*param_1,"%s ",__ptr,local_32)" (identifier "fprintf") (argument_list "((FILE *)*param_1,"%s ",__ptr,local_32)" (( "(") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (string_literal ""%s "" (" """) (string_content "%s ") (" """)) (, ",") (identifier "__ptr") (, ",") (identifier "local_32") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "param_1[3] = param_1[3] + 1;" (assignment_expression "param_1[3] = param_1[3] + 1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "param_1[3] + 1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 function_1(void *p,char *name,type_2 var_1,type_3 val)

{
  type_1 var_4;
  char *var_7;
  char ab [22];
  
  if ((((1 < var_1 - var_2) || (var_4 = var_3(p), var_4 != 0)) &&
      (var_4 = var_5((type_4 *)p,name), var_4 != 0)) &&
     (var_7 = var_6((type_4 *)((int)p + 8)), var_7 != (char *)0x0)) {
    if (*(int *)((int)p + 0xc) != 1) {
                    /* WARNING: Load size is inaccurate */
      var_8(", ",1,2,*p);
    }
    if ((var_1 - var_9 & 0xfffffffd) == 0) {
                    /* WARNING: Load size is inaccurate */
      var_8("register ",1,9,*p);
    }
    var_10(ab,"0x%llx",(type_5)val,val._4_4_);
                    /* WARNING: Load size is inaccurate */
    var_11(*p,"%s /* %s */",var_7,ab);
    var_12(var_7);
    *(int *)((int)p + 0xc) = *(int *)((int)p + 0xc) + 1;
    return 1;
  }
  return 0;
}


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

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

undefined4
MASKED(undefined4 *param_1,undefined4 param_2,int param_3,undefined4 param_4,
            undefined4 param_5)

{
  int iVar1;
  void *__ptr;
  char local_32 [30];
  undefined4 uStack_14;
  
  uStack_14 = 0x38a59;
  if ((((1 < param_3 - 3U) || (iVar1 = FUN_00038a00(param_1), iVar1 != 0)) &&
      (iVar1 = FUN_00037630(), iVar1 != 0)) &&
     (__ptr = (void *)FUN_00036d90(), __ptr != (void *)0x0)) {
    if (param_1[3] != 1) {
      fwrite(", ",1,2,(FILE *)*param_1);
    }
    if ((param_3 - 2U & 0xfffffffd) == 0) {
      fwrite("register ",1,9,(FILE *)*param_1);
    }
    sprintf(local_32,"0x%llx",param_4,param_5);
    fprintf((FILE *)*param_1,"%s /* %s */",__ptr,local_32);
    free(__ptr);
    param_1[3] = param_1[3] + 1;
    return 1;
  }
  return 0;
}

