
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void ppc_set_cpu(void)

{
  undefined8 uVar1;
  
  if (((uint)ppc_cpu & 0xffffffbf) == 0 && ppc_cpu._4_4_ == 0) {
    if (ppc_obj64 == 0) {
      ppc_cpu._0_4_ = (uint)ppc_cpu | 1;
      return;
    }
    if (target_big_endian == 0) {
      uVar1 = ppc_parse_cpu((uint)ppc_cpu,ppc_cpu._4_4_,&sticky,&DAT_00054d2f);
      ppc_cpu._0_4_ = (uint)ppc_cpu | (uint)uVar1;
      ppc_cpu._4_4_ = ppc_cpu._4_4_ | (uint)((ulonglong)uVar1 >> 0x20);
    }
    else {
      ppc_cpu._0_4_ = (uint)ppc_cpu | 9;
    }
  }
  return;
}



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

void FUN_00041230(void)

{
  undefined8 uVar1;
  
  if ((DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0) {
    if (DAT_00077bcc == 0) {
      DAT_00077ba8 = DAT_00077ba8 | 1;
      return;
    }
    if (DAT_0006f2c8 == 0) {
      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");
      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;
      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);
    }
    else {
      DAT_00077ba8 = DAT_00077ba8 | 9;
    }
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00016090
ADD EBX,0x2ddc9
SUB ESP,0x4
MOV EAX,dword ptr [EBX + 0x8ba8]
MOV EDX,dword ptr [EBX + 0x8bac]
MOV ESI,EAX
AND ESI,0xffffffbf
OR ESI,EDX
JNZ 0x0004127a
MOV ESI,dword ptr [EBX + 0x8bcc]
TEST ESI,ESI
JZ 0x00041280
LEA ESI,[EBX + 0x2c8]
MOV ESI,dword ptr [ESI]
TEST ESI,ESI
JZ 0x00041298
OR EAX,0x9
MOV dword ptr [EBX + 0x8bac],EDX
MOV dword ptr [EBX + 0x8ba8],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
OR EAX,0x1
MOV dword ptr [EBX + 0x8bac],EDX
MOV dword ptr [EBX + 0x8ba8],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
LEA ECX,[EBX + 0xfffe5d2f]
PUSH ECX
LEA ECX,[EBX + 0x8ba0]
PUSH ECX
PUSH EDX
PUSH EAX
CALL 0x00014690
ADD ESP,0x10
OR dword ptr [EBX + 0x8ba8],EAX
OR dword ptr [EBX + 0x8bac],EDX
JMP 0x0004127a
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00041230(void)\n\n{\n  undefined8 uVar1;\n  \n  if ((DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0) {\n    if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }\n    if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00041230(void)\n\n{\n  undefined8 uVar1;\n  \n  if ((DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0) {\n    if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }\n    if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00041230(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if ((DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0) {\n    if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }\n    if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }\n  }\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if ((DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0) {\n    if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }\n    if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }\n  }" if (parenthesized_expression "((DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0)" ( (binary_expression "(DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0" (binary_expression "(DAT_00077ba8 & 0xffffffbf) == 0" (parenthesized_expression "(DAT_00077ba8 & 0xffffffbf)" ( (binary_expression "DAT_00077ba8 & 0xffffffbf" identifier & number_literal) )) == number_literal) && (binary_expression "DAT_00077bac == 0" identifier == number_literal)) )) (compound_statement "{\n    if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }\n    if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }\n  }" { (if_statement "if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }" if (parenthesized_expression "(DAT_00077bcc == 0)" ( (binary_expression "DAT_00077bcc == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }" { (expression_statement "DAT_00077ba8 = DAT_00077ba8 | 1;" (assignment_expression "DAT_00077ba8 = DAT_00077ba8 | 1" identifier = (binary_expression "DAT_00077ba8 | 1" identifier | number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }" if (parenthesized_expression "(DAT_0006f2c8 == 0)" ( (binary_expression "DAT_0006f2c8 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }" { (expression_statement "uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");" (assignment_expression "uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8")" identifier = (call_expression "ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8")" identifier (argument_list "(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8")" ( identifier , identifier , (pointer_expression "&DAT_00077ba0" & identifier) , (string_literal ""power8"" " string_content ") )))) ;) (expression_statement "DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;" (assignment_expression "DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1" identifier = (binary_expression "DAT_00077ba8 | (uint)uVar1" identifier | (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);" (assignment_expression "DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20)" identifier = (binary_expression "DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20)" identifier | (call_expression "(uint)((ulonglong)uVar1 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar1 >> 0x20)" ( (binary_expression "(ulonglong)uVar1 >> 0x20" (cast_expression "(ulonglong)uVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))))) ;) }) (else_clause "else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }" else (compound_statement "{\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }" { (expression_statement "DAT_00077ba8 = DAT_00077ba8 | 9;" (assignment_expression "DAT_00077ba8 = DAT_00077ba8 | 9" identifier = (binary_expression "DAT_00077ba8 | 9" identifier | number_literal)) ;) }))) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid ppc_set_cpu(void)\n\n{\n  undefined8 uVar1;\n  \n  if (((uint)ppc_cpu & 0xffffffbf) == 0 && ppc_cpu._4_4_ == 0) {\n    if (ppc_obj64 == 0) {\n      ppc_cpu._0_4_ = (uint)ppc_cpu | 1;\n      return;\n    }\n    if (target_big_endian == 0) {\n      uVar1 = ppc_parse_cpu((uint)ppc_cpu,ppc_cpu._4_4_,&sticky,&DAT_00054d2f);\n      ppc_cpu._0_4_ = (uint)ppc_cpu | (uint)uVar1;\n      ppc_cpu._4_4_ = ppc_cpu._4_4_ | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      ppc_cpu._0_4_ = (uint)ppc_cpu | 9;\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void ppc_set_cpu(void)\n\n{\n  undefined8 uVar1;\n  \n  if (((uint)ppc_cpu & 0xffffffbf) == 0 && ppc_cpu._4_4_ == 0) {\n    if (ppc_obj64 == 0) {\n      ppc_cpu._0_4_ = (uint)ppc_cpu | 1;\n      return;\n    }\n    if (target_big_endian == 0) {\n      uVar1 = ppc_parse_cpu((uint)ppc_cpu,ppc_cpu._4_4_,&sticky,&DAT_00054d2f);\n      ppc_cpu._0_4_ = (uint)ppc_cpu | (uint)uVar1;\n      ppc_cpu._4_4_ = ppc_cpu._4_4_ | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      ppc_cpu._0_4_ = (uint)ppc_cpu | 9;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "ppc_set_cpu(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (((uint)ppc_cpu & 0xffffffbf) == 0 && ppc_cpu._4_4_ == 0) {\n    if (ppc_obj64 == 0) {\n      ppc_cpu._0_4_ = (uint)ppc_cpu | 1;\n      return;\n    }\n    if (target_big_endian == 0) {\n      uVar1 = ppc_parse_cpu((uint)ppc_cpu,ppc_cpu._4_4_,&sticky,&DAT_00054d2f);\n      ppc_cpu._0_4_ = (uint)ppc_cpu | (uint)uVar1;\n      ppc_cpu._4_4_ = ppc_cpu._4_4_ | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      ppc_cpu._0_4_ = (uint)ppc_cpu | 9;\n    }\n  }\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if (((uint)ppc_cpu & 0xffffffbf) == 0 && ppc_cpu._4_4_ == 0) {\n    if (ppc_obj64 == 0) {\n      ppc_cpu._0_4_ = (uint)ppc_cpu | 1;\n      return;\n    }\n    if (target_big_endian == 0) {\n      uVar1 = ppc_parse_cpu((uint)ppc_cpu,ppc_cpu._4_4_,&sticky,&DAT_00054d2f);\n      ppc_cpu._0_4_ = (uint)ppc_cpu | (uint)uVar1;\n      ppc_cpu._4_4_ = ppc_cpu._4_4_ | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      ppc_cpu._0_4_ = (uint)ppc_cpu | 9;\n    }\n  }" if (parenthesized_expression "(((uint)ppc_cpu & 0xffffffbf) == 0 && ppc_cpu._4_4_ == 0)" ( (binary_expression "((uint)ppc_cpu & 0xffffffbf) == 0 && ppc_cpu._4_4_ == 0" (binary_expression "((uint)ppc_cpu & 0xffffffbf) == 0" (parenthesized_expression "((uint)ppc_cpu & 0xffffffbf)" ( (binary_expression "(uint)ppc_cpu & 0xffffffbf" (cast_expression "(uint)ppc_cpu" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) && (binary_expression "ppc_cpu._4_4_ == 0" (field_expression "ppc_cpu._4_4_" identifier . field_identifier) == number_literal)) )) (compound_statement "{\n    if (ppc_obj64 == 0) {\n      ppc_cpu._0_4_ = (uint)ppc_cpu | 1;\n      return;\n    }\n    if (target_big_endian == 0) {\n      uVar1 = ppc_parse_cpu((uint)ppc_cpu,ppc_cpu._4_4_,&sticky,&DAT_00054d2f);\n      ppc_cpu._0_4_ = (uint)ppc_cpu | (uint)uVar1;\n      ppc_cpu._4_4_ = ppc_cpu._4_4_ | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      ppc_cpu._0_4_ = (uint)ppc_cpu | 9;\n    }\n  }" { (if_statement "if (ppc_obj64 == 0) {\n      ppc_cpu._0_4_ = (uint)ppc_cpu | 1;\n      return;\n    }" if (parenthesized_expression "(ppc_obj64 == 0)" ( (binary_expression "ppc_obj64 == 0" identifier == number_literal) )) (compound_statement "{\n      ppc_cpu._0_4_ = (uint)ppc_cpu | 1;\n      return;\n    }" { (expression_statement "ppc_cpu._0_4_ = (uint)ppc_cpu | 1;" (assignment_expression "ppc_cpu._0_4_ = (uint)ppc_cpu | 1" (field_expression "ppc_cpu._0_4_" identifier . field_identifier) = (binary_expression "(uint)ppc_cpu | 1" (cast_expression "(uint)ppc_cpu" ( (type_descriptor "uint" type_identifier) ) identifier) | number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if (target_big_endian == 0) {\n      uVar1 = ppc_parse_cpu((uint)ppc_cpu,ppc_cpu._4_4_,&sticky,&DAT_00054d2f);\n      ppc_cpu._0_4_ = (uint)ppc_cpu | (uint)uVar1;\n      ppc_cpu._4_4_ = ppc_cpu._4_4_ | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      ppc_cpu._0_4_ = (uint)ppc_cpu | 9;\n    }" if (parenthesized_expression "(target_big_endian == 0)" ( (binary_expression "target_big_endian == 0" identifier == number_literal) )) (compound_statement "{\n      uVar1 = ppc_parse_cpu((uint)ppc_cpu,ppc_cpu._4_4_,&sticky,&DAT_00054d2f);\n      ppc_cpu._0_4_ = (uint)ppc_cpu | (uint)uVar1;\n      ppc_cpu._4_4_ = ppc_cpu._4_4_ | (uint)((ulonglong)uVar1 >> 0x20);\n    }" { (expression_statement "uVar1 = ppc_parse_cpu((uint)ppc_cpu,ppc_cpu._4_4_,&sticky,&DAT_00054d2f);" (assignment_expression "uVar1 = ppc_parse_cpu((uint)ppc_cpu,ppc_cpu._4_4_,&sticky,&DAT_00054d2f)" identifier = (call_expression "ppc_parse_cpu((uint)ppc_cpu,ppc_cpu._4_4_,&sticky,&DAT_00054d2f)" identifier (argument_list "((uint)ppc_cpu,ppc_cpu._4_4_,&sticky,&DAT_00054d2f)" ( (cast_expression "(uint)ppc_cpu" ( (type_descriptor "uint" type_identifier) ) identifier) , (field_expression "ppc_cpu._4_4_" identifier . field_identifier) , (pointer_expression "&sticky" & identifier) , (pointer_expression "&DAT_00054d2f" & identifier) )))) ;) (expression_statement "ppc_cpu._0_4_ = (uint)ppc_cpu | (uint)uVar1;" (assignment_expression "ppc_cpu._0_4_ = (uint)ppc_cpu | (uint)uVar1" (field_expression "ppc_cpu._0_4_" identifier . field_identifier) = (binary_expression "(uint)ppc_cpu | (uint)uVar1" (cast_expression "(uint)ppc_cpu" ( (type_descriptor "uint" type_identifier) ) identifier) | (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "ppc_cpu._4_4_ = ppc_cpu._4_4_ | (uint)((ulonglong)uVar1 >> 0x20);" (assignment_expression "ppc_cpu._4_4_ = ppc_cpu._4_4_ | (uint)((ulonglong)uVar1 >> 0x20)" (field_expression "ppc_cpu._4_4_" identifier . field_identifier) = (binary_expression "ppc_cpu._4_4_ | (uint)((ulonglong)uVar1 >> 0x20)" (field_expression "ppc_cpu._4_4_" identifier . field_identifier) | (call_expression "(uint)((ulonglong)uVar1 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar1 >> 0x20)" ( (binary_expression "(ulonglong)uVar1 >> 0x20" (cast_expression "(ulonglong)uVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))))) ;) }) (else_clause "else {\n      ppc_cpu._0_4_ = (uint)ppc_cpu | 9;\n    }" else (compound_statement "{\n      ppc_cpu._0_4_ = (uint)ppc_cpu | 9;\n    }" { (expression_statement "ppc_cpu._0_4_ = (uint)ppc_cpu | 9;" (assignment_expression "ppc_cpu._0_4_ = (uint)ppc_cpu | 9" (field_expression "ppc_cpu._0_4_" identifier . field_identifier) = (binary_expression "(uint)ppc_cpu | 9" (cast_expression "(uint)ppc_cpu" ( (type_descriptor "uint" type_identifier) ) identifier) | number_literal)) ;) }))) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00041230(void)\n\n{\n  undefined8 uVar1;\n  \n  if ((DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0) {\n    if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }\n    if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00041230(void)\n\n{\n  undefined8 uVar1;\n  \n  if ((DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0) {\n    if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }\n    if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00041230(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if ((DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0) {\n    if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }\n    if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }\n  }\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if ((DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0) {\n    if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }\n    if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }\n  }" if (parenthesized_expression "((DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0)" ( (binary_expression "(DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0" (binary_expression "(DAT_00077ba8 & 0xffffffbf) == 0" (parenthesized_expression "(DAT_00077ba8 & 0xffffffbf)" ( (binary_expression "DAT_00077ba8 & 0xffffffbf" identifier & number_literal) )) == number_literal) && (binary_expression "DAT_00077bac == 0" identifier == number_literal)) )) (compound_statement "{\n    if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }\n    if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }\n  }" { (if_statement "if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }" if (parenthesized_expression "(DAT_00077bcc == 0)" ( (binary_expression "DAT_00077bcc == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }" { (expression_statement "DAT_00077ba8 = DAT_00077ba8 | 1;" (assignment_expression "DAT_00077ba8 = DAT_00077ba8 | 1" identifier = (binary_expression "DAT_00077ba8 | 1" identifier | number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }" if (parenthesized_expression "(DAT_0006f2c8 == 0)" ( (binary_expression "DAT_0006f2c8 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }" { (expression_statement "uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");" (assignment_expression "uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8")" identifier = (call_expression "ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8")" identifier (argument_list "(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8")" ( identifier , identifier , (pointer_expression "&DAT_00077ba0" & identifier) , (string_literal ""power8"" " string_content ") )))) ;) (expression_statement "DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;" (assignment_expression "DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1" identifier = (binary_expression "DAT_00077ba8 | (uint)uVar1" identifier | (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (expression_statement "DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);" (assignment_expression "DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20)" identifier = (binary_expression "DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20)" identifier | (call_expression "(uint)((ulonglong)uVar1 >> 0x20)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar1 >> 0x20)" ( (binary_expression "(ulonglong)uVar1 >> 0x20" (cast_expression "(ulonglong)uVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))))) ;) }) (else_clause "else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }" else (compound_statement "{\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }" { (expression_statement "DAT_00077ba8 = DAT_00077ba8 | 9;" (assignment_expression "DAT_00077ba8 = DAT_00077ba8 | 9" identifier = (binary_expression "DAT_00077ba8 | 9" identifier | number_literal)) ;) }))) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) && (binary_expression IDENT == LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) }))) })) (return_statement return ;) })))
(function_definition "void FUN_00041230(void)\n\n{\n  undefined8 uVar1;\n  \n  if ((DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0) {\n    if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }\n    if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00041230(void)" (identifier "FUN_00041230") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if ((DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0) {\n    if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }\n    if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (if_statement "if ((DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0) {\n    if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }\n    if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }\n  }" (if "if") (parenthesized_expression "((DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0)" (( "(") (binary_expression "(DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0" (binary_expression "(DAT_00077ba8 & 0xffffffbf) == 0" (parenthesized_expression "(DAT_00077ba8 & 0xffffffbf)" (( "(") (binary_expression "DAT_00077ba8 & 0xffffffbf" (identifier "DAT_00077ba8") (& "&") (number_literal "0xffffffbf")) () ")")) (== "==") (number_literal "0")) (&& "&&") (binary_expression "DAT_00077bac == 0" (identifier "DAT_00077bac") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n    if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }\n    if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }\n  }" ({ "{") (if_statement "if (DAT_00077bcc == 0) {\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }" (if "if") (parenthesized_expression "(DAT_00077bcc == 0)" (( "(") (binary_expression "DAT_00077bcc == 0" (identifier "DAT_00077bcc") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_00077ba8 = DAT_00077ba8 | 1;\n      return;\n    }" ({ "{") (expression_statement "DAT_00077ba8 = DAT_00077ba8 | 1;" (assignment_expression "DAT_00077ba8 = DAT_00077ba8 | 1" (identifier "DAT_00077ba8") (= "=") (binary_expression "DAT_00077ba8 | 1" (identifier "DAT_00077ba8") (| "|") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (DAT_0006f2c8 == 0) {\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }\n    else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }" (if "if") (parenthesized_expression "(DAT_0006f2c8 == 0)" (( "(") (binary_expression "DAT_0006f2c8 == 0" (identifier "DAT_0006f2c8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");\n      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;\n      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);\n    }" ({ "{") (expression_statement "uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");" (assignment_expression "uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8")" (identifier "uVar1") (= "=") (call_expression "ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8")" (identifier "ppc_parse_cpu") (argument_list "(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8")" (( "(") (identifier "DAT_00077ba8") (, ",") (identifier "DAT_00077bac") (, ",") (pointer_expression "&DAT_00077ba0" (& "&") (identifier "DAT_00077ba0")) (, ",") (string_literal ""power8"" (" """) (string_content "power8") (" """)) () ")")))) (; ";")) (expression_statement "DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;" (assignment_expression "DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1" (identifier "DAT_00077ba8") (= "=") (binary_expression "DAT_00077ba8 | (uint)uVar1" (identifier "DAT_00077ba8") (| "|") (cast_expression "(uint)uVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar1")))) (; ";")) (expression_statement "DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);" (assignment_expression "DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20)" (identifier "DAT_00077bac") (= "=") (binary_expression "DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20)" (identifier "DAT_00077bac") (| "|") (call_expression "(uint)((ulonglong)uVar1 >> 0x20)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((ulonglong)uVar1 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar1 >> 0x20" (cast_expression "(ulonglong)uVar1" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar1")) (>> ">>") (number_literal "0x20")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }" (else "else") (compound_statement "{\n      DAT_00077ba8 = DAT_00077ba8 | 9;\n    }" ({ "{") (expression_statement "DAT_00077ba8 = DAT_00077ba8 | 9;" (assignment_expression "DAT_00077ba8 = DAT_00077ba8 | 9" (identifier "DAT_00077ba8") (= "=") (binary_expression "DAT_00077ba8 | 9" (identifier "DAT_00077ba8") (| "|") (number_literal "9"))) (; ";")) (} "}")))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  type_1 uVar1;
  
  if (((type_2)ppc_cpu & 0xffffffbf) == 0 && ppc_cpu._4_4_ == 0) {
    if (var_1 == 0) {
      ppc_cpu._0_4_ = (type_2)ppc_cpu | 1;
      return;
    }
    if (var_2 == 0) {
      uVar1 = var_3((type_2)ppc_cpu,ppc_cpu._4_4_,&sticky,&DAT_00054d2f);
      ppc_cpu._0_4_ = (type_2)ppc_cpu | (type_2)uVar1;
      ppc_cpu._4_4_ = ppc_cpu._4_4_ | (type_2)((type_3)uVar1 >> 0x20);
    }
    else {
      ppc_cpu._0_4_ = (type_2)ppc_cpu | 9;
    }
  }
  return;
}


(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: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier)) (string_literal (string_content)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))) (return_statement))))

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

void MASKED(void)

{
  undefined8 uVar1;
  
  if ((DAT_00077ba8 & 0xffffffbf) == 0 && DAT_00077bac == 0) {
    if (DAT_00077bcc == 0) {
      DAT_00077ba8 = DAT_00077ba8 | 1;
      return;
    }
    if (DAT_0006f2c8 == 0) {
      uVar1 = ppc_parse_cpu(DAT_00077ba8,DAT_00077bac,&DAT_00077ba0,"power8");
      DAT_00077ba8 = DAT_00077ba8 | (uint)uVar1;
      DAT_00077bac = DAT_00077bac | (uint)((ulonglong)uVar1 >> 0x20);
    }
    else {
      DAT_00077ba8 = DAT_00077ba8 | 9;
    }
  }
  return;
}

