
lang_output_section_statement_type *
next_matching_output_section_statement(lang_output_section_statement_type *os,int constraint)

{
  char *pcVar1;
  int *piVar2;
  
  piVar2 = &os[-1].section_alignment;
  pcVar1 = os->name;
  if (*(char **)&os[-1].flags != pcVar1) {
    info_assert("../../ld/ldlang.c",0x5e0);
  }
  while( true ) {
    piVar2 = *(int **)piVar2;
    if (piVar2 == (int *)0x0) {
      return (lang_output_section_statement_type *)0x0;
    }
    if (*(char **)(piVar2 + 0x12) != pcVar1) break;
    if ((piVar2[0x27] == constraint) || ((-1 < piVar2[0x27] && (constraint == 0)))) {
      return (lang_output_section_statement_type *)(piVar2 + 6);
    }
  }
  return (lang_output_section_statement_type *)0x0;
}



long FUN_00117270(long param_1,int param_2)

{
  long lVar1;
  long *plVar2;
  
  plVar2 = (long *)(param_1 + -0x18);
  lVar1 = *(long *)(param_1 + 0x30);
  if (*(long *)(param_1 + -0x10) != lVar1) {
    FUN_001252b0("../../ld/ldlang.c",0x5e0);
  }
  while( true ) {
    plVar2 = (long *)*plVar2;
    if (plVar2 == (long *)0x0) {
      return 0;
    }
    if (plVar2[9] != lVar1) break;
    if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||
       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {
      return (long)(plVar2 + 3);
    }
  }
  return 0;
}


