
bfd_boolean stab_emit_pending_vars(void *dhandle,stab_handle *info)

{
  bfd *pbVar1;
  bfd *__ptr;
  bfd_boolean bVar2;
  
  __ptr = info->abfd;
  while( true ) {
    if (__ptr == (bfd *)0x0) {
      info->abfd = (bfd *)0x0;
      return 1;
    }
    bVar2 = debug_record_variable
                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,
                       *(debug_var_kind *)&__ptr->iovec,(bfd_vma)__ptr->lru_prev);
    if (bVar2 == 0) break;
    pbVar1 = (bfd *)__ptr->filename;
    free(__ptr);
    __ptr = pbVar1;
  }
  return 0;
}



undefined8 FUN_0012e810(undefined8 param_1,undefined8 *param_2)

{
  undefined8 *puVar1;
  undefined8 *__ptr;
  undefined8 uVar2;
  
  __ptr = (undefined8 *)*param_2;
  while( true ) {
    if (__ptr == (undefined8 *)0x0) {
      *param_2 = 0;
      return 1;
    }
    uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);
    if ((int)uVar2 == 0) break;
    puVar1 = (undefined8 *)*__ptr;
    free(__ptr);
    __ptr = puVar1;
  }
  return uVar2;
}


PUSH R13
MOV R13,RSI
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBX,qword ptr [RSI]
TEST RBX,RBX
JZ 0x0012e870
MOV R12,RDI
JMP 0x0012e843
MOV RBP,qword ptr [RBX]
MOV RDI,RBX
CALL 0x00107070
MOV RBX,RBP
TEST RBP,RBP
JZ 0x0012e870
MOV ECX,dword ptr [RBX + 0x18]
MOV RDX,qword ptr [RBX + 0x10]
MOV RDI,R12
MOV RSI,qword ptr [RBX + 0x8]
MOV R8,qword ptr [RBX + 0x20]
CALL 0x0012d410
TEST EAX,EAX
JNZ 0x0012e830
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
MOV qword ptr [R13],0x0
ADD RSP,0x8
MOV EAX,0x1
POP RBX
POP RBP
POP R12
POP R13
RET
(translation_unit "undefined8 FUN_0012e810(undefined8 param_1,undefined8 *param_2)\n\n{\n  undefined8 *puVar1;\n  undefined8 *__ptr;\n  undefined8 uVar2;\n  \n  __ptr = (undefined8 *)*param_2;\n  while( true ) {\n    if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);\n    if ((int)uVar2 == 0) break;\n    puVar1 = (undefined8 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined8 FUN_0012e810(undefined8 param_1,undefined8 *param_2)\n\n{\n  undefined8 *puVar1;\n  undefined8 *__ptr;\n  undefined8 uVar2;\n  \n  __ptr = (undefined8 *)*param_2;\n  while( true ) {\n    if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);\n    if ((int)uVar2 == 0) break;\n    puVar1 = (undefined8 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0012e810(undefined8 param_1,undefined8 *param_2)" identifier (parameter_list "(undefined8 param_1,undefined8 *param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 *__ptr;\n  undefined8 uVar2;\n  \n  __ptr = (undefined8 *)*param_2;\n  while( true ) {\n    if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);\n    if ((int)uVar2 == 0) break;\n    puVar1 = (undefined8 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }\n  return uVar2;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "__ptr = (undefined8 *)*param_2;" (assignment_expression "__ptr = (undefined8 *)*param_2" identifier = (cast_expression "(undefined8 *)*param_2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (while_statement "while( true ) {\n    if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);\n    if ((int)uVar2 == 0) break;\n    puVar1 = (undefined8 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);\n    if ((int)uVar2 == 0) break;\n    puVar1 = (undefined8 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }" { (if_statement "if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }" if (parenthesized_expression "(__ptr == (undefined8 *)0x0)" ( (binary_expression "__ptr == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_2 = 0;\n      return 1;\n    }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);" (assignment_expression "uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4])" identifier = (call_expression "FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4])" identifier (argument_list "(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4])" ( identifier , (subscript_expression "__ptr[1]" identifier [ number_literal ]) , (subscript_expression "__ptr[2]" identifier [ number_literal ]) , (pointer_expression "*(undefined4 *)(__ptr + 3)" * (cast_expression "(undefined4 *)(__ptr + 3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__ptr + 3)" ( (binary_expression "__ptr + 3" identifier + number_literal) )))) , (subscript_expression "__ptr[4]" identifier [ number_literal ]) )))) ;) (if_statement "if ((int)uVar2 == 0) break;" if (parenthesized_expression "((int)uVar2 == 0)" ( (binary_expression "(int)uVar2 == 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined8 *)*__ptr;" (assignment_expression "puVar1 = (undefined8 *)*__ptr" identifier = (cast_expression "(undefined8 *)*__ptr" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*__ptr" * identifier))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = puVar1;" (assignment_expression "__ptr = puVar1" identifier = identifier) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "bfd_boolean stab_emit_pending_vars(void *dhandle,stab_handle *info)\n\n{\n  bfd *pbVar1;\n  bfd *__ptr;\n  bfd_boolean bVar2;\n  \n  __ptr = info->abfd;\n  while( true ) {\n    if (__ptr == (bfd *)0x0) {\n      info->abfd = (bfd *)0x0;\n      return 1;\n    }\n    bVar2 = debug_record_variable\n                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       *(debug_var_kind *)&__ptr->iovec,(bfd_vma)__ptr->lru_prev);\n    if (bVar2 == 0) break;\n    pbVar1 = (bfd *)__ptr->filename;\n    free(__ptr);\n    __ptr = pbVar1;\n  }\n  return 0;\n}\n\n" (function_definition "bfd_boolean stab_emit_pending_vars(void *dhandle,stab_handle *info)\n\n{\n  bfd *pbVar1;\n  bfd *__ptr;\n  bfd_boolean bVar2;\n  \n  __ptr = info->abfd;\n  while( true ) {\n    if (__ptr == (bfd *)0x0) {\n      info->abfd = (bfd *)0x0;\n      return 1;\n    }\n    bVar2 = debug_record_variable\n                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       *(debug_var_kind *)&__ptr->iovec,(bfd_vma)__ptr->lru_prev);\n    if (bVar2 == 0) break;\n    pbVar1 = (bfd *)__ptr->filename;\n    free(__ptr);\n    __ptr = pbVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "stab_emit_pending_vars(void *dhandle,stab_handle *info)" identifier (parameter_list "(void *dhandle,stab_handle *info)" ( (parameter_declaration "void *dhandle" primitive_type (pointer_declarator "*dhandle" * identifier)) , (parameter_declaration "stab_handle *info" type_identifier (pointer_declarator "*info" * identifier)) ))) (compound_statement "{\n  bfd *pbVar1;\n  bfd *__ptr;\n  bfd_boolean bVar2;\n  \n  __ptr = info->abfd;\n  while( true ) {\n    if (__ptr == (bfd *)0x0) {\n      info->abfd = (bfd *)0x0;\n      return 1;\n    }\n    bVar2 = debug_record_variable\n                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       *(debug_var_kind *)&__ptr->iovec,(bfd_vma)__ptr->lru_prev);\n    if (bVar2 == 0) break;\n    pbVar1 = (bfd *)__ptr->filename;\n    free(__ptr);\n    __ptr = pbVar1;\n  }\n  return 0;\n}" { (declaration "bfd *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "bfd *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "bfd_boolean bVar2;" type_identifier identifier ;) (expression_statement "__ptr = info->abfd;" (assignment_expression "__ptr = info->abfd" identifier = (field_expression "info->abfd" identifier -> field_identifier)) ;) (while_statement "while( true ) {\n    if (__ptr == (bfd *)0x0) {\n      info->abfd = (bfd *)0x0;\n      return 1;\n    }\n    bVar2 = debug_record_variable\n                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       *(debug_var_kind *)&__ptr->iovec,(bfd_vma)__ptr->lru_prev);\n    if (bVar2 == 0) break;\n    pbVar1 = (bfd *)__ptr->filename;\n    free(__ptr);\n    __ptr = pbVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (__ptr == (bfd *)0x0) {\n      info->abfd = (bfd *)0x0;\n      return 1;\n    }\n    bVar2 = debug_record_variable\n                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       *(debug_var_kind *)&__ptr->iovec,(bfd_vma)__ptr->lru_prev);\n    if (bVar2 == 0) break;\n    pbVar1 = (bfd *)__ptr->filename;\n    free(__ptr);\n    __ptr = pbVar1;\n  }" { (if_statement "if (__ptr == (bfd *)0x0) {\n      info->abfd = (bfd *)0x0;\n      return 1;\n    }" if (parenthesized_expression "(__ptr == (bfd *)0x0)" ( (binary_expression "__ptr == (bfd *)0x0" identifier == (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      info->abfd = (bfd *)0x0;\n      return 1;\n    }" { (expression_statement "info->abfd = (bfd *)0x0;" (assignment_expression "info->abfd = (bfd *)0x0" (field_expression "info->abfd" identifier -> field_identifier) = (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "bVar2 = debug_record_variable\n                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       *(debug_var_kind *)&__ptr->iovec,(bfd_vma)__ptr->lru_prev);" (assignment_expression "bVar2 = debug_record_variable\n                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       *(debug_var_kind *)&__ptr->iovec,(bfd_vma)__ptr->lru_prev)" identifier = (call_expression "debug_record_variable\n                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       *(debug_var_kind *)&__ptr->iovec,(bfd_vma)__ptr->lru_prev)" identifier (argument_list "(dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       *(debug_var_kind *)&__ptr->iovec,(bfd_vma)__ptr->lru_prev)" ( identifier , (cast_expression "(char *)__ptr->xvec" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "__ptr->xvec" identifier -> field_identifier)) , (cast_expression "(debug_type_conflict)__ptr->iostream" ( (type_descriptor "debug_type_conflict" type_identifier) ) (field_expression "__ptr->iostream" identifier -> field_identifier)) , (pointer_expression "*(debug_var_kind *)&__ptr->iovec" * (cast_expression "(debug_var_kind *)&__ptr->iovec" ( (type_descriptor "debug_var_kind *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&__ptr->iovec" & (field_expression "__ptr->iovec" identifier -> field_identifier)))) , (cast_expression "(bfd_vma)__ptr->lru_prev" ( (type_descriptor "bfd_vma" type_identifier) ) (field_expression "__ptr->lru_prev" identifier -> field_identifier)) )))) ;) (if_statement "if (bVar2 == 0) break;" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pbVar1 = (bfd *)__ptr->filename;" (assignment_expression "pbVar1 = (bfd *)__ptr->filename" identifier = (cast_expression "(bfd *)__ptr->filename" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "__ptr->filename" identifier -> field_identifier))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = pbVar1;" (assignment_expression "__ptr = pbVar1" identifier = identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8 FUN_0012e810(undefined8 param_1,undefined8 *param_2)\n\n{\n  undefined8 *puVar1;\n  undefined8 *__ptr;\n  undefined8 uVar2;\n  \n  __ptr = (undefined8 *)*param_2;\n  while( true ) {\n    if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);\n    if ((int)uVar2 == 0) break;\n    puVar1 = (undefined8 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined8 FUN_0012e810(undefined8 param_1,undefined8 *param_2)\n\n{\n  undefined8 *puVar1;\n  undefined8 *__ptr;\n  undefined8 uVar2;\n  \n  __ptr = (undefined8 *)*param_2;\n  while( true ) {\n    if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);\n    if ((int)uVar2 == 0) break;\n    puVar1 = (undefined8 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0012e810(undefined8 param_1,undefined8 *param_2)" identifier (parameter_list "(undefined8 param_1,undefined8 *param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 *__ptr;\n  undefined8 uVar2;\n  \n  __ptr = (undefined8 *)*param_2;\n  while( true ) {\n    if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);\n    if ((int)uVar2 == 0) break;\n    puVar1 = (undefined8 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }\n  return uVar2;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "__ptr = (undefined8 *)*param_2;" (assignment_expression "__ptr = (undefined8 *)*param_2" identifier = (cast_expression "(undefined8 *)*param_2" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (while_statement "while( true ) {\n    if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);\n    if ((int)uVar2 == 0) break;\n    puVar1 = (undefined8 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);\n    if ((int)uVar2 == 0) break;\n    puVar1 = (undefined8 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }" { (if_statement "if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }" if (parenthesized_expression "(__ptr == (undefined8 *)0x0)" ( (binary_expression "__ptr == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_2 = 0;\n      return 1;\n    }" { (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);" (assignment_expression "uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4])" identifier = (call_expression "FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4])" identifier (argument_list "(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4])" ( identifier , (subscript_expression "__ptr[1]" identifier [ number_literal ]) , (subscript_expression "__ptr[2]" identifier [ number_literal ]) , (pointer_expression "*(undefined4 *)(__ptr + 3)" * (cast_expression "(undefined4 *)(__ptr + 3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__ptr + 3)" ( (binary_expression "__ptr + 3" identifier + number_literal) )))) , (subscript_expression "__ptr[4]" identifier [ number_literal ]) )))) ;) (if_statement "if ((int)uVar2 == 0) break;" if (parenthesized_expression "((int)uVar2 == 0)" ( (binary_expression "(int)uVar2 == 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined8 *)*__ptr;" (assignment_expression "puVar1 = (undefined8 *)*__ptr" identifier = (cast_expression "(undefined8 *)*__ptr" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*__ptr" * identifier))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = puVar1;" (assignment_expression "__ptr = puVar1" identifier = identifier) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (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 { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined8 FUN_0012e810(undefined8 param_1,undefined8 *param_2)\n\n{\n  undefined8 *puVar1;\n  undefined8 *__ptr;\n  undefined8 uVar2;\n  \n  __ptr = (undefined8 *)*param_2;\n  while( true ) {\n    if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);\n    if ((int)uVar2 == 0) break;\n    puVar1 = (undefined8 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }\n  return uVar2;\n}" (type_identifier "undefined8") (function_declarator "FUN_0012e810(undefined8 param_1,undefined8 *param_2)" (identifier "FUN_0012e810") (parameter_list "(undefined8 param_1,undefined8 *param_2)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 *__ptr;\n  undefined8 uVar2;\n  \n  __ptr = (undefined8 *)*param_2;\n  while( true ) {\n    if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);\n    if ((int)uVar2 == 0) break;\n    puVar1 = (undefined8 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }\n  return uVar2;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined8 *__ptr;" (type_identifier "undefined8") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (expression_statement "__ptr = (undefined8 *)*param_2;" (assignment_expression "__ptr = (undefined8 *)*param_2" (identifier "__ptr") (= "=") (cast_expression "(undefined8 *)*param_2" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (while_statement "while( true ) {\n    if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);\n    if ((int)uVar2 == 0) break;\n    puVar1 = (undefined8 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);\n    if ((int)uVar2 == 0) break;\n    puVar1 = (undefined8 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }" ({ "{") (if_statement "if (__ptr == (undefined8 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }" (if "if") (parenthesized_expression "(__ptr == (undefined8 *)0x0)" (( "(") (binary_expression "__ptr == (undefined8 *)0x0" (identifier "__ptr") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *param_2 = 0;\n      return 1;\n    }" ({ "{") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);" (assignment_expression "uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4])" (identifier "uVar2") (= "=") (call_expression "FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4])" (identifier "FUN_0012d410") (argument_list "(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4])" (( "(") (identifier "param_1") (, ",") (subscript_expression "__ptr[1]" (identifier "__ptr") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "__ptr[2]" (identifier "__ptr") ([ "[") (number_literal "2") (] "]")) (, ",") (pointer_expression "*(undefined4 *)(__ptr + 3)" (* "*") (cast_expression "(undefined4 *)(__ptr + 3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(__ptr + 3)" (( "(") (binary_expression "__ptr + 3" (identifier "__ptr") (+ "+") (number_literal "3")) () ")")))) (, ",") (subscript_expression "__ptr[4]" (identifier "__ptr") ([ "[") (number_literal "4") (] "]")) () ")")))) (; ";")) (if_statement "if ((int)uVar2 == 0) break;" (if "if") (parenthesized_expression "((int)uVar2 == 0)" (( "(") (binary_expression "(int)uVar2 == 0" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar1 = (undefined8 *)*__ptr;" (assignment_expression "puVar1 = (undefined8 *)*__ptr" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)*__ptr" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*__ptr" (* "*") (identifier "__ptr")))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "__ptr = puVar1;" (assignment_expression "__ptr = puVar1" (identifier "__ptr") (= "=") (identifier "puVar1")) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

type_1 function_1(void *dhandle,type_2 *info)

{
  type_3 *pbVar1;
  type_3 *var_1;
  type_1 var_3;
  
  var_1 = info->abfd;
  while( true ) {
    if (var_1 == (type_3 *)0x0) {
      info->abfd = (type_3 *)0x0;
      return 1;
    }
    var_3 = var_2
                      (dhandle,(char *)var_1->xvec,(type_4)var_1->iostream,
                       *(type_5 *)&var_1->iovec,(type_6)var_1->lru_prev);
    if (var_3 == 0) break;
    pbVar1 = (type_3 *)var_1->filename;
    var_4(var_1);
    var_1 = pbVar1;
  }
  return 0;
}


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

undefined8 MASKED(undefined8 param_1,undefined8 *param_2)

{
  undefined8 *puVar1;
  undefined8 *__ptr;
  undefined8 uVar2;
  
  __ptr = (undefined8 *)*param_2;
  while( true ) {
    if (__ptr == (undefined8 *)0x0) {
      *param_2 = 0;
      return 1;
    }
    uVar2 = FUN_0012d410(param_1,__ptr[1],__ptr[2],*(undefined4 *)(__ptr + 3),__ptr[4]);
    if ((int)uVar2 == 0) break;
    puVar1 = (undefined8 *)*__ptr;
    free(__ptr);
    __ptr = puVar1;
  }
  return uVar2;
}

