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

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

{
  pr_handle *info;
  char *s;
  bfd_boolean bVar1;
  char **ppcVar2;
  int iVar3;
  uint uVar4;
  uint uVar5;
  bool bVar6;
  char ab [22];
  
  info = (pr_handle *)((int)p + 8);
  bVar1 = push_type(info,"enum ");
  if ((bVar1 != 0) &&
     (((tag == (char *)0x0 ||
       ((bVar1 = append_type(info,tag), bVar1 != 0 && (bVar1 = append_type(info," "), bVar1 != 0))))
      && (bVar1 = append_type(info,"{ "), bVar1 != 0)))) {
    if (names == (char **)0x0) {
      bVar1 = append_type(info,"/* undefined */");
      if (bVar1 != 0) goto LAB_0003a234;
    }
    else {
      if (*names == (char *)0x0) {
LAB_0003a234:
        bVar1 = append_type(info," }");
        return bVar1;
      }
      ppcVar2 = names + 1;
      uVar5 = 0;
      uVar4 = 0;
      iVar3 = append_type(info,*names);
      while (iVar3 != 0) {
        if (*(uint *)((int)values + 4) != uVar4 || *(uint *)values != uVar5) {
          sprintf(ab,"%lld",*(uint *)values,*(uint *)((int)values + 4));
          bVar1 = append_type(info," = ");
          if (bVar1 == 0) {
            return 0;
          }
          bVar1 = append_type(info,ab);
          if (bVar1 == 0) {
            return 0;
          }
          uVar5 = *(uint *)values;
          uVar4 = *(uint *)((int)values + 4);
        }
        if (*ppcVar2 == (char *)0x0) goto LAB_0003a234;
        values = (bfd_signed_vma *)((int)values + 8);
        bVar1 = append_type(info,", ");
        if (bVar1 == 0) {
          return 0;
        }
        bVar6 = 0xfffffffe < uVar5;
        uVar5 = uVar5 + 1;
        uVar4 = uVar4 + bVar6;
        s = *ppcVar2;
        ppcVar2 = ppcVar2 + 1;
        iVar3 = append_type(info,s);
      }
    }
  }
  return 0;
}



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

undefined4 FUN_0003a0c0(undefined4 param_1,int param_2,int *param_3,uint *param_4)

