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

int eh_frame_estimate_size_before_relax(fragS *frag)

{
  valueT vVar1;
  int iVar2;
  uint uVar3;
  
  uVar3 = frag->fr_subtype >> 3;
  vVar1 = resolve_symbol_value(frag->fr_symbol);
  if (uVar3 == 0) {
                    /* WARNING: Subroutine does not return */
    as_abort("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax");
  }
  iVar2 = (int)vVar1 / (int)uVar3;
  if (0x3f < iVar2) {
    if (0xff < iVar2) {
      uVar3 = (uint)(0xffff < iVar2) * 2 + 2;
      frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | uVar3;
      return uVar3;
    }
    frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | 1;
    return 1;
  }
  frag->fr_subtype = frag->fr_subtype & 0xfffffff8;
  return 0;
}



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

uint FUN_00020010(int param_1)

{
  int iVar1;
  uint uVar2;
  
  uVar2 = *(uint *)(param_1 + 0x34) >> 3;
  iVar1 = FUN_00036c40(*(undefined4 *)(param_1 + 0x14));
  if (uVar2 == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);
  }
  iVar1 = iVar1 / (int)uVar2;
  if (0x3f < iVar1) {
    if (0xff < iVar1) {
      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;
      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;
      return uVar2;
    }
    *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;
    return 1;
  }
  *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8;
  return 0;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00016030
