
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

int x86_address_bytes(void)

{
  int iVar1;
  int iVar2;
  
  iVar2 = 4;
  if ((stdoutput->arch_info->mach & 0x10) == 0) {
    iVar1 = stdoutput->arch_info->bits_per_address;
    iVar2 = iVar1 + 7;
    if (-1 < iVar1) {
      iVar2 = iVar1;
    }
    iVar2 = iVar2 >> 3;
  }
  return iVar2;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int FUN_00051410(void)

{
  int iVar1;
  int iVar2;
  
  iVar2 = 4;
  if ((*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0) {
    iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);
    iVar2 = iVar1 + 7;
    if (-1 < iVar1) {
      iVar2 = iVar1;
    }
    iVar2 = iVar2 >> 3;
  }
  return iVar2;
}


CALL 0x00017d1a
ADD EAX,0x2ebeb
LEA EAX,[EAX + 0x9944]
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [EAX + 0x84]
MOV EAX,0x4
TEST byte ptr [EDX + 0x10],0x10
JNZ 0x00051441
MOV EDX,dword ptr [EDX + 0x4]
TEST EDX,EDX
LEA EAX,[EDX + 0x7]
CMOVNS EAX,EDX
SAR EAX,0x3
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint FUN_00051410(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 4;\n  if ((*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0) {\n    iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int FUN_00051410(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 4;\n  if ((*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0) {\n    iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_00051410(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 4;\n  if ((*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0) {\n    iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = 4;" (assignment_expression "iVar2 = 4" identifier = number_literal) ;) (if_statement "if ((*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0) {\n    iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }" if (parenthesized_expression "((*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0)" ( (binary_expression "(*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0" (parenthesized_expression "(*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10)" ( (binary_expression "*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10" (pointer_expression "*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10)" * (cast_expression "(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00089944 + 0x84) + 0x10)" ( (binary_expression "*(int *)(DAT_00089944 + 0x84) + 0x10" (pointer_expression "*(int *)(DAT_00089944 + 0x84)" * (cast_expression "(int *)(DAT_00089944 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00089944 + 0x84)" ( (binary_expression "DAT_00089944 + 0x84" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }" { (expression_statement "iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_00089944 + 0x84) + 4)" * (cast_expression "(int *)(*(int *)(DAT_00089944 + 0x84) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00089944 + 0x84) + 4)" ( (binary_expression "*(int *)(DAT_00089944 + 0x84) + 4" (pointer_expression "*(int *)(DAT_00089944 + 0x84)" * (cast_expression "(int *)(DAT_00089944 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00089944 + 0x84)" ( (binary_expression "DAT_00089944 + 0x84" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "iVar2 = iVar1 + 7;" (assignment_expression "iVar2 = iVar1 + 7" identifier = (binary_expression "iVar1 + 7" identifier + number_literal)) ;) (if_statement "if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      iVar2 = iVar1;\n    }" { (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) })) (expression_statement "iVar2 = iVar2 >> 3;" (assignment_expression "iVar2 = iVar2 >> 3" identifier = (binary_expression "iVar2 >> 3" identifier >> number_literal)) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention */\n\nint x86_address_bytes(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 4;\n  if ((stdoutput->arch_info->mach & 0x10) == 0) {\n    iVar1 = stdoutput->arch_info->bits_per_address;\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }\n  return iVar2;\n}\n\n" comment comment (function_definition "int x86_address_bytes(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 4;\n  if ((stdoutput->arch_info->mach & 0x10) == 0) {\n    iVar1 = stdoutput->arch_info->bits_per_address;\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "x86_address_bytes(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 4;\n  if ((stdoutput->arch_info->mach & 0x10) == 0) {\n    iVar1 = stdoutput->arch_info->bits_per_address;\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = 4;" (assignment_expression "iVar2 = 4" identifier = number_literal) ;) (if_statement "if ((stdoutput->arch_info->mach & 0x10) == 0) {\n    iVar1 = stdoutput->arch_info->bits_per_address;\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }" if (parenthesized_expression "((stdoutput->arch_info->mach & 0x10) == 0)" ( (binary_expression "(stdoutput->arch_info->mach & 0x10) == 0" (parenthesized_expression "(stdoutput->arch_info->mach & 0x10)" ( (binary_expression "stdoutput->arch_info->mach & 0x10" (field_expression "stdoutput->arch_info->mach" (field_expression "stdoutput->arch_info" identifier -> field_identifier) -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar1 = stdoutput->arch_info->bits_per_address;\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }" { (expression_statement "iVar1 = stdoutput->arch_info->bits_per_address;" (assignment_expression "iVar1 = stdoutput->arch_info->bits_per_address" identifier = (field_expression "stdoutput->arch_info->bits_per_address" (field_expression "stdoutput->arch_info" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "iVar2 = iVar1 + 7;" (assignment_expression "iVar2 = iVar1 + 7" identifier = (binary_expression "iVar1 + 7" identifier + number_literal)) ;) (if_statement "if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      iVar2 = iVar1;\n    }" { (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) })) (expression_statement "iVar2 = iVar2 >> 3;" (assignment_expression "iVar2 = iVar2 >> 3" identifier = (binary_expression "iVar2 >> 3" identifier >> number_literal)) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int FUN_00051410(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 4;\n  if ((*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0) {\n    iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_00051410(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 4;\n  if ((*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0) {\n    iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_00051410(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 4;\n  if ((*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0) {\n    iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = 4;" (assignment_expression "iVar2 = 4" identifier = number_literal) ;) (if_statement "if ((*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0) {\n    iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }" if (parenthesized_expression "((*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0)" ( (binary_expression "(*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0" (parenthesized_expression "(*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10)" ( (binary_expression "*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10" (pointer_expression "*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10)" * (cast_expression "(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00089944 + 0x84) + 0x10)" ( (binary_expression "*(int *)(DAT_00089944 + 0x84) + 0x10" (pointer_expression "*(int *)(DAT_00089944 + 0x84)" * (cast_expression "(int *)(DAT_00089944 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00089944 + 0x84)" ( (binary_expression "DAT_00089944 + 0x84" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }" { (expression_statement "iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_00089944 + 0x84) + 4)" * (cast_expression "(int *)(*(int *)(DAT_00089944 + 0x84) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00089944 + 0x84) + 4)" ( (binary_expression "*(int *)(DAT_00089944 + 0x84) + 4" (pointer_expression "*(int *)(DAT_00089944 + 0x84)" * (cast_expression "(int *)(DAT_00089944 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00089944 + 0x84)" ( (binary_expression "DAT_00089944 + 0x84" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "iVar2 = iVar1 + 7;" (assignment_expression "iVar2 = iVar1 + 7" identifier = (binary_expression "iVar1 + 7" identifier + number_literal)) ;) (if_statement "if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      iVar2 = iVar1;\n    }" { (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) })) (expression_statement "iVar2 = iVar2 >> 3;" (assignment_expression "iVar2 = iVar2 >> 3" identifier = (binary_expression "iVar2 >> 3" identifier >> number_literal)) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00051410(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 4;\n  if ((*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0) {\n    iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_00051410(void)" (identifier "FUN_00051410") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = 4;\n  if ((*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0) {\n    iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = 4;" (assignment_expression "iVar2 = 4" (identifier "iVar2") (= "=") (number_literal "4")) (; ";")) (if_statement "if ((*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0) {\n    iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }" (if "if") (parenthesized_expression "((*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0)" (( "(") (binary_expression "(*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0" (parenthesized_expression "(*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10)" (( "(") (binary_expression "*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10" (pointer_expression "*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10)" (* "*") (cast_expression "(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_00089944 + 0x84) + 0x10)" (( "(") (binary_expression "*(int *)(DAT_00089944 + 0x84) + 0x10" (pointer_expression "*(int *)(DAT_00089944 + 0x84)" (* "*") (cast_expression "(int *)(DAT_00089944 + 0x84)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00089944 + 0x84)" (( "(") (binary_expression "DAT_00089944 + 0x84" (identifier "DAT_00089944") (+ "+") (number_literal "0x84")) () ")")))) (+ "+") (number_literal "0x10")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);\n    iVar2 = iVar1 + 7;\n    if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }\n    iVar2 = iVar2 >> 3;\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(DAT_00089944 + 0x84) + 4)" (* "*") (cast_expression "(int *)(*(int *)(DAT_00089944 + 0x84) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_00089944 + 0x84) + 4)" (( "(") (binary_expression "*(int *)(DAT_00089944 + 0x84) + 4" (pointer_expression "*(int *)(DAT_00089944 + 0x84)" (* "*") (cast_expression "(int *)(DAT_00089944 + 0x84)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00089944 + 0x84)" (( "(") (binary_expression "DAT_00089944 + 0x84" (identifier "DAT_00089944") (+ "+") (number_literal "0x84")) () ")")))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar2 = iVar1 + 7;" (assignment_expression "iVar2 = iVar1 + 7" (identifier "iVar2") (= "=") (binary_expression "iVar1 + 7" (identifier "iVar1") (+ "+") (number_literal "7"))) (; ";")) (if_statement "if (-1 < iVar1) {\n      iVar2 = iVar1;\n    }" (if "if") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n      iVar2 = iVar1;\n    }" ({ "{") (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" (identifier "iVar2") (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (expression_statement "iVar2 = iVar2 >> 3;" (assignment_expression "iVar2 = iVar2 >> 3" (identifier "iVar2") (= "=") (binary_expression "iVar2 >> 3" (identifier "iVar2") (>> ">>") (number_literal "3"))) (; ";")) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

int function_1(void)

{
  int var_1;
  int var_2;
  
  var_2 = 4;
  if ((stdoutput->arch_info->mach & 0x10) == 0) {
    var_1 = stdoutput->arch_info->bits_per_address;
    var_2 = var_1 + 7;
    if (-1 < var_1) {
      var_2 = var_1;
    }
    var_2 = var_2 >> 3;
  }
  return var_2;
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int MASKED(void)

{
  int iVar1;
  int iVar2;
  
  iVar2 = 4;
  if ((*(byte *)(*(int *)(DAT_00089944 + 0x84) + 0x10) & 0x10) == 0) {
    iVar1 = *(int *)(*(int *)(DAT_00089944 + 0x84) + 4);
    iVar2 = iVar1 + 7;
    if (-1 < iVar1) {
      iVar2 = iVar1;
    }
    iVar2 = iVar2 >> 3;
  }
  return iVar2;
}

