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

offsetT __regparm3 get_frag_fix(fragS *frag,segT seg)

{
  int iVar1;
  
  if (frag->fr_next != (frag *)0x0) {
    return frag->fr_fix;
  }
  iVar1 = *(int *)seg->name;
  while( true ) {
    if (iVar1 == 0) {
                    /* WARNING: Subroutine does not return */
      as_abort("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");
    }
    if (frag == *(fragS **)(iVar1 + 4)) break;
    iVar1 = *(int *)(iVar1 + 8);
  }
  return (offsetT)(*(int *)(iVar1 + 0x24) - (int)frag->fr_literal);
}



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

longlong __regparm3 FUN_0001a6c0(int param_1,undefined4 *param_2)

{
  int iVar1;
  
  if (*(int *)(param_1 + 0x30) != 0) {
    return *(longlong *)(param_1 + 0x10);
  }
  iVar1 = *(int *)*param_2;
  while( true ) {
    if (iVar1 == 0) {
                    /* WARNING: Subroutine does not return */
      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");
    }
    if (param_1 == *(int *)(iVar1 + 4)) break;
    iVar1 = *(int *)(iVar1 + 8);
  }
  return (longlong)(*(int *)(iVar1 + 0x24) - (param_1 + 0x68));
}


PUSH EBX
CALL 0x00016000
ADD EBX,0x6593a
SUB ESP,0x8
MOV ECX,dword ptr [EAX + 0x30]
TEST ECX,ECX
JZ 0x0001a6e8
MOV EDX,dword ptr [EAX + 0x14]
MOV EAX,dword ptr [EAX + 0x10]
ADD ESP,0x8
POP EBX
RET
MOV EDX,dword ptr [EDX]
MOV EDX,dword ptr [EDX]
TEST EDX,EDX
JNZ 0x0001a6ff
JMP 0x0001a714
MOV EDX,dword ptr [EDX + 0x8]
TEST EDX,EDX
JZ 0x0001a714
CMP EAX,dword ptr [EDX + 0x4]
JNZ 0x0001a6f8
MOV EDX,dword ptr [EDX + 0x24]
ADD EAX,0x68
ADD ESP,0x8
POP EBX
SUB EDX,EAX
MOV EAX,EDX
CDQ
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffdd400]
PUSH EAX
LEA EAX,[EBX + 0xfffdd157]
PUSH 0x44d
PUSH EAX
CALL 0x0002be80
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nlonglong __regparm3 FUN_0001a6c0(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x30) != 0) {\n    return *(longlong *)(param_1 + 0x10);\n  }\n  iVar1 = *(int *)*param_2;\n  while( true ) {\n    if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (param_1 == *(int *)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }\n  return (longlong)(*(int *)(iVar1 + 0x24) - (param_1 + 0x68));\n}\n\n" comment (function_definition "longlong __regparm3 FUN_0001a6c0(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x30) != 0) {\n    return *(longlong *)(param_1 + 0x10);\n  }\n  iVar1 = *(int *)*param_2;\n  while( true ) {\n    if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (param_1 == *(int *)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }\n  return (longlong)(*(int *)(iVar1 + 0x24) - (param_1 + 0x68));\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0001a6c0(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x30) != 0) {\n    return *(longlong *)(param_1 + 0x10);\n  }\n  iVar1 = *(int *)*param_2;\n  while( true ) {\n    if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (param_1 == *(int *)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }\n  return (longlong)(*(int *)(iVar1 + 0x24) - (param_1 + 0x68));\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 0x30) != 0) {\n    return *(longlong *)(param_1 + 0x10);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x30) != 0)" ( (binary_expression "*(int *)(param_1 + 0x30) != 0" (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return *(longlong *)(param_1 + 0x10);\n  }" { (return_statement "return *(longlong *)(param_1 + 0x10);" return (pointer_expression "*(longlong *)(param_1 + 0x10)" * (cast_expression "(longlong *)(param_1 + 0x10)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ;) })) (expression_statement "iVar1 = *(int *)*param_2;" (assignment_expression "iVar1 = *(int *)*param_2" identifier = (pointer_expression "*(int *)*param_2" * (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)))) ;) (while_statement "while( true ) {\n    if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (param_1 == *(int *)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (param_1 == *(int *)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }" { (if_statement "if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }" { comment (expression_statement "FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");" (call_expression "FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix")" identifier (argument_list "("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix")" ( (string_literal ""../../gas/dwarf2dbg.c"" " string_content ") , number_literal , (string_literal ""get_frag_fix"" " string_content ") ))) ;) })) (if_statement "if (param_1 == *(int *)(iVar1 + 4)) break;" if (parenthesized_expression "(param_1 == *(int *)(iVar1 + 4))" ( (binary_expression "param_1 == *(int *)(iVar1 + 4)" identifier == (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *(int *)(iVar1 + 8);" (assignment_expression "iVar1 = *(int *)(iVar1 + 8)" identifier = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) })) (return_statement "return (longlong)(*(int *)(iVar1 + 0x24) - (param_1 + 0x68));" return (call_expression "(longlong)(*(int *)(iVar1 + 0x24) - (param_1 + 0x68))" (parenthesized_expression "(longlong)" ( identifier )) (argument_list "(*(int *)(iVar1 + 0x24) - (param_1 + 0x68))" ( (binary_expression "*(int *)(iVar1 + 0x24) - (param_1 + 0x68)" (pointer_expression "*(int *)(iVar1 + 0x24)" * (cast_expression "(int *)(iVar1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) - (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))) ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\noffsetT __regparm3 get_frag_fix(fragS *frag,segT seg)\n\n{\n  int iVar1;\n  \n  if (frag->fr_next != (frag *)0x0) {\n    return frag->fr_fix;\n  }\n  iVar1 = *(int *)seg->name;\n  while( true ) {\n    if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (frag == *(fragS **)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }\n  return (offsetT)(*(int *)(iVar1 + 0x24) - (int)frag->fr_literal);\n}\n\n" comment (function_definition "offsetT __regparm3 get_frag_fix(fragS *frag,segT seg)\n\n{\n  int iVar1;\n  \n  if (frag->fr_next != (frag *)0x0) {\n    return frag->fr_fix;\n  }\n  iVar1 = *(int *)seg->name;\n  while( true ) {\n    if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (frag == *(fragS **)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }\n  return (offsetT)(*(int *)(iVar1 + 0x24) - (int)frag->fr_literal);\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "get_frag_fix(fragS *frag,segT seg)" identifier (parameter_list "(fragS *frag,segT seg)" ( (parameter_declaration "fragS *frag" type_identifier (pointer_declarator "*frag" * identifier)) , (parameter_declaration "segT seg" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (frag->fr_next != (frag *)0x0) {\n    return frag->fr_fix;\n  }\n  iVar1 = *(int *)seg->name;\n  while( true ) {\n    if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (frag == *(fragS **)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }\n  return (offsetT)(*(int *)(iVar1 + 0x24) - (int)frag->fr_literal);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (frag->fr_next != (frag *)0x0) {\n    return frag->fr_fix;\n  }" if (parenthesized_expression "(frag->fr_next != (frag *)0x0)" ( (binary_expression "frag->fr_next != (frag *)0x0" (field_expression "frag->fr_next" identifier -> field_identifier) != (cast_expression "(frag *)0x0" ( (type_descriptor "frag *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return frag->fr_fix;\n  }" { (return_statement "return frag->fr_fix;" return (field_expression "frag->fr_fix" identifier -> field_identifier) ;) })) (expression_statement "iVar1 = *(int *)seg->name;" (assignment_expression "iVar1 = *(int *)seg->name" identifier = (pointer_expression "*(int *)seg->name" * (cast_expression "(int *)seg->name" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "seg->name" identifier -> field_identifier)))) ;) (while_statement "while( true ) {\n    if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (frag == *(fragS **)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (frag == *(fragS **)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }" { (if_statement "if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }" { comment (expression_statement "as_abort("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");" (call_expression "as_abort("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix")" identifier (argument_list "("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix")" ( (string_literal ""../../gas/dwarf2dbg.c"" " string_content ") , number_literal , (string_literal ""get_frag_fix"" " string_content ") ))) ;) })) (if_statement "if (frag == *(fragS **)(iVar1 + 4)) break;" if (parenthesized_expression "(frag == *(fragS **)(iVar1 + 4))" ( (binary_expression "frag == *(fragS **)(iVar1 + 4)" identifier == (pointer_expression "*(fragS **)(iVar1 + 4)" * (cast_expression "(fragS **)(iVar1 + 4)" ( (type_descriptor "fragS **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *(int *)(iVar1 + 8);" (assignment_expression "iVar1 = *(int *)(iVar1 + 8)" identifier = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) })) (return_statement "return (offsetT)(*(int *)(iVar1 + 0x24) - (int)frag->fr_literal);" return (call_expression "(offsetT)(*(int *)(iVar1 + 0x24) - (int)frag->fr_literal)" (parenthesized_expression "(offsetT)" ( identifier )) (argument_list "(*(int *)(iVar1 + 0x24) - (int)frag->fr_literal)" ( (binary_expression "*(int *)(iVar1 + 0x24) - (int)frag->fr_literal" (pointer_expression "*(int *)(iVar1 + 0x24)" * (cast_expression "(int *)(iVar1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) - (cast_expression "(int)frag->fr_literal" ( (type_descriptor "int" primitive_type) ) (field_expression "frag->fr_literal" identifier -> field_identifier))) ))) ;) })))
(translation_unit "longlong __regparm3 FUN_0001a6c0(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x30) != 0) {\n    return *(longlong *)(param_1 + 0x10);\n  }\n  iVar1 = *(int *)*param_2;\n  while( true ) {\n    if (iVar1 == 0) {\n                    \n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (param_1 == *(int *)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }\n  return (longlong)(*(int *)(iVar1 + 0x24) - (param_1 + 0x68));\n}\n\n" (function_definition "longlong __regparm3 FUN_0001a6c0(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x30) != 0) {\n    return *(longlong *)(param_1 + 0x10);\n  }\n  iVar1 = *(int *)*param_2;\n  while( true ) {\n    if (iVar1 == 0) {\n                    \n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (param_1 == *(int *)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }\n  return (longlong)(*(int *)(iVar1 + 0x24) - (param_1 + 0x68));\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0001a6c0(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x30) != 0) {\n    return *(longlong *)(param_1 + 0x10);\n  }\n  iVar1 = *(int *)*param_2;\n  while( true ) {\n    if (iVar1 == 0) {\n                    \n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (param_1 == *(int *)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }\n  return (longlong)(*(int *)(iVar1 + 0x24) - (param_1 + 0x68));\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 0x30) != 0) {\n    return *(longlong *)(param_1 + 0x10);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x30) != 0)" ( (binary_expression "*(int *)(param_1 + 0x30) != 0" (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return *(longlong *)(param_1 + 0x10);\n  }" { (return_statement "return *(longlong *)(param_1 + 0x10);" return (pointer_expression "*(longlong *)(param_1 + 0x10)" * (cast_expression "(longlong *)(param_1 + 0x10)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ;) })) (expression_statement "iVar1 = *(int *)*param_2;" (assignment_expression "iVar1 = *(int *)*param_2" identifier = (pointer_expression "*(int *)*param_2" * (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier)))) ;) (while_statement "while( true ) {\n    if (iVar1 == 0) {\n                    \n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (param_1 == *(int *)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (iVar1 == 0) {\n                    \n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (param_1 == *(int *)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }" { (if_statement "if (iVar1 == 0) {\n                    \n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }" { (expression_statement "FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");" (call_expression "FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix")" identifier (argument_list "("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix")" ( (string_literal ""../../gas/dwarf2dbg.c"" " string_content ") , number_literal , (string_literal ""get_frag_fix"" " string_content ") ))) ;) })) (if_statement "if (param_1 == *(int *)(iVar1 + 4)) break;" if (parenthesized_expression "(param_1 == *(int *)(iVar1 + 4))" ( (binary_expression "param_1 == *(int *)(iVar1 + 4)" identifier == (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *(int *)(iVar1 + 8);" (assignment_expression "iVar1 = *(int *)(iVar1 + 8)" identifier = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) })) (return_statement "return (longlong)(*(int *)(iVar1 + 0x24) - (param_1 + 0x68));" return (call_expression "(longlong)(*(int *)(iVar1 + 0x24) - (param_1 + 0x68))" (parenthesized_expression "(longlong)" ( identifier )) (argument_list "(*(int *)(iVar1 + 0x24) - (param_1 + 0x68))" ( (binary_expression "*(int *)(iVar1 + 0x24) - (param_1 + 0x68)" (pointer_expression "*(int *)(iVar1 + 0x24)" * (cast_expression "(int *)(iVar1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) - (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + 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 IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ))) ;) })))
(function_definition "longlong __regparm3 FUN_0001a6c0(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x30) != 0) {\n    return *(longlong *)(param_1 + 0x10);\n  }\n  iVar1 = *(int *)*param_2;\n  while( true ) {\n    if (iVar1 == 0) {\n                    \n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (param_1 == *(int *)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }\n  return (longlong)(*(int *)(iVar1 + 0x24) - (param_1 + 0x68));\n}" (type_identifier "longlong") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001a6c0(int param_1,undefined4 *param_2)" (identifier "FUN_0001a6c0") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x30) != 0) {\n    return *(longlong *)(param_1 + 0x10);\n  }\n  iVar1 = *(int *)*param_2;\n  while( true ) {\n    if (iVar1 == 0) {\n                    \n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (param_1 == *(int *)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }\n  return (longlong)(*(int *)(iVar1 + 0x24) - (param_1 + 0x68));\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*(int *)(param_1 + 0x30) != 0) {\n    return *(longlong *)(param_1 + 0x10);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x30) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x30) != 0" (pointer_expression "*(int *)(param_1 + 0x30)" (* "*") (cast_expression "(int *)(param_1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return *(longlong *)(param_1 + 0x10);\n  }" ({ "{") (return_statement "return *(longlong *)(param_1 + 0x10);" (return "return") (pointer_expression "*(longlong *)(param_1 + 0x10)" (* "*") (cast_expression "(longlong *)(param_1 + 0x10)" (( "(") (type_descriptor "longlong *" (type_identifier "longlong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)*param_2;" (assignment_expression "iVar1 = *(int *)*param_2" (identifier "iVar1") (= "=") (pointer_expression "*(int *)*param_2" (* "*") (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))))) (; ";")) (while_statement "while( true ) {\n    if (iVar1 == 0) {\n                    \n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (param_1 == *(int *)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (iVar1 == 0) {\n                    \n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }\n    if (param_1 == *(int *)(iVar1 + 4)) break;\n    iVar1 = *(int *)(iVar1 + 8);\n  }" ({ "{") (if_statement "if (iVar1 == 0) {\n                    \n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");\n    }" ({ "{") (expression_statement "FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");" (call_expression "FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix")" (identifier "FUN_0002be80") (argument_list "("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix")" (( "(") (string_literal ""../../gas/dwarf2dbg.c"" (" """) (string_content "../../gas/dwarf2dbg.c") (" """)) (, ",") (number_literal "0x44d") (, ",") (string_literal ""get_frag_fix"" (" """) (string_content "get_frag_fix") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1 == *(int *)(iVar1 + 4)) break;" (if "if") (parenthesized_expression "(param_1 == *(int *)(iVar1 + 4))" (( "(") (binary_expression "param_1 == *(int *)(iVar1 + 4)" (identifier "param_1") (== "==") (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = *(int *)(iVar1 + 8);" (assignment_expression "iVar1 = *(int *)(iVar1 + 8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}"))) (return_statement "return (longlong)(*(int *)(iVar1 + 0x24) - (param_1 + 0x68));" (return "return") (call_expression "(longlong)(*(int *)(iVar1 + 0x24) - (param_1 + 0x68))" (parenthesized_expression "(longlong)" (( "(") (identifier "longlong") () ")")) (argument_list "(*(int *)(iVar1 + 0x24) - (param_1 + 0x68))" (( "(") (binary_expression "*(int *)(iVar1 + 0x24) - (param_1 + 0x68)" (pointer_expression "*(int *)(iVar1 + 0x24)" (* "*") (cast_expression "(int *)(iVar1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")")))) (- "-") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")"))) () ")"))) (; ";")) (} "}")))

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

type_1 __regparm3 function_1(type_2 *type_4,type_3 seg)

{
  int var_1;
  
  if (type_4->fr_next != (type_4 *)0x0) {
    return type_4->fr_fix;
  }
  var_1 = *(int *)seg->name;
  while( true ) {
    if (var_1 == 0) {
                    /* WARNING: Subroutine does not return */
      var_2("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");
    }
    if (type_4 == *(type_2 **)(var_1 + 4)) break;
    var_1 = *(int *)(var_1 + 8);
  }
  return (type_1)(*(int *)(var_1 + 0x24) - (int)type_4->fr_literal);
}


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

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

longlong __regparm3 MASKED(int param_1,undefined4 *param_2)

{
  int iVar1;
  
  if (*(int *)(param_1 + 0x30) != 0) {
    return *(longlong *)(param_1 + 0x10);
  }
  iVar1 = *(int *)*param_2;
  while( true ) {
    if (iVar1 == 0) {
                    /* WARNING: Subroutine does not return */
      FUN_0002be80("../../gas/dwarf2dbg.c",0x44d,"get_frag_fix");
    }
    if (param_1 == *(int *)(iVar1 + 4)) break;
    iVar1 = *(int *)(iVar1 + 8);
  }
  return (longlong)(*(int *)(iVar1 + 0x24) - (param_1 + 0x68));
}

