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

int __regparm3 attr_swidth(int a)

{
  uint uVar1;
  uint uVar2;
  
  uVar1 = apply_at_specials(a);
  uVar2 = uVar1 & 1;
  if ((uVar1 & 1) != 0) {
    uVar2 = ul_s_width;
  }
  if ((uVar1 & 2) != 0) {
    uVar2 = uVar2 + bo_s_width;
  }
  if ((uVar1 & 4) != 0) {
    uVar2 = uVar2 + bl_s_width;
  }
  if ((uVar1 & 8) != 0) {
    uVar2 = uVar2 + so_s_width;
  }
  return uVar2;
}



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

uint __regparm3 FUN_00020240(undefined4 param_1)

{
  uint uVar1;
  uint uVar2;
  
  uVar1 = FUN_00014550(param_1);
  uVar2 = uVar1 & 1;
  if ((uVar1 & 1) != 0) {
    uVar2 = DAT_00041918;
  }
  if ((uVar1 & 2) != 0) {
    uVar2 = uVar2 + DAT_00041914;
  }
  if ((uVar1 & 4) != 0) {
    uVar2 = uVar2 + DAT_00041908;
  }
  if ((uVar1 & 8) != 0) {
    uVar2 = uVar2 + DAT_000418d8;
  }
  return uVar2;
}


