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

bfd_boolean tg_enum_type(void *p,char *tag,char **names,bfd_signed_vma *values)

{
  bfd_boolean bVar1;
  char **ppcVar2;
  char ab [22];
  
  bVar1 = pr_enum_type(p,tag,names,values);
  if (bVar1 != 0) {
    if (tag == (char *)0x0) {
      tag = "unknown";
    }
    else {
                    /* WARNING: Load size is inaccurate */
      fprintf(*p,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",tag,*(undefined4 *)((int)p + 0x10),
              *(undefined4 *)(*(int *)((int)p + 8) + 4));
    }
    if ((names != (char **)0x0) && (*names != (char *)0x0)) {
      do {
        ppcVar2 = names + 1;
        sprintf(ab,"%lld",(int)*values,*(undefined4 *)((int)values + 4));
                    /* WARNING: Load size is inaccurate */
        fprintf(*p,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*names,*(undefined4 *)((int)p + 0x10)
                ,tag,ab);
        values = values + 1;
        names = ppcVar2;
      } while (*ppcVar2 != (char *)0x0);
    }
    bVar1 = 1;
  }
  return bVar1;
}



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

int FUN_0003a260(undefined4 *param_1,char *param_2,int *param_3,undefined4 *param_4)

{
  int iVar1;
  int *piVar2;
  char local_32 [30];
  undefined4 uStack_14;
  
  uStack_14 = 0x3a269;
  iVar1 = FUN_0003a0c0(param_1,param_2,param_3,param_4);
  if (iVar1 != 0) {
    if (param_2 == (char *)0x0) {
      param_2 = "unknown";
    }
    else {
      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],
              *(undefined4 *)(param_1[2] + 4));
    }
    if ((param_3 != (int *)0x0) && (*param_3 != 0)) {
      do {
        piVar2 = param_3 + 1;
        sprintf(local_32,"%lld",*param_4,param_4[1]);
        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],
                param_2,local_32);
        param_4 = param_4 + 2;
        param_3 = piVar2;
      } while (*piVar2 != 0);
    }
    iVar1 = 1;
  }
  return iVar1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x38d97
