
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

char * ppc_target_format(void)

{
  char *pcVar1;
  
  if (target_big_endian != 0) {
    pcVar1 = "elf64-powerpc";
    if (ppc_obj64 == 0) {
      pcVar1 = "elf32-powerpc";
    }
    return pcVar1;
  }
  pcVar1 = "elf64-powerpcle";
  if (ppc_obj64 == 0) {
    pcVar1 = "elf32-powerpcle";
  }
  return pcVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

char * FUN_000437d0(void)

{
  char *pcVar1;
  
  if (DAT_0006f2c8 != 0) {
    pcVar1 = "elf64-powerpc";
    if (DAT_0006f4f4 == 0) {
      pcVar1 = "elf32-powerpc";
    }
    return pcVar1;
  }
  pcVar1 = "elf64-powerpcle";
  if (DAT_0006f4f4 == 0) {
    pcVar1 = "elf32-powerpcle";
  }
  return pcVar1;
}


CALL 0x000161c5
ADD EDX,0x2b82b
LEA ECX,[EDX + 0x2c8]
MOV EAX,dword ptr [EDX + 0x4f4]
MOV ECX,dword ptr [ECX]
TEST ECX,ECX
JZ 0x00043800
TEST EAX,EAX
LEA EAX,[EDX + 0xfffe5f17]
LEA EDX,[EDX + 0xfffe5f35]
CMOVZ EAX,EDX
RET
TEST EAX,EAX
LEA EAX,[EDX + 0xfffe5f25]
LEA EDX,[EDX + 0xfffe5f43]
CMOVZ EAX,EDX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nchar * FUN_000437d0(void)\n\n{\n  char *pcVar1;\n  \n  if (DAT_0006f2c8 != 0) {\n    pcVar1 = "elf64-powerpc";\n    if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }\n  pcVar1 = "elf64-powerpcle";\n  if (DAT_0006f4f4 == 0) {\n    pcVar1 = "elf32-powerpcle";\n  }\n  return pcVar1;\n}\n\n" comment (function_definition "char * FUN_000437d0(void)\n\n{\n  char *pcVar1;\n  \n  if (DAT_0006f2c8 != 0) {\n    pcVar1 = "elf64-powerpc";\n    if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }\n  pcVar1 = "elf64-powerpcle";\n  if (DAT_0006f4f4 == 0) {\n    pcVar1 = "elf32-powerpcle";\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* FUN_000437d0(void)" * (function_declarator "FUN_000437d0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  \n  if (DAT_0006f2c8 != 0) {\n    pcVar1 = "elf64-powerpc";\n    if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }\n  pcVar1 = "elf64-powerpcle";\n  if (DAT_0006f4f4 == 0) {\n    pcVar1 = "elf32-powerpcle";\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (DAT_0006f2c8 != 0) {\n    pcVar1 = "elf64-powerpc";\n    if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }" if (parenthesized_expression "(DAT_0006f2c8 != 0)" ( (binary_expression "DAT_0006f2c8 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar1 = "elf64-powerpc";\n    if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }" { (expression_statement "pcVar1 = "elf64-powerpc";" (assignment_expression "pcVar1 = "elf64-powerpc"" identifier = (string_literal ""elf64-powerpc"" " string_content ")) ;) (if_statement "if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }" if (parenthesized_expression "(DAT_0006f4f4 == 0)" ( (binary_expression "DAT_0006f4f4 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar1 = "elf32-powerpc";\n    }" { (expression_statement "pcVar1 = "elf32-powerpc";" (assignment_expression "pcVar1 = "elf32-powerpc"" identifier = (string_literal ""elf32-powerpc"" " string_content ")) ;) })) (return_statement "return pcVar1;" return identifier ;) })) (expression_statement "pcVar1 = "elf64-powerpcle";" (assignment_expression "pcVar1 = "elf64-powerpcle"" identifier = (string_literal ""elf64-powerpcle"" " string_content ")) ;) (if_statement "if (DAT_0006f4f4 == 0) {\n    pcVar1 = "elf32-powerpcle";\n  }" if (parenthesized_expression "(DAT_0006f4f4 == 0)" ( (binary_expression "DAT_0006f4f4 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar1 = "elf32-powerpcle";\n  }" { (expression_statement "pcVar1 = "elf32-powerpcle";" (assignment_expression "pcVar1 = "elf32-powerpcle"" identifier = (string_literal ""elf32-powerpcle"" " string_content ")) ;) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* WARNING: Unknown calling convention */\n\nchar * ppc_target_format(void)\n\n{\n  char *pcVar1;\n  \n  if (target_big_endian != 0) {\n    pcVar1 = "elf64-powerpc";\n    if (ppc_obj64 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }\n  pcVar1 = "elf64-powerpcle";\n  if (ppc_obj64 == 0) {\n    pcVar1 = "elf32-powerpcle";\n  }\n  return pcVar1;\n}\n\n" comment comment (function_definition "char * ppc_target_format(void)\n\n{\n  char *pcVar1;\n  \n  if (target_big_endian != 0) {\n    pcVar1 = "elf64-powerpc";\n    if (ppc_obj64 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }\n  pcVar1 = "elf64-powerpcle";\n  if (ppc_obj64 == 0) {\n    pcVar1 = "elf32-powerpcle";\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* ppc_target_format(void)" * (function_declarator "ppc_target_format(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  \n  if (target_big_endian != 0) {\n    pcVar1 = "elf64-powerpc";\n    if (ppc_obj64 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }\n  pcVar1 = "elf64-powerpcle";\n  if (ppc_obj64 == 0) {\n    pcVar1 = "elf32-powerpcle";\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (target_big_endian != 0) {\n    pcVar1 = "elf64-powerpc";\n    if (ppc_obj64 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }" if (parenthesized_expression "(target_big_endian != 0)" ( (binary_expression "target_big_endian != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar1 = "elf64-powerpc";\n    if (ppc_obj64 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }" { (expression_statement "pcVar1 = "elf64-powerpc";" (assignment_expression "pcVar1 = "elf64-powerpc"" identifier = (string_literal ""elf64-powerpc"" " string_content ")) ;) (if_statement "if (ppc_obj64 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }" if (parenthesized_expression "(ppc_obj64 == 0)" ( (binary_expression "ppc_obj64 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar1 = "elf32-powerpc";\n    }" { (expression_statement "pcVar1 = "elf32-powerpc";" (assignment_expression "pcVar1 = "elf32-powerpc"" identifier = (string_literal ""elf32-powerpc"" " string_content ")) ;) })) (return_statement "return pcVar1;" return identifier ;) })) (expression_statement "pcVar1 = "elf64-powerpcle";" (assignment_expression "pcVar1 = "elf64-powerpcle"" identifier = (string_literal ""elf64-powerpcle"" " string_content ")) ;) (if_statement "if (ppc_obj64 == 0) {\n    pcVar1 = "elf32-powerpcle";\n  }" if (parenthesized_expression "(ppc_obj64 == 0)" ( (binary_expression "ppc_obj64 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar1 = "elf32-powerpcle";\n  }" { (expression_statement "pcVar1 = "elf32-powerpcle";" (assignment_expression "pcVar1 = "elf32-powerpcle"" identifier = (string_literal ""elf32-powerpcle"" " string_content ")) ;) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "char * FUN_000437d0(void)\n\n{\n  char *pcVar1;\n  \n  if (DAT_0006f2c8 != 0) {\n    pcVar1 = "elf64-powerpc";\n    if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }\n  pcVar1 = "elf64-powerpcle";\n  if (DAT_0006f4f4 == 0) {\n    pcVar1 = "elf32-powerpcle";\n  }\n  return pcVar1;\n}\n\n" (function_definition "char * FUN_000437d0(void)\n\n{\n  char *pcVar1;\n  \n  if (DAT_0006f2c8 != 0) {\n    pcVar1 = "elf64-powerpc";\n    if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }\n  pcVar1 = "elf64-powerpcle";\n  if (DAT_0006f4f4 == 0) {\n    pcVar1 = "elf32-powerpcle";\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* FUN_000437d0(void)" * (function_declarator "FUN_000437d0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  \n  if (DAT_0006f2c8 != 0) {\n    pcVar1 = "elf64-powerpc";\n    if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }\n  pcVar1 = "elf64-powerpcle";\n  if (DAT_0006f4f4 == 0) {\n    pcVar1 = "elf32-powerpcle";\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (DAT_0006f2c8 != 0) {\n    pcVar1 = "elf64-powerpc";\n    if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }" if (parenthesized_expression "(DAT_0006f2c8 != 0)" ( (binary_expression "DAT_0006f2c8 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar1 = "elf64-powerpc";\n    if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }" { (expression_statement "pcVar1 = "elf64-powerpc";" (assignment_expression "pcVar1 = "elf64-powerpc"" identifier = (string_literal ""elf64-powerpc"" " string_content ")) ;) (if_statement "if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }" if (parenthesized_expression "(DAT_0006f4f4 == 0)" ( (binary_expression "DAT_0006f4f4 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar1 = "elf32-powerpc";\n    }" { (expression_statement "pcVar1 = "elf32-powerpc";" (assignment_expression "pcVar1 = "elf32-powerpc"" identifier = (string_literal ""elf32-powerpc"" " string_content ")) ;) })) (return_statement "return pcVar1;" return identifier ;) })) (expression_statement "pcVar1 = "elf64-powerpcle";" (assignment_expression "pcVar1 = "elf64-powerpcle"" identifier = (string_literal ""elf64-powerpcle"" " string_content ")) ;) (if_statement "if (DAT_0006f4f4 == 0) {\n    pcVar1 = "elf32-powerpcle";\n  }" if (parenthesized_expression "(DAT_0006f4f4 == 0)" ( (binary_expression "DAT_0006f4f4 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar1 = "elf32-powerpcle";\n  }" { (expression_statement "pcVar1 = "elf32-powerpcle";" (assignment_expression "pcVar1 = "elf32-powerpcle"" identifier = (string_literal ""elf32-powerpcle"" " string_content ")) ;) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (return_statement return IDENT ;) })))
(function_definition "char * FUN_000437d0(void)\n\n{\n  char *pcVar1;\n  \n  if (DAT_0006f2c8 != 0) {\n    pcVar1 = "elf64-powerpc";\n    if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }\n  pcVar1 = "elf64-powerpcle";\n  if (DAT_0006f4f4 == 0) {\n    pcVar1 = "elf32-powerpcle";\n  }\n  return pcVar1;\n}" (primitive_type "char") (pointer_declarator "* FUN_000437d0(void)" (* "*") (function_declarator "FUN_000437d0(void)" (identifier "FUN_000437d0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  char *pcVar1;\n  \n  if (DAT_0006f2c8 != 0) {\n    pcVar1 = "elf64-powerpc";\n    if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }\n  pcVar1 = "elf64-powerpcle";\n  if (DAT_0006f4f4 == 0) {\n    pcVar1 = "elf32-powerpcle";\n  }\n  return pcVar1;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (if_statement "if (DAT_0006f2c8 != 0) {\n    pcVar1 = "elf64-powerpc";\n    if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }" (if "if") (parenthesized_expression "(DAT_0006f2c8 != 0)" (( "(") (binary_expression "DAT_0006f2c8 != 0" (identifier "DAT_0006f2c8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar1 = "elf64-powerpc";\n    if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }\n    return pcVar1;\n  }" ({ "{") (expression_statement "pcVar1 = "elf64-powerpc";" (assignment_expression "pcVar1 = "elf64-powerpc"" (identifier "pcVar1") (= "=") (string_literal ""elf64-powerpc"" (" """) (string_content "elf64-powerpc") (" """))) (; ";")) (if_statement "if (DAT_0006f4f4 == 0) {\n      pcVar1 = "elf32-powerpc";\n    }" (if "if") (parenthesized_expression "(DAT_0006f4f4 == 0)" (( "(") (binary_expression "DAT_0006f4f4 == 0" (identifier "DAT_0006f4f4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar1 = "elf32-powerpc";\n    }" ({ "{") (expression_statement "pcVar1 = "elf32-powerpc";" (assignment_expression "pcVar1 = "elf32-powerpc"" (identifier "pcVar1") (= "=") (string_literal ""elf32-powerpc"" (" """) (string_content "elf32-powerpc") (" """))) (; ";")) (} "}"))) (return_statement "return pcVar1;" (return "return") (identifier "pcVar1") (; ";")) (} "}"))) (expression_statement "pcVar1 = "elf64-powerpcle";" (assignment_expression "pcVar1 = "elf64-powerpcle"" (identifier "pcVar1") (= "=") (string_literal ""elf64-powerpcle"" (" """) (string_content "elf64-powerpcle") (" """))) (; ";")) (if_statement "if (DAT_0006f4f4 == 0) {\n    pcVar1 = "elf32-powerpcle";\n  }" (if "if") (parenthesized_expression "(DAT_0006f4f4 == 0)" (( "(") (binary_expression "DAT_0006f4f4 == 0" (identifier "DAT_0006f4f4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar1 = "elf32-powerpcle";\n  }" ({ "{") (expression_statement "pcVar1 = "elf32-powerpcle";" (assignment_expression "pcVar1 = "elf32-powerpcle"" (identifier "pcVar1") (= "=") (string_literal ""elf32-powerpcle"" (" """) (string_content "elf32-powerpcle") (" """))) (; ";")) (} "}"))) (return_statement "return pcVar1;" (return "return") (identifier "pcVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

char * function_1(void)

{
  char *pcVar1;
  
  if (var_1 != 0) {
    pcVar1 = "elf64-powerpc";
    if (var_2 == 0) {
      pcVar1 = "elf32-powerpc";
    }
    return pcVar1;
  }
  pcVar1 = "elf64-powerpcle";
  if (var_2 == 0) {
    pcVar1 = "elf32-powerpcle";
  }
  return pcVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

char * MASKED(void)

{
  char *pcVar1;
  
  if (DAT_0006f2c8 != 0) {
    pcVar1 = "elf64-powerpc";
    if (DAT_0006f4f4 == 0) {
      pcVar1 = "elf32-powerpc";
    }
    return pcVar1;
  }
  pcVar1 = "elf64-powerpcle";
  if (DAT_0006f4f4 == 0) {
    pcVar1 = "elf32-powerpcle";
  }
  return pcVar1;
}