PUSH R12
PUSH RBP
MOV EBP,ESI
PUSH RBX
LEA RBX,[RDI + -0x18]
MOV R12,qword ptr [RDI + 0x30]
CMP qword ptr [RDI + -0x10],R12
JZ 0x00117298
MOV ESI,0x5e0
LEA RDI,[0x13ee66]
CALL 0x001252b0
NOP dword ptr [RAX]
MOV RBX,qword ptr [RBX]
TEST RBX,RBX
JZ 0x001172bc
CMP qword ptr [RBX + 0x48],R12
JNZ 0x001172c8
MOV EAX,dword ptr [RBX + 0x9c]
CMP EAX,EBP
JZ 0x001172b8
TEST EAX,EAX
JS 0x00117298
TEST EBP,EBP
JNZ 0x00117298
ADD RBX,0x18
MOV RAX,RBX
POP RBX
POP RBP
POP R12
RET
XOR EBX,EBX
MOV RAX,RBX
POP RBX
POP RBP
POP R12
RET
(translation_unit "long FUN_00117270(long param_1,int param_2)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  plVar2 = (long *)(param_1 + -0x18);\n  lVar1 = *(long *)(param_1 + 0x30);\n  if (*(long *)(param_1 + -0x10) != lVar1) {\n    FUN_001252b0("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    plVar2 = (long *)*plVar2;\n    if (plVar2 == (long *)0x0) {\n      return 0;\n    }\n    if (plVar2[9] != lVar1) break;\n    if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }\n  }\n  return 0;\n}\n\n" (function_definition "long FUN_00117270(long param_1,int param_2)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  plVar2 = (long *)(param_1 + -0x18);\n  lVar1 = *(long *)(param_1 + 0x30);\n  if (*(long *)(param_1 + -0x10) != lVar1) {\n    FUN_001252b0("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    plVar2 = (long *)*plVar2;\n    if (plVar2 == (long *)0x0) {\n      return 0;\n    }\n    if (plVar2[9] != lVar1) break;\n    if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }\n  }\n  return 0;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00117270(long param_1,int param_2)" identifier (parameter_list "(long param_1,int param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  \n  plVar2 = (long *)(param_1 + -0x18);\n  lVar1 = *(long *)(param_1 + 0x30);\n  if (*(long *)(param_1 + -0x10) != lVar1) {\n    FUN_001252b0("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    plVar2 = (long *)*plVar2;\n    if (plVar2 == (long *)0x0) {\n      return 0;\n    }\n    if (plVar2[9] != lVar1) break;\n    if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }\n  }\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (expression_statement "plVar2 = (long *)(param_1 + -0x18);" (assignment_expression "plVar2 = (long *)(param_1 + -0x18)" identifier = (cast_expression "(long *)(param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -0x18)" ( (binary_expression "param_1 + -0x18" identifier + number_literal) )))) ;) (expression_statement "lVar1 = *(long *)(param_1 + 0x30);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x30)" identifier = (pointer_expression "*(long *)(param_1 + 0x30)" * (cast_expression "(long *)(param_1 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if (*(long *)(param_1 + -0x10) != lVar1) {\n    FUN_001252b0("../../ld/ldlang.c",0x5e0);\n  }" if (parenthesized_expression "(*(long *)(param_1 + -0x10) != lVar1)" ( (binary_expression "*(long *)(param_1 + -0x10) != lVar1" (pointer_expression "*(long *)(param_1 + -0x10)" * (cast_expression "(long *)(param_1 + -0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -0x10)" ( (binary_expression "param_1 + -0x10" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n    FUN_001252b0("../../ld/ldlang.c",0x5e0);\n  }" { (expression_statement "FUN_001252b0("../../ld/ldlang.c",0x5e0);" (call_expression "FUN_001252b0("../../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    plVar2 = (long *)*plVar2;\n    if (plVar2 == (long *)0x0) {\n      return 0;\n    }\n    if (plVar2[9] != lVar1) break;\n    if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    plVar2 = (long *)*plVar2;\n    if (plVar2 == (long *)0x0) {\n      return 0;\n    }\n    if (plVar2[9] != lVar1) break;\n    if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }\n  }" { (expression_statement "plVar2 = (long *)*plVar2;" (assignment_expression "plVar2 = (long *)*plVar2" identifier = (cast_expression "(long *)*plVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier))) ;) (if_statement "if (plVar2 == (long *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(plVar2 == (long *)0x0)" ( (binary_expression "plVar2 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (plVar2[9] != lVar1) break;" if (parenthesized_expression "(plVar2[9] != lVar1)" ( (binary_expression "plVar2[9] != lVar1" (subscript_expression "plVar2[9]" identifier [ number_literal ]) != identifier) )) (break_statement "break;" break ;)) (if_statement "if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }" if (parenthesized_expression "((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0))))" ( (binary_expression "(*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))" (parenthesized_expression "(*(int *)((long)plVar2 + 0x9c) == param_2)" ( (binary_expression "*(int *)((long)plVar2 + 0x9c) == param_2" (pointer_expression "*(int *)((long)plVar2 + 0x9c)" * (cast_expression "(int *)((long)plVar2 + 0x9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x9c)" ( (binary_expression "(long)plVar2 + 0x9c" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == identifier) )) || (parenthesized_expression "((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))" ( (parenthesized_expression "(-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0))" ( (binary_expression "-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)" (binary_expression "-1 < *(int *)((long)plVar2 + 0x9c)" number_literal < (pointer_expression "*(int *)((long)plVar2 + 0x9c)" * (cast_expression "(int *)((long)plVar2 + 0x9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x9c)" ( (binary_expression "(long)plVar2 + 0x9c" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) && (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) ))) )) (compound_statement "{\n      return (long)(plVar2 + 3);\n    }" { (return_statement "return (long)(plVar2 + 3);" return (cast_expression "(long)(plVar2 + 3)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(plVar2 + 3)" ( (binary_expression "plVar2 + 3" identifier + number_literal) ))) ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "lang_output_section_statement_type *\nnext_matching_output_section_statement(lang_output_section_statement_type *os,int constraint)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  \n  piVar2 = &os[-1].section_alignment;\n  pcVar1 = os->name;\n  if (*(char **)&os[-1].flags != pcVar1) {\n    info_assert("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    piVar2 = *(int **)piVar2;\n    if (piVar2 == (int *)0x0) {\n      return (lang_output_section_statement_type *)0x0;\n    }\n    if (*(char **)(piVar2 + 0x12) != pcVar1) break;\n    if ((piVar2[0x27] == constraint) || ((-1 < piVar2[0x27] && (constraint == 0)))) {\n      return (lang_output_section_statement_type *)(piVar2 + 6);\n    }\n  }\n  return (lang_output_section_statement_type *)0x0;\n}\n\n" (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  int *piVar2;\n  \n  piVar2 = &os[-1].section_alignment;\n  pcVar1 = os->name;\n  if (*(char **)&os[-1].flags != pcVar1) {\n    info_assert("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    piVar2 = *(int **)piVar2;\n    if (piVar2 == (int *)0x0) {\n      return (lang_output_section_statement_type *)0x0;\n    }\n    if (*(char **)(piVar2 + 0x12) != pcVar1) break;\n    if ((piVar2[0x27] == constraint) || ((-1 < piVar2[0x27] && (constraint == 0)))) {\n      return (lang_output_section_statement_type *)(piVar2 + 6);\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  int *piVar2;\n  \n  piVar2 = &os[-1].section_alignment;\n  pcVar1 = os->name;\n  if (*(char **)&os[-1].flags != pcVar1) {\n    info_assert("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    piVar2 = *(int **)piVar2;\n    if (piVar2 == (int *)0x0) {\n      return (lang_output_section_statement_type *)0x0;\n    }\n    if (*(char **)(piVar2 + 0x12) != pcVar1) break;\n    if ((piVar2[0x27] == constraint) || ((-1 < piVar2[0x27] && (constraint == 0)))) {\n      return (lang_output_section_statement_type *)(piVar2 + 6);\n    }\n  }\n  return (lang_output_section_statement_type *)0x0;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "piVar2 = &os[-1].section_alignment;" (assignment_expression "piVar2 = &os[-1].section_alignment" identifier = (pointer_expression "&os[-1].section_alignment" & (field_expression "os[-1].section_alignment" (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].flags != pcVar1) {\n    info_assert("../../ld/ldlang.c",0x5e0);\n  }" if (parenthesized_expression "(*(char **)&os[-1].flags != pcVar1)" ( (binary_expression "*(char **)&os[-1].flags != pcVar1" (pointer_expression "*(char **)&os[-1].flags" * (cast_expression "(char **)&os[-1].flags" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&os[-1].flags" & (field_expression "os[-1].flags" (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    piVar2 = *(int **)piVar2;\n    if (piVar2 == (int *)0x0) {\n      return (lang_output_section_statement_type *)0x0;\n    }\n    if (*(char **)(piVar2 + 0x12) != pcVar1) break;\n    if ((piVar2[0x27] == constraint) || ((-1 < piVar2[0x27] && (constraint == 0)))) {\n      return (lang_output_section_statement_type *)(piVar2 + 6);\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    piVar2 = *(int **)piVar2;\n    if (piVar2 == (int *)0x0) {\n      return (lang_output_section_statement_type *)0x0;\n    }\n    if (*(char **)(piVar2 + 0x12) != pcVar1) break;\n    if ((piVar2[0x27] == constraint) || ((-1 < piVar2[0x27] && (constraint == 0)))) {\n      return (lang_output_section_statement_type *)(piVar2 + 6);\n    }\n  }" { (expression_statement "piVar2 = *(int **)piVar2;" (assignment_expression "piVar2 = *(int **)piVar2" identifier = (pointer_expression "*(int **)piVar2" * (cast_expression "(int **)piVar2" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n      return (lang_output_section_statement_type *)0x0;\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 (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 **)(piVar2 + 0x12) != pcVar1) break;" if (parenthesized_expression "(*(char **)(piVar2 + 0x12) != pcVar1)" ( (binary_expression "*(char **)(piVar2 + 0x12) != pcVar1" (pointer_expression "*(char **)(piVar2 + 0x12)" * (cast_expression "(char **)(piVar2 + 0x12)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar2 + 0x12)" ( (binary_expression "piVar2 + 0x12" identifier + number_literal) )))) != identifier) )) (break_statement "break;" break ;)) (if_statement "if ((piVar2[0x27] == constraint) || ((-1 < piVar2[0x27] && (constraint == 0)))) {\n      return (lang_output_section_statement_type *)(piVar2 + 6);\n    }" if (parenthesized_expression "((piVar2[0x27] == constraint) || ((-1 < piVar2[0x27] && (constraint == 0))))" ( (binary_expression "(piVar2[0x27] == constraint) || ((-1 < piVar2[0x27] && (constraint == 0)))" (parenthesized_expression "(piVar2[0x27] == constraint)" ( (binary_expression "piVar2[0x27] == constraint" (subscript_expression "piVar2[0x27]" identifier [ number_literal ]) == identifier) )) || (parenthesized_expression "((-1 < piVar2[0x27] && (constraint == 0)))" ( (parenthesized_expression "(-1 < piVar2[0x27] && (constraint == 0))" ( (binary_expression "-1 < piVar2[0x27] && (constraint == 0)" (binary_expression "-1 < piVar2[0x27]" number_literal < (subscript_expression "piVar2[0x27]" identifier [ number_literal ])) && (parenthesized_expression "(constraint == 0)" ( (binary_expression "constraint == 0" identifier == number_literal) ))) )) ))) )) (compound_statement "{\n      return (lang_output_section_statement_type *)(piVar2 + 6);\n    }" { (return_statement "return (lang_output_section_statement_type *)(piVar2 + 6);" return (cast_expression "(lang_output_section_statement_type *)(piVar2 + 6)" ( (type_descriptor "lang_output_section_statement_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 6)" ( (binary_expression "piVar2 + 6" 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 "long FUN_00117270(long param_1,int param_2)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  plVar2 = (long *)(param_1 + -0x18);\n  lVar1 = *(long *)(param_1 + 0x30);\n  if (*(long *)(param_1 + -0x10) != lVar1) {\n    FUN_001252b0("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    plVar2 = (long *)*plVar2;\n    if (plVar2 == (long *)0x0) {\n      return 0;\n    }\n    if (plVar2[9] != lVar1) break;\n    if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }\n  }\n  return 0;\n}\n\n" (function_definition "long FUN_00117270(long param_1,int param_2)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  plVar2 = (long *)(param_1 + -0x18);\n  lVar1 = *(long *)(param_1 + 0x30);\n  if (*(long *)(param_1 + -0x10) != lVar1) {\n    FUN_001252b0("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    plVar2 = (long *)*plVar2;\n    if (plVar2 == (long *)0x0) {\n      return 0;\n    }\n    if (plVar2[9] != lVar1) break;\n    if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }\n  }\n  return 0;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00117270(long param_1,int param_2)" identifier (parameter_list "(long param_1,int param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  \n  plVar2 = (long *)(param_1 + -0x18);\n  lVar1 = *(long *)(param_1 + 0x30);\n  if (*(long *)(param_1 + -0x10) != lVar1) {\n    FUN_001252b0("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    plVar2 = (long *)*plVar2;\n    if (plVar2 == (long *)0x0) {\n      return 0;\n    }\n    if (plVar2[9] != lVar1) break;\n    if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }\n  }\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (expression_statement "plVar2 = (long *)(param_1 + -0x18);" (assignment_expression "plVar2 = (long *)(param_1 + -0x18)" identifier = (cast_expression "(long *)(param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -0x18)" ( (binary_expression "param_1 + -0x18" identifier + number_literal) )))) ;) (expression_statement "lVar1 = *(long *)(param_1 + 0x30);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x30)" identifier = (pointer_expression "*(long *)(param_1 + 0x30)" * (cast_expression "(long *)(param_1 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if (*(long *)(param_1 + -0x10) != lVar1) {\n    FUN_001252b0("../../ld/ldlang.c",0x5e0);\n  }" if (parenthesized_expression "(*(long *)(param_1 + -0x10) != lVar1)" ( (binary_expression "*(long *)(param_1 + -0x10) != lVar1" (pointer_expression "*(long *)(param_1 + -0x10)" * (cast_expression "(long *)(param_1 + -0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -0x10)" ( (binary_expression "param_1 + -0x10" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n    FUN_001252b0("../../ld/ldlang.c",0x5e0);\n  }" { (expression_statement "FUN_001252b0("../../ld/ldlang.c",0x5e0);" (call_expression "FUN_001252b0("../../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    plVar2 = (long *)*plVar2;\n    if (plVar2 == (long *)0x0) {\n      return 0;\n    }\n    if (plVar2[9] != lVar1) break;\n    if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    plVar2 = (long *)*plVar2;\n    if (plVar2 == (long *)0x0) {\n      return 0;\n    }\n    if (plVar2[9] != lVar1) break;\n    if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }\n  }" { (expression_statement "plVar2 = (long *)*plVar2;" (assignment_expression "plVar2 = (long *)*plVar2" identifier = (cast_expression "(long *)*plVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier))) ;) (if_statement "if (plVar2 == (long *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(plVar2 == (long *)0x0)" ( (binary_expression "plVar2 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (plVar2[9] != lVar1) break;" if (parenthesized_expression "(plVar2[9] != lVar1)" ( (binary_expression "plVar2[9] != lVar1" (subscript_expression "plVar2[9]" identifier [ number_literal ]) != identifier) )) (break_statement "break;" break ;)) (if_statement "if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }" if (parenthesized_expression "((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0))))" ( (binary_expression "(*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))" (parenthesized_expression "(*(int *)((long)plVar2 + 0x9c) == param_2)" ( (binary_expression "*(int *)((long)plVar2 + 0x9c) == param_2" (pointer_expression "*(int *)((long)plVar2 + 0x9c)" * (cast_expression "(int *)((long)plVar2 + 0x9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x9c)" ( (binary_expression "(long)plVar2 + 0x9c" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == identifier) )) || (parenthesized_expression "((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))" ( (parenthesized_expression "(-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0))" ( (binary_expression "-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)" (binary_expression "-1 < *(int *)((long)plVar2 + 0x9c)" number_literal < (pointer_expression "*(int *)((long)plVar2 + 0x9c)" * (cast_expression "(int *)((long)plVar2 + 0x9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x9c)" ( (binary_expression "(long)plVar2 + 0x9c" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) && (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) ))) )) (compound_statement "{\n      return (long)(plVar2 + 3);\n    }" { (return_statement "return (long)(plVar2 + 3);" return (cast_expression "(long)(plVar2 + 3)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(plVar2 + 3)" ( (binary_expression "plVar2 + 3" identifier + number_literal) ))) ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == IDENT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) ))) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ;) })) })) (return_statement return LIT ;) })))
(function_definition "long FUN_00117270(long param_1,int param_2)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  plVar2 = (long *)(param_1 + -0x18);\n  lVar1 = *(long *)(param_1 + 0x30);\n  if (*(long *)(param_1 + -0x10) != lVar1) {\n    FUN_001252b0("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    plVar2 = (long *)*plVar2;\n    if (plVar2 == (long *)0x0) {\n      return 0;\n    }\n    if (plVar2[9] != lVar1) break;\n    if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }\n  }\n  return 0;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_00117270(long param_1,int param_2)" (identifier "FUN_00117270") (parameter_list "(long param_1,int param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  \n  plVar2 = (long *)(param_1 + -0x18);\n  lVar1 = *(long *)(param_1 + 0x30);\n  if (*(long *)(param_1 + -0x10) != lVar1) {\n    FUN_001252b0("../../ld/ldlang.c",0x5e0);\n  }\n  while( true ) {\n    plVar2 = (long *)*plVar2;\n    if (plVar2 == (long *)0x0) {\n      return 0;\n    }\n    if (plVar2[9] != lVar1) break;\n    if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (expression_statement "plVar2 = (long *)(param_1 + -0x18);" (assignment_expression "plVar2 = (long *)(param_1 + -0x18)" (identifier "plVar2") (= "=") (cast_expression "(long *)(param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + -0x18)" (( "(") (binary_expression "param_1 + -0x18" (identifier "param_1") (+ "+") (number_literal "-0x18")) () ")")))) (; ";")) (expression_statement "lVar1 = *(long *)(param_1 + 0x30);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x30)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(param_1 + 0x30)" (* "*") (cast_expression "(long *)(param_1 + 0x30)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (if_statement "if (*(long *)(param_1 + -0x10) != lVar1) {\n    FUN_001252b0("../../ld/ldlang.c",0x5e0);\n  }" (if "if") (parenthesized_expression "(*(long *)(param_1 + -0x10) != lVar1)" (( "(") (binary_expression "*(long *)(param_1 + -0x10) != lVar1" (pointer_expression "*(long *)(param_1 + -0x10)" (* "*") (cast_expression "(long *)(param_1 + -0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + -0x10)" (( "(") (binary_expression "param_1 + -0x10" (identifier "param_1") (+ "+") (number_literal "-0x10")) () ")")))) (!= "!=") (identifier "lVar1")) () ")")) (compound_statement "{\n    FUN_001252b0("../../ld/ldlang.c",0x5e0);\n  }" ({ "{") (expression_statement "FUN_001252b0("../../ld/ldlang.c",0x5e0);" (call_expression "FUN_001252b0("../../ld/ldlang.c",0x5e0)" (identifier "FUN_001252b0") (argument_list "("../../ld/ldlang.c",0x5e0)" (( "(") (string_literal ""../../ld/ldlang.c"" (" """) (string_content "../../ld/ldlang.c") (" """)) (, ",") (number_literal "0x5e0") () ")"))) (; ";")) (} "}"))) (while_statement "while( true ) {\n    plVar2 = (long *)*plVar2;\n    if (plVar2 == (long *)0x0) {\n      return 0;\n    }\n    if (plVar2[9] != lVar1) break;\n    if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    plVar2 = (long *)*plVar2;\n    if (plVar2 == (long *)0x0) {\n      return 0;\n    }\n    if (plVar2[9] != lVar1) break;\n    if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }\n  }" ({ "{") (expression_statement "plVar2 = (long *)*plVar2;" (assignment_expression "plVar2 = (long *)*plVar2" (identifier "plVar2") (= "=") (cast_expression "(long *)*plVar2" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*plVar2" (* "*") (identifier "plVar2")))) (; ";")) (if_statement "if (plVar2 == (long *)0x0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(plVar2 == (long *)0x0)" (( "(") (binary_expression "plVar2 == (long *)0x0" (identifier "plVar2") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (plVar2[9] != lVar1) break;" (if "if") (parenthesized_expression "(plVar2[9] != lVar1)" (( "(") (binary_expression "plVar2[9] != lVar1" (subscript_expression "plVar2[9]" (identifier "plVar2") ([ "[") (number_literal "9") (] "]")) (!= "!=") (identifier "lVar1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {\n      return (long)(plVar2 + 3);\n    }" (if "if") (parenthesized_expression "((*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0))))" (( "(") (binary_expression "(*(int *)((long)plVar2 + 0x9c) == param_2) ||\n       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))" (parenthesized_expression "(*(int *)((long)plVar2 + 0x9c) == param_2)" (( "(") (binary_expression "*(int *)((long)plVar2 + 0x9c) == param_2" (pointer_expression "*(int *)((long)plVar2 + 0x9c)" (* "*") (cast_expression "(int *)((long)plVar2 + 0x9c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar2 + 0x9c)" (( "(") (binary_expression "(long)plVar2 + 0x9c" (cast_expression "(long)plVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar2")) (+ "+") (number_literal "0x9c")) () ")")))) (== "==") (identifier "param_2")) () ")")) (|| "||") (parenthesized_expression "((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))" (( "(") (parenthesized_expression "(-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0))" (( "(") (binary_expression "-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)" (binary_expression "-1 < *(int *)((long)plVar2 + 0x9c)" (number_literal "-1") (< "<") (pointer_expression "*(int *)((long)plVar2 + 0x9c)" (* "*") (cast_expression "(int *)((long)plVar2 + 0x9c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar2 + 0x9c)" (( "(") (binary_expression "(long)plVar2 + 0x9c" (cast_expression "(long)plVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar2")) (+ "+") (number_literal "0x9c")) () ")"))))) (&& "&&") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n      return (long)(plVar2 + 3);\n    }" ({ "{") (return_statement "return (long)(plVar2 + 3);" (return "return") (cast_expression "(long)(plVar2 + 3)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(plVar2 + 3)" (( "(") (binary_expression "plVar2 + 3" (identifier "plVar2") (+ "+") (number_literal "3")) () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 *
function_1(type_1 *os,int var_4)

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


(translation_unit (function_definition type: (sized_type_specifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) 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: (sized_type_specifier) 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: (sized_type_specifier) 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: (sized_type_specifier) 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: (sized_type_specifier) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (identifier))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal)))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (return_statement (number_literal)))))

long MASKED(long param_1,int param_2)

{
  long lVar1;
  long *plVar2;
  
  plVar2 = (long *)(param_1 + -0x18);
  lVar1 = *(long *)(param_1 + 0x30);
  if (*(long *)(param_1 + -0x10) != lVar1) {
    FUN_001252b0("../../ld/ldlang.c",0x5e0);
  }
  while( true ) {
    plVar2 = (long *)*plVar2;
    if (plVar2 == (long *)0x0) {
      return 0;
    }
    if (plVar2[9] != lVar1) break;
    if ((*(int *)((long)plVar2 + 0x9c) == param_2) ||
       ((-1 < *(int *)((long)plVar2 + 0x9c) && (param_2 == 0)))) {
      return (long)(plVar2 + 3);
    }
  }
  return 0;
}