{
  int iVar1;
  undefined4 uVar2;
  uint uVar3;
  uint uVar4;
  bool bVar5;
  char local_32 [30];
  undefined4 uStack_14;
  
  uStack_14 = 0x3a0c9;
  iVar1 = FUN_00038f80();
  if ((iVar1 != 0) &&
     (((param_2 == 0 ||
       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&
      (iVar1 = FUN_00037580(), iVar1 != 0)))) {
    if (param_3 == (int *)0x0) {
      iVar1 = FUN_00037580();
      if (iVar1 != 0) goto LAB_0003a234;
    }
    else {
      if (*param_3 == 0) {
LAB_0003a234:
        uVar2 = FUN_00037580();
        return uVar2;
      }
      param_3 = param_3 + 1;
      uVar4 = 0;
      uVar3 = 0;
      iVar1 = FUN_00037580();
      while (iVar1 != 0) {
        if (param_4[1] != uVar3 || *param_4 != uVar4) {
          sprintf(local_32,"%lld",*param_4,param_4[1]);
          iVar1 = FUN_00037580();
          if (iVar1 == 0) {
            return 0;
          }
          iVar1 = FUN_00037580();
          if (iVar1 == 0) {
            return 0;
          }
          uVar4 = *param_4;
          uVar3 = param_4[1];
        }
        if (*param_3 == 0) goto LAB_0003a234;
        param_4 = param_4 + 2;
        iVar1 = FUN_00037580();
        if (iVar1 == 0) {
          return 0;
        }
        bVar5 = 0xfffffffe < uVar4;
        uVar4 = uVar4 + 1;
        uVar3 = uVar3 + bVar5;
        param_3 = param_3 + 1;
        iVar1 = FUN_00037580();
      }
    }
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x38f37
SUB ESP,0x4c
MOV EAX,dword ptr [ESP + 0x60]
MOV EDI,dword ptr [ESP + 0x64]
LEA ESI,[EAX + 0x8]
LEA EDX,[EBX + 0xfffe42ef]
MOV EAX,ESI
CALL 0x00038f80
TEST EAX,EAX
JZ 0x0003a220
TEST EDI,EDI
JZ 0x0003a11c
MOV EDX,EDI
MOV EAX,ESI
CALL 0x00037580
TEST EAX,EAX
JZ 0x0003a220
LEA EDX,[EBX + 0xfffdc64f]
MOV EAX,ESI
CALL 0x00037580
TEST EAX,EAX
JZ 0x0003a220
LEA EDX,[EBX + 0xfffe42cb]
MOV EAX,ESI
CALL 0x00037580
TEST EAX,EAX
JZ 0x0003a220
MOV EDX,dword ptr [ESP + 0x68]
TEST EDX,EDX
JZ 0x0003a248
MOV EAX,dword ptr [ESP + 0x68]
MOV EDX,dword ptr [EAX]
TEST EDX,EDX
JZ 0x0003a234
ADD EAX,0x4
LEA ECX,[EBX + 0xfffe09fe]
MOV dword ptr [ESP + 0xc],ESI
XOR EDI,EDI
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x6c]
XOR EBP,EBP
MOV dword ptr [ESP + 0x1c],ECX
LEA ECX,[ESP + 0x2a]
MOV ESI,EAX
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0x18],ECX
CALL 0x00037580
TEST EAX,EAX
JZ 0x0003a220
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [ESI]
MOV EDX,dword ptr [ESI + 0x4]
MOV ECX,EAX
XOR ECX,EDI
MOV dword ptr [ESP + 0x14],ECX
MOV ECX,EDX
XOR ECX,EBP
OR ECX,dword ptr [ESP + 0x14]
JZ 0x0003a1da
PUSH EDX
PUSH EAX
PUSH dword ptr [ESP + 0x24]
PUSH dword ptr [ESP + 0x24]
CALL 0x000146d0
MOV EAX,dword ptr [ESP + 0x1c]
LEA EDX,[EBX + 0xfffe441f]
CALL 0x00037580
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0003a220
MOV EDX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP + 0xc]
CALL 0x00037580
TEST EAX,EAX
JZ 0x0003a220
MOV EDI,dword ptr [ESI]
MOV EBP,dword ptr [ESI + 0x4]
MOV EAX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x0003a230
MOV EAX,dword ptr [ESP + 0xc]
LEA EDX,[EBX + 0xfffdc754]
ADD ESI,0x8
CALL 0x00037580
TEST EAX,EAX
JZ 0x0003a220
MOV EAX,dword ptr [ESP + 0x10]
ADD EDI,0x1
ADC EBP,0x0
MOV EDX,dword ptr [EAX]
ADD EAX,0x4
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ESP + 0xc]
CALL 0x00037580
TEST EAX,EAX
JNZ 0x0003a188
NOP
XOR EAX,EAX
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,dword ptr [ESP + 0xc]
LEA EDX,[EBX + 0xfffe42ce]
MOV EAX,ESI
CALL 0x00037580
JMP 0x0003a222
LEA EDX,[EBX + 0xfffe440f]
MOV EAX,ESI
CALL 0x00037580
TEST EAX,EAX
JNZ 0x0003a234
JMP 0x0003a220
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0003a0c0(undefined4 param_1,int param_2,int *param_3,uint *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  uint uVar4;\n  bool bVar5;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3a0c9;\n  iVar1 = FUN_00038f80();\n  if ((iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))) {\n    if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_0003a0c0(undefined4 param_1,int param_2,int *param_3,uint *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  uint uVar4;\n  bool bVar5;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3a0c9;\n  iVar1 = FUN_00038f80();\n  if ((iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))) {\n    if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0003a0c0(undefined4 param_1,int param_2,int *param_3,uint *param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3,uint *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  uint uVar4;\n  bool bVar5;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3a0c9;\n  iVar1 = FUN_00038f80();\n  if ((iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))) {\n    if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "bool bVar5;" primitive_type 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 = 0x3a0c9;" (assignment_expression "uStack_14 = 0x3a0c9" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_00038f80();" (assignment_expression "iVar1 = FUN_00038f80()" identifier = (call_expression "FUN_00038f80()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))) {\n    if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0))))" ( (binary_expression "(iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))" ( (parenthesized_expression "((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0))" ( (binary_expression "(param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)" (parenthesized_expression "(param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0))))" ( (binary_expression "param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))" (binary_expression "param_2 == 0" identifier == number_literal) || (parenthesized_expression "((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))" ( (parenthesized_expression "(iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0))" ( (comma_expression "iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)" (binary_expression "iVar1 != 0" identifier != number_literal) && (parenthesized_expression "(iVar1 = FUN_00037580(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00037580(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) )))) )) ))) )) && (parenthesized_expression "(iVar1 = FUN_00037580(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00037580(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) ))) )) (compound_statement "{\n    if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }\n  }" { (if_statement "if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }" if (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)) )) (compound_statement "{\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }" { (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) goto LAB_0003a234;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0003a234;" goto statement_identifier ;)) }) (else_clause "else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }" else (compound_statement "{\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }" { (if_statement "if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }" if (parenthesized_expression "(*param_3 == 0)" ( (binary_expression "*param_3 == 0" (pointer_expression "*param_3" * identifier) == number_literal) )) (compound_statement "{\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }" { (labeled_statement "LAB_0003a234:\n        uVar2 = FUN_00037580();" statement_identifier : (expression_statement "uVar2 = FUN_00037580();" (assignment_expression "uVar2 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;)) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (while_statement "while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }" { (if_statement "if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }" if (parenthesized_expression "(param_4[1] != uVar3 || *param_4 != uVar4)" ( (binary_expression "param_4[1] != uVar3 || *param_4 != uVar4" (binary_expression "param_4[1] != uVar3" (subscript_expression "param_4[1]" identifier [ number_literal ]) != identifier) || (binary_expression "*param_4 != uVar4" (pointer_expression "*param_4" * identifier) != identifier)) )) (compound_statement "{\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }" { (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 "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n            return 0;\n          }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n            return 0;\n          }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = *param_4;" (assignment_expression "uVar4 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "uVar3 = param_4[1];" (assignment_expression "uVar3 = param_4[1]" identifier = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) })) (if_statement "if (*param_3 == 0) goto LAB_0003a234;" if (parenthesized_expression "(*param_3 == 0)" ( (binary_expression "*param_3 == 0" (pointer_expression "*param_3" * identifier) == number_literal) )) (goto_statement "goto LAB_0003a234;" goto statement_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 "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n          return 0;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar5 = 0xfffffffe < uVar4;" (assignment_expression "bVar5 = 0xfffffffe < uVar4" identifier = (binary_expression "0xfffffffe < uVar4" number_literal < identifier)) ;) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = uVar3 + bVar5;" (assignment_expression "uVar3 = uVar3 + bVar5" identifier = (binary_expression "uVar3 + bVar5" identifier + identifier)) ;) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) })) }))) })) (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_enum_type(void *p,char *tag,char **names,bfd_signed_vma *values)\n\n{\n  pr_handle *info;\n  char *s;\n  bfd_boolean bVar1;\n  char **ppcVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  bool bVar6;\n  char ab [22];\n  \n  info = (pr_handle *)((int)p + 8);\n  bVar1 = push_type(info,"enum ");\n  if ((bVar1 != 0) &&\n     (((tag == (char *)0x0 ||\n       ((bVar1 = append_type(info,tag), bVar1 != 0 && (bVar1 = append_type(info," "), bVar1 != 0))))\n      && (bVar1 = append_type(info,"{ "), bVar1 != 0)))) {\n    if (names == (char **)0x0) {\n      bVar1 = append_type(info,"/* undefined */");\n      if (bVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*names == (char *)0x0) {\nLAB_0003a234:\n        bVar1 = append_type(info," }");\n        return bVar1;\n      }\n      ppcVar2 = names + 1;\n      uVar5 = 0;\n      uVar4 = 0;\n      iVar3 = append_type(info,*names);\n      while (iVar3 != 0) {\n        if (*(uint *)((int)values + 4) != uVar4 || *(uint *)values != uVar5) {\n          sprintf(ab,"%lld",*(uint *)values,*(uint *)((int)values + 4));\n          bVar1 = append_type(info," = ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          bVar1 = append_type(info,ab);\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar5 = *(uint *)values;\n          uVar4 = *(uint *)((int)values + 4);\n        }\n        if (*ppcVar2 == (char *)0x0) goto LAB_0003a234;\n        values = (bfd_signed_vma *)((int)values + 8);\n        bVar1 = append_type(info,", ");\n        if (bVar1 == 0) {\n          return 0;\n        }\n        bVar6 = 0xfffffffe < uVar5;\n        uVar5 = uVar5 + 1;\n        uVar4 = uVar4 + bVar6;\n        s = *ppcVar2;\n        ppcVar2 = ppcVar2 + 1;\n        iVar3 = append_type(info,s);\n      }\n    }\n  }\n  return 0;\n}\n\n" comment comment (function_definition "bfd_boolean pr_enum_type(void *p,char *tag,char **names,bfd_signed_vma *values)\n\n{\n  pr_handle *info;\n  char *s;\n  bfd_boolean bVar1;\n  char **ppcVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  bool bVar6;\n  char ab [22];\n  \n  info = (pr_handle *)((int)p + 8);\n  bVar1 = push_type(info,"enum ");\n  if ((bVar1 != 0) &&\n     (((tag == (char *)0x0 ||\n       ((bVar1 = append_type(info,tag), bVar1 != 0 && (bVar1 = append_type(info," "), bVar1 != 0))))\n      && (bVar1 = append_type(info,"{ "), bVar1 != 0)))) {\n    if (names == (char **)0x0) {\n      bVar1 = append_type(info,"/* undefined */");\n      if (bVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*names == (char *)0x0) {\nLAB_0003a234:\n        bVar1 = append_type(info," }");\n        return bVar1;\n      }\n      ppcVar2 = names + 1;\n      uVar5 = 0;\n      uVar4 = 0;\n      iVar3 = append_type(info,*names);\n      while (iVar3 != 0) {\n        if (*(uint *)((int)values + 4) != uVar4 || *(uint *)values != uVar5) {\n          sprintf(ab,"%lld",*(uint *)values,*(uint *)((int)values + 4));\n          bVar1 = append_type(info," = ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          bVar1 = append_type(info,ab);\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar5 = *(uint *)values;\n          uVar4 = *(uint *)((int)values + 4);\n        }\n        if (*ppcVar2 == (char *)0x0) goto LAB_0003a234;\n        values = (bfd_signed_vma *)((int)values + 8);\n        bVar1 = append_type(info,", ");\n        if (bVar1 == 0) {\n          return 0;\n        }\n        bVar6 = 0xfffffffe < uVar5;\n        uVar5 = uVar5 + 1;\n        uVar4 = uVar4 + bVar6;\n        s = *ppcVar2;\n        ppcVar2 = ppcVar2 + 1;\n        iVar3 = append_type(info,s);\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "pr_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  pr_handle *info;\n  char *s;\n  bfd_boolean bVar1;\n  char **ppcVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  bool bVar6;\n  char ab [22];\n  \n  info = (pr_handle *)((int)p + 8);\n  bVar1 = push_type(info,"enum ");\n  if ((bVar1 != 0) &&\n     (((tag == (char *)0x0 ||\n       ((bVar1 = append_type(info,tag), bVar1 != 0 && (bVar1 = append_type(info," "), bVar1 != 0))))\n      && (bVar1 = append_type(info,"{ "), bVar1 != 0)))) {\n    if (names == (char **)0x0) {\n      bVar1 = append_type(info,"/* undefined */");\n      if (bVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*names == (char *)0x0) {\nLAB_0003a234:\n        bVar1 = append_type(info," }");\n        return bVar1;\n      }\n      ppcVar2 = names + 1;\n      uVar5 = 0;\n      uVar4 = 0;\n      iVar3 = append_type(info,*names);\n      while (iVar3 != 0) {\n        if (*(uint *)((int)values + 4) != uVar4 || *(uint *)values != uVar5) {\n          sprintf(ab,"%lld",*(uint *)values,*(uint *)((int)values + 4));\n          bVar1 = append_type(info," = ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          bVar1 = append_type(info,ab);\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar5 = *(uint *)values;\n          uVar4 = *(uint *)((int)values + 4);\n        }\n        if (*ppcVar2 == (char *)0x0) goto LAB_0003a234;\n        values = (bfd_signed_vma *)((int)values + 8);\n        bVar1 = append_type(info,", ");\n        if (bVar1 == 0) {\n          return 0;\n        }\n        bVar6 = 0xfffffffe < uVar5;\n        uVar5 = uVar5 + 1;\n        uVar4 = uVar4 + bVar6;\n        s = *ppcVar2;\n        ppcVar2 = ppcVar2 + 1;\n        iVar3 = append_type(info,s);\n      }\n    }\n  }\n  return 0;\n}" { (declaration "pr_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (declaration "char *s;" primitive_type (pointer_declarator "*s" * identifier) ;) (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "char **ppcVar2;" primitive_type (pointer_declarator "**ppcVar2" * (pointer_declarator "*ppcVar2" * identifier)) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "char ab [22];" primitive_type (array_declarator "ab [22]" identifier [ number_literal ]) ;) (expression_statement "info = (pr_handle *)((int)p + 8);" (assignment_expression "info = (pr_handle *)((int)p + 8)" identifier = (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) )))) ;) (expression_statement "bVar1 = push_type(info,"enum ");" (assignment_expression "bVar1 = push_type(info,"enum ")" identifier = (call_expression "push_type(info,"enum ")" identifier (argument_list "(info,"enum ")" ( identifier , (string_literal ""enum "" " string_content ") )))) ;) (if_statement "if ((bVar1 != 0) &&\n     (((tag == (char *)0x0 ||\n       ((bVar1 = append_type(info,tag), bVar1 != 0 && (bVar1 = append_type(info," "), bVar1 != 0))))\n      && (bVar1 = append_type(info,"{ "), bVar1 != 0)))) {\n    if (names == (char **)0x0) {\n      bVar1 = append_type(info,"/* undefined */");\n      if (bVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*names == (char *)0x0) {\nLAB_0003a234:\n        bVar1 = append_type(info," }");\n        return bVar1;\n      }\n      ppcVar2 = names + 1;\n      uVar5 = 0;\n      uVar4 = 0;\n      iVar3 = append_type(info,*names);\n      while (iVar3 != 0) {\n        if (*(uint *)((int)values + 4) != uVar4 || *(uint *)values != uVar5) {\n          sprintf(ab,"%lld",*(uint *)values,*(uint *)((int)values + 4));\n          bVar1 = append_type(info," = ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          bVar1 = append_type(info,ab);\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar5 = *(uint *)values;\n          uVar4 = *(uint *)((int)values + 4);\n        }\n        if (*ppcVar2 == (char *)0x0) goto LAB_0003a234;\n        values = (bfd_signed_vma *)((int)values + 8);\n        bVar1 = append_type(info,", ");\n        if (bVar1 == 0) {\n          return 0;\n        }\n        bVar6 = 0xfffffffe < uVar5;\n        uVar5 = uVar5 + 1;\n        uVar4 = uVar4 + bVar6;\n        s = *ppcVar2;\n        ppcVar2 = ppcVar2 + 1;\n        iVar3 = append_type(info,s);\n      }\n    }\n  }" if (parenthesized_expression "((bVar1 != 0) &&\n     (((tag == (char *)0x0 ||\n       ((bVar1 = append_type(info,tag), bVar1 != 0 && (bVar1 = append_type(info," "), bVar1 != 0))))\n      && (bVar1 = append_type(info,"{ "), bVar1 != 0))))" ( (binary_expression "(bVar1 != 0) &&\n     (((tag == (char *)0x0 ||\n       ((bVar1 = append_type(info,tag), bVar1 != 0 && (bVar1 = append_type(info," "), bVar1 != 0))))\n      && (bVar1 = append_type(info,"{ "), bVar1 != 0)))" (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(((tag == (char *)0x0 ||\n       ((bVar1 = append_type(info,tag), bVar1 != 0 && (bVar1 = append_type(info," "), bVar1 != 0))))\n      && (bVar1 = append_type(info,"{ "), bVar1 != 0)))" ( (parenthesized_expression "((tag == (char *)0x0 ||\n       ((bVar1 = append_type(info,tag), bVar1 != 0 && (bVar1 = append_type(info," "), bVar1 != 0))))\n      && (bVar1 = append_type(info,"{ "), bVar1 != 0))" ( (binary_expression "(tag == (char *)0x0 ||\n       ((bVar1 = append_type(info,tag), bVar1 != 0 && (bVar1 = append_type(info," "), bVar1 != 0))))\n      && (bVar1 = append_type(info,"{ "), bVar1 != 0)" (parenthesized_expression "(tag == (char *)0x0 ||\n       ((bVar1 = append_type(info,tag), bVar1 != 0 && (bVar1 = append_type(info," "), bVar1 != 0))))" ( (binary_expression "tag == (char *)0x0 ||\n       ((bVar1 = append_type(info,tag), bVar1 != 0 && (bVar1 = append_type(info," "), bVar1 != 0)))" (binary_expression "tag == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) || (parenthesized_expression "((bVar1 = append_type(info,tag), bVar1 != 0 && (bVar1 = append_type(info," "), bVar1 != 0)))" ( (parenthesized_expression "(bVar1 = append_type(info,tag), bVar1 != 0 && (bVar1 = append_type(info," "), bVar1 != 0))" ( (comma_expression "bVar1 = append_type(info,tag), bVar1 != 0 && (bVar1 = append_type(info," "), bVar1 != 0)" (assignment_expression "bVar1 = append_type(info,tag)" identifier = (call_expression "append_type(info,tag)" identifier (argument_list "(info,tag)" ( identifier , identifier )))) , (binary_expression "bVar1 != 0 && (bVar1 = append_type(info," "), bVar1 != 0)" (binary_expression "bVar1 != 0" identifier != number_literal) && (parenthesized_expression "(bVar1 = append_type(info," "), bVar1 != 0)" ( (comma_expression "bVar1 = append_type(info," "), bVar1 != 0" (assignment_expression "bVar1 = append_type(info," ")" identifier = (call_expression "append_type(info," ")" identifier (argument_list "(info," ")" ( identifier , (string_literal "" "" " string_content ") )))) , (binary_expression "bVar1 != 0" identifier != number_literal)) )))) )) ))) )) && (parenthesized_expression "(bVar1 = append_type(info,"{ "), bVar1 != 0)" ( (comma_expression "bVar1 = append_type(info,"{ "), bVar1 != 0" (assignment_expression "bVar1 = append_type(info,"{ ")" identifier = (call_expression "append_type(info,"{ ")" identifier (argument_list "(info,"{ ")" ( identifier , (string_literal ""{ "" " string_content ") )))) , (binary_expression "bVar1 != 0" identifier != number_literal)) ))) )) ))) )) (compound_statement "{\n    if (names == (char **)0x0) {\n      bVar1 = append_type(info,"/* undefined */");\n      if (bVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*names == (char *)0x0) {\nLAB_0003a234:\n        bVar1 = append_type(info," }");\n        return bVar1;\n      }\n      ppcVar2 = names + 1;\n      uVar5 = 0;\n      uVar4 = 0;\n      iVar3 = append_type(info,*names);\n      while (iVar3 != 0) {\n        if (*(uint *)((int)values + 4) != uVar4 || *(uint *)values != uVar5) {\n          sprintf(ab,"%lld",*(uint *)values,*(uint *)((int)values + 4));\n          bVar1 = append_type(info," = ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          bVar1 = append_type(info,ab);\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar5 = *(uint *)values;\n          uVar4 = *(uint *)((int)values + 4);\n        }\n        if (*ppcVar2 == (char *)0x0) goto LAB_0003a234;\n        values = (bfd_signed_vma *)((int)values + 8);\n        bVar1 = append_type(info,", ");\n        if (bVar1 == 0) {\n          return 0;\n        }\n        bVar6 = 0xfffffffe < uVar5;\n        uVar5 = uVar5 + 1;\n        uVar4 = uVar4 + bVar6;\n        s = *ppcVar2;\n        ppcVar2 = ppcVar2 + 1;\n        iVar3 = append_type(info,s);\n      }\n    }\n  }" { (if_statement "if (names == (char **)0x0) {\n      bVar1 = append_type(info,"/* undefined */");\n      if (bVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*names == (char *)0x0) {\nLAB_0003a234:\n        bVar1 = append_type(info," }");\n        return bVar1;\n      }\n      ppcVar2 = names + 1;\n      uVar5 = 0;\n      uVar4 = 0;\n      iVar3 = append_type(info,*names);\n      while (iVar3 != 0) {\n        if (*(uint *)((int)values + 4) != uVar4 || *(uint *)values != uVar5) {\n          sprintf(ab,"%lld",*(uint *)values,*(uint *)((int)values + 4));\n          bVar1 = append_type(info," = ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          bVar1 = append_type(info,ab);\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar5 = *(uint *)values;\n          uVar4 = *(uint *)((int)values + 4);\n        }\n        if (*ppcVar2 == (char *)0x0) goto LAB_0003a234;\n        values = (bfd_signed_vma *)((int)values + 8);\n        bVar1 = append_type(info,", ");\n        if (bVar1 == 0) {\n          return 0;\n        }\n        bVar6 = 0xfffffffe < uVar5;\n        uVar5 = uVar5 + 1;\n        uVar4 = uVar4 + bVar6;\n        s = *ppcVar2;\n        ppcVar2 = ppcVar2 + 1;\n        iVar3 = append_type(info,s);\n      }\n    }" if (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)) )) (compound_statement "{\n      bVar1 = append_type(info,"/* undefined */");\n      if (bVar1 != 0) goto LAB_0003a234;\n    }" { (expression_statement "bVar1 = append_type(info,"/* undefined */");" (assignment_expression "bVar1 = append_type(info,"/* undefined */")" identifier = (call_expression "append_type(info,"/* undefined */")" identifier (argument_list "(info,"/* undefined */")" ( identifier , (string_literal ""/* undefined */"" " string_content ") )))) ;) (if_statement "if (bVar1 != 0) goto LAB_0003a234;" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0003a234;" goto statement_identifier ;)) }) (else_clause "else {\n      if (*names == (char *)0x0) {\nLAB_0003a234:\n        bVar1 = append_type(info," }");\n        return bVar1;\n      }\n      ppcVar2 = names + 1;\n      uVar5 = 0;\n      uVar4 = 0;\n      iVar3 = append_type(info,*names);\n      while (iVar3 != 0) {\n        if (*(uint *)((int)values + 4) != uVar4 || *(uint *)values != uVar5) {\n          sprintf(ab,"%lld",*(uint *)values,*(uint *)((int)values + 4));\n          bVar1 = append_type(info," = ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          bVar1 = append_type(info,ab);\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar5 = *(uint *)values;\n          uVar4 = *(uint *)((int)values + 4);\n        }\n        if (*ppcVar2 == (char *)0x0) goto LAB_0003a234;\n        values = (bfd_signed_vma *)((int)values + 8);\n        bVar1 = append_type(info,", ");\n        if (bVar1 == 0) {\n          return 0;\n        }\n        bVar6 = 0xfffffffe < uVar5;\n        uVar5 = uVar5 + 1;\n        uVar4 = uVar4 + bVar6;\n        s = *ppcVar2;\n        ppcVar2 = ppcVar2 + 1;\n        iVar3 = append_type(info,s);\n      }\n    }" else (compound_statement "{\n      if (*names == (char *)0x0) {\nLAB_0003a234:\n        bVar1 = append_type(info," }");\n        return bVar1;\n      }\n      ppcVar2 = names + 1;\n      uVar5 = 0;\n      uVar4 = 0;\n      iVar3 = append_type(info,*names);\n      while (iVar3 != 0) {\n        if (*(uint *)((int)values + 4) != uVar4 || *(uint *)values != uVar5) {\n          sprintf(ab,"%lld",*(uint *)values,*(uint *)((int)values + 4));\n          bVar1 = append_type(info," = ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          bVar1 = append_type(info,ab);\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar5 = *(uint *)values;\n          uVar4 = *(uint *)((int)values + 4);\n        }\n        if (*ppcVar2 == (char *)0x0) goto LAB_0003a234;\n        values = (bfd_signed_vma *)((int)values + 8);\n        bVar1 = append_type(info,", ");\n        if (bVar1 == 0) {\n          return 0;\n        }\n        bVar6 = 0xfffffffe < uVar5;\n        uVar5 = uVar5 + 1;\n        uVar4 = uVar4 + bVar6;\n        s = *ppcVar2;\n        ppcVar2 = ppcVar2 + 1;\n        iVar3 = append_type(info,s);\n      }\n    }" { (if_statement "if (*names == (char *)0x0) {\nLAB_0003a234:\n        bVar1 = append_type(info," }");\n        return bVar1;\n      }" if (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 "{\nLAB_0003a234:\n        bVar1 = append_type(info," }");\n        return bVar1;\n      }" { (labeled_statement "LAB_0003a234:\n        bVar1 = append_type(info," }");" statement_identifier : (expression_statement "bVar1 = append_type(info," }");" (assignment_expression "bVar1 = append_type(info," }")" identifier = (call_expression "append_type(info," }")" identifier (argument_list "(info," }")" ( identifier , (string_literal "" }"" " string_content ") )))) ;)) (return_statement "return bVar1;" return identifier ;) })) (expression_statement "ppcVar2 = names + 1;" (assignment_expression "ppcVar2 = names + 1" identifier = (binary_expression "names + 1" identifier + number_literal)) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = append_type(info,*names);" (assignment_expression "iVar3 = append_type(info,*names)" identifier = (call_expression "append_type(info,*names)" identifier (argument_list "(info,*names)" ( identifier , (pointer_expression "*names" * identifier) )))) ;) (while_statement "while (iVar3 != 0) {\n        if (*(uint *)((int)values + 4) != uVar4 || *(uint *)values != uVar5) {\n          sprintf(ab,"%lld",*(uint *)values,*(uint *)((int)values + 4));\n          bVar1 = append_type(info," = ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          bVar1 = append_type(info,ab);\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar5 = *(uint *)values;\n          uVar4 = *(uint *)((int)values + 4);\n        }\n        if (*ppcVar2 == (char *)0x0) goto LAB_0003a234;\n        values = (bfd_signed_vma *)((int)values + 8);\n        bVar1 = append_type(info,", ");\n        if (bVar1 == 0) {\n          return 0;\n        }\n        bVar6 = 0xfffffffe < uVar5;\n        uVar5 = uVar5 + 1;\n        uVar4 = uVar4 + bVar6;\n        s = *ppcVar2;\n        ppcVar2 = ppcVar2 + 1;\n        iVar3 = append_type(info,s);\n      }" while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        if (*(uint *)((int)values + 4) != uVar4 || *(uint *)values != uVar5) {\n          sprintf(ab,"%lld",*(uint *)values,*(uint *)((int)values + 4));\n          bVar1 = append_type(info," = ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          bVar1 = append_type(info,ab);\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar5 = *(uint *)values;\n          uVar4 = *(uint *)((int)values + 4);\n        }\n        if (*ppcVar2 == (char *)0x0) goto LAB_0003a234;\n        values = (bfd_signed_vma *)((int)values + 8);\n        bVar1 = append_type(info,", ");\n        if (bVar1 == 0) {\n          return 0;\n        }\n        bVar6 = 0xfffffffe < uVar5;\n        uVar5 = uVar5 + 1;\n        uVar4 = uVar4 + bVar6;\n        s = *ppcVar2;\n        ppcVar2 = ppcVar2 + 1;\n        iVar3 = append_type(info,s);\n      }" { (if_statement "if (*(uint *)((int)values + 4) != uVar4 || *(uint *)values != uVar5) {\n          sprintf(ab,"%lld",*(uint *)values,*(uint *)((int)values + 4));\n          bVar1 = append_type(info," = ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          bVar1 = append_type(info,ab);\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar5 = *(uint *)values;\n          uVar4 = *(uint *)((int)values + 4);\n        }" if (parenthesized_expression "(*(uint *)((int)values + 4) != uVar4 || *(uint *)values != uVar5)" ( (binary_expression "*(uint *)((int)values + 4) != uVar4 || *(uint *)values != uVar5" (binary_expression "*(uint *)((int)values + 4) != uVar4" (pointer_expression "*(uint *)((int)values + 4)" * (cast_expression "(uint *)((int)values + 4)" ( (type_descriptor "uint *" 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) )))) != identifier) || (binary_expression "*(uint *)values != uVar5" (pointer_expression "*(uint *)values" * (cast_expression "(uint *)values" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) != identifier)) )) (compound_statement "{\n          sprintf(ab,"%lld",*(uint *)values,*(uint *)((int)values + 4));\n          bVar1 = append_type(info," = ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          bVar1 = append_type(info,ab);\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar5 = *(uint *)values;\n          uVar4 = *(uint *)((int)values + 4);\n        }" { (expression_statement "sprintf(ab,"%lld",*(uint *)values,*(uint *)((int)values + 4));" (call_expression "sprintf(ab,"%lld",*(uint *)values,*(uint *)((int)values + 4))" identifier (argument_list "(ab,"%lld",*(uint *)values,*(uint *)((int)values + 4))" ( identifier , (string_literal ""%lld"" " string_content ") , (pointer_expression "*(uint *)values" * (cast_expression "(uint *)values" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (pointer_expression "*(uint *)((int)values + 4)" * (cast_expression "(uint *)((int)values + 4)" ( (type_descriptor "uint *" 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) )))) ))) ;) (expression_statement "bVar1 = append_type(info," = ");" (assignment_expression "bVar1 = append_type(info," = ")" identifier = (call_expression "append_type(info," = ")" identifier (argument_list "(info," = ")" ( identifier , (string_literal "" = "" " string_content ") )))) ;) (if_statement "if (bVar1 == 0) {\n            return 0;\n          }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar1 = append_type(info,ab);" (assignment_expression "bVar1 = append_type(info,ab)" identifier = (call_expression "append_type(info,ab)" identifier (argument_list "(info,ab)" ( identifier , identifier )))) ;) (if_statement "if (bVar1 == 0) {\n            return 0;\n          }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar5 = *(uint *)values;" (assignment_expression "uVar5 = *(uint *)values" identifier = (pointer_expression "*(uint *)values" * (cast_expression "(uint *)values" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar4 = *(uint *)((int)values + 4);" (assignment_expression "uVar4 = *(uint *)((int)values + 4)" identifier = (pointer_expression "*(uint *)((int)values + 4)" * (cast_expression "(uint *)((int)values + 4)" ( (type_descriptor "uint *" 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) ))))) ;) })) (if_statement "if (*ppcVar2 == (char *)0x0) goto LAB_0003a234;" if (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)) )) (goto_statement "goto LAB_0003a234;" goto statement_identifier ;)) (expression_statement "values = (bfd_signed_vma *)((int)values + 8);" (assignment_expression "values = (bfd_signed_vma *)((int)values + 8)" identifier = (cast_expression "(bfd_signed_vma *)((int)values + 8)" ( (type_descriptor "bfd_signed_vma *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)values + 8)" ( (binary_expression "(int)values + 8" (cast_expression "(int)values" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "bVar1 = append_type(info,", ");" (assignment_expression "bVar1 = append_type(info,", ")" identifier = (call_expression "append_type(info,", ")" identifier (argument_list "(info,", ")" ( identifier , (string_literal "", "" " string_content ") )))) ;) (if_statement "if (bVar1 == 0) {\n          return 0;\n        }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar6 = 0xfffffffe < uVar5;" (assignment_expression "bVar6 = 0xfffffffe < uVar5" identifier = (binary_expression "0xfffffffe < uVar5" number_literal < identifier)) ;) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = uVar4 + bVar6;" (assignment_expression "uVar4 = uVar4 + bVar6" identifier = (binary_expression "uVar4 + bVar6" identifier + identifier)) ;) (expression_statement "s = *ppcVar2;" (assignment_expression "s = *ppcVar2" identifier = (pointer_expression "*ppcVar2" * identifier)) ;) (expression_statement "ppcVar2 = ppcVar2 + 1;" (assignment_expression "ppcVar2 = ppcVar2 + 1" identifier = (binary_expression "ppcVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = append_type(info,s);" (assignment_expression "iVar3 = append_type(info,s)" identifier = (call_expression "append_type(info,s)" identifier (argument_list "(info,s)" ( identifier , identifier )))) ;) })) }))) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0003a0c0(undefined4 param_1,int param_2,int *param_3,uint *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  uint uVar4;\n  bool bVar5;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3a0c9;\n  iVar1 = FUN_00038f80();\n  if ((iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))) {\n    if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0003a0c0(undefined4 param_1,int param_2,int *param_3,uint *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  uint uVar4;\n  bool bVar5;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3a0c9;\n  iVar1 = FUN_00038f80();\n  if ((iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))) {\n    if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0003a0c0(undefined4 param_1,int param_2,int *param_3,uint *param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3,uint *param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  uint uVar4;\n  bool bVar5;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3a0c9;\n  iVar1 = FUN_00038f80();\n  if ((iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))) {\n    if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "bool bVar5;" primitive_type 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 = 0x3a0c9;" (assignment_expression "uStack_14 = 0x3a0c9" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_00038f80();" (assignment_expression "iVar1 = FUN_00038f80()" identifier = (call_expression "FUN_00038f80()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))) {\n    if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0))))" ( (binary_expression "(iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))" ( (parenthesized_expression "((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0))" ( (binary_expression "(param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)" (parenthesized_expression "(param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0))))" ( (binary_expression "param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))" (binary_expression "param_2 == 0" identifier == number_literal) || (parenthesized_expression "((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))" ( (parenthesized_expression "(iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0))" ( (comma_expression "iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)" (binary_expression "iVar1 != 0" identifier != number_literal) && (parenthesized_expression "(iVar1 = FUN_00037580(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00037580(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) )))) )) ))) )) && (parenthesized_expression "(iVar1 = FUN_00037580(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00037580(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) ))) )) (compound_statement "{\n    if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }\n  }" { (if_statement "if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }" if (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)) )) (compound_statement "{\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }" { (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) goto LAB_0003a234;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0003a234;" goto statement_identifier ;)) }) (else_clause "else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }" else (compound_statement "{\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }" { (if_statement "if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }" if (parenthesized_expression "(*param_3 == 0)" ( (binary_expression "*param_3 == 0" (pointer_expression "*param_3" * identifier) == number_literal) )) (compound_statement "{\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }" { (labeled_statement "LAB_0003a234:\n        uVar2 = FUN_00037580();" statement_identifier : (expression_statement "uVar2 = FUN_00037580();" (assignment_expression "uVar2 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;)) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (while_statement "while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }" { (if_statement "if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }" if (parenthesized_expression "(param_4[1] != uVar3 || *param_4 != uVar4)" ( (binary_expression "param_4[1] != uVar3 || *param_4 != uVar4" (binary_expression "param_4[1] != uVar3" (subscript_expression "param_4[1]" identifier [ number_literal ]) != identifier) || (binary_expression "*param_4 != uVar4" (pointer_expression "*param_4" * identifier) != identifier)) )) (compound_statement "{\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }" { (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 "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n            return 0;\n          }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n            return 0;\n          }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = *param_4;" (assignment_expression "uVar4 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "uVar3 = param_4[1];" (assignment_expression "uVar3 = param_4[1]" identifier = (subscript_expression "param_4[1]" identifier [ number_literal ])) ;) })) (if_statement "if (*param_3 == 0) goto LAB_0003a234;" if (parenthesized_expression "(*param_3 == 0)" ( (binary_expression "*param_3 == 0" (pointer_expression "*param_3" * identifier) == number_literal) )) (goto_statement "goto LAB_0003a234;" goto statement_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 "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n          return 0;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar5 = 0xfffffffe < uVar4;" (assignment_expression "bVar5 = 0xfffffffe < uVar4" identifier = (binary_expression "0xfffffffe < uVar4" number_literal < identifier)) ;) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = uVar3 + bVar5;" (assignment_expression "uVar3 = uVar3 + bVar5" identifier = (binary_expression "uVar3 + bVar5" identifier + identifier)) ;) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) })) }))) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) || (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression (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 = (call_expression IDENT (argument_list ( )))) , (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 = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) != IDENT) || (binary_expression (pointer_expression * IDENT) != IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression LIT < IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) })) }))) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0003a0c0(undefined4 param_1,int param_2,int *param_3,uint *param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  uint uVar4;\n  bool bVar5;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3a0c9;\n  iVar1 = FUN_00038f80();\n  if ((iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))) {\n    if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0003a0c0(undefined4 param_1,int param_2,int *param_3,uint *param_4)" (identifier "FUN_0003a0c0") (parameter_list "(undefined4 param_1,int param_2,int *param_3,uint *param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "uint *param_4" (type_identifier "uint") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  uint uVar4;\n  bool bVar5;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3a0c9;\n  iVar1 = FUN_00038f80();\n  if ((iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))) {\n    if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (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 = 0x3a0c9;" (assignment_expression "uStack_14 = 0x3a0c9" (identifier "uStack_14") (= "=") (number_literal "0x3a0c9")) (; ";")) (expression_statement "iVar1 = FUN_00038f80();" (assignment_expression "iVar1 = FUN_00038f80()" (identifier "iVar1") (= "=") (call_expression "FUN_00038f80()" (identifier "FUN_00038f80") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))) {\n    if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0))))" (( "(") (binary_expression "(iVar1 != 0) &&\n     (((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)))" (( "(") (parenthesized_expression "((param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0))" (( "(") (binary_expression "(param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&\n      (iVar1 = FUN_00037580(), iVar1 != 0)" (parenthesized_expression "(param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0))))" (( "(") (binary_expression "param_2 == 0 ||\n       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))" (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))" (( "(") (parenthesized_expression "(iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0))" (( "(") (comma_expression "iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)" (assignment_expression "iVar1 = FUN_00037580()" (identifier "iVar1") (= "=") (call_expression "FUN_00037580()" (identifier "FUN_00037580") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)" (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_00037580(), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_00037580(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00037580()" (identifier "iVar1") (= "=") (call_expression "FUN_00037580()" (identifier "FUN_00037580") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")")))) () ")")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_00037580(), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_00037580(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00037580()" (identifier "iVar1") (= "=") (call_expression "FUN_00037580()" (identifier "FUN_00037580") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }\n  }" ({ "{") (if_statement "if (param_3 == (int *)0x0) {\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }\n    else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }" (if "if") (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"))) () ")")) (compound_statement "{\n      iVar1 = FUN_00037580();\n      if (iVar1 != 0) goto LAB_0003a234;\n    }" ({ "{") (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" (identifier "iVar1") (= "=") (call_expression "FUN_00037580()" (identifier "FUN_00037580") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) goto LAB_0003a234;" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0003a234;" (goto "goto") (statement_identifier "LAB_0003a234") (; ";"))) (} "}")) (else_clause "else {\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }" (else "else") (compound_statement "{\n      if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }\n      param_3 = param_3 + 1;\n      uVar4 = 0;\n      uVar3 = 0;\n      iVar1 = FUN_00037580();\n      while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }\n    }" ({ "{") (if_statement "if (*param_3 == 0) {\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }" (if "if") (parenthesized_expression "(*param_3 == 0)" (( "(") (binary_expression "*param_3 == 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0003a234:\n        uVar2 = FUN_00037580();\n        return uVar2;\n      }" ({ "{") (labeled_statement "LAB_0003a234:\n        uVar2 = FUN_00037580();" (statement_identifier "LAB_0003a234") (: ":") (expression_statement "uVar2 = FUN_00037580();" (assignment_expression "uVar2 = FUN_00037580()" (identifier "uVar2") (= "=") (call_expression "FUN_00037580()" (identifier "FUN_00037580") (argument_list "()" (( "(") () ")")))) (; ";"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" (identifier "param_3") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" (identifier "iVar1") (= "=") (call_expression "FUN_00037580()" (identifier "FUN_00037580") (argument_list "()" (( "(") () ")")))) (; ";")) (while_statement "while (iVar1 != 0) {\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }" (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }\n        if (*param_3 == 0) goto LAB_0003a234;\n        param_4 = param_4 + 2;\n        iVar1 = FUN_00037580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        bVar5 = 0xfffffffe < uVar4;\n        uVar4 = uVar4 + 1;\n        uVar3 = uVar3 + bVar5;\n        param_3 = param_3 + 1;\n        iVar1 = FUN_00037580();\n      }" ({ "{") (if_statement "if (param_4[1] != uVar3 || *param_4 != uVar4) {\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }" (if "if") (parenthesized_expression "(param_4[1] != uVar3 || *param_4 != uVar4)" (( "(") (binary_expression "param_4[1] != uVar3 || *param_4 != uVar4" (binary_expression "param_4[1] != uVar3" (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]")) (!= "!=") (identifier "uVar3")) (|| "||") (binary_expression "*param_4 != uVar4" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (!= "!=") (identifier "uVar4"))) () ")")) (compound_statement "{\n          sprintf(local_32,"%lld",*param_4,param_4[1]);\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          iVar1 = FUN_00037580();\n          if (iVar1 == 0) {\n            return 0;\n          }\n          uVar4 = *param_4;\n          uVar3 = param_4[1];\n        }" ({ "{") (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 "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" (identifier "iVar1") (= "=") (call_expression "FUN_00037580()" (identifier "FUN_00037580") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n            return 0;\n          }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            return 0;\n          }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" (identifier "iVar1") (= "=") (call_expression "FUN_00037580()" (identifier "FUN_00037580") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n            return 0;\n          }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            return 0;\n          }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar4 = *param_4;" (assignment_expression "uVar4 = *param_4" (identifier "uVar4") (= "=") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (; ";")) (expression_statement "uVar3 = param_4[1];" (assignment_expression "uVar3 = param_4[1]" (identifier "uVar3") (= "=") (subscript_expression "param_4[1]" (identifier "param_4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (if_statement "if (*param_3 == 0) goto LAB_0003a234;" (if "if") (parenthesized_expression "(*param_3 == 0)" (( "(") (binary_expression "*param_3 == 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0003a234;" (goto "goto") (statement_identifier "LAB_0003a234") (; ";"))) (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 "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" (identifier "iVar1") (= "=") (call_expression "FUN_00037580()" (identifier "FUN_00037580") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "bVar5 = 0xfffffffe < uVar4;" (assignment_expression "bVar5 = 0xfffffffe < uVar4" (identifier "bVar5") (= "=") (binary_expression "0xfffffffe < uVar4" (number_literal "0xfffffffe") (< "<") (identifier "uVar4"))) (; ";")) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar3 = uVar3 + bVar5;" (assignment_expression "uVar3 = uVar3 + bVar5" (identifier "uVar3") (= "=") (binary_expression "uVar3 + bVar5" (identifier "uVar3") (+ "+") (identifier "bVar5"))) (; ";")) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" (identifier "param_3") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = FUN_00037580();" (assignment_expression "iVar1 = FUN_00037580()" (identifier "iVar1") (= "=") (call_expression "FUN_00037580()" (identifier "FUN_00037580") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}"))) (} "}")))) (} "}"))) (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 *var_3,char **var_5,type_2 *values)

{
  type_3 *info;
  char *s;
  type_1 var_2;
  char **var_11;
  int var_6;
  type_4 var_7;
  type_4 var_8;
  bool var_10;
  char ab [22];
  
  info = (type_3 *)((int)p + 8);
  var_2 = var_1(info,"enum ");
  if ((var_2 != 0) &&
     (((var_3 == (char *)0x0 ||
       ((var_2 = var_4(info,var_3), var_2 != 0 && (var_2 = var_4(info," "), var_2 != 0))))
      && (var_2 = var_4(info,"{ "), var_2 != 0)))) {
    if (var_5 == (char **)0x0) {
      var_2 = var_4(info,"/* undefined */");
      if (var_2 != 0) goto LAB_0003a234;
    }
    else {
      if (*var_5 == (char *)0x0) {
LAB_0003a234:
        var_2 = var_4(info," }");
        return var_2;
      }
      var_11 = var_5 + 1;
      var_8 = 0;
      var_7 = 0;
      var_6 = var_4(info,*var_5);
      while (var_6 != 0) {
        if (*(type_4 *)((int)values + 4) != var_7 || *(type_4 *)values != var_8) {
          var_9(ab,"%lld",*(type_4 *)values,*(type_4 *)((int)values + 4));
          var_2 = var_4(info," = ");
          if (var_2 == 0) {
            return 0;
          }
          var_2 = var_4(info,ab);
          if (var_2 == 0) {
            return 0;
          }
          var_8 = *(type_4 *)values;
          var_7 = *(type_4 *)((int)values + 4);
        }
        if (*var_11 == (char *)0x0) goto LAB_0003a234;
        values = (type_2 *)((int)values + 8);
        var_2 = var_4(info,", ");
        if (var_2 == 0) {
          return 0;
        }
        var_10 = 0xfffffffe < var_8;
        var_8 = var_8 + 1;
        var_7 = var_7 + var_10;
        s = *var_11;
        var_11 = var_11 + 1;
        var_6 = var_4(info,s);
      }
    }
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) 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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))) right: (binary_expression left: (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: (call_expression function: (identifier) arguments: (argument_list))) right: (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: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) consequence: (compound_statement (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 (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))))))))))) (return_statement (number_literal)))))

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

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

{
  int iVar1;
  undefined4 uVar2;
  uint uVar3;
  uint uVar4;
  bool bVar5;
  char local_32 [30];
  undefined4 uStack_14;
  
  uStack_14 = 0x3a0c9;
  iVar1 = FUN_00038f80();
  if ((iVar1 != 0) &&
     (((param_2 == 0 ||
       ((iVar1 = FUN_00037580(), iVar1 != 0 && (iVar1 = FUN_00037580(), iVar1 != 0)))) &&
      (iVar1 = FUN_00037580(), iVar1 != 0)))) {
    if (param_3 == (int *)0x0) {
      iVar1 = FUN_00037580();
      if (iVar1 != 0) goto LAB_0003a234;
    }
    else {
      if (*param_3 == 0) {
LAB_0003a234:
        uVar2 = FUN_00037580();
        return uVar2;
      }
      param_3 = param_3 + 1;
      uVar4 = 0;
      uVar3 = 0;
      iVar1 = FUN_00037580();
      while (iVar1 != 0) {
        if (param_4[1] != uVar3 || *param_4 != uVar4) {
          sprintf(local_32,"%lld",*param_4,param_4[1]);
          iVar1 = FUN_00037580();
          if (iVar1 == 0) {
            return 0;
          }
          iVar1 = FUN_00037580();
          if (iVar1 == 0) {
            return 0;
          }
          uVar4 = *param_4;
          uVar3 = param_4[1];
        }
        if (*param_3 == 0) goto LAB_0003a234;
        param_4 = param_4 + 2;
        iVar1 = FUN_00037580();
        if (iVar1 == 0) {
          return 0;
        }
        bVar5 = 0xfffffffe < uVar4;
        uVar4 = uVar4 + 1;
        uVar3 = uVar3 + bVar5;
        param_3 = param_3 + 1;
        iVar1 = FUN_00037580();
      }
    }
  }
  return 0;
}

