
bfd ** get_pos_bfd(bfd **contents,pos default_pos,char *default_posname)

{
  int iVar1;
  bfd **after_bfd;
  bfd *pbVar2;
  bfd *pbVar3;
  
  if (postype == pos_default) {
    pbVar2 = *contents;
    if (default_pos != pos_end) goto LAB_00104eb8;
  }
  else {
    pbVar2 = *contents;
    default_posname = posname;
    default_pos = postype;
    if (postype != pos_end) {
LAB_00104eb8:
      while( true ) {
        if (pbVar2 == (bfd *)0x0) {
          return contents;
        }
        iVar1 = filename_cmp(pbVar2->filename,default_posname);
        if (iVar1 == 0) break;
        pbVar2 = (*contents)->archive_next;
        contents = &(*contents)->archive_next;
      }
      if (default_pos != pos_after) {
        return contents;
      }
      return &(*contents)->archive_next;
    }
  }
  if (pbVar2 == (bfd *)0x0) {
    return contents;
  }
  do {
    pbVar3 = pbVar2;
    pbVar2 = pbVar3->archive_next;
  } while (pbVar2 != (bfd *)0x0);
  return &pbVar3->archive_next;
}



long * FUN_00104e70(long *param_1,int param_2,undefined8 param_3)

{
  int iVar1;
  undefined8 *puVar2;
  undefined8 *puVar3;
  
  if (DAT_001104b4 == 0) {
    puVar2 = (undefined8 *)*param_1;
    if (param_2 != 3) goto LAB_00104eb8;
  }
  else {
    puVar2 = (undefined8 *)*param_1;
    param_3 = DAT_001104b8;
    param_2 = DAT_001104b4;
    if (DAT_001104b4 != 3) {
LAB_00104eb8:
      while( true ) {
        if (puVar2 == (undefined8 *)0x0) {
          return param_1;
        }
        iVar1 = filename_cmp(*puVar2,param_3);
        if (iVar1 == 0) break;
        puVar2 = *(undefined8 **)(*param_1 + 0xd8);
        param_1 = (long *)(*param_1 + 0xd8);
      }
      if (param_2 != 2) {
        return param_1;
      }
      return (long *)(*param_1 + 0xd8);
    }
  }
  if (puVar2 == (undefined8 *)0x0) {
    return param_1;
  }
  do {
    puVar3 = puVar2;
    puVar2 = (undefined8 *)puVar3[0x1b];
  } while (puVar2 != (undefined8 *)0x0);
  return puVar3 + 0x1b;
}


