
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Unknown calling convention */

bfd_boolean pr_class_static_member(void *p,char *name,char *physname,debug_visibility visibility)

{
  pr_handle *info;
  bfd_boolean bVar1;
  char *s;
  uint uVar2;
  
  bVar1 = substitute_type((pr_handle *)p,name);
  if (bVar1 != 0) {
    info = (pr_handle *)((int)p + 8);
    bVar1 = prepend_type(info,"static ");
    if ((((bVar1 != 0) && (bVar1 = append_type(info,"; /* "), bVar1 != 0)) &&
        (bVar1 = append_type(info,physname), bVar1 != 0)) &&
       (bVar1 = append_type(info," */\n"), bVar1 != 0)) {
      if (*(int *)((int)p + 4) != 0) {
        uVar2 = 0;
        do {
          bVar1 = append_type(info," ");
          if (bVar1 == 0) {
            return 0;
          }
          uVar2 = uVar2 + 1;
        } while (uVar2 < *(uint *)((int)p + 4));
      }
      s = pop_type(info);
      if ((s != (char *)0x0) && (bVar1 = pr_fix_visibility((pr_handle *)p,visibility), bVar1 != 0))
      {
        bVar1 = append_type(info,s);
        return bVar1;
      }
    }
  }
  return 0;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined4 FUN_00037e90(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  uint uVar3;
  
  iVar1 = FUN_00036630();
  if ((((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&
      (iVar1 = FUN_00036580(), iVar1 != 0)) &&
     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))) {
    if (*(int *)(param_1 + 4) != 0) {
      uVar3 = 0;
      do {
        iVar1 = FUN_00036580();
        if (iVar1 == 0) {
          return 0;
        }
        uVar3 = uVar3 + 1;
      } while (uVar3 < *(uint *)(param_1 + 4));
    }
    iVar1 = FUN_00035d90();
    if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {
      uVar2 = FUN_00036580();
      return uVar2;
    }
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
CALL 0x00039db8
ADD ESI,0x3a168
PUSH EBX
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x3c]
MOV EBX,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESP + 0x34]
MOV EBP,dword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,EBX
CALL 0x00036630
TEST EAX,EAX
JNZ 0x00037ed0
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EDI,[EBX + 0x8]
LEA EDX,[ESI + 0xfffe4235]
MOV EAX,EDI
CALL 0x000364e0
TEST EAX,EAX
JZ 0x00037ec1
LEA EDX,[ESI + 0xfffe42e1]
MOV EAX,EDI
CALL 0x00036580
TEST EAX,EAX
JZ 0x00037ec1
MOV EDX,EBP
MOV EAX,EDI
CALL 0x00036580
TEST EAX,EAX
JZ 0x00037ec1
LEA EDX,[ESI + 0xfffe4131]
MOV EAX,EDI
CALL 0x00036580
TEST EAX,EAX
JZ 0x00037ec1
MOV EAX,dword ptr [EBX + 0x4]
TEST EAX,EAX
JZ 0x00037f3d
XOR EBP,EBP
LEA ESI,[ESI + 0xfffdc64f]
LEA ESI,[ESI]
MOV EDX,ESI
MOV EAX,EDI
CALL 0x00036580
TEST EAX,EAX
JZ 0x00037ec1
ADD EBP,0x1
CMP EBP,dword ptr [EBX + 0x4]
JC 0x00037f28
MOV EAX,EDI
CALL 0x00035d90
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00037ec1
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,EBX
CALL 0x00036ef0
TEST EAX,EAX
JZ 0x00037ec1
ADD ESP,0x1c
MOV EDX,ESI
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x00036580
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined4 FUN_00037e90(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  \n  iVar1 = FUN_00036630();\n  if ((((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))) {\n    if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }\n    iVar1 = FUN_00035d90();\n    if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_00037e90(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  \n  iVar1 = FUN_00036630();\n  if ((((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))) {\n    if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }\n    iVar1 = FUN_00035d90();\n    if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00037e90(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  \n  iVar1 = FUN_00036630();\n  if ((((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))) {\n    if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }\n    iVar1 = FUN_00035d90();\n    if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_00036630();" (assignment_expression "iVar1 = FUN_00036630()" identifier = (call_expression "FUN_00036630()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))) {\n    if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }\n    iVar1 = FUN_00035d90();\n    if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }\n  }" if (parenthesized_expression "((((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0))))" ( (binary_expression "(((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))" (parenthesized_expression "(((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0))" ( (binary_expression "((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)" (parenthesized_expression "((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = FUN_000364e0(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_000364e0(), iVar1 != 0" (assignment_expression "iVar1 = FUN_000364e0()" identifier = (call_expression "FUN_000364e0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(iVar1 = FUN_00036580(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00036580(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))" ( (parenthesized_expression "(iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0))" ( (comma_expression "iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)" (assignment_expression "iVar1 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)" (binary_expression "iVar1 != 0" identifier != number_literal) && (parenthesized_expression "(iVar1 = FUN_00036580(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00036580(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) )))) )) ))) )) (compound_statement "{\n    if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }\n    iVar1 = FUN_00035d90();\n    if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }" if (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" ( (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));" do (compound_statement "{\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      }" { (expression_statement "iVar1 = FUN_00036580();" (assignment_expression "iVar1 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" 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 "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar3 < *(uint *)(param_1 + 4))" ( (binary_expression "uVar3 < *(uint *)(param_1 + 4)" identifier < (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) )) ;) })) (expression_statement "iVar1 = FUN_00035d90();" (assignment_expression "iVar1 = FUN_00035d90()" identifier = (call_expression "FUN_00035d90()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = FUN_00036ef0(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00036ef0(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00036ef0()" identifier = (call_expression "FUN_00036ef0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }" { (expression_statement "uVar2 = FUN_00036580();" (assignment_expression "uVar2 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean pr_class_static_member(void *p,char *name,char *physname,debug_visibility visibility)\n\n{\n  pr_handle *info;\n  bfd_boolean bVar1;\n  char *s;\n  uint uVar2;\n  \n  bVar1 = substitute_type((pr_handle *)p,name);\n  if (bVar1 != 0) {\n    info = (pr_handle *)((int)p + 8);\n    bVar1 = prepend_type(info,"static ");\n    if ((((bVar1 != 0) && (bVar1 = append_type(info,"; /* "), bVar1 != 0)) &&\n        (bVar1 = append_type(info,physname), bVar1 != 0)) &&\n       (bVar1 = append_type(info," */\n"), bVar1 != 0)) {\n      if (*(int *)((int)p + 4) != 0) {\n        uVar2 = 0;\n        do {\n          bVar1 = append_type(info," ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar2 = uVar2 + 1;\n        } while (uVar2 < *(uint *)((int)p + 4));\n      }\n      s = pop_type(info);\n      if ((s != (char *)0x0) && (bVar1 = pr_fix_visibility((pr_handle *)p,visibility), bVar1 != 0))\n      {\n        bVar1 = append_type(info,s);\n        return bVar1;\n      }\n    }\n  }\n  return 0;\n}\n\n" comment comment (function_definition "bfd_boolean pr_class_static_member(void *p,char *name,char *physname,debug_visibility visibility)\n\n{\n  pr_handle *info;\n  bfd_boolean bVar1;\n  char *s;\n  uint uVar2;\n  \n  bVar1 = substitute_type((pr_handle *)p,name);\n  if (bVar1 != 0) {\n    info = (pr_handle *)((int)p + 8);\n    bVar1 = prepend_type(info,"static ");\n    if ((((bVar1 != 0) && (bVar1 = append_type(info,"; /* "), bVar1 != 0)) &&\n        (bVar1 = append_type(info,physname), bVar1 != 0)) &&\n       (bVar1 = append_type(info," */\n"), bVar1 != 0)) {\n      if (*(int *)((int)p + 4) != 0) {\n        uVar2 = 0;\n        do {\n          bVar1 = append_type(info," ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar2 = uVar2 + 1;\n        } while (uVar2 < *(uint *)((int)p + 4));\n      }\n      s = pop_type(info);\n      if ((s != (char *)0x0) && (bVar1 = pr_fix_visibility((pr_handle *)p,visibility), bVar1 != 0))\n      {\n        bVar1 = append_type(info,s);\n        return bVar1;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "pr_class_static_member(void *p,char *name,char *physname,debug_visibility visibility)" identifier (parameter_list "(void *p,char *name,char *physname,debug_visibility visibility)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "char *physname" primitive_type (pointer_declarator "*physname" * identifier)) , (parameter_declaration "debug_visibility visibility" type_identifier identifier) ))) (compound_statement "{\n  pr_handle *info;\n  bfd_boolean bVar1;\n  char *s;\n  uint uVar2;\n  \n  bVar1 = substitute_type((pr_handle *)p,name);\n  if (bVar1 != 0) {\n    info = (pr_handle *)((int)p + 8);\n    bVar1 = prepend_type(info,"static ");\n    if ((((bVar1 != 0) && (bVar1 = append_type(info,"; /* "), bVar1 != 0)) &&\n        (bVar1 = append_type(info,physname), bVar1 != 0)) &&\n       (bVar1 = append_type(info," */\n"), bVar1 != 0)) {\n      if (*(int *)((int)p + 4) != 0) {\n        uVar2 = 0;\n        do {\n          bVar1 = append_type(info," ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar2 = uVar2 + 1;\n        } while (uVar2 < *(uint *)((int)p + 4));\n      }\n      s = pop_type(info);\n      if ((s != (char *)0x0) && (bVar1 = pr_fix_visibility((pr_handle *)p,visibility), bVar1 != 0))\n      {\n        bVar1 = append_type(info,s);\n        return bVar1;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "pr_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "char *s;" primitive_type (pointer_declarator "*s" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "bVar1 = substitute_type((pr_handle *)p,name);" (assignment_expression "bVar1 = substitute_type((pr_handle *)p,name)" identifier = (call_expression "substitute_type((pr_handle *)p,name)" identifier (argument_list "((pr_handle *)p,name)" ( (cast_expression "(pr_handle *)p" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (if_statement "if (bVar1 != 0) {\n    info = (pr_handle *)((int)p + 8);\n    bVar1 = prepend_type(info,"static ");\n    if ((((bVar1 != 0) && (bVar1 = append_type(info,"; /* "), bVar1 != 0)) &&\n        (bVar1 = append_type(info,physname), bVar1 != 0)) &&\n       (bVar1 = append_type(info," */\n"), bVar1 != 0)) {\n      if (*(int *)((int)p + 4) != 0) {\n        uVar2 = 0;\n        do {\n          bVar1 = append_type(info," ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar2 = uVar2 + 1;\n        } while (uVar2 < *(uint *)((int)p + 4));\n      }\n      s = pop_type(info);\n      if ((s != (char *)0x0) && (bVar1 = pr_fix_visibility((pr_handle *)p,visibility), bVar1 != 0))\n      {\n        bVar1 = append_type(info,s);\n        return bVar1;\n      }\n    }\n  }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    info = (pr_handle *)((int)p + 8);\n    bVar1 = prepend_type(info,"static ");\n    if ((((bVar1 != 0) && (bVar1 = append_type(info,"; /* "), bVar1 != 0)) &&\n        (bVar1 = append_type(info,physname), bVar1 != 0)) &&\n       (bVar1 = append_type(info," */\n"), bVar1 != 0)) {\n      if (*(int *)((int)p + 4) != 0) {\n        uVar2 = 0;\n        do {\n          bVar1 = append_type(info," ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar2 = uVar2 + 1;\n        } while (uVar2 < *(uint *)((int)p + 4));\n      }\n      s = pop_type(info);\n      if ((s != (char *)0x0) && (bVar1 = pr_fix_visibility((pr_handle *)p,visibility), bVar1 != 0))\n      {\n        bVar1 = append_type(info,s);\n        return bVar1;\n      }\n    }\n  }" { (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 = prepend_type(info,"static ");" (assignment_expression "bVar1 = prepend_type(info,"static ")" identifier = (call_expression "prepend_type(info,"static ")" identifier (argument_list "(info,"static ")" ( identifier , (string_literal ""static "" " string_content ") )))) ;) (if_statement "if ((((bVar1 != 0) && (bVar1 = append_type(info,"; /* "), bVar1 != 0)) &&\n        (bVar1 = append_type(info,physname), bVar1 != 0)) &&\n       (bVar1 = append_type(info," */\n"), bVar1 != 0)) {\n      if (*(int *)((int)p + 4) != 0) {\n        uVar2 = 0;\n        do {\n          bVar1 = append_type(info," ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar2 = uVar2 + 1;\n        } while (uVar2 < *(uint *)((int)p + 4));\n      }\n      s = pop_type(info);\n      if ((s != (char *)0x0) && (bVar1 = pr_fix_visibility((pr_handle *)p,visibility), bVar1 != 0))\n      {\n        bVar1 = append_type(info,s);\n        return bVar1;\n      }\n    }" if (parenthesized_expression "((((bVar1 != 0) && (bVar1 = append_type(info,"; /* "), bVar1 != 0)) &&\n        (bVar1 = append_type(info,physname), bVar1 != 0)) &&\n       (bVar1 = append_type(info," */\n"), bVar1 != 0))" ( (binary_expression "(((bVar1 != 0) && (bVar1 = append_type(info,"; /* "), bVar1 != 0)) &&\n        (bVar1 = append_type(info,physname), bVar1 != 0)) &&\n       (bVar1 = append_type(info," */\n"), bVar1 != 0)" (parenthesized_expression "(((bVar1 != 0) && (bVar1 = append_type(info,"; /* "), bVar1 != 0)) &&\n        (bVar1 = append_type(info,physname), bVar1 != 0))" ( (binary_expression "((bVar1 != 0) && (bVar1 = append_type(info,"; /* "), bVar1 != 0)) &&\n        (bVar1 = append_type(info,physname), bVar1 != 0)" (parenthesized_expression "((bVar1 != 0) && (bVar1 = append_type(info,"; /* "), bVar1 != 0))" ( (binary_expression "(bVar1 != 0) && (bVar1 = append_type(info,"; /* "), bVar1 != 0)" (parenthesized_expression "(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,physname), bVar1 != 0)" ( (comma_expression "bVar1 = append_type(info,physname), bVar1 != 0" (assignment_expression "bVar1 = append_type(info,physname)" identifier = (call_expression "append_type(info,physname)" identifier (argument_list "(info,physname)" ( identifier , identifier )))) , (binary_expression "bVar1 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(bVar1 = append_type(info," */\n"), bVar1 != 0)" ( (comma_expression "bVar1 = append_type(info," */\n"), bVar1 != 0" (assignment_expression "bVar1 = append_type(info," */\n")" identifier = (call_expression "append_type(info," */\n")" identifier (argument_list "(info," */\n")" ( identifier , (string_literal "" */\n"" " string_content escape_sequence ") )))) , (binary_expression "bVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      if (*(int *)((int)p + 4) != 0) {\n        uVar2 = 0;\n        do {\n          bVar1 = append_type(info," ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar2 = uVar2 + 1;\n        } while (uVar2 < *(uint *)((int)p + 4));\n      }\n      s = pop_type(info);\n      if ((s != (char *)0x0) && (bVar1 = pr_fix_visibility((pr_handle *)p,visibility), bVar1 != 0))\n      {\n        bVar1 = append_type(info,s);\n        return bVar1;\n      }\n    }" { (if_statement "if (*(int *)((int)p + 4) != 0) {\n        uVar2 = 0;\n        do {\n          bVar1 = append_type(info," ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar2 = uVar2 + 1;\n        } while (uVar2 < *(uint *)((int)p + 4));\n      }" if (parenthesized_expression "(*(int *)((int)p + 4) != 0)" ( (binary_expression "*(int *)((int)p + 4) != 0" (pointer_expression "*(int *)((int)p + 4)" * (cast_expression "(int *)((int)p + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 4)" ( (binary_expression "(int)p + 4" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n        uVar2 = 0;\n        do {\n          bVar1 = append_type(info," ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar2 = uVar2 + 1;\n        } while (uVar2 < *(uint *)((int)p + 4));\n      }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n          bVar1 = append_type(info," ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar2 = uVar2 + 1;\n        } while (uVar2 < *(uint *)((int)p + 4));" do (compound_statement "{\n          bVar1 = append_type(info," ");\n          if (bVar1 == 0) {\n            return 0;\n          }\n          uVar2 = uVar2 + 1;\n        }" { (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 "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar2 < *(uint *)((int)p + 4))" ( (binary_expression "uVar2 < *(uint *)((int)p + 4)" identifier < (pointer_expression "*(uint *)((int)p + 4)" * (cast_expression "(uint *)((int)p + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 4)" ( (binary_expression "(int)p + 4" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) ;) })) (expression_statement "s = pop_type(info);" (assignment_expression "s = pop_type(info)" identifier = (call_expression "pop_type(info)" identifier (argument_list "(info)" ( identifier )))) ;) (if_statement "if ((s != (char *)0x0) && (bVar1 = pr_fix_visibility((pr_handle *)p,visibility), bVar1 != 0))\n      {\n        bVar1 = append_type(info,s);\n        return bVar1;\n      }" if (parenthesized_expression "((s != (char *)0x0) && (bVar1 = pr_fix_visibility((pr_handle *)p,visibility), bVar1 != 0))" ( (binary_expression "(s != (char *)0x0) && (bVar1 = pr_fix_visibility((pr_handle *)p,visibility), bVar1 != 0)" (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(bVar1 = pr_fix_visibility((pr_handle *)p,visibility), bVar1 != 0)" ( (comma_expression "bVar1 = pr_fix_visibility((pr_handle *)p,visibility), bVar1 != 0" (assignment_expression "bVar1 = pr_fix_visibility((pr_handle *)p,visibility)" identifier = (call_expression "pr_fix_visibility((pr_handle *)p,visibility)" identifier (argument_list "((pr_handle *)p,visibility)" ( (cast_expression "(pr_handle *)p" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) , (binary_expression "bVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        bVar1 = append_type(info,s);\n        return bVar1;\n      }" { (expression_statement "bVar1 = append_type(info,s);" (assignment_expression "bVar1 = append_type(info,s)" identifier = (call_expression "append_type(info,s)" identifier (argument_list "(info,s)" ( identifier , identifier )))) ;) (return_statement "return bVar1;" return identifier ;) })) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00037e90(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  \n  iVar1 = FUN_00036630();\n  if ((((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))) {\n    if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }\n    iVar1 = FUN_00035d90();\n    if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00037e90(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  \n  iVar1 = FUN_00036630();\n  if ((((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))) {\n    if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }\n    iVar1 = FUN_00035d90();\n    if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00037e90(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  \n  iVar1 = FUN_00036630();\n  if ((((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))) {\n    if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }\n    iVar1 = FUN_00035d90();\n    if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_00036630();" (assignment_expression "iVar1 = FUN_00036630()" identifier = (call_expression "FUN_00036630()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))) {\n    if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }\n    iVar1 = FUN_00035d90();\n    if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }\n  }" if (parenthesized_expression "((((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0))))" ( (binary_expression "(((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))" (parenthesized_expression "(((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0))" ( (binary_expression "((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)" (parenthesized_expression "((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = FUN_000364e0(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_000364e0(), iVar1 != 0" (assignment_expression "iVar1 = FUN_000364e0()" identifier = (call_expression "FUN_000364e0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(iVar1 = FUN_00036580(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00036580(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))" ( (parenthesized_expression "(iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0))" ( (comma_expression "iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)" (assignment_expression "iVar1 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)" (binary_expression "iVar1 != 0" identifier != number_literal) && (parenthesized_expression "(iVar1 = FUN_00036580(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00036580(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) )))) )) ))) )) (compound_statement "{\n    if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }\n    iVar1 = FUN_00035d90();\n    if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }" if (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" ( (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));" do (compound_statement "{\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      }" { (expression_statement "iVar1 = FUN_00036580();" (assignment_expression "iVar1 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" 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 "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar3 < *(uint *)(param_1 + 4))" ( (binary_expression "uVar3 < *(uint *)(param_1 + 4)" identifier < (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) )) ;) })) (expression_statement "iVar1 = FUN_00035d90();" (assignment_expression "iVar1 = FUN_00035d90()" identifier = (call_expression "FUN_00035d90()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }" if (parenthesized_expression "((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = FUN_00036ef0(), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00036ef0(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00036ef0()" identifier = (call_expression "FUN_00036ef0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }" { (expression_statement "uVar2 = FUN_00036580();" (assignment_expression "uVar2 = FUN_00036580()" identifier = (call_expression "FUN_00036580()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_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)) ))) )) && (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)) )))) )) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (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 IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00037e90(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  \n  iVar1 = FUN_00036630();\n  if ((((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))) {\n    if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }\n    iVar1 = FUN_00035d90();\n    if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00037e90(int param_1)" (identifier "FUN_00037e90") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  uint uVar3;\n  \n  iVar1 = FUN_00036630();\n  if ((((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))) {\n    if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }\n    iVar1 = FUN_00035d90();\n    if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\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") (; ";")) (expression_statement "iVar1 = FUN_00036630();" (assignment_expression "iVar1 = FUN_00036630()" (identifier "iVar1") (= "=") (call_expression "FUN_00036630()" (identifier "FUN_00036630") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))) {\n    if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }\n    iVar1 = FUN_00035d90();\n    if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }\n  }" (if "if") (parenthesized_expression "((((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0))))" (( "(") (binary_expression "(((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)) &&\n     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))" (parenthesized_expression "(((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0))" (( "(") (binary_expression "((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&\n      (iVar1 = FUN_00036580(), iVar1 != 0)" (parenthesized_expression "((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0))" (( "(") (binary_expression "(iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_000364e0(), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_000364e0(), iVar1 != 0" (assignment_expression "iVar1 = FUN_000364e0()" (identifier "iVar1") (= "=") (call_expression "FUN_000364e0()" (identifier "FUN_000364e0") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_00036580(), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_00036580(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00036580()" (identifier "iVar1") (= "=") (call_expression "FUN_00036580()" (identifier "FUN_00036580") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))" (( "(") (parenthesized_expression "(iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0))" (( "(") (comma_expression "iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)" (assignment_expression "iVar1 = FUN_00036580()" (identifier "iVar1") (= "=") (call_expression "FUN_00036580()" (identifier "FUN_00036580") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)" (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_00036580(), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_00036580(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00036580()" (identifier "iVar1") (= "=") (call_expression "FUN_00036580()" (identifier "FUN_00036580") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }\n    iVar1 = FUN_00035d90();\n    if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 4) != 0) {\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = 0;\n      do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));\n    }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      } while (uVar3 < *(uint *)(param_1 + 4));" (do "do") (compound_statement "{\n        iVar1 = FUN_00036580();\n        if (iVar1 == 0) {\n          return 0;\n        }\n        uVar3 = uVar3 + 1;\n      }" ({ "{") (expression_statement "iVar1 = FUN_00036580();" (assignment_expression "iVar1 = FUN_00036580()" (identifier "iVar1") (= "=") (call_expression "FUN_00036580()" (identifier "FUN_00036580") (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 "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar3 < *(uint *)(param_1 + 4))" (( "(") (binary_expression "uVar3 < *(uint *)(param_1 + 4)" (identifier "uVar3") (< "<") (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_00035d90();" (assignment_expression "iVar1 = FUN_00035d90()" (identifier "iVar1") (= "=") (call_expression "FUN_00035d90()" (identifier "FUN_00035d90") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }" (if "if") (parenthesized_expression "((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0))" (( "(") (binary_expression "(iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_00036ef0(), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_00036ef0(), iVar1 != 0" (assignment_expression "iVar1 = FUN_00036ef0()" (identifier "iVar1") (= "=") (call_expression "FUN_00036ef0()" (identifier "FUN_00036ef0") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      uVar2 = FUN_00036580();\n      return uVar2;\n    }" ({ "{") (expression_statement "uVar2 = FUN_00036580();" (assignment_expression "uVar2 = FUN_00036580()" (identifier "uVar2") (= "=") (call_expression "FUN_00036580()" (identifier "FUN_00036580") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Unknown calling convention */

type_1 function_1(void *p,char *name,char *physname,type_2 visibility)

{
  type_3 *info;
  type_1 var_2;
  char *var_7;
  type_4 var_5;
  
  var_2 = var_1((type_3 *)p,name);
  if (var_2 != 0) {
    info = (type_3 *)((int)p + 8);
    var_2 = var_3(info,"static ");
    if ((((var_2 != 0) && (var_2 = var_4(info,"; /* "), var_2 != 0)) &&
        (var_2 = var_4(info,physname), var_2 != 0)) &&
       (var_2 = var_4(info," */\n"), var_2 != 0)) {
      if (*(int *)((int)p + 4) != 0) {
        var_5 = 0;
        do {
          var_2 = var_4(info," ");
          if (var_2 == 0) {
            return 0;
          }
          var_5 = var_5 + 1;
        } while (var_5 < *(type_4 *)((int)p + 4));
      }
      var_7 = var_6(info);
      if ((var_7 != (char *)0x0) && (var_2 = var_8((type_3 *)p,visibility), var_2 != 0))
      {
        var_2 = var_4(info,var_7);
        return var_2;
      }
    }
  }
  return 0;
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined4 MASKED(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  uint uVar3;
  
  iVar1 = FUN_00036630();
  if ((((iVar1 != 0) && (iVar1 = FUN_000364e0(), iVar1 != 0)) &&
      (iVar1 = FUN_00036580(), iVar1 != 0)) &&
     ((iVar1 = FUN_00036580(), iVar1 != 0 && (iVar1 = FUN_00036580(), iVar1 != 0)))) {
    if (*(int *)(param_1 + 4) != 0) {
      uVar3 = 0;
      do {
        iVar1 = FUN_00036580();
        if (iVar1 == 0) {
          return 0;
        }
        uVar3 = uVar3 + 1;
      } while (uVar3 < *(uint *)(param_1 + 4));
    }
    iVar1 = FUN_00035d90();
    if ((iVar1 != 0) && (iVar1 = FUN_00036ef0(), iVar1 != 0)) {
      uVar2 = FUN_00036580();
      return uVar2;
    }
  }
  return 0;
}