SUB ESP,0x3c
MOV EDI,dword ptr [ESP + 0x50]
MOV EBP,dword ptr [ESP + 0x58]
MOV ESI,dword ptr [ESP + 0x5c]
PUSH ESI
PUSH EBP
PUSH dword ptr [ESP + 0x5c]
PUSH EDI
CALL 0x0003a0c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0003a334
MOV EAX,dword ptr [ESP + 0x54]
TEST EAX,EAX
JZ 0x0003a340
MOV EAX,dword ptr [EDI + 0x8]
SUB ESP,0xc
PUSH dword ptr [EAX + 0x4]
LEA EAX,[EBX + 0xfffe4423]
PUSH dword ptr [EDI + 0x10]
PUSH dword ptr [ESP + 0x68]
PUSH EAX
PUSH dword ptr [EDI]
CALL 0x00014878
ADD ESP,0x20
TEST EBP,EBP
JZ 0x0003a32f
MOV EAX,dword ptr [EBP]
TEST EAX,EAX
JZ 0x0003a32f
LEA EAX,[EBX + 0xfffe09fe]
MOV EDX,ESI
LEA ESI,[ESP + 0x1a]
MOV dword ptr [ESP + 0x8],EAX
LEA EAX,[EBX + 0xfffe4684]
MOV dword ptr [ESP + 0xc],EAX
LEA ESI,[ESI]
NOP
PUSH dword ptr [EDX + 0x4]
ADD EBP,0x4
PUSH dword ptr [EDX]
MOV dword ptr [ESP + 0xc],EDX
PUSH dword ptr [ESP + 0x10]
PUSH ESI
CALL 0x000146d0
POP EAX
POP EDX
PUSH ESI
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [EDI + 0x10]
PUSH dword ptr [EBP + -0x4]
PUSH dword ptr [ESP + 0x24]
PUSH dword ptr [EDI]
CALL 0x00014878
MOV EDX,dword ptr [ESP + 0x24]
MOV ECX,dword ptr [EBP]
ADD ESP,0x20
ADD EDX,0x8
TEST ECX,ECX
JNZ 0x0003a2f0
MOV EAX,0x1
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xfffe601c]
MOV dword ptr [ESP + 0x54],EAX
JMP 0x0003a2c2
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0003a260(undefined4 *param_1,char *param_2,int *param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3a269;\n  iVar1 = FUN_0003a0c0(param_1,param_2,param_3,param_4);\n  if (iVar1 != 0) {\n    if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }\n    if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }\n    iVar1 = 1;\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int FUN_0003a260(undefined4 *param_1,char *param_2,int *param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3a269;\n  iVar1 = FUN_0003a0c0(param_1,param_2,param_3,param_4);\n  if (iVar1 != 0) {\n    if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }\n    if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }\n    iVar1 = 1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0003a260(undefined4 *param_1,char *param_2,int *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 *param_1,char *param_2,int *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3a269;\n  iVar1 = FUN_0003a0c0(param_1,param_2,param_3,param_4);\n  if (iVar1 != 0) {\n    if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }\n    if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }\n    iVar1 = 1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * 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 = 0x3a269;" (assignment_expression "uStack_14 = 0x3a269" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_0003a0c0(param_1,param_2,param_3,param_4);" (assignment_expression "iVar1 = FUN_0003a0c0(param_1,param_2,param_3,param_4)" identifier = (call_expression "FUN_0003a0c0(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }\n    if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }\n    iVar1 = 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }\n    if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }\n    iVar1 = 1;\n  }" { (if_statement "if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      param_2 = "unknown";\n    }" { (expression_statement "param_2 = "unknown";" (assignment_expression "param_2 = "unknown"" identifier = (string_literal ""unknown"" " string_content ")) ;) }) (else_clause "else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }" else (compound_statement "{\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }" { (expression_statement "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));" (call_expression "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4))" identifier (argument_list "((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4))" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""%s\t%s\t0;\"\tkind:e\ttype:%s\n"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence escape_sequence string_content escape_sequence string_content escape_sequence ") , identifier , (subscript_expression "param_1[4]" identifier [ number_literal ]) , (pointer_expression "*(undefined4 *)(param_1[2] + 4)" * (cast_expression "(undefined4 *)(param_1[2] + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 4)" ( (binary_expression "param_1[2] + 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) )))) ))) ;) }))) (if_statement "if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }" if (parenthesized_expression "((param_3 != (int *)0x0) && (*param_3 != 0))" ( (binary_expression "(param_3 != (int *)0x0) && (*param_3 != 0)" (parenthesized_expression "(param_3 != (int *)0x0)" ( (binary_expression "param_3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_3 != 0)" ( (binary_expression "*param_3 != 0" (pointer_expression "*param_3" * identifier) != number_literal) ))) )) (compound_statement "{\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }" { (do_statement "do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);" do (compound_statement "{\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      }" { (expression_statement "piVar2 = param_3 + 1;" (assignment_expression "piVar2 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "sprintf(local_32,"%lld",*param_4,param_4[1]);" (call_expression "sprintf(local_32,"%lld",*param_4,param_4[1])" identifier (argument_list "(local_32,"%lld",*param_4,param_4[1])" ( identifier , (string_literal ""%lld"" " string_content ") , (pointer_expression "*param_4" * identifier) , (subscript_expression "param_4[1]" identifier [ number_literal ]) ))) ;) (expression_statement "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);" (call_expression "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32)" identifier (argument_list "((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , (pointer_expression "*param_3" * identifier) , (subscript_expression "param_1[4]" identifier [ number_literal ]) , identifier , identifier ))) ;) (expression_statement "param_4 = param_4 + 2;" (assignment_expression "param_4 = param_4 + 2" identifier = (binary_expression "param_4 + 2" identifier + number_literal)) ;) (expression_statement "param_3 = piVar2;" (assignment_expression "param_3 = piVar2" identifier = identifier) ;) }) while (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) ;) })) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean tg_enum_type(void *p,char *tag,char **names,bfd_signed_vma *values)\n\n{\n  bfd_boolean bVar1;\n  char **ppcVar2;\n  char ab [22];\n  \n  bVar1 = pr_enum_type(p,tag,names,values);\n  if (bVar1 != 0) {\n    if (tag == (char *)0x0) {\n      tag = "unknown";\n    }\n    else {\n                    /* WARNING: Load size is inaccurate */\n      fprintf(*p,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",tag,*(undefined4 *)((int)p + 0x10),\n              *(undefined4 *)(*(int *)((int)p + 8) + 4));\n    }\n    if ((names != (char **)0x0) && (*names != (char *)0x0)) {\n      do {\n        ppcVar2 = names + 1;\n        sprintf(ab,"%lld",(int)*values,*(undefined4 *)((int)values + 4));\n                    /* WARNING: Load size is inaccurate */\n        fprintf(*p,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*names,*(undefined4 *)((int)p + 0x10)\n                ,tag,ab);\n        values = values + 1;\n        names = ppcVar2;\n      } while (*ppcVar2 != (char *)0x0);\n    }\n    bVar1 = 1;\n  }\n  return bVar1;\n}\n\n" comment (function_definition "bfd_boolean tg_enum_type(void *p,char *tag,char **names,bfd_signed_vma *values)\n\n{\n  bfd_boolean bVar1;\n  char **ppcVar2;\n  char ab [22];\n  \n  bVar1 = pr_enum_type(p,tag,names,values);\n  if (bVar1 != 0) {\n    if (tag == (char *)0x0) {\n      tag = "unknown";\n    }\n    else {\n                    /* WARNING: Load size is inaccurate */\n      fprintf(*p,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",tag,*(undefined4 *)((int)p + 0x10),\n              *(undefined4 *)(*(int *)((int)p + 8) + 4));\n    }\n    if ((names != (char **)0x0) && (*names != (char *)0x0)) {\n      do {\n        ppcVar2 = names + 1;\n        sprintf(ab,"%lld",(int)*values,*(undefined4 *)((int)values + 4));\n                    /* WARNING: Load size is inaccurate */\n        fprintf(*p,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*names,*(undefined4 *)((int)p + 0x10)\n                ,tag,ab);\n        values = values + 1;\n        names = ppcVar2;\n      } while (*ppcVar2 != (char *)0x0);\n    }\n    bVar1 = 1;\n  }\n  return bVar1;\n}" type_identifier (function_declarator "tg_enum_type(void *p,char *tag,char **names,bfd_signed_vma *values)" identifier (parameter_list "(void *p,char *tag,char **names,bfd_signed_vma *values)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *tag" primitive_type (pointer_declarator "*tag" * identifier)) , (parameter_declaration "char **names" primitive_type (pointer_declarator "**names" * (pointer_declarator "*names" * identifier))) , (parameter_declaration "bfd_signed_vma *values" type_identifier (pointer_declarator "*values" * identifier)) ))) (compound_statement "{\n  bfd_boolean bVar1;\n  char **ppcVar2;\n  char ab [22];\n  \n  bVar1 = pr_enum_type(p,tag,names,values);\n  if (bVar1 != 0) {\n    if (tag == (char *)0x0) {\n      tag = "unknown";\n    }\n    else {\n                    /* WARNING: Load size is inaccurate */\n      fprintf(*p,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",tag,*(undefined4 *)((int)p + 0x10),\n              *(undefined4 *)(*(int *)((int)p + 8) + 4));\n    }\n    if ((names != (char **)0x0) && (*names != (char *)0x0)) {\n      do {\n        ppcVar2 = names + 1;\n        sprintf(ab,"%lld",(int)*values,*(undefined4 *)((int)values + 4));\n                    /* WARNING: Load size is inaccurate */\n        fprintf(*p,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*names,*(undefined4 *)((int)p + 0x10)\n                ,tag,ab);\n        values = values + 1;\n        names = ppcVar2;\n      } while (*ppcVar2 != (char *)0x0);\n    }\n    bVar1 = 1;\n  }\n  return bVar1;\n}" { (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "char **ppcVar2;" primitive_type (pointer_declarator "**ppcVar2" * (pointer_declarator "*ppcVar2" * identifier)) ;) (declaration "char ab [22];" primitive_type (array_declarator "ab [22]" identifier [ number_literal ]) ;) (expression_statement "bVar1 = pr_enum_type(p,tag,names,values);" (assignment_expression "bVar1 = pr_enum_type(p,tag,names,values)" identifier = (call_expression "pr_enum_type(p,tag,names,values)" identifier (argument_list "(p,tag,names,values)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (bVar1 != 0) {\n    if (tag == (char *)0x0) {\n      tag = "unknown";\n    }\n    else {\n                    /* WARNING: Load size is inaccurate */\n      fprintf(*p,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",tag,*(undefined4 *)((int)p + 0x10),\n              *(undefined4 *)(*(int *)((int)p + 8) + 4));\n    }\n    if ((names != (char **)0x0) && (*names != (char *)0x0)) {\n      do {\n        ppcVar2 = names + 1;\n        sprintf(ab,"%lld",(int)*values,*(undefined4 *)((int)values + 4));\n                    /* WARNING: Load size is inaccurate */\n        fprintf(*p,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*names,*(undefined4 *)((int)p + 0x10)\n                ,tag,ab);\n        values = values + 1;\n        names = ppcVar2;\n      } while (*ppcVar2 != (char *)0x0);\n    }\n    bVar1 = 1;\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (tag == (char *)0x0) {\n      tag = "unknown";\n    }\n    else {\n                    /* WARNING: Load size is inaccurate */\n      fprintf(*p,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",tag,*(undefined4 *)((int)p + 0x10),\n              *(undefined4 *)(*(int *)((int)p + 8) + 4));\n    }\n    if ((names != (char **)0x0) && (*names != (char *)0x0)) {\n      do {\n        ppcVar2 = names + 1;\n        sprintf(ab,"%lld",(int)*values,*(undefined4 *)((int)values + 4));\n                    /* WARNING: Load size is inaccurate */\n        fprintf(*p,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*names,*(undefined4 *)((int)p + 0x10)\n                ,tag,ab);\n        values = values + 1;\n        names = ppcVar2;\n      } while (*ppcVar2 != (char *)0x0);\n    }\n    bVar1 = 1;\n  }" { (if_statement "if (tag == (char *)0x0) {\n      tag = "unknown";\n    }\n    else {\n                    /* WARNING: Load size is inaccurate */\n      fprintf(*p,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",tag,*(undefined4 *)((int)p + 0x10),\n              *(undefined4 *)(*(int *)((int)p + 8) + 4));\n    }" if (parenthesized_expression "(tag == (char *)0x0)" ( (binary_expression "tag == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      tag = "unknown";\n    }" { (expression_statement "tag = "unknown";" (assignment_expression "tag = "unknown"" identifier = (string_literal ""unknown"" " string_content ")) ;) }) (else_clause "else {\n                    /* WARNING: Load size is inaccurate */\n      fprintf(*p,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",tag,*(undefined4 *)((int)p + 0x10),\n              *(undefined4 *)(*(int *)((int)p + 8) + 4));\n    }" else (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      fprintf(*p,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",tag,*(undefined4 *)((int)p + 0x10),\n              *(undefined4 *)(*(int *)((int)p + 8) + 4));\n    }" { comment (expression_statement "fprintf(*p,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",tag,*(undefined4 *)((int)p + 0x10),\n              *(undefined4 *)(*(int *)((int)p + 8) + 4));" (call_expression "fprintf(*p,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",tag,*(undefined4 *)((int)p + 0x10),\n              *(undefined4 *)(*(int *)((int)p + 8) + 4))" identifier (argument_list "(*p,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",tag,*(undefined4 *)((int)p + 0x10),\n              *(undefined4 *)(*(int *)((int)p + 8) + 4))" ( (pointer_expression "*p" * identifier) , (string_literal ""%s\t%s\t0;\"\tkind:e\ttype:%s\n"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence escape_sequence string_content escape_sequence string_content escape_sequence ") , identifier , (pointer_expression "*(undefined4 *)((int)p + 0x10)" * (cast_expression "(undefined4 *)((int)p + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x10)" ( (binary_expression "(int)p + 0x10" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (pointer_expression "*(undefined4 *)(*(int *)((int)p + 8) + 4)" * (cast_expression "(undefined4 *)(*(int *)((int)p + 8) + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)p + 8) + 4)" ( (binary_expression "*(int *)((int)p + 8) + 4" (pointer_expression "*(int *)((int)p + 8)" * (cast_expression "(int *)((int)p + 8)" ( (type_descriptor "int *" primitive_type (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) )))) + number_literal) )))) ))) ;) }))) (if_statement "if ((names != (char **)0x0) && (*names != (char *)0x0)) {\n      do {\n        ppcVar2 = names + 1;\n        sprintf(ab,"%lld",(int)*values,*(undefined4 *)((int)values + 4));\n                    /* WARNING: Load size is inaccurate */\n        fprintf(*p,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*names,*(undefined4 *)((int)p + 0x10)\n                ,tag,ab);\n        values = values + 1;\n        names = ppcVar2;\n      } while (*ppcVar2 != (char *)0x0);\n    }" if (parenthesized_expression "((names != (char **)0x0) && (*names != (char *)0x0))" ( (binary_expression "(names != (char **)0x0) && (*names != (char *)0x0)" (parenthesized_expression "(names != (char **)0x0)" ( (binary_expression "names != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) && (parenthesized_expression "(*names != (char *)0x0)" ( (binary_expression "*names != (char *)0x0" (pointer_expression "*names" * identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      do {\n        ppcVar2 = names + 1;\n        sprintf(ab,"%lld",(int)*values,*(undefined4 *)((int)values + 4));\n                    /* WARNING: Load size is inaccurate */\n        fprintf(*p,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*names,*(undefined4 *)((int)p + 0x10)\n                ,tag,ab);\n        values = values + 1;\n        names = ppcVar2;\n      } while (*ppcVar2 != (char *)0x0);\n    }" { (do_statement "do {\n        ppcVar2 = names + 1;\n        sprintf(ab,"%lld",(int)*values,*(undefined4 *)((int)values + 4));\n                    /* WARNING: Load size is inaccurate */\n        fprintf(*p,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*names,*(undefined4 *)((int)p + 0x10)\n                ,tag,ab);\n        values = values + 1;\n        names = ppcVar2;\n      } while (*ppcVar2 != (char *)0x0);" do (compound_statement "{\n        ppcVar2 = names + 1;\n        sprintf(ab,"%lld",(int)*values,*(undefined4 *)((int)values + 4));\n                    /* WARNING: Load size is inaccurate */\n        fprintf(*p,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*names,*(undefined4 *)((int)p + 0x10)\n                ,tag,ab);\n        values = values + 1;\n        names = ppcVar2;\n      }" { (expression_statement "ppcVar2 = names + 1;" (assignment_expression "ppcVar2 = names + 1" identifier = (binary_expression "names + 1" identifier + number_literal)) ;) (expression_statement "sprintf(ab,"%lld",(int)*values,*(undefined4 *)((int)values + 4));" (call_expression "sprintf(ab,"%lld",(int)*values,*(undefined4 *)((int)values + 4))" identifier (argument_list "(ab,"%lld",(int)*values,*(undefined4 *)((int)values + 4))" ( identifier , (string_literal ""%lld"" " string_content ") , (cast_expression "(int)*values" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*values" * identifier)) , (pointer_expression "*(undefined4 *)((int)values + 4)" * (cast_expression "(undefined4 *)((int)values + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)values + 4)" ( (binary_expression "(int)values + 4" (cast_expression "(int)values" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) comment (expression_statement "fprintf(*p,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*names,*(undefined4 *)((int)p + 0x10)\n                ,tag,ab);" (call_expression "fprintf(*p,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*names,*(undefined4 *)((int)p + 0x10)\n                ,tag,ab)" identifier (argument_list "(*p,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*names,*(undefined4 *)((int)p + 0x10)\n                ,tag,ab)" ( (pointer_expression "*p" * identifier) , (string_literal ""%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , (pointer_expression "*names" * identifier) , (pointer_expression "*(undefined4 *)((int)p + 0x10)" * (cast_expression "(undefined4 *)((int)p + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x10)" ( (binary_expression "(int)p + 0x10" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier , identifier ))) ;) (expression_statement "values = values + 1;" (assignment_expression "values = values + 1" identifier = (binary_expression "values + 1" identifier + number_literal)) ;) (expression_statement "names = ppcVar2;" (assignment_expression "names = ppcVar2" identifier = identifier) ;) }) while (parenthesized_expression "(*ppcVar2 != (char *)0x0)" ( (binary_expression "*ppcVar2 != (char *)0x0" (pointer_expression "*ppcVar2" * identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "bVar1 = 1;" (assignment_expression "bVar1 = 1" identifier = number_literal) ;) })) (return_statement "return bVar1;" return identifier ;) })))
(translation_unit "int FUN_0003a260(undefined4 *param_1,char *param_2,int *param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3a269;\n  iVar1 = FUN_0003a0c0(param_1,param_2,param_3,param_4);\n  if (iVar1 != 0) {\n    if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }\n    if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }\n    iVar1 = 1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0003a260(undefined4 *param_1,char *param_2,int *param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3a269;\n  iVar1 = FUN_0003a0c0(param_1,param_2,param_3,param_4);\n  if (iVar1 != 0) {\n    if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }\n    if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }\n    iVar1 = 1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0003a260(undefined4 *param_1,char *param_2,int *param_3,undefined4 *param_4)" identifier (parameter_list "(undefined4 *param_1,char *param_2,int *param_3,undefined4 *param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3a269;\n  iVar1 = FUN_0003a0c0(param_1,param_2,param_3,param_4);\n  if (iVar1 != 0) {\n    if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }\n    if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }\n    iVar1 = 1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * 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 = 0x3a269;" (assignment_expression "uStack_14 = 0x3a269" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_0003a0c0(param_1,param_2,param_3,param_4);" (assignment_expression "iVar1 = FUN_0003a0c0(param_1,param_2,param_3,param_4)" identifier = (call_expression "FUN_0003a0c0(param_1,param_2,param_3,param_4)" identifier (argument_list "(param_1,param_2,param_3,param_4)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }\n    if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }\n    iVar1 = 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }\n    if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }\n    iVar1 = 1;\n  }" { (if_statement "if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      param_2 = "unknown";\n    }" { (expression_statement "param_2 = "unknown";" (assignment_expression "param_2 = "unknown"" identifier = (string_literal ""unknown"" " string_content ")) ;) }) (else_clause "else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }" else (compound_statement "{\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }" { (expression_statement "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));" (call_expression "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4))" identifier (argument_list "((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4))" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""%s\t%s\t0;\"\tkind:e\ttype:%s\n"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence escape_sequence string_content escape_sequence string_content escape_sequence ") , identifier , (subscript_expression "param_1[4]" identifier [ number_literal ]) , (pointer_expression "*(undefined4 *)(param_1[2] + 4)" * (cast_expression "(undefined4 *)(param_1[2] + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 4)" ( (binary_expression "param_1[2] + 4" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) )))) ))) ;) }))) (if_statement "if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }" if (parenthesized_expression "((param_3 != (int *)0x0) && (*param_3 != 0))" ( (binary_expression "(param_3 != (int *)0x0) && (*param_3 != 0)" (parenthesized_expression "(param_3 != (int *)0x0)" ( (binary_expression "param_3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_3 != 0)" ( (binary_expression "*param_3 != 0" (pointer_expression "*param_3" * identifier) != number_literal) ))) )) (compound_statement "{\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }" { (do_statement "do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);" do (compound_statement "{\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      }" { (expression_statement "piVar2 = param_3 + 1;" (assignment_expression "piVar2 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "sprintf(local_32,"%lld",*param_4,param_4[1]);" (call_expression "sprintf(local_32,"%lld",*param_4,param_4[1])" identifier (argument_list "(local_32,"%lld",*param_4,param_4[1])" ( identifier , (string_literal ""%lld"" " string_content ") , (pointer_expression "*param_4" * identifier) , (subscript_expression "param_4[1]" identifier [ number_literal ]) ))) ;) (expression_statement "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);" (call_expression "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32)" identifier (argument_list "((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n"" " string_content escape_sequence string_content escape_sequence string_content escape_sequence escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , (pointer_expression "*param_3" * identifier) , (subscript_expression "param_1[4]" identifier [ number_literal ]) , identifier , identifier ))) ;) (expression_statement "param_4 = param_4 + 2;" (assignment_expression "param_4 = param_4 + 2" identifier = (binary_expression "param_4 + 2" identifier + number_literal)) ;) (expression_statement "param_3 = piVar2;" (assignment_expression "param_3 = piVar2" identifier = identifier) ;) }) while (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) ;) })) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * 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) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (string_literal " string_content escape_sequence string_content escape_sequence string_content escape_sequence escape_sequence string_content escape_sequence string_content escape_sequence ") , IDENT , (subscript_expression IDENT [ LIT ]) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) ))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (string_literal " string_content escape_sequence string_content escape_sequence string_content escape_sequence escape_sequence string_content escape_sequence string_content escape_sequence string_content escape_sequence ") , (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0003a260(undefined4 *param_1,char *param_2,int *param_3,undefined4 *param_4)\n\n{\n  int iVar1;\n  int *piVar2;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3a269;\n  iVar1 = FUN_0003a0c0(param_1,param_2,param_3,param_4);\n  if (iVar1 != 0) {\n    if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }\n    if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }\n    iVar1 = 1;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0003a260(undefined4 *param_1,char *param_2,int *param_3,undefined4 *param_4)" (identifier "FUN_0003a260") (parameter_list "(undefined4 *param_1,char *param_2,int *param_3,undefined4 *param_4)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3a269;\n  iVar1 = FUN_0003a0c0(param_1,param_2,param_3,param_4);\n  if (iVar1 != 0) {\n    if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }\n    if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }\n    iVar1 = 1;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (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 = 0x3a269;" (assignment_expression "uStack_14 = 0x3a269" (identifier "uStack_14") (= "=") (number_literal "0x3a269")) (; ";")) (expression_statement "iVar1 = FUN_0003a0c0(param_1,param_2,param_3,param_4);" (assignment_expression "iVar1 = FUN_0003a0c0(param_1,param_2,param_3,param_4)" (identifier "iVar1") (= "=") (call_expression "FUN_0003a0c0(param_1,param_2,param_3,param_4)" (identifier "FUN_0003a0c0") (argument_list "(param_1,param_2,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }\n    if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }\n    iVar1 = 1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }\n    if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }\n    iVar1 = 1;\n  }" ({ "{") (if_statement "if (param_2 == (char *)0x0) {\n      param_2 = "unknown";\n    }\n    else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }" (if "if") (parenthesized_expression "(param_2 == (char *)0x0)" (( "(") (binary_expression "param_2 == (char *)0x0" (identifier "param_2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      param_2 = "unknown";\n    }" ({ "{") (expression_statement "param_2 = "unknown";" (assignment_expression "param_2 = "unknown"" (identifier "param_2") (= "=") (string_literal ""unknown"" (" """) (string_content "unknown") (" """))) (; ";")) (} "}")) (else_clause "else {\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }" (else "else") (compound_statement "{\n      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));\n    }" ({ "{") (expression_statement "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4));" (call_expression "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4))" (identifier "fprintf") (argument_list "((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],\n              *(undefined4 *)(param_1[2] + 4))" (( "(") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (string_literal ""%s\t%s\t0;\"\tkind:e\ttype:%s\n"" (" """) (string_content "%s") (escape_sequence "\t") (string_content "%s") (escape_sequence "\t") (string_content "0;") (escape_sequence "\"") (escape_sequence "\t") (string_content "kind:e") (escape_sequence "\t") (string_content "type:%s") (escape_sequence "\n") (" """)) (, ",") (identifier "param_2") (, ",") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (, ",") (pointer_expression "*(undefined4 *)(param_1[2] + 4)" (* "*") (cast_expression "(undefined4 *)(param_1[2] + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + 4)" (( "(") (binary_expression "param_1[2] + 4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (} "}")))) (if_statement "if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }" (if "if") (parenthesized_expression "((param_3 != (int *)0x0) && (*param_3 != 0))" (( "(") (binary_expression "(param_3 != (int *)0x0) && (*param_3 != 0)" (parenthesized_expression "(param_3 != (int *)0x0)" (( "(") (binary_expression "param_3 != (int *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*param_3 != 0)" (( "(") (binary_expression "*param_3 != 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);\n    }" ({ "{") (do_statement "do {\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      } while (*piVar2 != 0);" (do "do") (compound_statement "{\n        piVar2 = param_3 + 1;\n        sprintf(local_32,"%lld",*param_4,param_4[1]);\n        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);\n        param_4 = param_4 + 2;\n        param_3 = piVar2;\n      }" ({ "{") (expression_statement "piVar2 = param_3 + 1;" (assignment_expression "piVar2 = param_3 + 1" (identifier "piVar2") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "sprintf(local_32,"%lld",*param_4,param_4[1]);" (call_expression "sprintf(local_32,"%lld",*param_4,param_4[1])" (identifier "sprintf") (argument_list "(local_32,"%lld",*param_4,param_4[1])" (( "(") (identifier "local_32") (, ",") (string_literal ""%lld"" (" """) (string_content "%lld") (" """)) (, ",") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (expression_statement "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32);" (call_expression "fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,local_32)" (identifier "fprintf") (argument_list "((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],\n                param_2,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\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n"" (" """) (string_content "%s") (escape_sequence "\t") (string_content "%s") (escape_sequence "\t") (string_content "0;") (escape_sequence "\"") (escape_sequence "\t") (string_content "kind:g") (escape_sequence "\t") (string_content "enum:%s") (escape_sequence "\t") (string_content "value:%s") (escape_sequence "\n") (" """)) (, ",") (pointer_expression "*param_3" (* "*") (identifier "param_3")) (, ",") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (, ",") (identifier "param_2") (, ",") (identifier "local_32") () ")"))) (; ";")) (expression_statement "param_4 = param_4 + 2;" (assignment_expression "param_4 = param_4 + 2" (identifier "param_4") (= "=") (binary_expression "param_4 + 2" (identifier "param_4") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "param_3 = piVar2;" (assignment_expression "param_3 = piVar2" (identifier "param_3") (= "=") (identifier "piVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*piVar2 != 0)" (( "(") (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

type_1 function_1(void *p,char *var_3,char **var_5,type_2 *var_7)

{
  type_1 var_2;
  char **ppcVar2;
  char ab [22];
  
  var_2 = var_1(p,var_3,var_5,var_7);
  if (var_2 != 0) {
    if (var_3 == (char *)0x0) {
      var_3 = "unknown";
    }
    else {
                    /* WARNING: Load size is inaccurate */
      var_4(*p,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",var_3,*(type_3 *)((int)p + 0x10),
              *(type_3 *)(*(int *)((int)p + 8) + 4));
    }
    if ((var_5 != (char **)0x0) && (*var_5 != (char *)0x0)) {
      do {
        ppcVar2 = var_5 + 1;
        var_6(ab,"%lld",(int)*var_7,*(type_3 *)((int)var_7 + 4));
                    /* WARNING: Load size is inaccurate */
        var_4(*p,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*var_5,*(type_3 *)((int)p + 0x10)
                ,var_3,ab);
        var_7 = var_7 + 1;
        var_5 = ppcVar2;
      } while (*ppcVar2 != (char *)0x0);
    }
    var_2 = 1;
  }
  return var_2;
}


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

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

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

{
  int iVar1;
  int *piVar2;
  char local_32 [30];
  undefined4 uStack_14;
  
  uStack_14 = 0x3a269;
  iVar1 = FUN_0003a0c0(param_1,param_2,param_3,param_4);
  if (iVar1 != 0) {
    if (param_2 == (char *)0x0) {
      param_2 = "unknown";
    }
    else {
      fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:e\ttype:%s\n",param_2,param_1[4],
              *(undefined4 *)(param_1[2] + 4));
    }
    if ((param_3 != (int *)0x0) && (*param_3 != 0)) {
      do {
        piVar2 = param_3 + 1;
        sprintf(local_32,"%lld",*param_4,param_4[1]);
        fprintf((FILE *)*param_1,"%s\t%s\t0;\"\tkind:g\tenum:%s\tvalue:%s\n",*param_3,param_1[4],
                param_2,local_32);
        param_4 = param_4 + 2;
        param_3 = piVar2;
      } while (*piVar2 != 0);
    }
    iVar1 = 1;
  }
  return iVar1;
}

