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

Target * gold::select_target(Input_file *input_file,off_t offset,int machine,int size,
                            bool is_big_endian,int osabi,int abiversion)

{
  Target_selector **ppTVar1;
  _func_int_varargs *p_Var2;
  Target *pTVar3;
  Target_selector *pTVar4;
  undefined4 local_24;
  undefined4 local_20;
  
  pTVar4 = anon_unknown.dwarf_14fdad2::target_selectors;
  if (anon_unknown.dwarf_14fdad2::target_selectors != (Target_selector *)0x0) {
    do {
      local_20 = (undefined4)((ulonglong)offset >> 0x20);
      local_24 = (undefined4)offset;
      if (((machine == pTVar4->machine_) || (pTVar4->machine_ == 0)) && (size == pTVar4->size_)) {
        if (pTVar4->is_big_endian_ == false) {
          if (!is_big_endian) {
            p_Var2 = pTVar4->_vptr_Target_selector[3];
            if (p_Var2 == Target_selector::do_recognize) goto LAB_0018f8e3;
LAB_0018f922:
            pTVar3 = (Target *)
                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion);
            goto LAB_0018f8fc;
          }
        }
        else if (is_big_endian) {
          p_Var2 = pTVar4->_vptr_Target_selector[3];
          if (p_Var2 != Target_selector::do_recognize) goto LAB_0018f922;
LAB_0018f8e3:
          Once::run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0);
          pTVar3 = pTVar4->instantiated_target_;
LAB_0018f8fc:
          if (pTVar3 != (Target *)0x0) {
            return pTVar3;
          }
        }
      }
      ppTVar1 = &pTVar4->next_;
      pTVar4 = *ppTVar1;
    } while (*ppTVar1 != (Target_selector *)0x0);
  }
  return (Target *)0x0;
}



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

int FUN_0018f860(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,
                char param_6,undefined4 param_7,undefined4 param_8)