PUSH EBX
CALL 0x000129a0
ADD EBX,0x1bc52
SUB ESP,0x14
PUSH EAX
CALL 0x00014550
ADD ESP,0x10
MOV EDX,EAX
AND EAX,0x1
JZ 0x00020267
LEA EAX,[EBX + 0x5a80]
MOV EAX,dword ptr [EAX]
TEST DL,0x2
JZ 0x00020274
LEA ECX,[EBX + 0x5a7c]
ADD EAX,dword ptr [ECX]
TEST DL,0x4
JZ 0x00020281
LEA ECX,[EBX + 0x5a70]
ADD EAX,dword ptr [ECX]
AND EDX,0x8
JZ 0x0002028e
LEA EDX,[EBX + 0x5a40]
ADD EAX,dword ptr [EDX]
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint __regparm3 FUN_00020240(undefined4 param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = FUN_00014550(param_1);\n  uVar2 = uVar1 & 1;\n  if ((uVar1 & 1) != 0) {\n    uVar2 = DAT_00041918;\n  }\n  if ((uVar1 & 2) != 0) {\n    uVar2 = uVar2 + DAT_00041914;\n  }\n  if ((uVar1 & 4) != 0) {\n    uVar2 = uVar2 + DAT_00041908;\n  }\n  if ((uVar1 & 8) != 0) {\n    uVar2 = uVar2 + DAT_000418d8;\n  }\n  return uVar2;\n}\n\n" comment (function_definition "uint __regparm3 FUN_00020240(undefined4 param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = FUN_00014550(param_1);\n  uVar2 = uVar1 & 1;\n  if ((uVar1 & 1) != 0) {\n    uVar2 = DAT_00041918;\n  }\n  if ((uVar1 & 2) != 0) {\n    uVar2 = uVar2 + DAT_00041914;\n  }\n  if ((uVar1 & 4) != 0) {\n    uVar2 = uVar2 + DAT_00041908;\n  }\n  if ((uVar1 & 8) != 0) {\n    uVar2 = uVar2 + DAT_000418d8;\n  }\n  return uVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00020240(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = FUN_00014550(param_1);\n  uVar2 = uVar1 & 1;\n  if ((uVar1 & 1) != 0) {\n    uVar2 = DAT_00041918;\n  }\n  if ((uVar1 & 2) != 0) {\n    uVar2 = uVar2 + DAT_00041914;\n  }\n  if ((uVar1 & 4) != 0) {\n    uVar2 = uVar2 + DAT_00041908;\n  }\n  if ((uVar1 & 8) != 0) {\n    uVar2 = uVar2 + DAT_000418d8;\n  }\n  return uVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = FUN_00014550(param_1);" (assignment_expression "uVar1 = FUN_00014550(param_1)" identifier = (call_expression "FUN_00014550(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar2 = uVar1 & 1;" (assignment_expression "uVar2 = uVar1 & 1" identifier = (binary_expression "uVar1 & 1" identifier & number_literal)) ;) (if_statement "if ((uVar1 & 1) != 0) {\n    uVar2 = DAT_00041918;\n  }" if (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = DAT_00041918;\n  }" { (expression_statement "uVar2 = DAT_00041918;" (assignment_expression "uVar2 = DAT_00041918" identifier = identifier) ;) })) (if_statement "if ((uVar1 & 2) != 0) {\n    uVar2 = uVar2 + DAT_00041914;\n  }" if (parenthesized_expression "((uVar1 & 2) != 0)" ( (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = uVar2 + DAT_00041914;\n  }" { (expression_statement "uVar2 = uVar2 + DAT_00041914;" (assignment_expression "uVar2 = uVar2 + DAT_00041914" identifier = (binary_expression "uVar2 + DAT_00041914" identifier + identifier)) ;) })) (if_statement "if ((uVar1 & 4) != 0) {\n    uVar2 = uVar2 + DAT_00041908;\n  }" if (parenthesized_expression "((uVar1 & 4) != 0)" ( (binary_expression "(uVar1 & 4) != 0" (parenthesized_expression "(uVar1 & 4)" ( (binary_expression "uVar1 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = uVar2 + DAT_00041908;\n  }" { (expression_statement "uVar2 = uVar2 + DAT_00041908;" (assignment_expression "uVar2 = uVar2 + DAT_00041908" identifier = (binary_expression "uVar2 + DAT_00041908" identifier + identifier)) ;) })) (if_statement "if ((uVar1 & 8) != 0) {\n    uVar2 = uVar2 + DAT_000418d8;\n  }" if (parenthesized_expression "((uVar1 & 8) != 0)" ( (binary_expression "(uVar1 & 8) != 0" (parenthesized_expression "(uVar1 & 8)" ( (binary_expression "uVar1 & 8" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = uVar2 + DAT_000418d8;\n  }" { (expression_statement "uVar2 = uVar2 + DAT_000418d8;" (assignment_expression "uVar2 = uVar2 + DAT_000418d8" identifier = (binary_expression "uVar2 + DAT_000418d8" identifier + identifier)) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 attr_swidth(int a)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = apply_at_specials(a);\n  uVar2 = uVar1 & 1;\n  if ((uVar1 & 1) != 0) {\n    uVar2 = ul_s_width;\n  }\n  if ((uVar1 & 2) != 0) {\n    uVar2 = uVar2 + bo_s_width;\n  }\n  if ((uVar1 & 4) != 0) {\n    uVar2 = uVar2 + bl_s_width;\n  }\n  if ((uVar1 & 8) != 0) {\n    uVar2 = uVar2 + so_s_width;\n  }\n  return uVar2;\n}\n\n" comment (function_definition "int __regparm3 attr_swidth(int a)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = apply_at_specials(a);\n  uVar2 = uVar1 & 1;\n  if ((uVar1 & 1) != 0) {\n    uVar2 = ul_s_width;\n  }\n  if ((uVar1 & 2) != 0) {\n    uVar2 = uVar2 + bo_s_width;\n  }\n  if ((uVar1 & 4) != 0) {\n    uVar2 = uVar2 + bl_s_width;\n  }\n  if ((uVar1 & 8) != 0) {\n    uVar2 = uVar2 + so_s_width;\n  }\n  return uVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "attr_swidth(int a)" identifier (parameter_list "(int a)" ( (parameter_declaration "int a" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = apply_at_specials(a);\n  uVar2 = uVar1 & 1;\n  if ((uVar1 & 1) != 0) {\n    uVar2 = ul_s_width;\n  }\n  if ((uVar1 & 2) != 0) {\n    uVar2 = uVar2 + bo_s_width;\n  }\n  if ((uVar1 & 4) != 0) {\n    uVar2 = uVar2 + bl_s_width;\n  }\n  if ((uVar1 & 8) != 0) {\n    uVar2 = uVar2 + so_s_width;\n  }\n  return uVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = apply_at_specials(a);" (assignment_expression "uVar1 = apply_at_specials(a)" identifier = (call_expression "apply_at_specials(a)" identifier (argument_list "(a)" ( identifier )))) ;) (expression_statement "uVar2 = uVar1 & 1;" (assignment_expression "uVar2 = uVar1 & 1" identifier = (binary_expression "uVar1 & 1" identifier & number_literal)) ;) (if_statement "if ((uVar1 & 1) != 0) {\n    uVar2 = ul_s_width;\n  }" if (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = ul_s_width;\n  }" { (expression_statement "uVar2 = ul_s_width;" (assignment_expression "uVar2 = ul_s_width" identifier = identifier) ;) })) (if_statement "if ((uVar1 & 2) != 0) {\n    uVar2 = uVar2 + bo_s_width;\n  }" if (parenthesized_expression "((uVar1 & 2) != 0)" ( (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = uVar2 + bo_s_width;\n  }" { (expression_statement "uVar2 = uVar2 + bo_s_width;" (assignment_expression "uVar2 = uVar2 + bo_s_width" identifier = (binary_expression "uVar2 + bo_s_width" identifier + identifier)) ;) })) (if_statement "if ((uVar1 & 4) != 0) {\n    uVar2 = uVar2 + bl_s_width;\n  }" if (parenthesized_expression "((uVar1 & 4) != 0)" ( (binary_expression "(uVar1 & 4) != 0" (parenthesized_expression "(uVar1 & 4)" ( (binary_expression "uVar1 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = uVar2 + bl_s_width;\n  }" { (expression_statement "uVar2 = uVar2 + bl_s_width;" (assignment_expression "uVar2 = uVar2 + bl_s_width" identifier = (binary_expression "uVar2 + bl_s_width" identifier + identifier)) ;) })) (if_statement "if ((uVar1 & 8) != 0) {\n    uVar2 = uVar2 + so_s_width;\n  }" if (parenthesized_expression "((uVar1 & 8) != 0)" ( (binary_expression "(uVar1 & 8) != 0" (parenthesized_expression "(uVar1 & 8)" ( (binary_expression "uVar1 & 8" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = uVar2 + so_s_width;\n  }" { (expression_statement "uVar2 = uVar2 + so_s_width;" (assignment_expression "uVar2 = uVar2 + so_s_width" identifier = (binary_expression "uVar2 + so_s_width" identifier + identifier)) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "uint __regparm3 FUN_00020240(undefined4 param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = FUN_00014550(param_1);\n  uVar2 = uVar1 & 1;\n  if ((uVar1 & 1) != 0) {\n    uVar2 = DAT_00041918;\n  }\n  if ((uVar1 & 2) != 0) {\n    uVar2 = uVar2 + DAT_00041914;\n  }\n  if ((uVar1 & 4) != 0) {\n    uVar2 = uVar2 + DAT_00041908;\n  }\n  if ((uVar1 & 8) != 0) {\n    uVar2 = uVar2 + DAT_000418d8;\n  }\n  return uVar2;\n}\n\n" (function_definition "uint __regparm3 FUN_00020240(undefined4 param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = FUN_00014550(param_1);\n  uVar2 = uVar1 & 1;\n  if ((uVar1 & 1) != 0) {\n    uVar2 = DAT_00041918;\n  }\n  if ((uVar1 & 2) != 0) {\n    uVar2 = uVar2 + DAT_00041914;\n  }\n  if ((uVar1 & 4) != 0) {\n    uVar2 = uVar2 + DAT_00041908;\n  }\n  if ((uVar1 & 8) != 0) {\n    uVar2 = uVar2 + DAT_000418d8;\n  }\n  return uVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00020240(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = FUN_00014550(param_1);\n  uVar2 = uVar1 & 1;\n  if ((uVar1 & 1) != 0) {\n    uVar2 = DAT_00041918;\n  }\n  if ((uVar1 & 2) != 0) {\n    uVar2 = uVar2 + DAT_00041914;\n  }\n  if ((uVar1 & 4) != 0) {\n    uVar2 = uVar2 + DAT_00041908;\n  }\n  if ((uVar1 & 8) != 0) {\n    uVar2 = uVar2 + DAT_000418d8;\n  }\n  return uVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = FUN_00014550(param_1);" (assignment_expression "uVar1 = FUN_00014550(param_1)" identifier = (call_expression "FUN_00014550(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar2 = uVar1 & 1;" (assignment_expression "uVar2 = uVar1 & 1" identifier = (binary_expression "uVar1 & 1" identifier & number_literal)) ;) (if_statement "if ((uVar1 & 1) != 0) {\n    uVar2 = DAT_00041918;\n  }" if (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = DAT_00041918;\n  }" { (expression_statement "uVar2 = DAT_00041918;" (assignment_expression "uVar2 = DAT_00041918" identifier = identifier) ;) })) (if_statement "if ((uVar1 & 2) != 0) {\n    uVar2 = uVar2 + DAT_00041914;\n  }" if (parenthesized_expression "((uVar1 & 2) != 0)" ( (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = uVar2 + DAT_00041914;\n  }" { (expression_statement "uVar2 = uVar2 + DAT_00041914;" (assignment_expression "uVar2 = uVar2 + DAT_00041914" identifier = (binary_expression "uVar2 + DAT_00041914" identifier + identifier)) ;) })) (if_statement "if ((uVar1 & 4) != 0) {\n    uVar2 = uVar2 + DAT_00041908;\n  }" if (parenthesized_expression "((uVar1 & 4) != 0)" ( (binary_expression "(uVar1 & 4) != 0" (parenthesized_expression "(uVar1 & 4)" ( (binary_expression "uVar1 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = uVar2 + DAT_00041908;\n  }" { (expression_statement "uVar2 = uVar2 + DAT_00041908;" (assignment_expression "uVar2 = uVar2 + DAT_00041908" identifier = (binary_expression "uVar2 + DAT_00041908" identifier + identifier)) ;) })) (if_statement "if ((uVar1 & 8) != 0) {\n    uVar2 = uVar2 + DAT_000418d8;\n  }" if (parenthesized_expression "((uVar1 & 8) != 0)" ( (binary_expression "(uVar1 & 8) != 0" (parenthesized_expression "(uVar1 & 8)" ( (binary_expression "uVar1 & 8" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = uVar2 + DAT_000418d8;\n  }" { (expression_statement "uVar2 = uVar2 + DAT_000418d8;" (assignment_expression "uVar2 = uVar2 + DAT_000418d8" identifier = (binary_expression "uVar2 + DAT_000418d8" identifier + identifier)) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint __regparm3 FUN_00020240(undefined4 param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = FUN_00014550(param_1);\n  uVar2 = uVar1 & 1;\n  if ((uVar1 & 1) != 0) {\n    uVar2 = DAT_00041918;\n  }\n  if ((uVar1 & 2) != 0) {\n    uVar2 = uVar2 + DAT_00041914;\n  }\n  if ((uVar1 & 4) != 0) {\n    uVar2 = uVar2 + DAT_00041908;\n  }\n  if ((uVar1 & 8) != 0) {\n    uVar2 = uVar2 + DAT_000418d8;\n  }\n  return uVar2;\n}" (type_identifier "uint") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00020240(undefined4 param_1)" (identifier "FUN_00020240") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = FUN_00014550(param_1);\n  uVar2 = uVar1 & 1;\n  if ((uVar1 & 1) != 0) {\n    uVar2 = DAT_00041918;\n  }\n  if ((uVar1 & 2) != 0) {\n    uVar2 = uVar2 + DAT_00041914;\n  }\n  if ((uVar1 & 4) != 0) {\n    uVar2 = uVar2 + DAT_00041908;\n  }\n  if ((uVar1 & 8) != 0) {\n    uVar2 = uVar2 + DAT_000418d8;\n  }\n  return uVar2;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "uVar1 = FUN_00014550(param_1);" (assignment_expression "uVar1 = FUN_00014550(param_1)" (identifier "uVar1") (= "=") (call_expression "FUN_00014550(param_1)" (identifier "FUN_00014550") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar2 = uVar1 & 1;" (assignment_expression "uVar2 = uVar1 & 1" (identifier "uVar2") (= "=") (binary_expression "uVar1 & 1" (identifier "uVar1") (& "&") (number_literal "1"))) (; ";")) (if_statement "if ((uVar1 & 1) != 0) {\n    uVar2 = DAT_00041918;\n  }" (if "if") (parenthesized_expression "((uVar1 & 1) != 0)" (( "(") (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" (( "(") (binary_expression "uVar1 & 1" (identifier "uVar1") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = DAT_00041918;\n  }" ({ "{") (expression_statement "uVar2 = DAT_00041918;" (assignment_expression "uVar2 = DAT_00041918" (identifier "uVar2") (= "=") (identifier "DAT_00041918")) (; ";")) (} "}"))) (if_statement "if ((uVar1 & 2) != 0) {\n    uVar2 = uVar2 + DAT_00041914;\n  }" (if "if") (parenthesized_expression "((uVar1 & 2) != 0)" (( "(") (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" (( "(") (binary_expression "uVar1 & 2" (identifier "uVar1") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = uVar2 + DAT_00041914;\n  }" ({ "{") (expression_statement "uVar2 = uVar2 + DAT_00041914;" (assignment_expression "uVar2 = uVar2 + DAT_00041914" (identifier "uVar2") (= "=") (binary_expression "uVar2 + DAT_00041914" (identifier "uVar2") (+ "+") (identifier "DAT_00041914"))) (; ";")) (} "}"))) (if_statement "if ((uVar1 & 4) != 0) {\n    uVar2 = uVar2 + DAT_00041908;\n  }" (if "if") (parenthesized_expression "((uVar1 & 4) != 0)" (( "(") (binary_expression "(uVar1 & 4) != 0" (parenthesized_expression "(uVar1 & 4)" (( "(") (binary_expression "uVar1 & 4" (identifier "uVar1") (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = uVar2 + DAT_00041908;\n  }" ({ "{") (expression_statement "uVar2 = uVar2 + DAT_00041908;" (assignment_expression "uVar2 = uVar2 + DAT_00041908" (identifier "uVar2") (= "=") (binary_expression "uVar2 + DAT_00041908" (identifier "uVar2") (+ "+") (identifier "DAT_00041908"))) (; ";")) (} "}"))) (if_statement "if ((uVar1 & 8) != 0) {\n    uVar2 = uVar2 + DAT_000418d8;\n  }" (if "if") (parenthesized_expression "((uVar1 & 8) != 0)" (( "(") (binary_expression "(uVar1 & 8) != 0" (parenthesized_expression "(uVar1 & 8)" (( "(") (binary_expression "uVar1 & 8" (identifier "uVar1") (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = uVar2 + DAT_000418d8;\n  }" ({ "{") (expression_statement "uVar2 = uVar2 + DAT_000418d8;" (assignment_expression "uVar2 = uVar2 + DAT_000418d8" (identifier "uVar2") (= "=") (binary_expression "uVar2 + DAT_000418d8" (identifier "uVar2") (+ "+") (identifier "DAT_000418d8"))) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

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

int __regparm3 function_1(int a)

{
  type_1 var_2;
  type_1 var_3;
  
  var_2 = var_1(a);
  var_3 = var_2 & 1;
  if ((var_2 & 1) != 0) {
    var_3 = ul_s_width;
  }
  if ((var_2 & 2) != 0) {
    var_3 = var_3 + var_4;
  }
  if ((var_2 & 4) != 0) {
    var_3 = var_3 + var_5;
  }
  if ((var_2 & 8) != 0) {
    var_3 = var_3 + var_6;
  }
  return var_3;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (return_statement (identifier)))))

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

uint __regparm3 MASKED(undefined4 param_1)

{
  uint uVar1;
  uint uVar2;
  
  uVar1 = FUN_00014550(param_1);
  uVar2 = uVar1 & 1;
  if ((uVar1 & 1) != 0) {
    uVar2 = DAT_00041918;
  }
  if ((uVar1 & 2) != 0) {
    uVar2 = uVar2 + DAT_00041914;
  }
  if ((uVar1 & 4) != 0) {
    uVar2 = uVar2 + DAT_00041908;
  }
  if ((uVar1 & 8) != 0) {
    uVar2 = uVar2 + DAT_000418d8;
  }
  return uVar2;
}