ADD EBX,0x53fe4
MOV ESI,dword ptr [EDI + 0x34]
SUB ESP,0xc
PUSH dword ptr [EDI + 0x14]
SHR ESI,0x3
CALL 0x00036c40
ADD ESP,0x10
TEST ESI,ESI
JZ 0x000200a1
CDQ
IDIV ESI
CMP EAX,0x3f
JLE 0x00020070
CMP EAX,0xff
JLE 0x00020088
MOV EDX,dword ptr [EDI + 0x34]
XOR ECX,ECX
CMP EAX,0x10000
SETGE CL
LEA ECX,[ECX + ECX*0x1 + 0x2]
AND EDX,0xfffffff8
OR EDX,ECX
MOV EAX,ECX
MOV dword ptr [EDI + 0x34],EDX
POP EBX
POP ESI
POP EDI
RET
MOV EDX,dword ptr [EDI + 0x34]
XOR ECX,ECX
XOR EAX,EAX
AND EDX,0xfffffff8
OR EDX,ECX
MOV dword ptr [EDI + 0x34],EDX
POP EBX
POP ESI
POP EDI
RET
MOV EDX,dword ptr [EDI + 0x34]
MOV ECX,0x1
MOV EAX,0x1
AND EDX,0xfffffff8
OR EDX,ECX
MOV dword ptr [EDI + 0x34],EDX
POP EBX
POP ESI
POP EDI
RET
PUSH EAX
LEA EAX,[EBX + 0xfffddae0]
PUSH EAX
LEA EAX,[EBX + 0xfffdda87]
PUSH 0x1df
PUSH EAX
CALL 0x0002a8d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint FUN_00020010(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = *(uint *)(param_1 + 0x34) >> 3;\n  iVar1 = FUN_00036c40(*(undefined4 *)(param_1 + 0x14));\n  if (uVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);\n  }\n  iVar1 = iVar1 / (int)uVar2;\n  if (0x3f < iVar1) {\n    if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }\n    *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;\n    return 1;\n  }\n  *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8;\n  return 0;\n}\n\n" comment (function_definition "uint FUN_00020010(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = *(uint *)(param_1 + 0x34) >> 3;\n  iVar1 = FUN_00036c40(*(undefined4 *)(param_1 + 0x14));\n  if (uVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);\n  }\n  iVar1 = iVar1 / (int)uVar2;\n  if (0x3f < iVar1) {\n    if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }\n    *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;\n    return 1;\n  }\n  *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8;\n  return 0;\n}" type_identifier (function_declarator "FUN_00020010(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = *(uint *)(param_1 + 0x34) >> 3;\n  iVar1 = FUN_00036c40(*(undefined4 *)(param_1 + 0x14));\n  if (uVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);\n  }\n  iVar1 = iVar1 / (int)uVar2;\n  if (0x3f < iVar1) {\n    if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }\n    *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;\n    return 1;\n  }\n  *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x34) >> 3;" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x34) >> 3" identifier = (binary_expression "*(uint *)(param_1 + 0x34) >> 3" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) >> number_literal)) ;) (expression_statement "iVar1 = FUN_00036c40(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar1 = FUN_00036c40(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_00036c40(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (uVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);\n  }" { comment (expression_statement "FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);" (call_expression "FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1)" identifier (argument_list "("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1)" ( (string_literal ""../../gas/ehopt.c"" " string_content ") , number_literal , (string_literal ""eh_frame_estimate_size_before_relax"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar1 = iVar1 / (int)uVar2;" (assignment_expression "iVar1 = iVar1 / (int)uVar2" identifier = (binary_expression "iVar1 / (int)uVar2" identifier / (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (0x3f < iVar1) {\n    if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }\n    *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;\n    return 1;\n  }" if (parenthesized_expression "(0x3f < iVar1)" ( (binary_expression "0x3f < iVar1" number_literal < identifier) )) (compound_statement "{\n    if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }\n    *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;\n    return 1;\n  }" { (if_statement "if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }" if (parenthesized_expression "(0xff < iVar1)" ( (binary_expression "0xff < iVar1" number_literal < identifier) )) (compound_statement "{\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }" { (expression_statement "uVar2 = (uint)(0xffff < iVar1) * 2 + 2;" (assignment_expression "uVar2 = (uint)(0xffff < iVar1) * 2 + 2" identifier = (binary_expression "(uint)(0xffff < iVar1) * 2 + 2" (binary_expression "(uint)(0xffff < iVar1) * 2" (call_expression "(uint)(0xffff < iVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xffff < iVar1)" ( (binary_expression "0xffff < iVar1" number_literal < identifier) ))) * number_literal) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;" (assignment_expression "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2" (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffff8" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) & number_literal) | identifier)) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;" (assignment_expression "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffff8 | 1" (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffff8" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) & number_literal) | number_literal)) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8;" (assignment_expression "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffff8" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) & number_literal)) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint eh_frame_estimate_size_before_relax(fragS *frag)\n\n{\n  valueT vVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = frag->fr_subtype >> 3;\n  vVar1 = resolve_symbol_value(frag->fr_symbol);\n  if (uVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax");\n  }\n  iVar2 = (int)vVar1 / (int)uVar3;\n  if (0x3f < iVar2) {\n    if (0xff < iVar2) {\n      uVar3 = (uint)(0xffff < iVar2) * 2 + 2;\n      frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | uVar3;\n      return uVar3;\n    }\n    frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | 1;\n    return 1;\n  }\n  frag->fr_subtype = frag->fr_subtype & 0xfffffff8;\n  return 0;\n}\n\n" comment comment (function_definition "int eh_frame_estimate_size_before_relax(fragS *frag)\n\n{\n  valueT vVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = frag->fr_subtype >> 3;\n  vVar1 = resolve_symbol_value(frag->fr_symbol);\n  if (uVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax");\n  }\n  iVar2 = (int)vVar1 / (int)uVar3;\n  if (0x3f < iVar2) {\n    if (0xff < iVar2) {\n      uVar3 = (uint)(0xffff < iVar2) * 2 + 2;\n      frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | uVar3;\n      return uVar3;\n    }\n    frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | 1;\n    return 1;\n  }\n  frag->fr_subtype = frag->fr_subtype & 0xfffffff8;\n  return 0;\n}" primitive_type (function_declarator "eh_frame_estimate_size_before_relax(fragS *frag)" identifier (parameter_list "(fragS *frag)" ( (parameter_declaration "fragS *frag" type_identifier (pointer_declarator "*frag" * identifier)) ))) (compound_statement "{\n  valueT vVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = frag->fr_subtype >> 3;\n  vVar1 = resolve_symbol_value(frag->fr_symbol);\n  if (uVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax");\n  }\n  iVar2 = (int)vVar1 / (int)uVar3;\n  if (0x3f < iVar2) {\n    if (0xff < iVar2) {\n      uVar3 = (uint)(0xffff < iVar2) * 2 + 2;\n      frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | uVar3;\n      return uVar3;\n    }\n    frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | 1;\n    return 1;\n  }\n  frag->fr_subtype = frag->fr_subtype & 0xfffffff8;\n  return 0;\n}" { (declaration "valueT vVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = frag->fr_subtype >> 3;" (assignment_expression "uVar3 = frag->fr_subtype >> 3" identifier = (binary_expression "frag->fr_subtype >> 3" (field_expression "frag->fr_subtype" identifier -> field_identifier) >> number_literal)) ;) (expression_statement "vVar1 = resolve_symbol_value(frag->fr_symbol);" (assignment_expression "vVar1 = resolve_symbol_value(frag->fr_symbol)" identifier = (call_expression "resolve_symbol_value(frag->fr_symbol)" identifier (argument_list "(frag->fr_symbol)" ( (field_expression "frag->fr_symbol" identifier -> field_identifier) )))) ;) (if_statement "if (uVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax");\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    as_abort("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax");\n  }" { comment (expression_statement "as_abort("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax");" (call_expression "as_abort("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax")" identifier (argument_list "("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax")" ( (string_literal ""../../gas/ehopt.c"" " string_content ") , number_literal , (string_literal ""eh_frame_estimate_size_before_relax"" " string_content ") ))) ;) })) (expression_statement "iVar2 = (int)vVar1 / (int)uVar3;" (assignment_expression "iVar2 = (int)vVar1 / (int)uVar3" identifier = (binary_expression "(int)vVar1 / (int)uVar3" (cast_expression "(int)vVar1" ( (type_descriptor "int" primitive_type) ) identifier) / (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (0x3f < iVar2) {\n    if (0xff < iVar2) {\n      uVar3 = (uint)(0xffff < iVar2) * 2 + 2;\n      frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | uVar3;\n      return uVar3;\n    }\n    frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | 1;\n    return 1;\n  }" if (parenthesized_expression "(0x3f < iVar2)" ( (binary_expression "0x3f < iVar2" number_literal < identifier) )) (compound_statement "{\n    if (0xff < iVar2) {\n      uVar3 = (uint)(0xffff < iVar2) * 2 + 2;\n      frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | uVar3;\n      return uVar3;\n    }\n    frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | 1;\n    return 1;\n  }" { (if_statement "if (0xff < iVar2) {\n      uVar3 = (uint)(0xffff < iVar2) * 2 + 2;\n      frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | uVar3;\n      return uVar3;\n    }" if (parenthesized_expression "(0xff < iVar2)" ( (binary_expression "0xff < iVar2" number_literal < identifier) )) (compound_statement "{\n      uVar3 = (uint)(0xffff < iVar2) * 2 + 2;\n      frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | uVar3;\n      return uVar3;\n    }" { (expression_statement "uVar3 = (uint)(0xffff < iVar2) * 2 + 2;" (assignment_expression "uVar3 = (uint)(0xffff < iVar2) * 2 + 2" identifier = (binary_expression "(uint)(0xffff < iVar2) * 2 + 2" (binary_expression "(uint)(0xffff < iVar2) * 2" (call_expression "(uint)(0xffff < iVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xffff < iVar2)" ( (binary_expression "0xffff < iVar2" number_literal < identifier) ))) * number_literal) + number_literal)) ;) (expression_statement "frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | uVar3;" (assignment_expression "frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | uVar3" (field_expression "frag->fr_subtype" identifier -> field_identifier) = (binary_expression "frag->fr_subtype & 0xfffffff8 | uVar3" (binary_expression "frag->fr_subtype & 0xfffffff8" (field_expression "frag->fr_subtype" identifier -> field_identifier) & number_literal) | identifier)) ;) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | 1;" (assignment_expression "frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | 1" (field_expression "frag->fr_subtype" identifier -> field_identifier) = (binary_expression "frag->fr_subtype & 0xfffffff8 | 1" (binary_expression "frag->fr_subtype & 0xfffffff8" (field_expression "frag->fr_subtype" identifier -> field_identifier) & number_literal) | number_literal)) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "frag->fr_subtype = frag->fr_subtype & 0xfffffff8;" (assignment_expression "frag->fr_subtype = frag->fr_subtype & 0xfffffff8" (field_expression "frag->fr_subtype" identifier -> field_identifier) = (binary_expression "frag->fr_subtype & 0xfffffff8" (field_expression "frag->fr_subtype" identifier -> field_identifier) & number_literal)) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "uint FUN_00020010(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = *(uint *)(param_1 + 0x34) >> 3;\n  iVar1 = FUN_00036c40(*(undefined4 *)(param_1 + 0x14));\n  if (uVar2 == 0) {\n                    \n    FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);\n  }\n  iVar1 = iVar1 / (int)uVar2;\n  if (0x3f < iVar1) {\n    if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }\n    *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;\n    return 1;\n  }\n  *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8;\n  return 0;\n}\n\n" (function_definition "uint FUN_00020010(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = *(uint *)(param_1 + 0x34) >> 3;\n  iVar1 = FUN_00036c40(*(undefined4 *)(param_1 + 0x14));\n  if (uVar2 == 0) {\n                    \n    FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);\n  }\n  iVar1 = iVar1 / (int)uVar2;\n  if (0x3f < iVar1) {\n    if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }\n    *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;\n    return 1;\n  }\n  *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8;\n  return 0;\n}" type_identifier (function_declarator "FUN_00020010(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = *(uint *)(param_1 + 0x34) >> 3;\n  iVar1 = FUN_00036c40(*(undefined4 *)(param_1 + 0x14));\n  if (uVar2 == 0) {\n                    \n    FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);\n  }\n  iVar1 = iVar1 / (int)uVar2;\n  if (0x3f < iVar1) {\n    if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }\n    *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;\n    return 1;\n  }\n  *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x34) >> 3;" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x34) >> 3" identifier = (binary_expression "*(uint *)(param_1 + 0x34) >> 3" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) >> number_literal)) ;) (expression_statement "iVar1 = FUN_00036c40(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar1 = FUN_00036c40(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "FUN_00036c40(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (uVar2 == 0) {\n                    \n    FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);\n  }" { (expression_statement "FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);" (call_expression "FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1)" identifier (argument_list "("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1)" ( (string_literal ""../../gas/ehopt.c"" " string_content ") , number_literal , (string_literal ""eh_frame_estimate_size_before_relax"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar1 = iVar1 / (int)uVar2;" (assignment_expression "iVar1 = iVar1 / (int)uVar2" identifier = (binary_expression "iVar1 / (int)uVar2" identifier / (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (0x3f < iVar1) {\n    if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }\n    *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;\n    return 1;\n  }" if (parenthesized_expression "(0x3f < iVar1)" ( (binary_expression "0x3f < iVar1" number_literal < identifier) )) (compound_statement "{\n    if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }\n    *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;\n    return 1;\n  }" { (if_statement "if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }" if (parenthesized_expression "(0xff < iVar1)" ( (binary_expression "0xff < iVar1" number_literal < identifier) )) (compound_statement "{\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }" { (expression_statement "uVar2 = (uint)(0xffff < iVar1) * 2 + 2;" (assignment_expression "uVar2 = (uint)(0xffff < iVar1) * 2 + 2" identifier = (binary_expression "(uint)(0xffff < iVar1) * 2 + 2" (binary_expression "(uint)(0xffff < iVar1) * 2" (call_expression "(uint)(0xffff < iVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xffff < iVar1)" ( (binary_expression "0xffff < iVar1" number_literal < identifier) ))) * number_literal) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;" (assignment_expression "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2" (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffff8" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) & number_literal) | identifier)) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;" (assignment_expression "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffff8 | 1" (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffff8" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) & number_literal) | number_literal)) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8;" (assignment_expression "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffff8" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) & number_literal)) ;) (return_statement "return 0;" return number_literal ;) })))
(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) )))) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (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 ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) ))) * LIT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | IDENT)) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | LIT)) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (return_statement return LIT ;) })))
(function_definition "uint FUN_00020010(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = *(uint *)(param_1 + 0x34) >> 3;\n  iVar1 = FUN_00036c40(*(undefined4 *)(param_1 + 0x14));\n  if (uVar2 == 0) {\n                    \n    FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);\n  }\n  iVar1 = iVar1 / (int)uVar2;\n  if (0x3f < iVar1) {\n    if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }\n    *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;\n    return 1;\n  }\n  *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8;\n  return 0;\n}" (type_identifier "uint") (function_declarator "FUN_00020010(int param_1)" (identifier "FUN_00020010") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  uVar2 = *(uint *)(param_1 + 0x34) >> 3;\n  iVar1 = FUN_00036c40(*(undefined4 *)(param_1 + 0x14));\n  if (uVar2 == 0) {\n                    \n    FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);\n  }\n  iVar1 = iVar1 / (int)uVar2;\n  if (0x3f < iVar1) {\n    if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }\n    *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;\n    return 1;\n  }\n  *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8;\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = *(uint *)(param_1 + 0x34) >> 3;" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x34) >> 3" (identifier "uVar2") (= "=") (binary_expression "*(uint *)(param_1 + 0x34) >> 3" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (>> ">>") (number_literal "3"))) (; ";")) (expression_statement "iVar1 = FUN_00036c40(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar1 = FUN_00036c40(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar1") (= "=") (call_expression "FUN_00036c40(*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_00036c40") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (; ";")) (if_statement "if (uVar2 == 0) {\n                    \n    FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);\n  }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);\n  }" ({ "{") (expression_statement "FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);" (call_expression "FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1)" (identifier "FUN_0002a8d0") (argument_list "("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1)" (( "(") (string_literal ""../../gas/ehopt.c"" (" """) (string_content "../../gas/ehopt.c") (" """)) (, ",") (number_literal "0x1df") (, ",") (string_literal ""eh_frame_estimate_size_before_relax"" (" """) (string_content "eh_frame_estimate_size_before_relax") (" """)) (, ",") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = iVar1 / (int)uVar2;" (assignment_expression "iVar1 = iVar1 / (int)uVar2" (identifier "iVar1") (= "=") (binary_expression "iVar1 / (int)uVar2" (identifier "iVar1") (/ "/") (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")))) (; ";")) (if_statement "if (0x3f < iVar1) {\n    if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }\n    *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;\n    return 1;\n  }" (if "if") (parenthesized_expression "(0x3f < iVar1)" (( "(") (binary_expression "0x3f < iVar1" (number_literal "0x3f") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }\n    *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;\n    return 1;\n  }" ({ "{") (if_statement "if (0xff < iVar1) {\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(0xff < iVar1)" (( "(") (binary_expression "0xff < iVar1" (number_literal "0xff") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;\n      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;\n      return uVar2;\n    }" ({ "{") (expression_statement "uVar2 = (uint)(0xffff < iVar1) * 2 + 2;" (assignment_expression "uVar2 = (uint)(0xffff < iVar1) * 2 + 2" (identifier "uVar2") (= "=") (binary_expression "(uint)(0xffff < iVar1) * 2 + 2" (binary_expression "(uint)(0xffff < iVar1) * 2" (call_expression "(uint)(0xffff < iVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0xffff < iVar1)" (( "(") (binary_expression "0xffff < iVar1" (number_literal "0xffff") (< "<") (identifier "iVar1")) () ")"))) (* "*") (number_literal "2")) (+ "+") (number_literal "2"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;" (assignment_expression "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2" (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffff8" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (& "&") (number_literal "0xfffffff8")) (| "|") (identifier "uVar2"))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;" (assignment_expression "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffff8 | 1" (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffff8" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (& "&") (number_literal "0xfffffff8")) (| "|") (number_literal "1"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8;" (assignment_expression "*(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0x34) & 0xfffffff8" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (& "&") (number_literal "0xfffffff8"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int function_1(type_1 *frag)

{
  type_2 vVar1;
  int var_4;
  type_3 var_2;
  
  var_2 = frag->fr_subtype >> 3;
  vVar1 = var_1(frag->fr_symbol);
  if (var_2 == 0) {
                    /* WARNING: Subroutine does not return */
    var_3("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax");
  }
  var_4 = (int)vVar1 / (int)var_2;
  if (0x3f < var_4) {
    if (0xff < var_4) {
      var_2 = (type_3)(0xffff < var_4) * 2 + 2;
      frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | var_2;
      return var_2;
    }
    frag->fr_subtype = frag->fr_subtype & 0xfffffff8 | 1;
    return 1;
  }
  frag->fr_subtype = frag->fr_subtype & 0xfffffff8;
  return 0;
}


(translation_unit (function_definition type: (type_identifier) 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: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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))))))))) (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)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (identifier)))) right: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (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))))) right: (binary_expression left: (binary_expression left: (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))))) right: (number_literal)) right: (identifier)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (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))))) right: (binary_expression left: (binary_expression left: (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))))) right: (number_literal)) right: (number_literal)))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (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))))) right: (binary_expression left: (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))))) right: (number_literal)))) (return_statement (number_literal)))))

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

uint MASKED(int param_1)

{
  int iVar1;
  uint uVar2;
  
  uVar2 = *(uint *)(param_1 + 0x34) >> 3;
  iVar1 = FUN_00036c40(*(undefined4 *)(param_1 + 0x14));
  if (uVar2 == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0002a8d0("../../gas/ehopt.c",0x1df,"eh_frame_estimate_size_before_relax",iVar1);
  }
  iVar1 = iVar1 / (int)uVar2;
  if (0x3f < iVar1) {
    if (0xff < iVar1) {
      uVar2 = (uint)(0xffff < iVar1) * 2 + 2;
      *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | uVar2;
      return uVar2;
    }
    *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8 | 1;
    return 1;
  }
  *(uint *)(param_1 + 0x34) = *(uint *)(param_1 + 0x34) & 0xfffffff8;
  return 0;
}

