
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: uint get_entry_offset(Output_data_dynamic * this, DT tag) */

uint __thiscall gold::Output_data_dynamic::get_entry_offset(Output_data_dynamic *this,DT tag)

{
}



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

int FUN_0015c4a0(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  if (*(int *)(DAT_004144e8 + 0xc) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_000da200("../../gold/parameters.h",0x69,"target",0);
  }
  iVar4 = **(int **)(*(int *)(DAT_004144e8 + 0xc) + 4);
  if (iVar4 == 0x20) {
    iVar4 = 8;
  }
  else {
    if (iVar4 != 0x40) {
                    /* WARNING: Subroutine does not return */
      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);
    }
    iVar4 = 0x10;
  }
  iVar1 = *(int *)(param_1 + 0x2c);
  iVar3 = *(int *)(param_1 + 0x30) - iVar1 >> 4;
  if (iVar3 != 0) {
    iVar2 = 0;
    if (param_2 == *(int *)(iVar1 + 8)) {
      return 0;
    }
    while (iVar2 = iVar2 + 1, iVar2 != iVar3) {
      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {
        return iVar2 * iVar4;
      }
    }
  }
  return -1;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x10]
CALL 0x0003a210
ADD EBX,0x2b7b54
MOV ESI,dword ptr [ESP + 0x14]
LEA EDX,[EBX + 0x4e8]
MOV EDX,dword ptr [EDX]
MOV EDX,dword ptr [EDX + 0xc]
TEST EDX,EDX
JZ 0x0015c540
MOV EDX,dword ptr [EDX + 0x4]
MOV EDX,dword ptr [EDX]
CMP EDX,0x20
JZ 0x0015c520
CMP EDX,0x40
JNZ 0x0015c527
MOV EDI,0x10
MOV EBX,dword ptr [EAX + 0x2c]
MOV ECX,dword ptr [EAX + 0x30]
SUB ECX,EBX
SAR ECX,0x4
JZ 0x0015c502
XOR EAX,EAX
CMP ESI,dword ptr [EBX + 0x8]
JNZ 0x0015c4fb
JMP 0x0015c507
MOV EDX,EAX
SHL EDX,0x4
CMP ESI,dword ptr [EBX + EDX*0x1 + 0x8]
JZ 0x0015c510
ADD EAX,0x1
CMP EAX,ECX
JNZ 0x0015c4f0
MOV EAX,0xffffffff
POP EBX
POP ESI
POP EDI
RET
IMUL EAX,EDI
POP EBX
POP ESI
POP EDI
RET
MOV EDI,0x8
JMP 0x0015c4d9
PUSH EAX
LEA EAX,[EBX + 0xffef2e44]
PUSH EAX
LEA EAX,[EBX + 0xffef118b]
PUSH 0x775
PUSH EAX
CALL 0x000da200
LEA EAX,[EBX + 0xffef3164]
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xffece26d]
PUSH 0x69
PUSH EAX
CALL 0x000da200
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0015c4a0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(DAT_004144e8 + 0xc) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/parameters.h",0x69,"target",0);\n  }\n  iVar4 = **(int **)(*(int *)(DAT_004144e8 + 0xc) + 4);\n  if (iVar4 == 0x20) {\n    iVar4 = 8;\n  }\n  else {\n    if (iVar4 != 0x40) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }\n  iVar1 = *(int *)(param_1 + 0x2c);\n  iVar3 = *(int *)(param_1 + 0x30) - iVar1 >> 4;\n  if (iVar3 != 0) {\n    iVar2 = 0;\n    if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }\n    while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }\n  }\n  return -1;\n}\n\n" comment (function_definition "int FUN_0015c4a0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(DAT_004144e8 + 0xc) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/parameters.h",0x69,"target",0);\n  }\n  iVar4 = **(int **)(*(int *)(DAT_004144e8 + 0xc) + 4);\n  if (iVar4 == 0x20) {\n    iVar4 = 8;\n  }\n  else {\n    if (iVar4 != 0x40) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }\n  iVar1 = *(int *)(param_1 + 0x2c);\n  iVar3 = *(int *)(param_1 + 0x30) - iVar1 >> 4;\n  if (iVar3 != 0) {\n    iVar2 = 0;\n    if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }\n    while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }\n  }\n  return -1;\n}" primitive_type (function_declarator "FUN_0015c4a0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(DAT_004144e8 + 0xc) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/parameters.h",0x69,"target",0);\n  }\n  iVar4 = **(int **)(*(int *)(DAT_004144e8 + 0xc) + 4);\n  if (iVar4 == 0x20) {\n    iVar4 = 8;\n  }\n  else {\n    if (iVar4 != 0x40) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }\n  iVar1 = *(int *)(param_1 + 0x2c);\n  iVar3 = *(int *)(param_1 + 0x30) - iVar1 >> 4;\n  if (iVar3 != 0) {\n    iVar2 = 0;\n    if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }\n    while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (*(int *)(DAT_004144e8 + 0xc) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/parameters.h",0x69,"target",0);\n  }" if (parenthesized_expression "(*(int *)(DAT_004144e8 + 0xc) == 0)" ( (binary_expression "*(int *)(DAT_004144e8 + 0xc) == 0" (pointer_expression "*(int *)(DAT_004144e8 + 0xc)" * (cast_expression "(int *)(DAT_004144e8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_004144e8 + 0xc)" ( (binary_expression "DAT_004144e8 + 0xc" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_000da200("../../gold/parameters.h",0x69,"target",0);\n  }" { comment (expression_statement "FUN_000da200("../../gold/parameters.h",0x69,"target",0);" (call_expression "FUN_000da200("../../gold/parameters.h",0x69,"target",0)" identifier (argument_list "("../../gold/parameters.h",0x69,"target",0)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar4 = **(int **)(*(int *)(DAT_004144e8 + 0xc) + 4);" (assignment_expression "iVar4 = **(int **)(*(int *)(DAT_004144e8 + 0xc) + 4)" identifier = (pointer_expression "**(int **)(*(int *)(DAT_004144e8 + 0xc) + 4)" * (pointer_expression "*(int **)(*(int *)(DAT_004144e8 + 0xc) + 4)" * (cast_expression "(int **)(*(int *)(DAT_004144e8 + 0xc) + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_004144e8 + 0xc) + 4)" ( (binary_expression "*(int *)(DAT_004144e8 + 0xc) + 4" (pointer_expression "*(int *)(DAT_004144e8 + 0xc)" * (cast_expression "(int *)(DAT_004144e8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_004144e8 + 0xc)" ( (binary_expression "DAT_004144e8 + 0xc" identifier + number_literal) )))) + number_literal) )))))) ;) (if_statement "if (iVar4 == 0x20) {\n    iVar4 = 8;\n  }\n  else {\n    if (iVar4 != 0x40) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }" if (parenthesized_expression "(iVar4 == 0x20)" ( (binary_expression "iVar4 == 0x20" identifier == number_literal) )) (compound_statement "{\n    iVar4 = 8;\n  }" { (expression_statement "iVar4 = 8;" (assignment_expression "iVar4 = 8" identifier = number_literal) ;) }) (else_clause "else {\n    if (iVar4 != 0x40) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }" else (compound_statement "{\n    if (iVar4 != 0x40) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }" { (if_statement "if (iVar4 != 0x40) {\n                    /* WARNING: Subroutine does not return */\n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }" if (parenthesized_expression "(iVar4 != 0x40)" ( (binary_expression "iVar4 != 0x40" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }" { comment (expression_statement "FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);" (call_expression "FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1)" identifier (argument_list "("../../gold/output.cc",0x775,"get_entry_offset",param_1)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""get_entry_offset"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar4 = 0x10;" (assignment_expression "iVar4 = 0x10" identifier = number_literal) ;) }))) (expression_statement "iVar1 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x2c)" identifier = (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x30) - iVar1 >> 4;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x30) - iVar1 >> 4" identifier = (binary_expression "*(int *)(param_1 + 0x30) - iVar1 >> 4" (binary_expression "*(int *)(param_1 + 0x30) - iVar1" (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) - identifier) >> number_literal)) ;) (if_statement "if (iVar3 != 0) {\n    iVar2 = 0;\n    if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }\n    while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }\n    while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }" if (parenthesized_expression "(param_2 == *(int *)(iVar1 + 8))" ( (binary_expression "param_2 == *(int *)(iVar1 + 8)" identifier == (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (while_statement "while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }" while (parenthesized_expression "(iVar2 = iVar2 + 1, iVar2 != iVar3)" ( (comma_expression "iVar2 = iVar2 + 1, iVar2 != iVar3" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) , (binary_expression "iVar2 != iVar3" identifier != identifier)) )) (compound_statement "{\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }" { (if_statement "if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }" if (parenthesized_expression "(param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10))" ( (binary_expression "param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)" identifier == (pointer_expression "*(int *)(iVar1 + 8 + iVar2 * 0x10)" * (cast_expression "(int *)(iVar1 + 8 + iVar2 * 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8 + iVar2 * 0x10)" ( (binary_expression "iVar1 + 8 + iVar2 * 0x10" (binary_expression "iVar1 + 8" identifier + number_literal) + (binary_expression "iVar2 * 0x10" identifier * number_literal)) ))))) )) (compound_statement "{\n        return iVar2 * iVar4;\n      }" { (return_statement "return iVar2 * iVar4;" return (binary_expression "iVar2 * iVar4" identifier * identifier) ;) })) })) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: uint get_entry_offset(Output_data_dynamic * this, DT tag) */\n\nuint __thiscall gold::Output_data_dynamic::get_entry_offset(Output_data_dynamic *this,DT tag)\n\n{\n}\n\n" comment comment comment (function_definition "uint __thiscall gold::Output_data_dynamic::get_entry_offset(Output_data_dynamic *this,DT tag)\n\n{\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_data_dynamic::" identifier : : identifier : :) (function_declarator "get_entry_offset(Output_data_dynamic *this,DT tag)" identifier (parameter_list "(Output_data_dynamic *this,DT tag)" ( (parameter_declaration "Output_data_dynamic *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "DT tag" type_identifier identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "int FUN_0015c4a0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(DAT_004144e8 + 0xc) == 0) {\n                    \n    FUN_000da200("../../gold/parameters.h",0x69,"target",0);\n  }\n  iVar4 = **(int **)(*(int *)(DAT_004144e8 + 0xc) + 4);\n  if (iVar4 == 0x20) {\n    iVar4 = 8;\n  }\n  else {\n    if (iVar4 != 0x40) {\n                    \n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }\n  iVar1 = *(int *)(param_1 + 0x2c);\n  iVar3 = *(int *)(param_1 + 0x30) - iVar1 >> 4;\n  if (iVar3 != 0) {\n    iVar2 = 0;\n    if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }\n    while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }\n  }\n  return -1;\n}\n\n" (function_definition "int FUN_0015c4a0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(DAT_004144e8 + 0xc) == 0) {\n                    \n    FUN_000da200("../../gold/parameters.h",0x69,"target",0);\n  }\n  iVar4 = **(int **)(*(int *)(DAT_004144e8 + 0xc) + 4);\n  if (iVar4 == 0x20) {\n    iVar4 = 8;\n  }\n  else {\n    if (iVar4 != 0x40) {\n                    \n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }\n  iVar1 = *(int *)(param_1 + 0x2c);\n  iVar3 = *(int *)(param_1 + 0x30) - iVar1 >> 4;\n  if (iVar3 != 0) {\n    iVar2 = 0;\n    if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }\n    while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }\n  }\n  return -1;\n}" primitive_type (function_declarator "FUN_0015c4a0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(DAT_004144e8 + 0xc) == 0) {\n                    \n    FUN_000da200("../../gold/parameters.h",0x69,"target",0);\n  }\n  iVar4 = **(int **)(*(int *)(DAT_004144e8 + 0xc) + 4);\n  if (iVar4 == 0x20) {\n    iVar4 = 8;\n  }\n  else {\n    if (iVar4 != 0x40) {\n                    \n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }\n  iVar1 = *(int *)(param_1 + 0x2c);\n  iVar3 = *(int *)(param_1 + 0x30) - iVar1 >> 4;\n  if (iVar3 != 0) {\n    iVar2 = 0;\n    if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }\n    while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }\n  }\n  return -1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (*(int *)(DAT_004144e8 + 0xc) == 0) {\n                    \n    FUN_000da200("../../gold/parameters.h",0x69,"target",0);\n  }" if (parenthesized_expression "(*(int *)(DAT_004144e8 + 0xc) == 0)" ( (binary_expression "*(int *)(DAT_004144e8 + 0xc) == 0" (pointer_expression "*(int *)(DAT_004144e8 + 0xc)" * (cast_expression "(int *)(DAT_004144e8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_004144e8 + 0xc)" ( (binary_expression "DAT_004144e8 + 0xc" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    FUN_000da200("../../gold/parameters.h",0x69,"target",0);\n  }" { (expression_statement "FUN_000da200("../../gold/parameters.h",0x69,"target",0);" (call_expression "FUN_000da200("../../gold/parameters.h",0x69,"target",0)" identifier (argument_list "("../../gold/parameters.h",0x69,"target",0)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar4 = **(int **)(*(int *)(DAT_004144e8 + 0xc) + 4);" (assignment_expression "iVar4 = **(int **)(*(int *)(DAT_004144e8 + 0xc) + 4)" identifier = (pointer_expression "**(int **)(*(int *)(DAT_004144e8 + 0xc) + 4)" * (pointer_expression "*(int **)(*(int *)(DAT_004144e8 + 0xc) + 4)" * (cast_expression "(int **)(*(int *)(DAT_004144e8 + 0xc) + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_004144e8 + 0xc) + 4)" ( (binary_expression "*(int *)(DAT_004144e8 + 0xc) + 4" (pointer_expression "*(int *)(DAT_004144e8 + 0xc)" * (cast_expression "(int *)(DAT_004144e8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_004144e8 + 0xc)" ( (binary_expression "DAT_004144e8 + 0xc" identifier + number_literal) )))) + number_literal) )))))) ;) (if_statement "if (iVar4 == 0x20) {\n    iVar4 = 8;\n  }\n  else {\n    if (iVar4 != 0x40) {\n                    \n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }" if (parenthesized_expression "(iVar4 == 0x20)" ( (binary_expression "iVar4 == 0x20" identifier == number_literal) )) (compound_statement "{\n    iVar4 = 8;\n  }" { (expression_statement "iVar4 = 8;" (assignment_expression "iVar4 = 8" identifier = number_literal) ;) }) (else_clause "else {\n    if (iVar4 != 0x40) {\n                    \n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }" else (compound_statement "{\n    if (iVar4 != 0x40) {\n                    \n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }" { (if_statement "if (iVar4 != 0x40) {\n                    \n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }" if (parenthesized_expression "(iVar4 != 0x40)" ( (binary_expression "iVar4 != 0x40" identifier != number_literal) )) (compound_statement "{\n                    \n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }" { (expression_statement "FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);" (call_expression "FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1)" identifier (argument_list "("../../gold/output.cc",0x775,"get_entry_offset",param_1)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""get_entry_offset"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar4 = 0x10;" (assignment_expression "iVar4 = 0x10" identifier = number_literal) ;) }))) (expression_statement "iVar1 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x2c)" identifier = (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x30) - iVar1 >> 4;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x30) - iVar1 >> 4" identifier = (binary_expression "*(int *)(param_1 + 0x30) - iVar1 >> 4" (binary_expression "*(int *)(param_1 + 0x30) - iVar1" (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) - identifier) >> number_literal)) ;) (if_statement "if (iVar3 != 0) {\n    iVar2 = 0;\n    if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }\n    while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }\n    while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }" if (parenthesized_expression "(param_2 == *(int *)(iVar1 + 8))" ( (binary_expression "param_2 == *(int *)(iVar1 + 8)" identifier == (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (while_statement "while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }" while (parenthesized_expression "(iVar2 = iVar2 + 1, iVar2 != iVar3)" ( (comma_expression "iVar2 = iVar2 + 1, iVar2 != iVar3" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) , (binary_expression "iVar2 != iVar3" identifier != identifier)) )) (compound_statement "{\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }" { (if_statement "if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }" if (parenthesized_expression "(param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10))" ( (binary_expression "param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)" identifier == (pointer_expression "*(int *)(iVar1 + 8 + iVar2 * 0x10)" * (cast_expression "(int *)(iVar1 + 8 + iVar2 * 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8 + iVar2 * 0x10)" ( (binary_expression "iVar1 + 8 + iVar2 * 0x10" (binary_expression "iVar1 + 8" identifier + number_literal) + (binary_expression "iVar2 * 0x10" identifier * number_literal)) ))))) )) (compound_statement "{\n        return iVar2 * iVar4;\n      }" { (return_statement "return iVar2 * iVar4;" return (binary_expression "iVar2 * iVar4" identifier * identifier) ;) })) })) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return LIT ;) })) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT != IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) )) (compound_statement { (return_statement return (binary_expression IDENT * IDENT) ;) })) })) })) (return_statement return LIT ;) })))
(function_definition "int FUN_0015c4a0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(DAT_004144e8 + 0xc) == 0) {\n                    \n    FUN_000da200("../../gold/parameters.h",0x69,"target",0);\n  }\n  iVar4 = **(int **)(*(int *)(DAT_004144e8 + 0xc) + 4);\n  if (iVar4 == 0x20) {\n    iVar4 = 8;\n  }\n  else {\n    if (iVar4 != 0x40) {\n                    \n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }\n  iVar1 = *(int *)(param_1 + 0x2c);\n  iVar3 = *(int *)(param_1 + 0x30) - iVar1 >> 4;\n  if (iVar3 != 0) {\n    iVar2 = 0;\n    if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }\n    while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }\n  }\n  return -1;\n}" (primitive_type "int") (function_declarator "FUN_0015c4a0(int param_1,int param_2)" (identifier "FUN_0015c4a0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (*(int *)(DAT_004144e8 + 0xc) == 0) {\n                    \n    FUN_000da200("../../gold/parameters.h",0x69,"target",0);\n  }\n  iVar4 = **(int **)(*(int *)(DAT_004144e8 + 0xc) + 4);\n  if (iVar4 == 0x20) {\n    iVar4 = 8;\n  }\n  else {\n    if (iVar4 != 0x40) {\n                    \n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }\n  iVar1 = *(int *)(param_1 + 0x2c);\n  iVar3 = *(int *)(param_1 + 0x30) - iVar1 >> 4;\n  if (iVar3 != 0) {\n    iVar2 = 0;\n    if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }\n    while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }\n  }\n  return -1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (if_statement "if (*(int *)(DAT_004144e8 + 0xc) == 0) {\n                    \n    FUN_000da200("../../gold/parameters.h",0x69,"target",0);\n  }" (if "if") (parenthesized_expression "(*(int *)(DAT_004144e8 + 0xc) == 0)" (( "(") (binary_expression "*(int *)(DAT_004144e8 + 0xc) == 0" (pointer_expression "*(int *)(DAT_004144e8 + 0xc)" (* "*") (cast_expression "(int *)(DAT_004144e8 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_004144e8 + 0xc)" (( "(") (binary_expression "DAT_004144e8 + 0xc" (identifier "DAT_004144e8") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_000da200("../../gold/parameters.h",0x69,"target",0);\n  }" ({ "{") (expression_statement "FUN_000da200("../../gold/parameters.h",0x69,"target",0);" (call_expression "FUN_000da200("../../gold/parameters.h",0x69,"target",0)" (identifier "FUN_000da200") (argument_list "("../../gold/parameters.h",0x69,"target",0)" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x69") (, ",") (string_literal ""target"" (" """) (string_content "target") (" """)) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = **(int **)(*(int *)(DAT_004144e8 + 0xc) + 4);" (assignment_expression "iVar4 = **(int **)(*(int *)(DAT_004144e8 + 0xc) + 4)" (identifier "iVar4") (= "=") (pointer_expression "**(int **)(*(int *)(DAT_004144e8 + 0xc) + 4)" (* "*") (pointer_expression "*(int **)(*(int *)(DAT_004144e8 + 0xc) + 4)" (* "*") (cast_expression "(int **)(*(int *)(DAT_004144e8 + 0xc) + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(DAT_004144e8 + 0xc) + 4)" (( "(") (binary_expression "*(int *)(DAT_004144e8 + 0xc) + 4" (pointer_expression "*(int *)(DAT_004144e8 + 0xc)" (* "*") (cast_expression "(int *)(DAT_004144e8 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_004144e8 + 0xc)" (( "(") (binary_expression "DAT_004144e8 + 0xc" (identifier "DAT_004144e8") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "4")) () ")")))))) (; ";")) (if_statement "if (iVar4 == 0x20) {\n    iVar4 = 8;\n  }\n  else {\n    if (iVar4 != 0x40) {\n                    \n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }" (if "if") (parenthesized_expression "(iVar4 == 0x20)" (( "(") (binary_expression "iVar4 == 0x20" (identifier "iVar4") (== "==") (number_literal "0x20")) () ")")) (compound_statement "{\n    iVar4 = 8;\n  }" ({ "{") (expression_statement "iVar4 = 8;" (assignment_expression "iVar4 = 8" (identifier "iVar4") (= "=") (number_literal "8")) (; ";")) (} "}")) (else_clause "else {\n    if (iVar4 != 0x40) {\n                    \n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }" (else "else") (compound_statement "{\n    if (iVar4 != 0x40) {\n                    \n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }\n    iVar4 = 0x10;\n  }" ({ "{") (if_statement "if (iVar4 != 0x40) {\n                    \n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }" (if "if") (parenthesized_expression "(iVar4 != 0x40)" (( "(") (binary_expression "iVar4 != 0x40" (identifier "iVar4") (!= "!=") (number_literal "0x40")) () ")")) (compound_statement "{\n                    \n      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);\n    }" ({ "{") (expression_statement "FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);" (call_expression "FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1)" (identifier "FUN_000da200") (argument_list "("../../gold/output.cc",0x775,"get_entry_offset",param_1)" (( "(") (string_literal ""../../gold/output.cc"" (" """) (string_content "../../gold/output.cc") (" """)) (, ",") (number_literal "0x775") (, ",") (string_literal ""get_entry_offset"" (" """) (string_content "get_entry_offset") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = 0x10;" (assignment_expression "iVar4 = 0x10" (identifier "iVar4") (= "=") (number_literal "0x10")) (; ";")) (} "}")))) (expression_statement "iVar1 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x2c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x30) - iVar1 >> 4;" (assignment_expression "iVar3 = *(int *)(param_1 + 0x30) - iVar1 >> 4" (identifier "iVar3") (= "=") (binary_expression "*(int *)(param_1 + 0x30) - iVar1 >> 4" (binary_expression "*(int *)(param_1 + 0x30) - iVar1" (pointer_expression "*(int *)(param_1 + 0x30)" (* "*") (cast_expression "(int *)(param_1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (- "-") (identifier "iVar1")) (>> ">>") (number_literal "4"))) (; ";")) (if_statement "if (iVar3 != 0) {\n    iVar2 = 0;\n    if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }\n    while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = 0;\n    if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }\n    while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 == *(int *)(iVar1 + 8)) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_2 == *(int *)(iVar1 + 8))" (( "(") (binary_expression "param_2 == *(int *)(iVar1 + 8)" (identifier "param_2") (== "==") (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (while_statement "while (iVar2 = iVar2 + 1, iVar2 != iVar3) {\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }" (while "while") (parenthesized_expression "(iVar2 = iVar2 + 1, iVar2 != iVar3)" (( "(") (comma_expression "iVar2 = iVar2 + 1, iVar2 != iVar3" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (, ",") (binary_expression "iVar2 != iVar3" (identifier "iVar2") (!= "!=") (identifier "iVar3"))) () ")")) (compound_statement "{\n      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }\n    }" ({ "{") (if_statement "if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {\n        return iVar2 * iVar4;\n      }" (if "if") (parenthesized_expression "(param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10))" (( "(") (binary_expression "param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)" (identifier "param_2") (== "==") (pointer_expression "*(int *)(iVar1 + 8 + iVar2 * 0x10)" (* "*") (cast_expression "(int *)(iVar1 + 8 + iVar2 * 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8 + iVar2 * 0x10)" (( "(") (binary_expression "iVar1 + 8 + iVar2 * 0x10" (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) (+ "+") (binary_expression "iVar2 * 0x10" (identifier "iVar2") (* "*") (number_literal "0x10"))) () ")"))))) () ")")) (compound_statement "{\n        return iVar2 * iVar4;\n      }" ({ "{") (return_statement "return iVar2 * iVar4;" (return "return") (binary_expression "iVar2 * iVar4" (identifier "iVar2") (* "*") (identifier "iVar4")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return -1;" (return "return") (number_literal "-1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: uint get_entry_offset(Output_data_dynamic * this, DT tag) */

type_1 __thiscall gold::type_2::function_1(type_2 *this,type_3 tag)

{
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (number_literal)))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (identifier) right: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (return_statement (binary_expression left: (identifier) right: (identifier))))))))) (return_statement (number_literal)))))

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

int MASKED(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  if (*(int *)(DAT_004144e8 + 0xc) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_000da200("../../gold/parameters.h",0x69,"target",0);
  }
  iVar4 = **(int **)(*(int *)(DAT_004144e8 + 0xc) + 4);
  if (iVar4 == 0x20) {
    iVar4 = 8;
  }
  else {
    if (iVar4 != 0x40) {
                    /* WARNING: Subroutine does not return */
      FUN_000da200("../../gold/output.cc",0x775,"get_entry_offset",param_1);
    }
    iVar4 = 0x10;
  }
  iVar1 = *(int *)(param_1 + 0x2c);
  iVar3 = *(int *)(param_1 + 0x30) - iVar1 >> 4;
  if (iVar3 != 0) {
    iVar2 = 0;
    if (param_2 == *(int *)(iVar1 + 8)) {
      return 0;
    }
    while (iVar2 = iVar2 + 1, iVar2 != iVar3) {
      if (param_2 == *(int *)(iVar1 + 8 + iVar2 * 0x10)) {
        return iVar2 * iVar4;
      }
    }
  }
  return -1;
}

