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

bfd_boolean __regparm3 stab_emit_pending_vars(void *dhandle,stab_handle *info)

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



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

undefined4 __regparm3 FUN_0003f2f0(undefined4 param_1,undefined4 *param_2)

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


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x33d05
SUB ESP,0x1c
MOV EBP,dword ptr [EDX]
MOV dword ptr [ESP + 0xc],EDX
TEST EBP,EBP
JNZ 0x0003f325
JMP 0x0003f350
SUB ESP,0xc
MOV ESI,dword ptr [EBP]
PUSH EBP
MOV EBP,ESI
CALL 0x00014120
ADD ESP,0x10
TEST ESI,ESI
JZ 0x0003f350
SUB ESP,0x8
PUSH dword ptr [EBP + 0x14]
PUSH dword ptr [EBP + 0x10]
PUSH dword ptr [EBP + 0xc]
PUSH dword ptr [EBP + 0x8]
PUSH dword ptr [EBP + 0x4]
PUSH EDI
CALL 0x0003dd30
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x0003f310
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX],0x0
ADD ESP,0x1c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_0003f2f0(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *__ptr;\n  int iVar2;\n  \n  __ptr = (undefined4 *)*param_2;\n  while( true ) {\n    if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0003f2f0(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *__ptr;\n  int iVar2;\n  \n  __ptr = (undefined4 *)*param_2;\n  while( true ) {\n    if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0003f2f0(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *__ptr;\n  int iVar2;\n  \n  __ptr = (undefined4 *)*param_2;\n  while( true ) {\n    if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "__ptr = (undefined4 *)*param_2;" (assignment_expression "__ptr = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (while_statement "while( true ) {\n    if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }" { (if_statement "if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }" if (parenthesized_expression "(__ptr == (undefined4 *)0x0)" ( (binary_expression "__ptr == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" 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 "iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);" (assignment_expression "iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5])" identifier = (call_expression "FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5])" identifier (argument_list "(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5])" ( identifier , (subscript_expression "__ptr[1]" identifier [ number_literal ]) , (subscript_expression "__ptr[2]" identifier [ number_literal ]) , (subscript_expression "__ptr[3]" identifier [ number_literal ]) , (subscript_expression "__ptr[4]" identifier [ number_literal ]) , (subscript_expression "__ptr[5]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined4 *)*__ptr;" (assignment_expression "puVar1 = (undefined4 *)*__ptr" identifier = (cast_expression "(undefined4 *)*__ptr" ( (type_descriptor "undefined4 *" 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 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean __regparm3 stab_emit_pending_vars(void *dhandle,stab_handle *info)\n\n{\n  bfd *pbVar1;\n  bfd_vma val;\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    val._0_4_ = __ptr->lru_prev;\n    val._4_4_ = __ptr->lru_next;\n    bVar2 = debug_record_variable\n                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       (debug_var_kind)__ptr->iovec,val);\n    if (bVar2 == 0) break;\n    pbVar1 = (bfd *)__ptr->filename;\n    free(__ptr);\n    __ptr = pbVar1;\n  }\n  return 0;\n}\n\n" comment (function_definition "bfd_boolean __regparm3 stab_emit_pending_vars(void *dhandle,stab_handle *info)\n\n{\n  bfd *pbVar1;\n  bfd_vma val;\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    val._0_4_ = __ptr->lru_prev;\n    val._4_4_ = __ptr->lru_next;\n    bVar2 = debug_record_variable\n                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       (debug_var_kind)__ptr->iovec,val);\n    if (bVar2 == 0) break;\n    pbVar1 = (bfd *)__ptr->filename;\n    free(__ptr);\n    __ptr = pbVar1;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" 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_vma val;\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    val._0_4_ = __ptr->lru_prev;\n    val._4_4_ = __ptr->lru_next;\n    bVar2 = debug_record_variable\n                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       (debug_var_kind)__ptr->iovec,val);\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_vma val;" type_identifier 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    val._0_4_ = __ptr->lru_prev;\n    val._4_4_ = __ptr->lru_next;\n    bVar2 = debug_record_variable\n                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       (debug_var_kind)__ptr->iovec,val);\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    val._0_4_ = __ptr->lru_prev;\n    val._4_4_ = __ptr->lru_next;\n    bVar2 = debug_record_variable\n                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       (debug_var_kind)__ptr->iovec,val);\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 "val._0_4_ = __ptr->lru_prev;" (assignment_expression "val._0_4_ = __ptr->lru_prev" (field_expression "val._0_4_" identifier . field_identifier) = (field_expression "__ptr->lru_prev" identifier -> field_identifier)) ;) (expression_statement "val._4_4_ = __ptr->lru_next;" (assignment_expression "val._4_4_ = __ptr->lru_next" (field_expression "val._4_4_" identifier . field_identifier) = (field_expression "__ptr->lru_next" identifier -> field_identifier)) ;) (expression_statement "bVar2 = debug_record_variable\n                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       (debug_var_kind)__ptr->iovec,val);" (assignment_expression "bVar2 = debug_record_variable\n                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       (debug_var_kind)__ptr->iovec,val)" identifier = (call_expression "debug_record_variable\n                      (dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       (debug_var_kind)__ptr->iovec,val)" identifier (argument_list "(dhandle,(char *)__ptr->xvec,(debug_type_conflict)__ptr->iostream,\n                       (debug_var_kind)__ptr->iovec,val)" ( 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)) , (cast_expression "(debug_var_kind)__ptr->iovec" ( (type_descriptor "debug_var_kind" type_identifier) ) (field_expression "__ptr->iovec" identifier -> field_identifier)) , 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 "undefined4 __regparm3 FUN_0003f2f0(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *__ptr;\n  int iVar2;\n  \n  __ptr = (undefined4 *)*param_2;\n  while( true ) {\n    if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0003f2f0(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *__ptr;\n  int iVar2;\n  \n  __ptr = (undefined4 *)*param_2;\n  while( true ) {\n    if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0003f2f0(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *__ptr;\n  int iVar2;\n  \n  __ptr = (undefined4 *)*param_2;\n  while( true ) {\n    if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "__ptr = (undefined4 *)*param_2;" (assignment_expression "__ptr = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (while_statement "while( true ) {\n    if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }" { (if_statement "if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }" if (parenthesized_expression "(__ptr == (undefined4 *)0x0)" ( (binary_expression "__ptr == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" 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 "iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);" (assignment_expression "iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5])" identifier = (call_expression "FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5])" identifier (argument_list "(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5])" ( identifier , (subscript_expression "__ptr[1]" identifier [ number_literal ]) , (subscript_expression "__ptr[2]" identifier [ number_literal ]) , (subscript_expression "__ptr[3]" identifier [ number_literal ]) , (subscript_expression "__ptr[4]" identifier [ number_literal ]) , (subscript_expression "__ptr[5]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined4 *)*__ptr;" (assignment_expression "puVar1 = (undefined4 *)*__ptr" identifier = (cast_expression "(undefined4 *)*__ptr" ( (type_descriptor "undefined4 *" 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 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (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 ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression 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 LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_0003f2f0(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *__ptr;\n  int iVar2;\n  \n  __ptr = (undefined4 *)*param_2;\n  while( true ) {\n    if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0003f2f0(undefined4 param_1,undefined4 *param_2)" (identifier "FUN_0003f2f0") (parameter_list "(undefined4 param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *__ptr;\n  int iVar2;\n  \n  __ptr = (undefined4 *)*param_2;\n  while( true ) {\n    if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *__ptr;" (type_identifier "undefined4") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "__ptr = (undefined4 *)*param_2;" (assignment_expression "__ptr = (undefined4 *)*param_2" (identifier "__ptr") (= "=") (cast_expression "(undefined4 *)*param_2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (while_statement "while( true ) {\n    if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }\n    iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);\n    if (iVar2 == 0) break;\n    puVar1 = (undefined4 *)*__ptr;\n    free(__ptr);\n    __ptr = puVar1;\n  }" ({ "{") (if_statement "if (__ptr == (undefined4 *)0x0) {\n      *param_2 = 0;\n      return 1;\n    }" (if "if") (parenthesized_expression "(__ptr == (undefined4 *)0x0)" (( "(") (binary_expression "__ptr == (undefined4 *)0x0" (identifier "__ptr") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (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 "iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5]);" (assignment_expression "iVar2 = FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5])" (identifier "iVar2") (= "=") (call_expression "FUN_0003dd30(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5])" (identifier "FUN_0003dd30") (argument_list "(param_1,__ptr[1],__ptr[2],__ptr[3],__ptr[4],__ptr[5])" (( "(") (identifier "param_1") (, ",") (subscript_expression "__ptr[1]" (identifier "__ptr") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "__ptr[2]" (identifier "__ptr") ([ "[") (number_literal "2") (] "]")) (, ",") (subscript_expression "__ptr[3]" (identifier "__ptr") ([ "[") (number_literal "3") (] "]")) (, ",") (subscript_expression "__ptr[4]" (identifier "__ptr") ([ "[") (number_literal "4") (] "]")) (, ",") (subscript_expression "__ptr[5]" (identifier "__ptr") ([ "[") (number_literal "5") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) break;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar1 = (undefined4 *)*__ptr;" (assignment_expression "puVar1 = (undefined4 *)*__ptr" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*__ptr" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (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 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 __regparm3 function_1(void *dhandle,type_2 *info)

{
  type_3 *pbVar1;
  type_4 val;
  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;
    }
    val._0_4_ = var_1->lru_prev;
    val._4_4_ = var_1->lru_next;
    var_3 = var_2
                      (dhandle,(char *)var_1->xvec,(type_5)var_1->iostream,
                       (type_6)var_1->iovec,val);
    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) (ERROR (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: (primitive_type) 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)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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 (number_literal)))))

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

undefined4 __regparm3 MASKED(undefined4 param_1,undefined4 *param_2)

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

