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

lang_output_section_statement_type *
next_matching_output_section_statement(lang_output_section_statement_type *os,int constraint)

{
  char *pcVar1;
  flagword *pfVar2;
  
  pfVar2 = &os[-1].flags;
  pcVar1 = os->name;
  if ((char *)os[-1].sectype != pcVar1) {
    info_assert("../../ld/ldlang.c",0x5e0);
  }
  while( true ) {
    pfVar2 = (flagword *)*pfVar2;
    if (pfVar2 == (flagword *)0x0) {
      return (lang_output_section_statement_type *)0x0;
    }
    if ((char *)pfVar2[9] != pcVar1) break;
    if ((pfVar2[0x15] == constraint) || ((-1 < (int)pfVar2[0x15] && (constraint == 0)))) {
      return (lang_output_section_statement_type *)(pfVar2 + 3);
    }
  }
  return (lang_output_section_statement_type *)0x0;
}



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

int FUN_000230d0(int param_1,int param_2)

{
  int iVar1;
  int *piVar2;
  
  piVar2 = (int *)(param_1 + -0xc);
  iVar1 = *(int *)(param_1 + 0x18);
  if (*(int *)(param_1 + -8) != iVar1) {
    FUN_00031750("../../ld/ldlang.c",0x5e0);
  }
  while( true ) {
    piVar2 = (int *)*piVar2;
    if (piVar2 == (int *)0x0) {
      return 0;
    }
    if (piVar2[9] != iVar1) break;
    if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {
      return (int)(piVar2 + 3);
    }
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015a20
ADD EBX,0x68f27
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x20]
MOV EDI,dword ptr [ESP + 0x24]
LEA ESI,[EAX + -0xc]
MOV EBP,dword ptr [EAX + 0x18]
CMP dword ptr [EAX + -0x8],EBP
JZ 0x00023110
SUB ESP,0x8
LEA EAX,[EBX + 0xfffbfd02]
PUSH 0x5e0
PUSH EAX
CALL 0x00031750
ADD ESP,0x10
LEA ESI,[ESI]
MOV ESI,dword ptr [ESI]
TEST ESI,ESI
JZ 0x0002312d
CMP dword ptr [ESI + 0x24],EBP
JNZ 0x00023140
MOV EAX,dword ptr [ESI + 0x54]
CMP EAX,EDI
JZ 0x0002312a
TEST EAX,EAX
JS 0x00023110
TEST EDI,EDI
JNZ 0x00023110
ADD ESI,0xc
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0xc
XOR ESI,ESI
POP EBX
MOV EAX,ESI
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_000230d0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = (int *)(param_1 + -0xc);\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (*(int *)(param_1 + -8) != iVar1) {\n    FUN_00031750("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) {\n      return 0;\n    }\n    if (piVar2[9] != iVar1) break;\n    if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "int FUN_000230d0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = (int *)(param_1 + -0xc);\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (*(int *)(param_1 + -8) != iVar1) {\n    FUN_00031750("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) {\n      return 0;\n    }\n    if (piVar2[9] != iVar1) break;\n    if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_000230d0(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 *piVar2;\n  \n  piVar2 = (int *)(param_1 + -0xc);\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (*(int *)(param_1 + -8) != iVar1) {\n    FUN_00031750("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) {\n      return 0;\n    }\n    if (piVar2[9] != iVar1) break;\n    if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "piVar2 = (int *)(param_1 + -0xc);" (assignment_expression "piVar2 = (int *)(param_1 + -0xc)" identifier = (cast_expression "(int *)(param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -0xc)" ( (binary_expression "param_1 + -0xc" identifier + number_literal) )))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + -8) != iVar1) {\n    FUN_00031750("../../ld/ldlang.c",0x5e0);\n  }" if (parenthesized_expression "(*(int *)(param_1 + -8) != iVar1)" ( (binary_expression "*(int *)(param_1 + -8) != iVar1" (pointer_expression "*(int *)(param_1 + -8)" * (cast_expression "(int *)(param_1 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -8)" ( (binary_expression "param_1 + -8" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n    FUN_00031750("../../ld/ldlang.c",0x5e0);\n  }" { (expression_statement "FUN_00031750("../../ld/ldlang.c",0x5e0);" (call_expression "FUN_00031750("../../ld/ldlang.c",0x5e0)" identifier (argument_list "("../../ld/ldlang.c",0x5e0)" ( (string_literal ""../../ld/ldlang.c"" " string_content ") , number_literal ))) ;) })) (while_statement "while( true ) {\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) {\n      return 0;\n    }\n    if (piVar2[9] != iVar1) break;\n    if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) {\n      return 0;\n    }\n    if (piVar2[9] != iVar1) break;\n    if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }\n  }" { (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (piVar2[9] != iVar1) break;" if (parenthesized_expression "(piVar2[9] != iVar1)" ( (binary_expression "piVar2[9] != iVar1" (subscript_expression "piVar2[9]" identifier [ number_literal ]) != identifier) )) (break_statement "break;" break ;)) (if_statement "if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }" if (parenthesized_expression "((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0))))" ( (binary_expression "(piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))" (parenthesized_expression "(piVar2[0x15] == param_2)" ( (binary_expression "piVar2[0x15] == param_2" (subscript_expression "piVar2[0x15]" identifier [ number_literal ]) == identifier) )) || (parenthesized_expression "((-1 < piVar2[0x15] && (param_2 == 0)))" ( (parenthesized_expression "(-1 < piVar2[0x15] && (param_2 == 0))" ( (binary_expression "-1 < piVar2[0x15] && (param_2 == 0)" (binary_expression "-1 < piVar2[0x15]" number_literal < (subscript_expression "piVar2[0x15]" identifier [ number_literal ])) && (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) ))) )) (compound_statement "{\n      return (int)(piVar2 + 3);\n    }" { (return_statement "return (int)(piVar2 + 3);" return (cast_expression "(int)(piVar2 + 3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar2 + 3)" ( (binary_expression "piVar2 + 3" identifier + 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\nlang_output_section_statement_type *\nnext_matching_output_section_statement(lang_output_section_statement_type *os,int constraint)\n\n{\n  char *pcVar1;\n  flagword *pfVar2;\n  \n  pfVar2 = &os[-1].flags;\n  pcVar1 = os->name;\n  if ((char *)os[-1].sectype != pcVar1) {\n    info_assert("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    pfVar2 = (flagword *)*pfVar2;\n    if (pfVar2 == (flagword *)0x0) {\n      return (lang_output_section_statement_type *)0x0;\n    }\n    if ((char *)pfVar2[9] != pcVar1) break;\n    if ((pfVar2[0x15] == constraint) || ((-1 < (int)pfVar2[0x15] && (constraint == 0)))) {\n      return (lang_output_section_statement_type *)(pfVar2 + 3);\n    }\n  }\n  return (lang_output_section_statement_type *)0x0;\n}\n\n" comment comment (function_definition "lang_output_section_statement_type *\nnext_matching_output_section_statement(lang_output_section_statement_type *os,int constraint)\n\n{\n  char *pcVar1;\n  flagword *pfVar2;\n  \n  pfVar2 = &os[-1].flags;\n  pcVar1 = os->name;\n  if ((char *)os[-1].sectype != pcVar1) {\n    info_assert("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    pfVar2 = (flagword *)*pfVar2;\n    if (pfVar2 == (flagword *)0x0) {\n      return (lang_output_section_statement_type *)0x0;\n    }\n    if ((char *)pfVar2[9] != pcVar1) break;\n    if ((pfVar2[0x15] == constraint) || ((-1 < (int)pfVar2[0x15] && (constraint == 0)))) {\n      return (lang_output_section_statement_type *)(pfVar2 + 3);\n    }\n  }\n  return (lang_output_section_statement_type *)0x0;\n}" type_identifier (pointer_declarator "*\nnext_matching_output_section_statement(lang_output_section_statement_type *os,int constraint)" * (function_declarator "next_matching_output_section_statement(lang_output_section_statement_type *os,int constraint)" identifier (parameter_list "(lang_output_section_statement_type *os,int constraint)" ( (parameter_declaration "lang_output_section_statement_type *os" type_identifier (pointer_declarator "*os" * identifier)) , (parameter_declaration "int constraint" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  flagword *pfVar2;\n  \n  pfVar2 = &os[-1].flags;\n  pcVar1 = os->name;\n  if ((char *)os[-1].sectype != pcVar1) {\n    info_assert("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    pfVar2 = (flagword *)*pfVar2;\n    if (pfVar2 == (flagword *)0x0) {\n      return (lang_output_section_statement_type *)0x0;\n    }\n    if ((char *)pfVar2[9] != pcVar1) break;\n    if ((pfVar2[0x15] == constraint) || ((-1 < (int)pfVar2[0x15] && (constraint == 0)))) {\n      return (lang_output_section_statement_type *)(pfVar2 + 3);\n    }\n  }\n  return (lang_output_section_statement_type *)0x0;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "flagword *pfVar2;" type_identifier (pointer_declarator "*pfVar2" * identifier) ;) (expression_statement "pfVar2 = &os[-1].flags;" (assignment_expression "pfVar2 = &os[-1].flags" identifier = (pointer_expression "&os[-1].flags" & (field_expression "os[-1].flags" (subscript_expression "os[-1]" identifier [ number_literal ]) . field_identifier))) ;) (expression_statement "pcVar1 = os->name;" (assignment_expression "pcVar1 = os->name" identifier = (field_expression "os->name" identifier -> field_identifier)) ;) (if_statement "if ((char *)os[-1].sectype != pcVar1) {\n    info_assert("../../ld/ldlang.c",0x5e0);\n  }" if (parenthesized_expression "((char *)os[-1].sectype != pcVar1)" ( (binary_expression "(char *)os[-1].sectype != pcVar1" (cast_expression "(char *)os[-1].sectype" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "os[-1].sectype" (subscript_expression "os[-1]" identifier [ number_literal ]) . field_identifier)) != identifier) )) (compound_statement "{\n    info_assert("../../ld/ldlang.c",0x5e0);\n  }" { (expression_statement "info_assert("../../ld/ldlang.c",0x5e0);" (call_expression "info_assert("../../ld/ldlang.c",0x5e0)" identifier (argument_list "("../../ld/ldlang.c",0x5e0)" ( (string_literal ""../../ld/ldlang.c"" " string_content ") , number_literal ))) ;) })) (while_statement "while( true ) {\n    pfVar2 = (flagword *)*pfVar2;\n    if (pfVar2 == (flagword *)0x0) {\n      return (lang_output_section_statement_type *)0x0;\n    }\n    if ((char *)pfVar2[9] != pcVar1) break;\n    if ((pfVar2[0x15] == constraint) || ((-1 < (int)pfVar2[0x15] && (constraint == 0)))) {\n      return (lang_output_section_statement_type *)(pfVar2 + 3);\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    pfVar2 = (flagword *)*pfVar2;\n    if (pfVar2 == (flagword *)0x0) {\n      return (lang_output_section_statement_type *)0x0;\n    }\n    if ((char *)pfVar2[9] != pcVar1) break;\n    if ((pfVar2[0x15] == constraint) || ((-1 < (int)pfVar2[0x15] && (constraint == 0)))) {\n      return (lang_output_section_statement_type *)(pfVar2 + 3);\n    }\n  }" { (expression_statement "pfVar2 = (flagword *)*pfVar2;" (assignment_expression "pfVar2 = (flagword *)*pfVar2" identifier = (cast_expression "(flagword *)*pfVar2" ( (type_descriptor "flagword *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*pfVar2" * identifier))) ;) (if_statement "if (pfVar2 == (flagword *)0x0) {\n      return (lang_output_section_statement_type *)0x0;\n    }" if (parenthesized_expression "(pfVar2 == (flagword *)0x0)" ( (binary_expression "pfVar2 == (flagword *)0x0" identifier == (cast_expression "(flagword *)0x0" ( (type_descriptor "flagword *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return (lang_output_section_statement_type *)0x0;\n    }" { (return_statement "return (lang_output_section_statement_type *)0x0;" return (cast_expression "(lang_output_section_statement_type *)0x0" ( (type_descriptor "lang_output_section_statement_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if ((char *)pfVar2[9] != pcVar1) break;" if (parenthesized_expression "((char *)pfVar2[9] != pcVar1)" ( (binary_expression "(char *)pfVar2[9] != pcVar1" (cast_expression "(char *)pfVar2[9]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "pfVar2[9]" identifier [ number_literal ])) != identifier) )) (break_statement "break;" break ;)) (if_statement "if ((pfVar2[0x15] == constraint) || ((-1 < (int)pfVar2[0x15] && (constraint == 0)))) {\n      return (lang_output_section_statement_type *)(pfVar2 + 3);\n    }" if (parenthesized_expression "((pfVar2[0x15] == constraint) || ((-1 < (int)pfVar2[0x15] && (constraint == 0))))" ( (binary_expression "(pfVar2[0x15] == constraint) || ((-1 < (int)pfVar2[0x15] && (constraint == 0)))" (parenthesized_expression "(pfVar2[0x15] == constraint)" ( (binary_expression "pfVar2[0x15] == constraint" (subscript_expression "pfVar2[0x15]" identifier [ number_literal ]) == identifier) )) || (parenthesized_expression "((-1 < (int)pfVar2[0x15] && (constraint == 0)))" ( (parenthesized_expression "(-1 < (int)pfVar2[0x15] && (constraint == 0))" ( (binary_expression "-1 < (int)pfVar2[0x15] && (constraint == 0)" (binary_expression "-1 < (int)pfVar2[0x15]" number_literal < (cast_expression "(int)pfVar2[0x15]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pfVar2[0x15]" identifier [ number_literal ]))) && (parenthesized_expression "(constraint == 0)" ( (binary_expression "constraint == 0" identifier == number_literal) ))) )) ))) )) (compound_statement "{\n      return (lang_output_section_statement_type *)(pfVar2 + 3);\n    }" { (return_statement "return (lang_output_section_statement_type *)(pfVar2 + 3);" return (cast_expression "(lang_output_section_statement_type *)(pfVar2 + 3)" ( (type_descriptor "lang_output_section_statement_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pfVar2 + 3)" ( (binary_expression "pfVar2 + 3" identifier + number_literal) ))) ;) })) })) (return_statement "return (lang_output_section_statement_type *)0x0;" return (cast_expression "(lang_output_section_statement_type *)0x0" ( (type_descriptor "lang_output_section_statement_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int FUN_000230d0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = (int *)(param_1 + -0xc);\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (*(int *)(param_1 + -8) != iVar1) {\n    FUN_00031750("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) {\n      return 0;\n    }\n    if (piVar2[9] != iVar1) break;\n    if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_000230d0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = (int *)(param_1 + -0xc);\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (*(int *)(param_1 + -8) != iVar1) {\n    FUN_00031750("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) {\n      return 0;\n    }\n    if (piVar2[9] != iVar1) break;\n    if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_000230d0(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 *piVar2;\n  \n  piVar2 = (int *)(param_1 + -0xc);\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (*(int *)(param_1 + -8) != iVar1) {\n    FUN_00031750("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) {\n      return 0;\n    }\n    if (piVar2[9] != iVar1) break;\n    if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "piVar2 = (int *)(param_1 + -0xc);" (assignment_expression "piVar2 = (int *)(param_1 + -0xc)" identifier = (cast_expression "(int *)(param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -0xc)" ( (binary_expression "param_1 + -0xc" identifier + number_literal) )))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + -8) != iVar1) {\n    FUN_00031750("../../ld/ldlang.c",0x5e0);\n  }" if (parenthesized_expression "(*(int *)(param_1 + -8) != iVar1)" ( (binary_expression "*(int *)(param_1 + -8) != iVar1" (pointer_expression "*(int *)(param_1 + -8)" * (cast_expression "(int *)(param_1 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -8)" ( (binary_expression "param_1 + -8" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n    FUN_00031750("../../ld/ldlang.c",0x5e0);\n  }" { (expression_statement "FUN_00031750("../../ld/ldlang.c",0x5e0);" (call_expression "FUN_00031750("../../ld/ldlang.c",0x5e0)" identifier (argument_list "("../../ld/ldlang.c",0x5e0)" ( (string_literal ""../../ld/ldlang.c"" " string_content ") , number_literal ))) ;) })) (while_statement "while( true ) {\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) {\n      return 0;\n    }\n    if (piVar2[9] != iVar1) break;\n    if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) {\n      return 0;\n    }\n    if (piVar2[9] != iVar1) break;\n    if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }\n  }" { (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (piVar2[9] != iVar1) break;" if (parenthesized_expression "(piVar2[9] != iVar1)" ( (binary_expression "piVar2[9] != iVar1" (subscript_expression "piVar2[9]" identifier [ number_literal ]) != identifier) )) (break_statement "break;" break ;)) (if_statement "if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }" if (parenthesized_expression "((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0))))" ( (binary_expression "(piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))" (parenthesized_expression "(piVar2[0x15] == param_2)" ( (binary_expression "piVar2[0x15] == param_2" (subscript_expression "piVar2[0x15]" identifier [ number_literal ]) == identifier) )) || (parenthesized_expression "((-1 < piVar2[0x15] && (param_2 == 0)))" ( (parenthesized_expression "(-1 < piVar2[0x15] && (param_2 == 0))" ( (binary_expression "-1 < piVar2[0x15] && (param_2 == 0)" (binary_expression "-1 < piVar2[0x15]" number_literal < (subscript_expression "piVar2[0x15]" identifier [ number_literal ])) && (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) ))) )) (compound_statement "{\n      return (int)(piVar2 + 3);\n    }" { (return_statement "return (int)(piVar2 + 3);" return (cast_expression "(int)(piVar2 + 3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar2 + 3)" ( (binary_expression "piVar2 + 3" identifier + 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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT ))) ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != IDENT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression LIT < (subscript_expression IDENT [ LIT ])) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) ))) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ;) })) })) (return_statement return LIT ;) })))
(function_definition "int FUN_000230d0(int param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = (int *)(param_1 + -0xc);\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (*(int *)(param_1 + -8) != iVar1) {\n    FUN_00031750("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) {\n      return 0;\n    }\n    if (piVar2[9] != iVar1) break;\n    if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_000230d0(int param_1,int param_2)" (identifier "FUN_000230d0") (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 *piVar2;\n  \n  piVar2 = (int *)(param_1 + -0xc);\n  iVar1 = *(int *)(param_1 + 0x18);\n  if (*(int *)(param_1 + -8) != iVar1) {\n    FUN_00031750("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) {\n      return 0;\n    }\n    if (piVar2[9] != iVar1) break;\n    if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (expression_statement "piVar2 = (int *)(param_1 + -0xc);" (assignment_expression "piVar2 = (int *)(param_1 + -0xc)" (identifier "piVar2") (= "=") (cast_expression "(int *)(param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + -0xc)" (( "(") (binary_expression "param_1 + -0xc" (identifier "param_1") (+ "+") (number_literal "-0xc")) () ")")))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_1 + -8) != iVar1) {\n    FUN_00031750("../../ld/ldlang.c",0x5e0);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + -8) != iVar1)" (( "(") (binary_expression "*(int *)(param_1 + -8) != iVar1" (pointer_expression "*(int *)(param_1 + -8)" (* "*") (cast_expression "(int *)(param_1 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + -8)" (( "(") (binary_expression "param_1 + -8" (identifier "param_1") (+ "+") (number_literal "-8")) () ")")))) (!= "!=") (identifier "iVar1")) () ")")) (compound_statement "{\n    FUN_00031750("../../ld/ldlang.c",0x5e0);\n  }" ({ "{") (expression_statement "FUN_00031750("../../ld/ldlang.c",0x5e0);" (call_expression "FUN_00031750("../../ld/ldlang.c",0x5e0)" (identifier "FUN_00031750") (argument_list "("../../ld/ldlang.c",0x5e0)" (( "(") (string_literal ""../../ld/ldlang.c"" (" """) (string_content "../../ld/ldlang.c") (" """)) (, ",") (number_literal "0x5e0") () ")"))) (; ";")) (} "}"))) (while_statement "while( true ) {\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) {\n      return 0;\n    }\n    if (piVar2[9] != iVar1) break;\n    if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    piVar2 = (int *)*piVar2;\n    if (piVar2 == (int *)0x0) {\n      return 0;\n    }\n    if (piVar2[9] != iVar1) break;\n    if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }\n  }" ({ "{") (expression_statement "piVar2 = (int *)*piVar2;" (assignment_expression "piVar2 = (int *)*piVar2" (identifier "piVar2") (= "=") (cast_expression "(int *)*piVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (piVar2[9] != iVar1) break;" (if "if") (parenthesized_expression "(piVar2[9] != iVar1)" (( "(") (binary_expression "piVar2[9] != iVar1" (subscript_expression "piVar2[9]" (identifier "piVar2") ([ "[") (number_literal "9") (] "]")) (!= "!=") (identifier "iVar1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {\n      return (int)(piVar2 + 3);\n    }" (if "if") (parenthesized_expression "((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0))))" (( "(") (binary_expression "(piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))" (parenthesized_expression "(piVar2[0x15] == param_2)" (( "(") (binary_expression "piVar2[0x15] == param_2" (subscript_expression "piVar2[0x15]" (identifier "piVar2") ([ "[") (number_literal "0x15") (] "]")) (== "==") (identifier "param_2")) () ")")) (|| "||") (parenthesized_expression "((-1 < piVar2[0x15] && (param_2 == 0)))" (( "(") (parenthesized_expression "(-1 < piVar2[0x15] && (param_2 == 0))" (( "(") (binary_expression "-1 < piVar2[0x15] && (param_2 == 0)" (binary_expression "-1 < piVar2[0x15]" (number_literal "-1") (< "<") (subscript_expression "piVar2[0x15]" (identifier "piVar2") ([ "[") (number_literal "0x15") (] "]"))) (&& "&&") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n      return (int)(piVar2 + 3);\n    }" ({ "{") (return_statement "return (int)(piVar2 + 3);" (return "return") (cast_expression "(int)(piVar2 + 3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar2 + 3)" (( "(") (binary_expression "piVar2 + 3" (identifier "piVar2") (+ "+") (number_literal "3")) () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 *
function_1(type_1 *os,int var_4)

{
  char *var_1;
  type_2 *var_3;
  
  var_3 = &os[-1].flags;
  var_1 = os->name;
  if ((char *)os[-1].sectype != var_1) {
    var_2("../../ld/ldlang.c",0x5e0);
  }
  while( true ) {
    var_3 = (type_2 *)*var_3;
    if (var_3 == (type_2 *)0x0) {
      return (type_1 *)0x0;
    }
    if ((char *)var_3[9] != var_1) break;
    if ((var_3[0x15] == var_4) || ((-1 < (int)var_3[0x15] && (var_4 == 0)))) {
      return (type_1 *)(var_3 + 3);
    }
  }
  return (type_1 *)0x0;
}


(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: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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: (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))))))) (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: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal)))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (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 (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (subscript_expression argument: (identifier) index: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (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 *piVar2;
  
  piVar2 = (int *)(param_1 + -0xc);
  iVar1 = *(int *)(param_1 + 0x18);
  if (*(int *)(param_1 + -8) != iVar1) {
    FUN_00031750("../../ld/ldlang.c",0x5e0);
  }
  while( true ) {
    piVar2 = (int *)*piVar2;
    if (piVar2 == (int *)0x0) {
      return 0;
    }
    if (piVar2[9] != iVar1) break;
    if ((piVar2[0x15] == param_2) || ((-1 < piVar2[0x15] && (param_2 == 0)))) {
      return (int)(piVar2 + 3);
    }
  }
  return 0;
}