{
  int *piVar1;
  code *pcVar2;
  int iVar3;
  int *piVar4;
  
  piVar4 = DAT_00396258;
  if (DAT_00396258 != (int *)0x0) {
    do {
      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {
        if ((char)piVar4[3] == '\0') {
          if (param_6 == '\0') {
            pcVar2 = *(code **)(*piVar4 + 0xc);
            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;
LAB_0018f922:
            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);
            goto LAB_0018f8fc;
          }
        }
        else if (param_6 != '\0') {
          pcVar2 = *(code **)(*piVar4 + 0xc);
          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;
LAB_0018f8e3:
          FUN_0006cdc0(piVar4 + 8,0);
          iVar3 = piVar4[7];
LAB_0018f8fc:
          if (iVar3 != 0) {
            return iVar3;
          }
        }
      }
      piVar1 = piVar4 + 6;
      piVar4 = (int *)*piVar1;
    } while ((int *)*piVar1 != (int *)0x0);
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1ff797
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x34]
MOV EDX,dword ptr [ESP + 0x38]
MOV EDI,dword ptr [ESP + 0x3c]
MOV EBP,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0x8],EAX
MOVZX ECX,byte ptr [ESP + 0x44]
MOV ESI,dword ptr [EBX + 0x7258]
MOV dword ptr [ESP + 0xc],EDX
TEST ESI,ESI
JZ 0x0018f950
LEA EAX,[EBX + 0xffe00d10]
MOV dword ptr [ESP],EAX
JMP 0x0018f8bb
MOV ESI,dword ptr [ESI + 0x18]
TEST ESI,ESI
JZ 0x0018f950
MOV EAX,dword ptr [ESI + 0x4]
CMP EDI,EAX
JZ 0x0018f8c6
TEST EAX,EAX
JNZ 0x0018f8b0
CMP EBP,dword ptr [ESI + 0x8]
JNZ 0x0018f8b0
CMP byte ptr [ESI + 0xc],0x0
JZ 0x0018f910
TEST CL,CL
JZ 0x0018f8b0
MOV EAX,dword ptr [ESI]
MOV byte ptr [ESP + 0x7],CL
MOV EAX,dword ptr [EAX + 0xc]
CMP EAX,dword ptr [ESP]
JNZ 0x0018f922
SUB ESP,0x8
LEA EAX,[ESI + 0x20]
PUSH 0x0
PUSH EAX
CALL 0x0006cdc0
ADD ESP,0x10
MOV EAX,dword ptr [ESI + 0x1c]
MOVZX ECX,byte ptr [ESP + 0x7]
TEST EAX,EAX
JZ 0x0018f8b0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST CL,CL
JNZ 0x0018f8b0
MOV EAX,dword ptr [ESI]
MOV byte ptr [ESP + 0x7],CL
MOV EAX,dword ptr [EAX + 0xc]
CMP EAX,dword ptr [ESP]
JZ 0x0018f8e3
SUB ESP,0x4
PUSH dword ptr [ESP + 0x50]
PUSH dword ptr [ESP + 0x50]
PUSH EDI
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x48]
PUSH ESI
CALL EAX
MOVZX ECX,byte ptr [ESP + 0x27]
ADD ESP,0x20
JMP 0x0018f8fc
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0018f860(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                char param_6,undefined4 param_7,undefined4 param_8)\n\n{\n  int *piVar1;\n  code *pcVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_00396258;\n  if (DAT_00396258 != (int *)0x0) {\n    do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);\n  }\n  return 0;\n}\n\n" comment (function_definition "int FUN_0018f860(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                char param_6,undefined4 param_7,undefined4 param_8)\n\n{\n  int *piVar1;\n  code *pcVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_00396258;\n  if (DAT_00396258 != (int *)0x0) {\n    do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0018f860(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                char param_6,undefined4 param_7,undefined4 param_8)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                char param_6,undefined4 param_7,undefined4 param_8)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "char param_6" primitive_type identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  code *pcVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_00396258;\n  if (DAT_00396258 != (int *)0x0) {\n    do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = DAT_00396258;" (assignment_expression "piVar4 = DAT_00396258" identifier = identifier) ;) (if_statement "if (DAT_00396258 != (int *)0x0) {\n    do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);\n  }" if (parenthesized_expression "(DAT_00396258 != (int *)0x0)" ( (binary_expression "DAT_00396258 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);\n  }" { (do_statement "do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);" do (compound_statement "{\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    }" { (if_statement "if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }" if (parenthesized_expression "(((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2]))" ( (binary_expression "((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])" (parenthesized_expression "((param_4 == piVar4[1]) || (piVar4[1] == 0))" ( (binary_expression "(param_4 == piVar4[1]) || (piVar4[1] == 0)" (parenthesized_expression "(param_4 == piVar4[1])" ( (binary_expression "param_4 == piVar4[1]" identifier == (subscript_expression "piVar4[1]" identifier [ number_literal ])) )) || (parenthesized_expression "(piVar4[1] == 0)" ( (binary_expression "piVar4[1] == 0" (subscript_expression "piVar4[1]" identifier [ number_literal ]) == number_literal) ))) )) && (parenthesized_expression "(param_5 == piVar4[2])" ( (binary_expression "param_5 == piVar4[2]" identifier == (subscript_expression "piVar4[2]" identifier [ number_literal ])) ))) )) (compound_statement "{\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }" { (if_statement "if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }" if (parenthesized_expression "((char)piVar4[3] == '\0')" ( (binary_expression "(char)piVar4[3] == '\0'" (cast_expression "(char)piVar4[3]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar4[3]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }" { (if_statement "if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }" if (parenthesized_expression "(param_6 == '\0')" ( (binary_expression "param_6 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }" { (expression_statement "pcVar2 = *(code **)(*piVar4 + 0xc);" (assignment_expression "pcVar2 = *(code **)(*piVar4 + 0xc)" identifier = (pointer_expression "*(code **)(*piVar4 + 0xc)" * (cast_expression "(code **)(*piVar4 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0xc)" ( (binary_expression "*piVar4 + 0xc" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) ;) (if_statement "if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;" if (parenthesized_expression "(pcVar2 == FUN_0018fd10)" ( (binary_expression "pcVar2 == FUN_0018fd10" identifier == identifier) )) (goto_statement "goto LAB_0018f8e3;" goto statement_identifier ;)) (labeled_statement "LAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);" statement_identifier : (expression_statement "iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);" (assignment_expression "iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8)" identifier = (call_expression "(*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8)" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "(piVar4,param_1,param_2,param_3,param_4,param_7,param_8)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;)) (goto_statement "goto LAB_0018f8fc;" goto statement_identifier ;) })) }) (else_clause "else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }" else (if_statement "if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }" if (parenthesized_expression "(param_6 != '\0')" ( (binary_expression "param_6 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }" { (expression_statement "pcVar2 = *(code **)(*piVar4 + 0xc);" (assignment_expression "pcVar2 = *(code **)(*piVar4 + 0xc)" identifier = (pointer_expression "*(code **)(*piVar4 + 0xc)" * (cast_expression "(code **)(*piVar4 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0xc)" ( (binary_expression "*piVar4 + 0xc" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) ;) (if_statement "if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;" if (parenthesized_expression "(pcVar2 != FUN_0018fd10)" ( (binary_expression "pcVar2 != FUN_0018fd10" identifier != identifier) )) (goto_statement "goto LAB_0018f922;" goto statement_identifier ;)) (labeled_statement "LAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);" statement_identifier : (expression_statement "FUN_0006cdc0(piVar4 + 8,0);" (call_expression "FUN_0006cdc0(piVar4 + 8,0)" identifier (argument_list "(piVar4 + 8,0)" ( (binary_expression "piVar4 + 8" identifier + number_literal) , number_literal ))) ;)) (expression_statement "iVar3 = piVar4[7];" (assignment_expression "iVar3 = piVar4[7]" identifier = (subscript_expression "piVar4[7]" identifier [ number_literal ])) ;) (labeled_statement "LAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }" statement_identifier : (if_statement "if (iVar3 != 0) {\n            return iVar3;\n          }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n            return iVar3;\n          }" { (return_statement "return iVar3;" return identifier ;) }))) })))) })) (expression_statement "piVar1 = piVar4 + 6;" (assignment_expression "piVar1 = piVar4 + 6" identifier = (binary_expression "piVar4 + 6" identifier + number_literal)) ;) (expression_statement "piVar4 = (int *)*piVar1;" (assignment_expression "piVar4 = (int *)*piVar1" identifier = (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;) }) while (parenthesized_expression "((int *)*piVar1 != (int *)0x0)" ( (binary_expression "(int *)*piVar1 != (int *)0x0" (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier)) != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nTarget * gold::select_target(Input_file *input_file,off_t offset,int machine,int size,\n                            bool is_big_endian,int osabi,int abiversion)\n\n{\n  Target_selector **ppTVar1;\n  _func_int_varargs *p_Var2;\n  Target *pTVar3;\n  Target_selector *pTVar4;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  pTVar4 = anon_unknown.dwarf_14fdad2::target_selectors;\n  if (anon_unknown.dwarf_14fdad2::target_selectors != (Target_selector *)0x0) {\n    do {\n      local_20 = (undefined4)((ulonglong)offset >> 0x20);\n      local_24 = (undefined4)offset;\n      if (((machine == pTVar4->machine_) || (pTVar4->machine_ == 0)) && (size == pTVar4->size_)) {\n        if (pTVar4->is_big_endian_ == false) {\n          if (!is_big_endian) {\n            p_Var2 = pTVar4->_vptr_Target_selector[3];\n            if (p_Var2 == Target_selector::do_recognize) goto LAB_0018f8e3;\nLAB_0018f922:\n            pTVar3 = (Target *)\n                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (is_big_endian) {\n          p_Var2 = pTVar4->_vptr_Target_selector[3];\n          if (p_Var2 != Target_selector::do_recognize) goto LAB_0018f922;\nLAB_0018f8e3:\n          Once::run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0);\n          pTVar3 = pTVar4->instantiated_target_;\nLAB_0018f8fc:\n          if (pTVar3 != (Target *)0x0) {\n            return pTVar3;\n          }\n        }\n      }\n      ppTVar1 = &pTVar4->next_;\n      pTVar4 = *ppTVar1;\n    } while (*ppTVar1 != (Target_selector *)0x0);\n  }\n  return (Target *)0x0;\n}\n\n" comment comment (ERROR "Target * gold::select_target(Input_file *input_file,off_t offset,int machine,int size,\n                            bool is_big_endian,int osabi,int abiversion)" (binary_expression "Target * gold" identifier * identifier) : : (call_expression "select_target(Input_file *input_file,off_t offset,int machine,int size,\n                            bool is_big_endian,int osabi,int abiversion)" identifier (argument_list "(Input_file *input_file,off_t offset,int machine,int size,\n                            bool is_big_endian,int osabi,int abiversion)" ( (binary_expression "Input_file *input_file" identifier * identifier) , (ERROR "off_t" identifier) identifier , (ERROR "int" identifier) identifier , (ERROR "int" identifier) identifier , (ERROR "bool" identifier) identifier , (ERROR "int" identifier) identifier , (ERROR "int" identifier) identifier )))) (compound_statement "{\n  Target_selector **ppTVar1;\n  _func_int_varargs *p_Var2;\n  Target *pTVar3;\n  Target_selector *pTVar4;\n  undefined4 local_24;\n  undefined4 local_20;\n  \n  pTVar4 = anon_unknown.dwarf_14fdad2::target_selectors;\n  if (anon_unknown.dwarf_14fdad2::target_selectors != (Target_selector *)0x0) {\n    do {\n      local_20 = (undefined4)((ulonglong)offset >> 0x20);\n      local_24 = (undefined4)offset;\n      if (((machine == pTVar4->machine_) || (pTVar4->machine_ == 0)) && (size == pTVar4->size_)) {\n        if (pTVar4->is_big_endian_ == false) {\n          if (!is_big_endian) {\n            p_Var2 = pTVar4->_vptr_Target_selector[3];\n            if (p_Var2 == Target_selector::do_recognize) goto LAB_0018f8e3;\nLAB_0018f922:\n            pTVar3 = (Target *)\n                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (is_big_endian) {\n          p_Var2 = pTVar4->_vptr_Target_selector[3];\n          if (p_Var2 != Target_selector::do_recognize) goto LAB_0018f922;\nLAB_0018f8e3:\n          Once::run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0);\n          pTVar3 = pTVar4->instantiated_target_;\nLAB_0018f8fc:\n          if (pTVar3 != (Target *)0x0) {\n            return pTVar3;\n          }\n        }\n      }\n      ppTVar1 = &pTVar4->next_;\n      pTVar4 = *ppTVar1;\n    } while (*ppTVar1 != (Target_selector *)0x0);\n  }\n  return (Target *)0x0;\n}" { (declaration "Target_selector **ppTVar1;" type_identifier (pointer_declarator "**ppTVar1" * (pointer_declarator "*ppTVar1" * identifier)) ;) (declaration "_func_int_varargs *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "Target *pTVar3;" type_identifier (pointer_declarator "*pTVar3" * identifier) ;) (declaration "Target_selector *pTVar4;" type_identifier (pointer_declarator "*pTVar4" * identifier) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "pTVar4 = anon_unknown.dwarf_14fdad2::target_selectors;" (assignment_expression "pTVar4 = anon_unknown.dwarf_14fdad2" identifier = (field_expression "anon_unknown.dwarf_14fdad2" identifier . field_identifier)) (ERROR "::target_selectors" : : identifier) ;) (if_statement "if (anon_unknown.dwarf_14fdad2::target_selectors != (Target_selector *)0x0) {\n    do {\n      local_20 = (undefined4)((ulonglong)offset >> 0x20);\n      local_24 = (undefined4)offset;\n      if (((machine == pTVar4->machine_) || (pTVar4->machine_ == 0)) && (size == pTVar4->size_)) {\n        if (pTVar4->is_big_endian_ == false) {\n          if (!is_big_endian) {\n            p_Var2 = pTVar4->_vptr_Target_selector[3];\n            if (p_Var2 == Target_selector::do_recognize) goto LAB_0018f8e3;\nLAB_0018f922:\n            pTVar3 = (Target *)\n                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (is_big_endian) {\n          p_Var2 = pTVar4->_vptr_Target_selector[3];\n          if (p_Var2 != Target_selector::do_recognize) goto LAB_0018f922;\nLAB_0018f8e3:\n          Once::run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0);\n          pTVar3 = pTVar4->instantiated_target_;\nLAB_0018f8fc:\n          if (pTVar3 != (Target *)0x0) {\n            return pTVar3;\n          }\n        }\n      }\n      ppTVar1 = &pTVar4->next_;\n      pTVar4 = *ppTVar1;\n    } while (*ppTVar1 != (Target_selector *)0x0);\n  }" if (parenthesized_expression "(anon_unknown.dwarf_14fdad2::target_selectors != (Target_selector *)0x0)" ( (binary_expression "anon_unknown.dwarf_14fdad2::target_selectors != (Target_selector *)0x0" (field_expression "anon_unknown.dwarf_14fdad2" identifier . field_identifier) (ERROR "::target_selectors" : : identifier) != (cast_expression "(Target_selector *)0x0" ( (type_descriptor "Target_selector *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      local_20 = (undefined4)((ulonglong)offset >> 0x20);\n      local_24 = (undefined4)offset;\n      if (((machine == pTVar4->machine_) || (pTVar4->machine_ == 0)) && (size == pTVar4->size_)) {\n        if (pTVar4->is_big_endian_ == false) {\n          if (!is_big_endian) {\n            p_Var2 = pTVar4->_vptr_Target_selector[3];\n            if (p_Var2 == Target_selector::do_recognize) goto LAB_0018f8e3;\nLAB_0018f922:\n            pTVar3 = (Target *)\n                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (is_big_endian) {\n          p_Var2 = pTVar4->_vptr_Target_selector[3];\n          if (p_Var2 != Target_selector::do_recognize) goto LAB_0018f922;\nLAB_0018f8e3:\n          Once::run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0);\n          pTVar3 = pTVar4->instantiated_target_;\nLAB_0018f8fc:\n          if (pTVar3 != (Target *)0x0) {\n            return pTVar3;\n          }\n        }\n      }\n      ppTVar1 = &pTVar4->next_;\n      pTVar4 = *ppTVar1;\n    } while (*ppTVar1 != (Target_selector *)0x0);\n  }" { (do_statement "do {\n      local_20 = (undefined4)((ulonglong)offset >> 0x20);\n      local_24 = (undefined4)offset;\n      if (((machine == pTVar4->machine_) || (pTVar4->machine_ == 0)) && (size == pTVar4->size_)) {\n        if (pTVar4->is_big_endian_ == false) {\n          if (!is_big_endian) {\n            p_Var2 = pTVar4->_vptr_Target_selector[3];\n            if (p_Var2 == Target_selector::do_recognize) goto LAB_0018f8e3;\nLAB_0018f922:\n            pTVar3 = (Target *)\n                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (is_big_endian) {\n          p_Var2 = pTVar4->_vptr_Target_selector[3];\n          if (p_Var2 != Target_selector::do_recognize) goto LAB_0018f922;\nLAB_0018f8e3:\n          Once::run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0);\n          pTVar3 = pTVar4->instantiated_target_;\nLAB_0018f8fc:\n          if (pTVar3 != (Target *)0x0) {\n            return pTVar3;\n          }\n        }\n      }\n      ppTVar1 = &pTVar4->next_;\n      pTVar4 = *ppTVar1;\n    } while (*ppTVar1 != (Target_selector *)0x0);" do (compound_statement "{\n      local_20 = (undefined4)((ulonglong)offset >> 0x20);\n      local_24 = (undefined4)offset;\n      if (((machine == pTVar4->machine_) || (pTVar4->machine_ == 0)) && (size == pTVar4->size_)) {\n        if (pTVar4->is_big_endian_ == false) {\n          if (!is_big_endian) {\n            p_Var2 = pTVar4->_vptr_Target_selector[3];\n            if (p_Var2 == Target_selector::do_recognize) goto LAB_0018f8e3;\nLAB_0018f922:\n            pTVar3 = (Target *)\n                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (is_big_endian) {\n          p_Var2 = pTVar4->_vptr_Target_selector[3];\n          if (p_Var2 != Target_selector::do_recognize) goto LAB_0018f922;\nLAB_0018f8e3:\n          Once::run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0);\n          pTVar3 = pTVar4->instantiated_target_;\nLAB_0018f8fc:\n          if (pTVar3 != (Target *)0x0) {\n            return pTVar3;\n          }\n        }\n      }\n      ppTVar1 = &pTVar4->next_;\n      pTVar4 = *ppTVar1;\n    }" { (expression_statement "local_20 = (undefined4)((ulonglong)offset >> 0x20);" (assignment_expression "local_20 = (undefined4)((ulonglong)offset >> 0x20)" identifier = (call_expression "(undefined4)((ulonglong)offset >> 0x20)" (parenthesized_expression "(undefined4)" ( identifier )) (argument_list "((ulonglong)offset >> 0x20)" ( (binary_expression "(ulonglong)offset >> 0x20" (cast_expression "(ulonglong)offset" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_24 = (undefined4)offset;" (assignment_expression "local_24 = (undefined4)offset" identifier = (cast_expression "(undefined4)offset" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) (if_statement "if (((machine == pTVar4->machine_) || (pTVar4->machine_ == 0)) && (size == pTVar4->size_)) {\n        if (pTVar4->is_big_endian_ == false) {\n          if (!is_big_endian) {\n            p_Var2 = pTVar4->_vptr_Target_selector[3];\n            if (p_Var2 == Target_selector::do_recognize) goto LAB_0018f8e3;\nLAB_0018f922:\n            pTVar3 = (Target *)\n                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (is_big_endian) {\n          p_Var2 = pTVar4->_vptr_Target_selector[3];\n          if (p_Var2 != Target_selector::do_recognize) goto LAB_0018f922;\nLAB_0018f8e3:\n          Once::run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0);\n          pTVar3 = pTVar4->instantiated_target_;\nLAB_0018f8fc:\n          if (pTVar3 != (Target *)0x0) {\n            return pTVar3;\n          }\n        }\n      }" if (parenthesized_expression "(((machine == pTVar4->machine_) || (pTVar4->machine_ == 0)) && (size == pTVar4->size_))" ( (binary_expression "((machine == pTVar4->machine_) || (pTVar4->machine_ == 0)) && (size == pTVar4->size_)" (parenthesized_expression "((machine == pTVar4->machine_) || (pTVar4->machine_ == 0))" ( (binary_expression "(machine == pTVar4->machine_) || (pTVar4->machine_ == 0)" (parenthesized_expression "(machine == pTVar4->machine_)" ( (binary_expression "machine == pTVar4->machine_" identifier == (field_expression "pTVar4->machine_" identifier -> field_identifier)) )) || (parenthesized_expression "(pTVar4->machine_ == 0)" ( (binary_expression "pTVar4->machine_ == 0" (field_expression "pTVar4->machine_" identifier -> field_identifier) == number_literal) ))) )) && (parenthesized_expression "(size == pTVar4->size_)" ( (binary_expression "size == pTVar4->size_" identifier == (field_expression "pTVar4->size_" identifier -> field_identifier)) ))) )) (compound_statement "{\n        if (pTVar4->is_big_endian_ == false) {\n          if (!is_big_endian) {\n            p_Var2 = pTVar4->_vptr_Target_selector[3];\n            if (p_Var2 == Target_selector::do_recognize) goto LAB_0018f8e3;\nLAB_0018f922:\n            pTVar3 = (Target *)\n                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (is_big_endian) {\n          p_Var2 = pTVar4->_vptr_Target_selector[3];\n          if (p_Var2 != Target_selector::do_recognize) goto LAB_0018f922;\nLAB_0018f8e3:\n          Once::run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0);\n          pTVar3 = pTVar4->instantiated_target_;\nLAB_0018f8fc:\n          if (pTVar3 != (Target *)0x0) {\n            return pTVar3;\n          }\n        }\n      }" { (if_statement "if (pTVar4->is_big_endian_ == false) {\n          if (!is_big_endian) {\n            p_Var2 = pTVar4->_vptr_Target_selector[3];\n            if (p_Var2 == Target_selector::do_recognize) goto LAB_0018f8e3;\nLAB_0018f922:\n            pTVar3 = (Target *)\n                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (is_big_endian) {\n          p_Var2 = pTVar4->_vptr_Target_selector[3];\n          if (p_Var2 != Target_selector::do_recognize) goto LAB_0018f922;\nLAB_0018f8e3:\n          Once::run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0);\n          pTVar3 = pTVar4->instantiated_target_;\nLAB_0018f8fc:\n          if (pTVar3 != (Target *)0x0) {\n            return pTVar3;\n          }\n        }" if (parenthesized_expression "(pTVar4->is_big_endian_ == false)" ( (binary_expression "pTVar4->is_big_endian_ == false" (field_expression "pTVar4->is_big_endian_" identifier -> field_identifier) == false) )) (compound_statement "{\n          if (!is_big_endian) {\n            p_Var2 = pTVar4->_vptr_Target_selector[3];\n            if (p_Var2 == Target_selector::do_recognize) goto LAB_0018f8e3;\nLAB_0018f922:\n            pTVar3 = (Target *)\n                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion);\n            goto LAB_0018f8fc;\n          }\n        }" { (if_statement "if (!is_big_endian) {\n            p_Var2 = pTVar4->_vptr_Target_selector[3];\n            if (p_Var2 == Target_selector::do_recognize) goto LAB_0018f8e3;\nLAB_0018f922:\n            pTVar3 = (Target *)\n                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion);\n            goto LAB_0018f8fc;\n          }" if (parenthesized_expression "(!is_big_endian)" ( (unary_expression "!is_big_endian" ! identifier) )) (compound_statement "{\n            p_Var2 = pTVar4->_vptr_Target_selector[3];\n            if (p_Var2 == Target_selector::do_recognize) goto LAB_0018f8e3;\nLAB_0018f922:\n            pTVar3 = (Target *)\n                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion);\n            goto LAB_0018f8fc;\n          }" { (expression_statement "p_Var2 = pTVar4->_vptr_Target_selector[3];" (assignment_expression "p_Var2 = pTVar4->_vptr_Target_selector[3]" identifier = (subscript_expression "pTVar4->_vptr_Target_selector[3]" (field_expression "pTVar4->_vptr_Target_selector" identifier -> field_identifier) [ number_literal ])) ;) (if_statement "if (p_Var2 == Target_selector::do_recognize) goto LAB_0018f8e3;" if (parenthesized_expression "(p_Var2 == Target_selector::do_recognize)" ( (binary_expression "p_Var2 == Target_selector" identifier == identifier) (ERROR "::do_recognize" : : identifier) )) (goto_statement "goto LAB_0018f8e3;" goto statement_identifier ;)) (labeled_statement "LAB_0018f922:\n            pTVar3 = (Target *)\n                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion);" statement_identifier : (expression_statement "pTVar3 = (Target *)\n                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion);" (assignment_expression "pTVar3 = (Target *)\n                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion)" identifier = (cast_expression "(Target *)\n                     (*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion)" ( (type_descriptor "Target *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*p_Var2)(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion)" (parenthesized_expression "(*p_Var2)" ( (pointer_expression "*p_Var2" * identifier) )) (argument_list "(pTVar4,input_file,local_24,local_20,machine,osabi,abiversion)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))))) ;)) (goto_statement "goto LAB_0018f8fc;" goto statement_identifier ;) })) }) (else_clause "else if (is_big_endian) {\n          p_Var2 = pTVar4->_vptr_Target_selector[3];\n          if (p_Var2 != Target_selector::do_recognize) goto LAB_0018f922;\nLAB_0018f8e3:\n          Once::run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0);\n          pTVar3 = pTVar4->instantiated_target_;\nLAB_0018f8fc:\n          if (pTVar3 != (Target *)0x0) {\n            return pTVar3;\n          }\n        }" else (if_statement "if (is_big_endian) {\n          p_Var2 = pTVar4->_vptr_Target_selector[3];\n          if (p_Var2 != Target_selector::do_recognize) goto LAB_0018f922;\nLAB_0018f8e3:\n          Once::run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0);\n          pTVar3 = pTVar4->instantiated_target_;\nLAB_0018f8fc:\n          if (pTVar3 != (Target *)0x0) {\n            return pTVar3;\n          }\n        }" if (parenthesized_expression "(is_big_endian)" ( identifier )) (compound_statement "{\n          p_Var2 = pTVar4->_vptr_Target_selector[3];\n          if (p_Var2 != Target_selector::do_recognize) goto LAB_0018f922;\nLAB_0018f8e3:\n          Once::run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0);\n          pTVar3 = pTVar4->instantiated_target_;\nLAB_0018f8fc:\n          if (pTVar3 != (Target *)0x0) {\n            return pTVar3;\n          }\n        }" { (expression_statement "p_Var2 = pTVar4->_vptr_Target_selector[3];" (assignment_expression "p_Var2 = pTVar4->_vptr_Target_selector[3]" identifier = (subscript_expression "pTVar4->_vptr_Target_selector[3]" (field_expression "pTVar4->_vptr_Target_selector" identifier -> field_identifier) [ number_literal ])) ;) (if_statement "if (p_Var2 != Target_selector::do_recognize) goto LAB_0018f922;" if (parenthesized_expression "(p_Var2 != Target_selector::do_recognize)" ( (binary_expression "p_Var2 != Target_selector" identifier != identifier) (ERROR "::do_recognize" : : identifier) )) (goto_statement "goto LAB_0018f922;" goto statement_identifier ;)) (labeled_statement "LAB_0018f8e3:\n          Once::run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0);" statement_identifier : (labeled_statement "Once::run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0);" (call_expression "run_once(&(pTVar4->set_target_once_).super_Once,(void *)0x0)" identifier (argument_list "(&(pTVar4->set_target_once_).super_Once,(void *)0x0)" ( (pointer_expression "&(pTVar4->set_target_once_).super_Once" & (field_expression "(pTVar4->set_target_once_).super_Once" (parenthesized_expression "(pTVar4->set_target_once_)" ( (field_expression "pTVar4->set_target_once_" identifier -> field_identifier) )) . field_identifier)) , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;))) (expression_statement "pTVar3 = pTVar4->instantiated_target_;" (assignment_expression "pTVar3 = pTVar4->instantiated_target_" identifier = (field_expression "pTVar4->instantiated_target_" identifier -> field_identifier)) ;) (labeled_statement "LAB_0018f8fc:\n          if (pTVar3 != (Target *)0x0) {\n            return pTVar3;\n          }" statement_identifier : (if_statement "if (pTVar3 != (Target *)0x0) {\n            return pTVar3;\n          }" if (parenthesized_expression "(pTVar3 != (Target *)0x0)" ( (binary_expression "pTVar3 != (Target *)0x0" identifier != (cast_expression "(Target *)0x0" ( (type_descriptor "Target *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            return pTVar3;\n          }" { (return_statement "return pTVar3;" return identifier ;) }))) })))) })) (expression_statement "ppTVar1 = &pTVar4->next_;" (assignment_expression "ppTVar1 = &pTVar4->next_" identifier = (pointer_expression "&pTVar4->next_" & (field_expression "pTVar4->next_" identifier -> field_identifier))) ;) (expression_statement "pTVar4 = *ppTVar1;" (assignment_expression "pTVar4 = *ppTVar1" identifier = (pointer_expression "*ppTVar1" * identifier)) ;) }) while (parenthesized_expression "(*ppTVar1 != (Target_selector *)0x0)" ( (binary_expression "*ppTVar1 != (Target_selector *)0x0" (pointer_expression "*ppTVar1" * identifier) != (cast_expression "(Target_selector *)0x0" ( (type_descriptor "Target_selector *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return (Target *)0x0;" return (cast_expression "(Target *)0x0" ( (type_descriptor "Target *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "int FUN_0018f860(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                char param_6,undefined4 param_7,undefined4 param_8)\n\n{\n  int *piVar1;\n  code *pcVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_00396258;\n  if (DAT_00396258 != (int *)0x0) {\n    do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_0018f860(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                char param_6,undefined4 param_7,undefined4 param_8)\n\n{\n  int *piVar1;\n  code *pcVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_00396258;\n  if (DAT_00396258 != (int *)0x0) {\n    do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0018f860(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                char param_6,undefined4 param_7,undefined4 param_8)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                char param_6,undefined4 param_7,undefined4 param_8)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "char param_6" primitive_type identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  code *pcVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_00396258;\n  if (DAT_00396258 != (int *)0x0) {\n    do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = DAT_00396258;" (assignment_expression "piVar4 = DAT_00396258" identifier = identifier) ;) (if_statement "if (DAT_00396258 != (int *)0x0) {\n    do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);\n  }" if (parenthesized_expression "(DAT_00396258 != (int *)0x0)" ( (binary_expression "DAT_00396258 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);\n  }" { (do_statement "do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);" do (compound_statement "{\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    }" { (if_statement "if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }" if (parenthesized_expression "(((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2]))" ( (binary_expression "((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])" (parenthesized_expression "((param_4 == piVar4[1]) || (piVar4[1] == 0))" ( (binary_expression "(param_4 == piVar4[1]) || (piVar4[1] == 0)" (parenthesized_expression "(param_4 == piVar4[1])" ( (binary_expression "param_4 == piVar4[1]" identifier == (subscript_expression "piVar4[1]" identifier [ number_literal ])) )) || (parenthesized_expression "(piVar4[1] == 0)" ( (binary_expression "piVar4[1] == 0" (subscript_expression "piVar4[1]" identifier [ number_literal ]) == number_literal) ))) )) && (parenthesized_expression "(param_5 == piVar4[2])" ( (binary_expression "param_5 == piVar4[2]" identifier == (subscript_expression "piVar4[2]" identifier [ number_literal ])) ))) )) (compound_statement "{\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }" { (if_statement "if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }" if (parenthesized_expression "((char)piVar4[3] == '\0')" ( (binary_expression "(char)piVar4[3] == '\0'" (cast_expression "(char)piVar4[3]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "piVar4[3]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }" { (if_statement "if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }" if (parenthesized_expression "(param_6 == '\0')" ( (binary_expression "param_6 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }" { (expression_statement "pcVar2 = *(code **)(*piVar4 + 0xc);" (assignment_expression "pcVar2 = *(code **)(*piVar4 + 0xc)" identifier = (pointer_expression "*(code **)(*piVar4 + 0xc)" * (cast_expression "(code **)(*piVar4 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0xc)" ( (binary_expression "*piVar4 + 0xc" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) ;) (if_statement "if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;" if (parenthesized_expression "(pcVar2 == FUN_0018fd10)" ( (binary_expression "pcVar2 == FUN_0018fd10" identifier == identifier) )) (goto_statement "goto LAB_0018f8e3;" goto statement_identifier ;)) (labeled_statement "LAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);" statement_identifier : (expression_statement "iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);" (assignment_expression "iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8)" identifier = (call_expression "(*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8)" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "(piVar4,param_1,param_2,param_3,param_4,param_7,param_8)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;)) (goto_statement "goto LAB_0018f8fc;" goto statement_identifier ;) })) }) (else_clause "else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }" else (if_statement "if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }" if (parenthesized_expression "(param_6 != '\0')" ( (binary_expression "param_6 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }" { (expression_statement "pcVar2 = *(code **)(*piVar4 + 0xc);" (assignment_expression "pcVar2 = *(code **)(*piVar4 + 0xc)" identifier = (pointer_expression "*(code **)(*piVar4 + 0xc)" * (cast_expression "(code **)(*piVar4 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0xc)" ( (binary_expression "*piVar4 + 0xc" (pointer_expression "*piVar4" * identifier) + number_literal) ))))) ;) (if_statement "if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;" if (parenthesized_expression "(pcVar2 != FUN_0018fd10)" ( (binary_expression "pcVar2 != FUN_0018fd10" identifier != identifier) )) (goto_statement "goto LAB_0018f922;" goto statement_identifier ;)) (labeled_statement "LAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);" statement_identifier : (expression_statement "FUN_0006cdc0(piVar4 + 8,0);" (call_expression "FUN_0006cdc0(piVar4 + 8,0)" identifier (argument_list "(piVar4 + 8,0)" ( (binary_expression "piVar4 + 8" identifier + number_literal) , number_literal ))) ;)) (expression_statement "iVar3 = piVar4[7];" (assignment_expression "iVar3 = piVar4[7]" identifier = (subscript_expression "piVar4[7]" identifier [ number_literal ])) ;) (labeled_statement "LAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }" statement_identifier : (if_statement "if (iVar3 != 0) {\n            return iVar3;\n          }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n            return iVar3;\n          }" { (return_statement "return iVar3;" return identifier ;) }))) })))) })) (expression_statement "piVar1 = piVar4 + 6;" (assignment_expression "piVar1 = piVar4 + 6" identifier = (binary_expression "piVar4 + 6" identifier + number_literal)) ;) (expression_statement "piVar4 = (int *)*piVar1;" (assignment_expression "piVar4 = (int *)*piVar1" identifier = (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;) }) while (parenthesized_expression "((int *)*piVar1 != (int *)0x0)" ( (binary_expression "(int *)*piVar1 != (int *)0x0" (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier)) != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (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 IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (subscript_expression IDENT [ LIT ])) )) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) && (parenthesized_expression ( (binary_expression IDENT == (subscript_expression IDENT [ LIT ])) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT )))) ;)) (goto_statement goto statement_identifier ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT ))) ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) }))) })))) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_0018f860(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                char param_6,undefined4 param_7,undefined4 param_8)\n\n{\n  int *piVar1;\n  code *pcVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_00396258;\n  if (DAT_00396258 != (int *)0x0) {\n    do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_0018f860(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                char param_6,undefined4 param_7,undefined4 param_8)" (identifier "FUN_0018f860") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,\n                char param_6,undefined4 param_7,undefined4 param_8)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "char param_6" (primitive_type "char") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 param_8" (type_identifier "undefined4") (identifier "param_8")) () ")"))) (compound_statement "{\n  int *piVar1;\n  code *pcVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = DAT_00396258;\n  if (DAT_00396258 != (int *)0x0) {\n    do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);\n  }\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "code *pcVar2;" (type_identifier "code") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (expression_statement "piVar4 = DAT_00396258;" (assignment_expression "piVar4 = DAT_00396258" (identifier "piVar4") (= "=") (identifier "DAT_00396258")) (; ";")) (if_statement "if (DAT_00396258 != (int *)0x0) {\n    do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);\n  }" (if "if") (parenthesized_expression "(DAT_00396258 != (int *)0x0)" (( "(") (binary_expression "DAT_00396258 != (int *)0x0" (identifier "DAT_00396258") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);\n  }" ({ "{") (do_statement "do {\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    } while ((int *)*piVar1 != (int *)0x0);" (do "do") (compound_statement "{\n      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }\n      piVar1 = piVar4 + 6;\n      piVar4 = (int *)*piVar1;\n    }" ({ "{") (if_statement "if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2]))" (( "(") (binary_expression "((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])" (parenthesized_expression "((param_4 == piVar4[1]) || (piVar4[1] == 0))" (( "(") (binary_expression "(param_4 == piVar4[1]) || (piVar4[1] == 0)" (parenthesized_expression "(param_4 == piVar4[1])" (( "(") (binary_expression "param_4 == piVar4[1]" (identifier "param_4") (== "==") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]"))) () ")")) (|| "||") (parenthesized_expression "(piVar4[1] == 0)" (( "(") (binary_expression "piVar4[1] == 0" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_5 == piVar4[2])" (( "(") (binary_expression "param_5 == piVar4[2]" (identifier "param_5") (== "==") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]"))) () ")"))) () ")")) (compound_statement "{\n        if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }\n      }" ({ "{") (if_statement "if ((char)piVar4[3] == '\0') {\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }\n        else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }" (if "if") (parenthesized_expression "((char)piVar4[3] == '\0')" (( "(") (binary_expression "(char)piVar4[3] == '\0'" (cast_expression "(char)piVar4[3]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "piVar4[3]" (identifier "piVar4") ([ "[") (number_literal "3") (] "]"))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }\n        }" ({ "{") (if_statement "if (param_6 == '\0') {\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }" (if "if") (parenthesized_expression "(param_6 == '\0')" (( "(") (binary_expression "param_6 == '\0'" (identifier "param_6") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n            pcVar2 = *(code **)(*piVar4 + 0xc);\n            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;\nLAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);\n            goto LAB_0018f8fc;\n          }" ({ "{") (expression_statement "pcVar2 = *(code **)(*piVar4 + 0xc);" (assignment_expression "pcVar2 = *(code **)(*piVar4 + 0xc)" (identifier "pcVar2") (= "=") (pointer_expression "*(code **)(*piVar4 + 0xc)" (* "*") (cast_expression "(code **)(*piVar4 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 0xc)" (( "(") (binary_expression "*piVar4 + 0xc" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;" (if "if") (parenthesized_expression "(pcVar2 == FUN_0018fd10)" (( "(") (binary_expression "pcVar2 == FUN_0018fd10" (identifier "pcVar2") (== "==") (identifier "FUN_0018fd10")) () ")")) (goto_statement "goto LAB_0018f8e3;" (goto "goto") (statement_identifier "LAB_0018f8e3") (; ";"))) (labeled_statement "LAB_0018f922:\n            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);" (statement_identifier "LAB_0018f922") (: ":") (expression_statement "iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);" (assignment_expression "iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8)" (identifier "iVar3") (= "=") (call_expression "(*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8)" (parenthesized_expression "(*pcVar2)" (( "(") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) () ")")) (argument_list "(piVar4,param_1,param_2,param_3,param_4,param_7,param_8)" (( "(") (identifier "piVar4") (, ",") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_7") (, ",") (identifier "param_8") () ")")))) (; ";"))) (goto_statement "goto LAB_0018f8fc;" (goto "goto") (statement_identifier "LAB_0018f8fc") (; ";")) (} "}"))) (} "}")) (else_clause "else if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }" (else "else") (if_statement "if (param_6 != '\0') {\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }" (if "if") (parenthesized_expression "(param_6 != '\0')" (( "(") (binary_expression "param_6 != '\0'" (identifier "param_6") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          pcVar2 = *(code **)(*piVar4 + 0xc);\n          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;\nLAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);\n          iVar3 = piVar4[7];\nLAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }\n        }" ({ "{") (expression_statement "pcVar2 = *(code **)(*piVar4 + 0xc);" (assignment_expression "pcVar2 = *(code **)(*piVar4 + 0xc)" (identifier "pcVar2") (= "=") (pointer_expression "*(code **)(*piVar4 + 0xc)" (* "*") (cast_expression "(code **)(*piVar4 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 0xc)" (( "(") (binary_expression "*piVar4 + 0xc" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;" (if "if") (parenthesized_expression "(pcVar2 != FUN_0018fd10)" (( "(") (binary_expression "pcVar2 != FUN_0018fd10" (identifier "pcVar2") (!= "!=") (identifier "FUN_0018fd10")) () ")")) (goto_statement "goto LAB_0018f922;" (goto "goto") (statement_identifier "LAB_0018f922") (; ";"))) (labeled_statement "LAB_0018f8e3:\n          FUN_0006cdc0(piVar4 + 8,0);" (statement_identifier "LAB_0018f8e3") (: ":") (expression_statement "FUN_0006cdc0(piVar4 + 8,0);" (call_expression "FUN_0006cdc0(piVar4 + 8,0)" (identifier "FUN_0006cdc0") (argument_list "(piVar4 + 8,0)" (( "(") (binary_expression "piVar4 + 8" (identifier "piVar4") (+ "+") (number_literal "8")) (, ",") (number_literal "0") () ")"))) (; ";"))) (expression_statement "iVar3 = piVar4[7];" (assignment_expression "iVar3 = piVar4[7]" (identifier "iVar3") (= "=") (subscript_expression "piVar4[7]" (identifier "piVar4") ([ "[") (number_literal "7") (] "]"))) (; ";")) (labeled_statement "LAB_0018f8fc:\n          if (iVar3 != 0) {\n            return iVar3;\n          }" (statement_identifier "LAB_0018f8fc") (: ":") (if_statement "if (iVar3 != 0) {\n            return iVar3;\n          }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            return iVar3;\n          }" ({ "{") (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))) (} "}"))))) (} "}"))) (expression_statement "piVar1 = piVar4 + 6;" (assignment_expression "piVar1 = piVar4 + 6" (identifier "piVar1") (= "=") (binary_expression "piVar4 + 6" (identifier "piVar4") (+ "+") (number_literal "6"))) (; ";")) (expression_statement "piVar4 = (int *)*piVar1;" (assignment_expression "piVar4 = (int *)*piVar1" (identifier "piVar4") (= "=") (cast_expression "(int *)*piVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int *)*piVar1 != (int *)0x0)" (( "(") (binary_expression "(int *)*piVar1 != (int *)0x0" (cast_expression "(int *)*piVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (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_3 * gold::select_target(Input_file *input_file,off_t offset,int var_1,int var_2,
                            bool is_big_endian,int osabi,int abiversion)

{
  type_1 **ppTVar1;
  type_2 *var_3;
  type_3 *var_5;
  type_1 *pTVar4;
  type_4 local_24;
  type_4 local_20;
  
  pTVar4 = anon_unknown.dwarf_14fdad2::target_selectors;
  if (anon_unknown.dwarf_14fdad2::target_selectors != (type_1 *)0x0) {
    do {
      local_20 = (type_4)((type_5)offset >> 0x20);
      local_24 = (type_4)offset;
      if (((var_1 == pTVar4->machine_) || (pTVar4->machine_ == 0)) && (var_2 == pTVar4->size_)) {
        if (pTVar4->is_big_endian_ == false) {
          if (!is_big_endian) {
            var_3 = pTVar4->_vptr_Target_selector[3];
            if (var_3 == type_1::do_recognize) goto LAB_0018f8e3;
LAB_0018f922:
            var_5 = (type_3 *)
                     (*var_3)(pTVar4,input_file,local_24,local_20,var_1,osabi,abiversion);
            goto LAB_0018f8fc;
          }
        }
        else if (is_big_endian) {
          var_3 = pTVar4->_vptr_Target_selector[3];
          if (var_3 != type_1::do_recognize) goto LAB_0018f922;
LAB_0018f8e3:
          Once::var_4(&(pTVar4->set_target_once_).super_Once,(void *)0x0);
          var_5 = pTVar4->instantiated_target_;
LAB_0018f8fc:
          if (var_5 != (type_3 *)0x0) {
            return var_5;
          }
        }
      }
      ppTVar1 = &pTVar4->next_;
      pTVar4 = *ppTVar1;
    } while (*ppTVar1 != (type_1 *)0x0);
  }
  return (type_3 *)0x0;
}


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

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

int MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5,
                char param_6,undefined4 param_7,undefined4 param_8)

{
  int *piVar1;
  code *pcVar2;
  int iVar3;
  int *piVar4;
  
  piVar4 = DAT_00396258;
  if (DAT_00396258 != (int *)0x0) {
    do {
      if (((param_4 == piVar4[1]) || (piVar4[1] == 0)) && (param_5 == piVar4[2])) {
        if ((char)piVar4[3] == '\0') {
          if (param_6 == '\0') {
            pcVar2 = *(code **)(*piVar4 + 0xc);
            if (pcVar2 == FUN_0018fd10) goto LAB_0018f8e3;
LAB_0018f922:
            iVar3 = (*pcVar2)(piVar4,param_1,param_2,param_3,param_4,param_7,param_8);
            goto LAB_0018f8fc;
          }
        }
        else if (param_6 != '\0') {
          pcVar2 = *(code **)(*piVar4 + 0xc);
          if (pcVar2 != FUN_0018fd10) goto LAB_0018f922;
LAB_0018f8e3:
          FUN_0006cdc0(piVar4 + 8,0);
          iVar3 = piVar4[7];
LAB_0018f8fc:
          if (iVar3 != 0) {
            return iVar3;
          }
        }
      }
      piVar1 = piVar4 + 6;
      piVar4 = (int *)*piVar1;
    } while ((int *)*piVar1 != (int *)0x0);
  }
  return 0;
}