MOV EAX,dword ptr [0x001104b4]
PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
TEST EAX,EAX
JZ 0x00104ec8
MOV EBP,EAX
MOV R12,qword ptr [0x001104b8]
MOV RDI,qword ptr [RBX]
CMP EBP,0x3
JNZ 0x00104eb8
JMP 0x00104ed5
MOV RDI,qword ptr [RDI]
MOV RSI,R12
CALL 0x00102140
TEST EAX,EAX
JZ 0x00104f00
MOV RDX,qword ptr [RBX]
MOV RDI,qword ptr [RDX + 0xd8]
LEA RBX,[RDX + 0xd8]
TEST RDI,RDI
JNZ 0x00104e98
MOV RAX,RBX
POP RBX
POP RBP
POP R12
RET
MOV EBP,ESI
MOV R12,RDX
MOV RDI,qword ptr [RBX]
CMP EBP,0x3
JNZ 0x00104eb8
TEST RDI,RDI
JNZ 0x00104ee3
JMP 0x00104ebd
MOV RDI,RAX
MOV RAX,qword ptr [RDI + 0xd8]
TEST RAX,RAX
JNZ 0x00104ee0
POP RBX
LEA RAX,[RDI + 0xd8]
POP RBP
POP R12
RET
MOV RAX,RBX
CMP EBP,0x2
JNZ 0x00104ec0
MOV RBX,qword ptr [RBX]
LEA RAX,[RBX + 0xd8]
POP RBX
POP RBP
POP R12
RET
(translation_unit "long * FUN_00104e70(long *param_1,int param_2,undefined8 param_3)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  if (DAT_001104b4 == 0) {\n    puVar2 = (undefined8 *)*param_1;\n    if (param_2 != 3) goto LAB_00104eb8;\n  }\n  else {\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }\n  if (puVar2 == (undefined8 *)0x0) {\n    return param_1;\n  }\n  do {\n    puVar3 = puVar2;\n    puVar2 = (undefined8 *)puVar3[0x1b];\n  } while (puVar2 != (undefined8 *)0x0);\n  return puVar3 + 0x1b;\n}\n\n" (function_definition "long * FUN_00104e70(long *param_1,int param_2,undefined8 param_3)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  if (DAT_001104b4 == 0) {\n    puVar2 = (undefined8 *)*param_1;\n    if (param_2 != 3) goto LAB_00104eb8;\n  }\n  else {\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }\n  if (puVar2 == (undefined8 *)0x0) {\n    return param_1;\n  }\n  do {\n    puVar3 = puVar2;\n    puVar2 = (undefined8 *)puVar3[0x1b];\n  } while (puVar2 != (undefined8 *)0x0);\n  return puVar3 + 0x1b;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_00104e70(long *param_1,int param_2,undefined8 param_3)" * (function_declarator "FUN_00104e70(long *param_1,int param_2,undefined8 param_3)" identifier (parameter_list "(long *param_1,int param_2,undefined8 param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  if (DAT_001104b4 == 0) {\n    puVar2 = (undefined8 *)*param_1;\n    if (param_2 != 3) goto LAB_00104eb8;\n  }\n  else {\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }\n  if (puVar2 == (undefined8 *)0x0) {\n    return param_1;\n  }\n  do {\n    puVar3 = puVar2;\n    puVar2 = (undefined8 *)puVar3[0x1b];\n  } while (puVar2 != (undefined8 *)0x0);\n  return puVar3 + 0x1b;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (DAT_001104b4 == 0) {\n    puVar2 = (undefined8 *)*param_1;\n    if (param_2 != 3) goto LAB_00104eb8;\n  }\n  else {\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }" if (parenthesized_expression "(DAT_001104b4 == 0)" ( (binary_expression "DAT_001104b4 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = (undefined8 *)*param_1;\n    if (param_2 != 3) goto LAB_00104eb8;\n  }" { (expression_statement "puVar2 = (undefined8 *)*param_1;" (assignment_expression "puVar2 = (undefined8 *)*param_1" identifier = (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (param_2 != 3) goto LAB_00104eb8;" if (parenthesized_expression "(param_2 != 3)" ( (binary_expression "param_2 != 3" identifier != number_literal) )) (goto_statement "goto LAB_00104eb8;" goto statement_identifier ;)) }) (else_clause "else {\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }" else (compound_statement "{\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }" { (expression_statement "puVar2 = (undefined8 *)*param_1;" (assignment_expression "puVar2 = (undefined8 *)*param_1" identifier = (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "param_3 = DAT_001104b8;" (assignment_expression "param_3 = DAT_001104b8" identifier = identifier) ;) (expression_statement "param_2 = DAT_001104b4;" (assignment_expression "param_2 = DAT_001104b4" identifier = identifier) ;) (if_statement "if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }" if (parenthesized_expression "(DAT_001104b4 != 3)" ( (binary_expression "DAT_001104b4 != 3" identifier != number_literal) )) (compound_statement "{\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }" { (labeled_statement "LAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }" statement_identifier : (while_statement "while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }" { (if_statement "if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }" if (parenthesized_expression "(puVar2 == (undefined8 *)0x0)" ( (binary_expression "puVar2 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar1 = filename_cmp(*puVar2,param_3);" (assignment_expression "iVar1 = filename_cmp(*puVar2,param_3)" identifier = (call_expression "filename_cmp(*puVar2,param_3)" identifier (argument_list "(*puVar2,param_3)" ( (pointer_expression "*puVar2" * identifier) , identifier )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar2 = *(undefined8 **)(*param_1 + 0xd8);" (assignment_expression "puVar2 = *(undefined8 **)(*param_1 + 0xd8)" identifier = (pointer_expression "*(undefined8 **)(*param_1 + 0xd8)" * (cast_expression "(undefined8 **)(*param_1 + 0xd8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0xd8)" ( (binary_expression "*param_1 + 0xd8" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "param_1 = (long *)(*param_1 + 0xd8);" (assignment_expression "param_1 = (long *)(*param_1 + 0xd8)" identifier = (cast_expression "(long *)(*param_1 + 0xd8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xd8)" ( (binary_expression "*param_1 + 0xd8" (pointer_expression "*param_1" * identifier) + number_literal) )))) ;) }))) (if_statement "if (param_2 != 2) {\n        return param_1;\n      }" if (parenthesized_expression "(param_2 != 2)" ( (binary_expression "param_2 != 2" identifier != number_literal) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) (return_statement "return (long *)(*param_1 + 0xd8);" return (cast_expression "(long *)(*param_1 + 0xd8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xd8)" ( (binary_expression "*param_1 + 0xd8" (pointer_expression "*param_1" * identifier) + number_literal) ))) ;) })) }))) (if_statement "if (puVar2 == (undefined8 *)0x0) {\n    return param_1;\n  }" if (parenthesized_expression "(puVar2 == (undefined8 *)0x0)" ( (binary_expression "puVar2 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (do_statement "do {\n    puVar3 = puVar2;\n    puVar2 = (undefined8 *)puVar3[0x1b];\n  } while (puVar2 != (undefined8 *)0x0);" do (compound_statement "{\n    puVar3 = puVar2;\n    puVar2 = (undefined8 *)puVar3[0x1b];\n  }" { (expression_statement "puVar3 = puVar2;" (assignment_expression "puVar3 = puVar2" identifier = identifier) ;) (expression_statement "puVar2 = (undefined8 *)puVar3[0x1b];" (assignment_expression "puVar2 = (undefined8 *)puVar3[0x1b]" identifier = (cast_expression "(undefined8 *)puVar3[0x1b]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[0x1b]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(puVar2 != (undefined8 *)0x0)" ( (binary_expression "puVar2 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return puVar3 + 0x1b;" return (binary_expression "puVar3 + 0x1b" identifier + number_literal) ;) })))
(translation_unit "bfd ** get_pos_bfd(bfd **contents,pos default_pos,char *default_posname)\n\n{\n  int iVar1;\n  bfd **after_bfd;\n  bfd *pbVar2;\n  bfd *pbVar3;\n  \n  if (postype == pos_default) {\n    pbVar2 = *contents;\n    if (default_pos != pos_end) goto LAB_00104eb8;\n  }\n  else {\n    pbVar2 = *contents;\n    default_posname = posname;\n    default_pos = postype;\n    if (postype != pos_end) {\nLAB_00104eb8:\n      while( true ) {\n        if (pbVar2 == (bfd *)0x0) {\n          return contents;\n        }\n        iVar1 = filename_cmp(pbVar2->filename,default_posname);\n        if (iVar1 == 0) break;\n        pbVar2 = (*contents)->archive_next;\n        contents = &(*contents)->archive_next;\n      }\n      if (default_pos != pos_after) {\n        return contents;\n      }\n      return &(*contents)->archive_next;\n    }\n  }\n  if (pbVar2 == (bfd *)0x0) {\n    return contents;\n  }\n  do {\n    pbVar3 = pbVar2;\n    pbVar2 = pbVar3->archive_next;\n  } while (pbVar2 != (bfd *)0x0);\n  return &pbVar3->archive_next;\n}\n\n" (function_definition "bfd ** get_pos_bfd(bfd **contents,pos default_pos,char *default_posname)\n\n{\n  int iVar1;\n  bfd **after_bfd;\n  bfd *pbVar2;\n  bfd *pbVar3;\n  \n  if (postype == pos_default) {\n    pbVar2 = *contents;\n    if (default_pos != pos_end) goto LAB_00104eb8;\n  }\n  else {\n    pbVar2 = *contents;\n    default_posname = posname;\n    default_pos = postype;\n    if (postype != pos_end) {\nLAB_00104eb8:\n      while( true ) {\n        if (pbVar2 == (bfd *)0x0) {\n          return contents;\n        }\n        iVar1 = filename_cmp(pbVar2->filename,default_posname);\n        if (iVar1 == 0) break;\n        pbVar2 = (*contents)->archive_next;\n        contents = &(*contents)->archive_next;\n      }\n      if (default_pos != pos_after) {\n        return contents;\n      }\n      return &(*contents)->archive_next;\n    }\n  }\n  if (pbVar2 == (bfd *)0x0) {\n    return contents;\n  }\n  do {\n    pbVar3 = pbVar2;\n    pbVar2 = pbVar3->archive_next;\n  } while (pbVar2 != (bfd *)0x0);\n  return &pbVar3->archive_next;\n}" type_identifier (pointer_declarator "** get_pos_bfd(bfd **contents,pos default_pos,char *default_posname)" * (pointer_declarator "* get_pos_bfd(bfd **contents,pos default_pos,char *default_posname)" * (function_declarator "get_pos_bfd(bfd **contents,pos default_pos,char *default_posname)" identifier (parameter_list "(bfd **contents,pos default_pos,char *default_posname)" ( (parameter_declaration "bfd **contents" type_identifier (pointer_declarator "**contents" * (pointer_declarator "*contents" * identifier))) , (parameter_declaration "pos default_pos" type_identifier identifier) , (parameter_declaration "char *default_posname" primitive_type (pointer_declarator "*default_posname" * identifier)) ))))) (compound_statement "{\n  int iVar1;\n  bfd **after_bfd;\n  bfd *pbVar2;\n  bfd *pbVar3;\n  \n  if (postype == pos_default) {\n    pbVar2 = *contents;\n    if (default_pos != pos_end) goto LAB_00104eb8;\n  }\n  else {\n    pbVar2 = *contents;\n    default_posname = posname;\n    default_pos = postype;\n    if (postype != pos_end) {\nLAB_00104eb8:\n      while( true ) {\n        if (pbVar2 == (bfd *)0x0) {\n          return contents;\n        }\n        iVar1 = filename_cmp(pbVar2->filename,default_posname);\n        if (iVar1 == 0) break;\n        pbVar2 = (*contents)->archive_next;\n        contents = &(*contents)->archive_next;\n      }\n      if (default_pos != pos_after) {\n        return contents;\n      }\n      return &(*contents)->archive_next;\n    }\n  }\n  if (pbVar2 == (bfd *)0x0) {\n    return contents;\n  }\n  do {\n    pbVar3 = pbVar2;\n    pbVar2 = pbVar3->archive_next;\n  } while (pbVar2 != (bfd *)0x0);\n  return &pbVar3->archive_next;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bfd **after_bfd;" type_identifier (pointer_declarator "**after_bfd" * (pointer_declarator "*after_bfd" * identifier)) ;) (declaration "bfd *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "bfd *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (if_statement "if (postype == pos_default) {\n    pbVar2 = *contents;\n    if (default_pos != pos_end) goto LAB_00104eb8;\n  }\n  else {\n    pbVar2 = *contents;\n    default_posname = posname;\n    default_pos = postype;\n    if (postype != pos_end) {\nLAB_00104eb8:\n      while( true ) {\n        if (pbVar2 == (bfd *)0x0) {\n          return contents;\n        }\n        iVar1 = filename_cmp(pbVar2->filename,default_posname);\n        if (iVar1 == 0) break;\n        pbVar2 = (*contents)->archive_next;\n        contents = &(*contents)->archive_next;\n      }\n      if (default_pos != pos_after) {\n        return contents;\n      }\n      return &(*contents)->archive_next;\n    }\n  }" if (parenthesized_expression "(postype == pos_default)" ( (binary_expression "postype == pos_default" identifier == identifier) )) (compound_statement "{\n    pbVar2 = *contents;\n    if (default_pos != pos_end) goto LAB_00104eb8;\n  }" { (expression_statement "pbVar2 = *contents;" (assignment_expression "pbVar2 = *contents" identifier = (pointer_expression "*contents" * identifier)) ;) (if_statement "if (default_pos != pos_end) goto LAB_00104eb8;" if (parenthesized_expression "(default_pos != pos_end)" ( (binary_expression "default_pos != pos_end" identifier != identifier) )) (goto_statement "goto LAB_00104eb8;" goto statement_identifier ;)) }) (else_clause "else {\n    pbVar2 = *contents;\n    default_posname = posname;\n    default_pos = postype;\n    if (postype != pos_end) {\nLAB_00104eb8:\n      while( true ) {\n        if (pbVar2 == (bfd *)0x0) {\n          return contents;\n        }\n        iVar1 = filename_cmp(pbVar2->filename,default_posname);\n        if (iVar1 == 0) break;\n        pbVar2 = (*contents)->archive_next;\n        contents = &(*contents)->archive_next;\n      }\n      if (default_pos != pos_after) {\n        return contents;\n      }\n      return &(*contents)->archive_next;\n    }\n  }" else (compound_statement "{\n    pbVar2 = *contents;\n    default_posname = posname;\n    default_pos = postype;\n    if (postype != pos_end) {\nLAB_00104eb8:\n      while( true ) {\n        if (pbVar2 == (bfd *)0x0) {\n          return contents;\n        }\n        iVar1 = filename_cmp(pbVar2->filename,default_posname);\n        if (iVar1 == 0) break;\n        pbVar2 = (*contents)->archive_next;\n        contents = &(*contents)->archive_next;\n      }\n      if (default_pos != pos_after) {\n        return contents;\n      }\n      return &(*contents)->archive_next;\n    }\n  }" { (expression_statement "pbVar2 = *contents;" (assignment_expression "pbVar2 = *contents" identifier = (pointer_expression "*contents" * identifier)) ;) (expression_statement "default_posname = posname;" (assignment_expression "default_posname = posname" identifier = identifier) ;) (expression_statement "default_pos = postype;" (assignment_expression "default_pos = postype" identifier = identifier) ;) (if_statement "if (postype != pos_end) {\nLAB_00104eb8:\n      while( true ) {\n        if (pbVar2 == (bfd *)0x0) {\n          return contents;\n        }\n        iVar1 = filename_cmp(pbVar2->filename,default_posname);\n        if (iVar1 == 0) break;\n        pbVar2 = (*contents)->archive_next;\n        contents = &(*contents)->archive_next;\n      }\n      if (default_pos != pos_after) {\n        return contents;\n      }\n      return &(*contents)->archive_next;\n    }" if (parenthesized_expression "(postype != pos_end)" ( (binary_expression "postype != pos_end" identifier != identifier) )) (compound_statement "{\nLAB_00104eb8:\n      while( true ) {\n        if (pbVar2 == (bfd *)0x0) {\n          return contents;\n        }\n        iVar1 = filename_cmp(pbVar2->filename,default_posname);\n        if (iVar1 == 0) break;\n        pbVar2 = (*contents)->archive_next;\n        contents = &(*contents)->archive_next;\n      }\n      if (default_pos != pos_after) {\n        return contents;\n      }\n      return &(*contents)->archive_next;\n    }" { (labeled_statement "LAB_00104eb8:\n      while( true ) {\n        if (pbVar2 == (bfd *)0x0) {\n          return contents;\n        }\n        iVar1 = filename_cmp(pbVar2->filename,default_posname);\n        if (iVar1 == 0) break;\n        pbVar2 = (*contents)->archive_next;\n        contents = &(*contents)->archive_next;\n      }" statement_identifier : (while_statement "while( true ) {\n        if (pbVar2 == (bfd *)0x0) {\n          return contents;\n        }\n        iVar1 = filename_cmp(pbVar2->filename,default_posname);\n        if (iVar1 == 0) break;\n        pbVar2 = (*contents)->archive_next;\n        contents = &(*contents)->archive_next;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (pbVar2 == (bfd *)0x0) {\n          return contents;\n        }\n        iVar1 = filename_cmp(pbVar2->filename,default_posname);\n        if (iVar1 == 0) break;\n        pbVar2 = (*contents)->archive_next;\n        contents = &(*contents)->archive_next;\n      }" { (if_statement "if (pbVar2 == (bfd *)0x0) {\n          return contents;\n        }" if (parenthesized_expression "(pbVar2 == (bfd *)0x0)" ( (binary_expression "pbVar2 == (bfd *)0x0" identifier == (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return contents;\n        }" { (return_statement "return contents;" return identifier ;) })) (expression_statement "iVar1 = filename_cmp(pbVar2->filename,default_posname);" (assignment_expression "iVar1 = filename_cmp(pbVar2->filename,default_posname)" identifier = (call_expression "filename_cmp(pbVar2->filename,default_posname)" identifier (argument_list "(pbVar2->filename,default_posname)" ( (field_expression "pbVar2->filename" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pbVar2 = (*contents)->archive_next;" (assignment_expression "pbVar2 = (*contents)->archive_next" identifier = (field_expression "(*contents)->archive_next" (parenthesized_expression "(*contents)" ( (pointer_expression "*contents" * identifier) )) -> field_identifier)) ;) (expression_statement "contents = &(*contents)->archive_next;" (assignment_expression "contents = &(*contents)->archive_next" identifier = (pointer_expression "&(*contents)->archive_next" & (field_expression "(*contents)->archive_next" (parenthesized_expression "(*contents)" ( (pointer_expression "*contents" * identifier) )) -> field_identifier))) ;) }))) (if_statement "if (default_pos != pos_after) {\n        return contents;\n      }" if (parenthesized_expression "(default_pos != pos_after)" ( (binary_expression "default_pos != pos_after" identifier != identifier) )) (compound_statement "{\n        return contents;\n      }" { (return_statement "return contents;" return identifier ;) })) (return_statement "return &(*contents)->archive_next;" return (pointer_expression "&(*contents)->archive_next" & (field_expression "(*contents)->archive_next" (parenthesized_expression "(*contents)" ( (pointer_expression "*contents" * identifier) )) -> field_identifier)) ;) })) }))) (if_statement "if (pbVar2 == (bfd *)0x0) {\n    return contents;\n  }" if (parenthesized_expression "(pbVar2 == (bfd *)0x0)" ( (binary_expression "pbVar2 == (bfd *)0x0" identifier == (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return contents;\n  }" { (return_statement "return contents;" return identifier ;) })) (do_statement "do {\n    pbVar3 = pbVar2;\n    pbVar2 = pbVar3->archive_next;\n  } while (pbVar2 != (bfd *)0x0);" do (compound_statement "{\n    pbVar3 = pbVar2;\n    pbVar2 = pbVar3->archive_next;\n  }" { (expression_statement "pbVar3 = pbVar2;" (assignment_expression "pbVar3 = pbVar2" identifier = identifier) ;) (expression_statement "pbVar2 = pbVar3->archive_next;" (assignment_expression "pbVar2 = pbVar3->archive_next" identifier = (field_expression "pbVar3->archive_next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pbVar2 != (bfd *)0x0)" ( (binary_expression "pbVar2 != (bfd *)0x0" identifier != (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return &pbVar3->archive_next;" return (pointer_expression "&pbVar3->archive_next" & (field_expression "pbVar3->archive_next" identifier -> field_identifier)) ;) })))
(translation_unit "long * FUN_00104e70(long *param_1,int param_2,undefined8 param_3)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  if (DAT_001104b4 == 0) {\n    puVar2 = (undefined8 *)*param_1;\n    if (param_2 != 3) goto LAB_00104eb8;\n  }\n  else {\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }\n  if (puVar2 == (undefined8 *)0x0) {\n    return param_1;\n  }\n  do {\n    puVar3 = puVar2;\n    puVar2 = (undefined8 *)puVar3[0x1b];\n  } while (puVar2 != (undefined8 *)0x0);\n  return puVar3 + 0x1b;\n}\n\n" (function_definition "long * FUN_00104e70(long *param_1,int param_2,undefined8 param_3)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  if (DAT_001104b4 == 0) {\n    puVar2 = (undefined8 *)*param_1;\n    if (param_2 != 3) goto LAB_00104eb8;\n  }\n  else {\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }\n  if (puVar2 == (undefined8 *)0x0) {\n    return param_1;\n  }\n  do {\n    puVar3 = puVar2;\n    puVar2 = (undefined8 *)puVar3[0x1b];\n  } while (puVar2 != (undefined8 *)0x0);\n  return puVar3 + 0x1b;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_00104e70(long *param_1,int param_2,undefined8 param_3)" * (function_declarator "FUN_00104e70(long *param_1,int param_2,undefined8 param_3)" identifier (parameter_list "(long *param_1,int param_2,undefined8 param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  if (DAT_001104b4 == 0) {\n    puVar2 = (undefined8 *)*param_1;\n    if (param_2 != 3) goto LAB_00104eb8;\n  }\n  else {\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }\n  if (puVar2 == (undefined8 *)0x0) {\n    return param_1;\n  }\n  do {\n    puVar3 = puVar2;\n    puVar2 = (undefined8 *)puVar3[0x1b];\n  } while (puVar2 != (undefined8 *)0x0);\n  return puVar3 + 0x1b;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (DAT_001104b4 == 0) {\n    puVar2 = (undefined8 *)*param_1;\n    if (param_2 != 3) goto LAB_00104eb8;\n  }\n  else {\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }" if (parenthesized_expression "(DAT_001104b4 == 0)" ( (binary_expression "DAT_001104b4 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = (undefined8 *)*param_1;\n    if (param_2 != 3) goto LAB_00104eb8;\n  }" { (expression_statement "puVar2 = (undefined8 *)*param_1;" (assignment_expression "puVar2 = (undefined8 *)*param_1" identifier = (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (param_2 != 3) goto LAB_00104eb8;" if (parenthesized_expression "(param_2 != 3)" ( (binary_expression "param_2 != 3" identifier != number_literal) )) (goto_statement "goto LAB_00104eb8;" goto statement_identifier ;)) }) (else_clause "else {\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }" else (compound_statement "{\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }" { (expression_statement "puVar2 = (undefined8 *)*param_1;" (assignment_expression "puVar2 = (undefined8 *)*param_1" identifier = (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "param_3 = DAT_001104b8;" (assignment_expression "param_3 = DAT_001104b8" identifier = identifier) ;) (expression_statement "param_2 = DAT_001104b4;" (assignment_expression "param_2 = DAT_001104b4" identifier = identifier) ;) (if_statement "if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }" if (parenthesized_expression "(DAT_001104b4 != 3)" ( (binary_expression "DAT_001104b4 != 3" identifier != number_literal) )) (compound_statement "{\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }" { (labeled_statement "LAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }" statement_identifier : (while_statement "while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }" { (if_statement "if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }" if (parenthesized_expression "(puVar2 == (undefined8 *)0x0)" ( (binary_expression "puVar2 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar1 = filename_cmp(*puVar2,param_3);" (assignment_expression "iVar1 = filename_cmp(*puVar2,param_3)" identifier = (call_expression "filename_cmp(*puVar2,param_3)" identifier (argument_list "(*puVar2,param_3)" ( (pointer_expression "*puVar2" * identifier) , identifier )))) ;) (if_statement "if (iVar1 == 0) break;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar2 = *(undefined8 **)(*param_1 + 0xd8);" (assignment_expression "puVar2 = *(undefined8 **)(*param_1 + 0xd8)" identifier = (pointer_expression "*(undefined8 **)(*param_1 + 0xd8)" * (cast_expression "(undefined8 **)(*param_1 + 0xd8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0xd8)" ( (binary_expression "*param_1 + 0xd8" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "param_1 = (long *)(*param_1 + 0xd8);" (assignment_expression "param_1 = (long *)(*param_1 + 0xd8)" identifier = (cast_expression "(long *)(*param_1 + 0xd8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xd8)" ( (binary_expression "*param_1 + 0xd8" (pointer_expression "*param_1" * identifier) + number_literal) )))) ;) }))) (if_statement "if (param_2 != 2) {\n        return param_1;\n      }" if (parenthesized_expression "(param_2 != 2)" ( (binary_expression "param_2 != 2" identifier != number_literal) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) (return_statement "return (long *)(*param_1 + 0xd8);" return (cast_expression "(long *)(*param_1 + 0xd8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xd8)" ( (binary_expression "*param_1 + 0xd8" (pointer_expression "*param_1" * identifier) + number_literal) ))) ;) })) }))) (if_statement "if (puVar2 == (undefined8 *)0x0) {\n    return param_1;\n  }" if (parenthesized_expression "(puVar2 == (undefined8 *)0x0)" ( (binary_expression "puVar2 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (do_statement "do {\n    puVar3 = puVar2;\n    puVar2 = (undefined8 *)puVar3[0x1b];\n  } while (puVar2 != (undefined8 *)0x0);" do (compound_statement "{\n    puVar3 = puVar2;\n    puVar2 = (undefined8 *)puVar3[0x1b];\n  }" { (expression_statement "puVar3 = puVar2;" (assignment_expression "puVar3 = puVar2" identifier = identifier) ;) (expression_statement "puVar2 = (undefined8 *)puVar3[0x1b];" (assignment_expression "puVar2 = (undefined8 *)puVar3[0x1b]" identifier = (cast_expression "(undefined8 *)puVar3[0x1b]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[0x1b]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(puVar2 != (undefined8 *)0x0)" ( (binary_expression "puVar2 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return puVar3 + 0x1b;" return (binary_expression "puVar3 + 0x1b" identifier + number_literal) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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 != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (return_statement return (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))) ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return IDENT ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (return_statement return (binary_expression IDENT + LIT) ;) })))
(function_definition "long * FUN_00104e70(long *param_1,int param_2,undefined8 param_3)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  if (DAT_001104b4 == 0) {\n    puVar2 = (undefined8 *)*param_1;\n    if (param_2 != 3) goto LAB_00104eb8;\n  }\n  else {\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }\n  if (puVar2 == (undefined8 *)0x0) {\n    return param_1;\n  }\n  do {\n    puVar3 = puVar2;\n    puVar2 = (undefined8 *)puVar3[0x1b];\n  } while (puVar2 != (undefined8 *)0x0);\n  return puVar3 + 0x1b;\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* FUN_00104e70(long *param_1,int param_2,undefined8 param_3)" (* "*") (function_declarator "FUN_00104e70(long *param_1,int param_2,undefined8 param_3)" (identifier "FUN_00104e70") (parameter_list "(long *param_1,int param_2,undefined8 param_3)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) () ")")))) (compound_statement "{\n  int iVar1;\n  undefined8 *puVar2;\n  undefined8 *puVar3;\n  \n  if (DAT_001104b4 == 0) {\n    puVar2 = (undefined8 *)*param_1;\n    if (param_2 != 3) goto LAB_00104eb8;\n  }\n  else {\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }\n  if (puVar2 == (undefined8 *)0x0) {\n    return param_1;\n  }\n  do {\n    puVar3 = puVar2;\n    puVar2 = (undefined8 *)puVar3[0x1b];\n  } while (puVar2 != (undefined8 *)0x0);\n  return puVar3 + 0x1b;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined8 *puVar3;" (type_identifier "undefined8") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (if_statement "if (DAT_001104b4 == 0) {\n    puVar2 = (undefined8 *)*param_1;\n    if (param_2 != 3) goto LAB_00104eb8;\n  }\n  else {\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }" (if "if") (parenthesized_expression "(DAT_001104b4 == 0)" (( "(") (binary_expression "DAT_001104b4 == 0" (identifier "DAT_001104b4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2 = (undefined8 *)*param_1;\n    if (param_2 != 3) goto LAB_00104eb8;\n  }" ({ "{") (expression_statement "puVar2 = (undefined8 *)*param_1;" (assignment_expression "puVar2 = (undefined8 *)*param_1" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)*param_1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (param_2 != 3) goto LAB_00104eb8;" (if "if") (parenthesized_expression "(param_2 != 3)" (( "(") (binary_expression "param_2 != 3" (identifier "param_2") (!= "!=") (number_literal "3")) () ")")) (goto_statement "goto LAB_00104eb8;" (goto "goto") (statement_identifier "LAB_00104eb8") (; ";"))) (} "}")) (else_clause "else {\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }" (else "else") (compound_statement "{\n    puVar2 = (undefined8 *)*param_1;\n    param_3 = DAT_001104b8;\n    param_2 = DAT_001104b4;\n    if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }\n  }" ({ "{") (expression_statement "puVar2 = (undefined8 *)*param_1;" (assignment_expression "puVar2 = (undefined8 *)*param_1" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)*param_1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "param_3 = DAT_001104b8;" (assignment_expression "param_3 = DAT_001104b8" (identifier "param_3") (= "=") (identifier "DAT_001104b8")) (; ";")) (expression_statement "param_2 = DAT_001104b4;" (assignment_expression "param_2 = DAT_001104b4" (identifier "param_2") (= "=") (identifier "DAT_001104b4")) (; ";")) (if_statement "if (DAT_001104b4 != 3) {\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }" (if "if") (parenthesized_expression "(DAT_001104b4 != 3)" (( "(") (binary_expression "DAT_001104b4 != 3" (identifier "DAT_001104b4") (!= "!=") (number_literal "3")) () ")")) (compound_statement "{\nLAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }\n      if (param_2 != 2) {\n        return param_1;\n      }\n      return (long *)(*param_1 + 0xd8);\n    }" ({ "{") (labeled_statement "LAB_00104eb8:\n      while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }" (statement_identifier "LAB_00104eb8") (: ":") (while_statement "while( true ) {\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }\n        iVar1 = filename_cmp(*puVar2,param_3);\n        if (iVar1 == 0) break;\n        puVar2 = *(undefined8 **)(*param_1 + 0xd8);\n        param_1 = (long *)(*param_1 + 0xd8);\n      }" ({ "{") (if_statement "if (puVar2 == (undefined8 *)0x0) {\n          return param_1;\n        }" (if "if") (parenthesized_expression "(puVar2 == (undefined8 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined8 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          return param_1;\n        }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "iVar1 = filename_cmp(*puVar2,param_3);" (assignment_expression "iVar1 = filename_cmp(*puVar2,param_3)" (identifier "iVar1") (= "=") (call_expression "filename_cmp(*puVar2,param_3)" (identifier "filename_cmp") (argument_list "(*puVar2,param_3)" (( "(") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) break;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar2 = *(undefined8 **)(*param_1 + 0xd8);" (assignment_expression "puVar2 = *(undefined8 **)(*param_1 + 0xd8)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined8 **)(*param_1 + 0xd8)" (* "*") (cast_expression "(undefined8 **)(*param_1 + 0xd8)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0xd8)" (( "(") (binary_expression "*param_1 + 0xd8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xd8")) () ")"))))) (; ";")) (expression_statement "param_1 = (long *)(*param_1 + 0xd8);" (assignment_expression "param_1 = (long *)(*param_1 + 0xd8)" (identifier "param_1") (= "=") (cast_expression "(long *)(*param_1 + 0xd8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xd8)" (( "(") (binary_expression "*param_1 + 0xd8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xd8")) () ")")))) (; ";")) (} "}")))) (if_statement "if (param_2 != 2) {\n        return param_1;\n      }" (if "if") (parenthesized_expression "(param_2 != 2)" (( "(") (binary_expression "param_2 != 2" (identifier "param_2") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n        return param_1;\n      }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (return_statement "return (long *)(*param_1 + 0xd8);" (return "return") (cast_expression "(long *)(*param_1 + 0xd8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xd8)" (( "(") (binary_expression "*param_1 + 0xd8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xd8")) () ")"))) (; ";")) (} "}"))) (} "}")))) (if_statement "if (puVar2 == (undefined8 *)0x0) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(puVar2 == (undefined8 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined8 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (do_statement "do {\n    puVar3 = puVar2;\n    puVar2 = (undefined8 *)puVar3[0x1b];\n  } while (puVar2 != (undefined8 *)0x0);" (do "do") (compound_statement "{\n    puVar3 = puVar2;\n    puVar2 = (undefined8 *)puVar3[0x1b];\n  }" ({ "{") (expression_statement "puVar3 = puVar2;" (assignment_expression "puVar3 = puVar2" (identifier "puVar3") (= "=") (identifier "puVar2")) (; ";")) (expression_statement "puVar2 = (undefined8 *)puVar3[0x1b];" (assignment_expression "puVar2 = (undefined8 *)puVar3[0x1b]" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)puVar3[0x1b]" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar3[0x1b]" (identifier "puVar3") ([ "[") (number_literal "0x1b") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar2 != (undefined8 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined8 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (return_statement "return puVar3 + 0x1b;" (return "return") (binary_expression "puVar3 + 0x1b" (identifier "puVar3") (+ "+") (number_literal "0x1b")) (; ";")) (} "}")))

type_1 ** function_1(type_1 **contents,type_2 var_3,char *default_posname)

{
  int var_7;
  type_1 **after_bfd;
  type_1 *var_5;
  type_1 *pbVar3;
  
  if (var_1 == var_2) {
    var_5 = *contents;
    if (var_3 != var_4) goto LAB_00104eb8;
  }
  else {
    var_5 = *contents;
    default_posname = posname;
    var_3 = var_1;
    if (var_1 != var_4) {
LAB_00104eb8:
      while( true ) {
        if (var_5 == (type_1 *)0x0) {
          return contents;
        }
        var_7 = var_6(var_5->filename,default_posname);
        if (var_7 == 0) break;
        var_5 = (*contents)->archive_next;
        contents = &(*contents)->archive_next;
      }
      if (var_3 != var_8) {
        return contents;
      }
      return &(*contents)->archive_next;
    }
  }
  if (var_5 == (type_1 *)0x0) {
    return contents;
  }
  do {
    pbVar3 = var_5;
    var_5 = pbVar3->archive_next;
  } while (var_5 != (type_1 *)0x0);
  return &pbVar3->archive_next;
}


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

long * MASKED(long *param_1,int param_2,undefined8 param_3)

{
  int iVar1;
  undefined8 *puVar2;
  undefined8 *puVar3;
  
  if (DAT_001104b4 == 0) {
    puVar2 = (undefined8 *)*param_1;
    if (param_2 != 3) goto LAB_00104eb8;
  }
  else {
    puVar2 = (undefined8 *)*param_1;
    param_3 = DAT_001104b8;
    param_2 = DAT_001104b4;
    if (DAT_001104b4 != 3) {
LAB_00104eb8:
      while( true ) {
        if (puVar2 == (undefined8 *)0x0) {
          return param_1;
        }
        iVar1 = filename_cmp(*puVar2,param_3);
        if (iVar1 == 0) break;
        puVar2 = *(undefined8 **)(*param_1 + 0xd8);
        param_1 = (long *)(*param_1 + 0xd8);
      }
      if (param_2 != 2) {
        return param_1;
      }
      return (long *)(*param_1 + 0xd8);
    }
  }
  if (puVar2 == (undefined8 *)0x0) {
    return param_1;
  }
  do {
    puVar3 = puVar2;
    puVar2 = (undefined8 *)puVar3[0x1b];
  } while (puVar2 != (undefined8 *)0x0);
  return puVar3 + 0x1b;
}

