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

long md_pcrel_from(fixS *fixP)

{
  int iVar1;
  long lVar2;
  
  lVar2 = fixP->fx_where + (int)fixP->fx_frag->fr_address;
  if (((sparc_pic_code == 0) || (fixP->fx_addsy == (symbolS *)0x0)) ||
     (iVar1 = symbol_section_p(fixP->fx_addsy), iVar1 != 0)) {
    lVar2 = lVar2 + (uint)fixP->fx_size;
  }
  return lVar2;
}



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

int FUN_000470a0(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar2 = *(int *)(param_1 + 8) + **(int **)(param_1 + 4);
  if (((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||
     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)) {
    iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);
  }
  return iVar2;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00016040
ADD EBX,0x26f54
MOV EAX,dword ptr [EDI + 0x4]
MOV ESI,dword ptr [EDI + 0x8]
ADD ESI,dword ptr [EAX]
LEA EAX,[EBX + 0x99c0]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x000470e0
MOV EAX,dword ptr [EDI + 0xc]
TEST EAX,EAX
JZ 0x000470e0
SUB ESP,0xc
PUSH EAX
CALL 0x0003b650
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000470e6
LEA ESI,[ESI]
MOVZX EAX,byte ptr [EDI + 0x2]
ADD ESI,EAX
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_000470a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 8) + **(int **)(param_1 + 4);\n  if (((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)) {\n    iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int FUN_000470a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 8) + **(int **)(param_1 + 4);\n  if (((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)) {\n    iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_000470a0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 8) + **(int **)(param_1 + 4);\n  if (((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)) {\n    iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 8) + **(int **)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 8) + **(int **)(param_1 + 4)" identifier = (binary_expression "*(int *)(param_1 + 8) + **(int **)(param_1 + 4)" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (pointer_expression "**(int **)(param_1 + 4)" * (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))))) ;) (if_statement "if (((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)) {\n    iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);\n  }" if (parenthesized_expression "(((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0))" ( (binary_expression "((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)" (parenthesized_expression "((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0))" ( (binary_expression "(DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)" (parenthesized_expression "(DAT_000779c0 == 0)" ( (binary_expression "DAT_000779c0 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0xc) == 0)" ( (binary_expression "*(int *)(param_1 + 0xc) == 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) == number_literal) ))) )) || (parenthesized_expression "(iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0" (assignment_expression "iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc))" identifier = (call_expression "FUN_0003b650(*(int *)(param_1 + 0xc))" identifier (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);\n  }" { (expression_statement "iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);" (assignment_expression "iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2)" identifier = (binary_expression "iVar2 + (uint)*(byte *)(param_1 + 2)" identifier + (binary_expression "(uint)*(byte *)(param_1 + 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))))) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nlong md_pcrel_from(fixS *fixP)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = fixP->fx_where + (int)fixP->fx_frag->fr_address;\n  if (((sparc_pic_code == 0) || (fixP->fx_addsy == (symbolS *)0x0)) ||\n     (iVar1 = symbol_section_p(fixP->fx_addsy), iVar1 != 0)) {\n    lVar2 = lVar2 + (uint)fixP->fx_size;\n  }\n  return lVar2;\n}\n\n" comment comment (function_definition "long md_pcrel_from(fixS *fixP)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = fixP->fx_where + (int)fixP->fx_frag->fr_address;\n  if (((sparc_pic_code == 0) || (fixP->fx_addsy == (symbolS *)0x0)) ||\n     (iVar1 = symbol_section_p(fixP->fx_addsy), iVar1 != 0)) {\n    lVar2 = lVar2 + (uint)fixP->fx_size;\n  }\n  return lVar2;\n}" (sized_type_specifier "long" long) (function_declarator "md_pcrel_from(fixS *fixP)" identifier (parameter_list "(fixS *fixP)" ( (parameter_declaration "fixS *fixP" type_identifier (pointer_declarator "*fixP" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = fixP->fx_where + (int)fixP->fx_frag->fr_address;\n  if (((sparc_pic_code == 0) || (fixP->fx_addsy == (symbolS *)0x0)) ||\n     (iVar1 = symbol_section_p(fixP->fx_addsy), iVar1 != 0)) {\n    lVar2 = lVar2 + (uint)fixP->fx_size;\n  }\n  return lVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = fixP->fx_where + (int)fixP->fx_frag->fr_address;" (assignment_expression "lVar2 = fixP->fx_where + (int)fixP->fx_frag->fr_address" identifier = (binary_expression "fixP->fx_where + (int)fixP->fx_frag->fr_address" (field_expression "fixP->fx_where" identifier -> field_identifier) + (cast_expression "(int)fixP->fx_frag->fr_address" ( (type_descriptor "int" primitive_type) ) (field_expression "fixP->fx_frag->fr_address" (field_expression "fixP->fx_frag" identifier -> field_identifier) -> field_identifier)))) ;) (if_statement "if (((sparc_pic_code == 0) || (fixP->fx_addsy == (symbolS *)0x0)) ||\n     (iVar1 = symbol_section_p(fixP->fx_addsy), iVar1 != 0)) {\n    lVar2 = lVar2 + (uint)fixP->fx_size;\n  }" if (parenthesized_expression "(((sparc_pic_code == 0) || (fixP->fx_addsy == (symbolS *)0x0)) ||\n     (iVar1 = symbol_section_p(fixP->fx_addsy), iVar1 != 0))" ( (binary_expression "((sparc_pic_code == 0) || (fixP->fx_addsy == (symbolS *)0x0)) ||\n     (iVar1 = symbol_section_p(fixP->fx_addsy), iVar1 != 0)" (parenthesized_expression "((sparc_pic_code == 0) || (fixP->fx_addsy == (symbolS *)0x0))" ( (binary_expression "(sparc_pic_code == 0) || (fixP->fx_addsy == (symbolS *)0x0)" (parenthesized_expression "(sparc_pic_code == 0)" ( (binary_expression "sparc_pic_code == 0" identifier == number_literal) )) || (parenthesized_expression "(fixP->fx_addsy == (symbolS *)0x0)" ( (binary_expression "fixP->fx_addsy == (symbolS *)0x0" (field_expression "fixP->fx_addsy" identifier -> field_identifier) == (cast_expression "(symbolS *)0x0" ( (type_descriptor "symbolS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) || (parenthesized_expression "(iVar1 = symbol_section_p(fixP->fx_addsy), iVar1 != 0)" ( (comma_expression "iVar1 = symbol_section_p(fixP->fx_addsy), iVar1 != 0" (assignment_expression "iVar1 = symbol_section_p(fixP->fx_addsy)" identifier = (call_expression "symbol_section_p(fixP->fx_addsy)" identifier (argument_list "(fixP->fx_addsy)" ( (field_expression "fixP->fx_addsy" identifier -> field_identifier) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    lVar2 = lVar2 + (uint)fixP->fx_size;\n  }" { (expression_statement "lVar2 = lVar2 + (uint)fixP->fx_size;" (assignment_expression "lVar2 = lVar2 + (uint)fixP->fx_size" identifier = (binary_expression "lVar2 + (uint)fixP->fx_size" identifier + (cast_expression "(uint)fixP->fx_size" ( (type_descriptor "uint" type_identifier) ) (field_expression "fixP->fx_size" identifier -> field_identifier)))) ;) })) (return_statement "return lVar2;" return identifier ;) })))
(translation_unit "int FUN_000470a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 8) + **(int **)(param_1 + 4);\n  if (((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)) {\n    iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_000470a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 8) + **(int **)(param_1 + 4);\n  if (((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)) {\n    iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_000470a0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 8) + **(int **)(param_1 + 4);\n  if (((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)) {\n    iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 8) + **(int **)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 8) + **(int **)(param_1 + 4)" identifier = (binary_expression "*(int *)(param_1 + 8) + **(int **)(param_1 + 4)" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (pointer_expression "**(int **)(param_1 + 4)" * (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))))) ;) (if_statement "if (((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)) {\n    iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);\n  }" if (parenthesized_expression "(((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0))" ( (binary_expression "((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)" (parenthesized_expression "((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0))" ( (binary_expression "(DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)" (parenthesized_expression "(DAT_000779c0 == 0)" ( (binary_expression "DAT_000779c0 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0xc) == 0)" ( (binary_expression "*(int *)(param_1 + 0xc) == 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) == number_literal) ))) )) || (parenthesized_expression "(iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0" (assignment_expression "iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc))" identifier = (call_expression "FUN_0003b650(*(int *)(param_1 + 0xc))" identifier (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);\n  }" { (expression_statement "iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);" (assignment_expression "iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2)" identifier = (binary_expression "iVar2 + (uint)*(byte *)(param_1 + 2)" identifier + (binary_expression "(uint)*(byte *)(param_1 + 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))))) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_000470a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 8) + **(int **)(param_1 + 4);\n  if (((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)) {\n    iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_000470a0(int param_1)" (identifier "FUN_000470a0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 8) + **(int **)(param_1 + 4);\n  if (((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)) {\n    iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);\n  }\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 8) + **(int **)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 8) + **(int **)(param_1 + 4)" (identifier "iVar2") (= "=") (binary_expression "*(int *)(param_1 + 8) + **(int **)(param_1 + 4)" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (pointer_expression "**(int **)(param_1 + 4)" (* "*") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))))) (; ";")) (if_statement "if (((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)) {\n    iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);\n  }" (if "if") (parenthesized_expression "(((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0))" (( "(") (binary_expression "((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||\n     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)" (parenthesized_expression "((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0))" (( "(") (binary_expression "(DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)" (parenthesized_expression "(DAT_000779c0 == 0)" (( "(") (binary_expression "DAT_000779c0 == 0" (identifier "DAT_000779c0") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 0xc) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) == 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0" (assignment_expression "iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc))" (identifier "iVar1") (= "=") (call_expression "FUN_0003b650(*(int *)(param_1 + 0xc))" (identifier "FUN_0003b650") (argument_list "(*(int *)(param_1 + 0xc))" (( "(") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);\n  }" ({ "{") (expression_statement "iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);" (assignment_expression "iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2)" (identifier "iVar2") (= "=") (binary_expression "iVar2 + (uint)*(byte *)(param_1 + 2)" (identifier "iVar2") (+ "+") (binary_expression "(uint)*(byte *)(param_1 + 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_1 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))))) (; ";")) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

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

long function_1(type_1 *fixP)

{
  int var_3;
  long var_4;
  
  var_4 = fixP->fx_where + (int)fixP->fx_frag->fr_address;
  if (((var_1 == 0) || (fixP->fx_addsy == (type_2 *)0x0)) ||
     (var_3 = var_2(fixP->fx_addsy), var_3 != 0)) {
    var_4 = var_4 + (type_3)fixP->fx_size;
  }
  return var_4;
}


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

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

int MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar2 = *(int *)(param_1 + 8) + **(int **)(param_1 + 4);
  if (((DAT_000779c0 == 0) || (*(int *)(param_1 + 0xc) == 0)) ||
     (iVar1 = FUN_0003b650(*(int *)(param_1 + 0xc)), iVar1 != 0)) {
    iVar2 = iVar2 + (uint)*(byte *)(param_1 + 2);
  }
  return iVar2;
}

