
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */

Valtype gold::read_from_pointer<16>(uchar **source)

{
  undefined1 uVar1;
  Valtype *pVVar2;
  Valtype VVar3;
  Valtype VVar4;
  
  if (parameters->target_ == (Target *)0x0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/parameters.h",0x69,"target");
  }
  pVVar2 = (Valtype *)*source;
  uVar1 = *(undefined1 *)((int)pVVar2 + 1);
  VVar4 = *pVVar2;
  VVar3 = *pVVar2;
  if (parameters->target_->pti_->is_big_endian == false) {
    *source = (uchar *)(pVVar2 + 1);
    return VVar3;
  }
  *source = (uchar *)(pVVar2 + 1);
  return CONCAT11((char)VVar4,uVar1);
}



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

undefined2 FUN_00125760(undefined4 *param_1)

{
  undefined1 uVar1;
  undefined1 uVar2;
  undefined2 *puVar3;
  undefined2 uVar4;
  
  if (*(int *)(DAT_0033f2f0 + 0xc) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0008b620("../../gold/parameters.h",0x69,"target",0);
  }
  puVar3 = (undefined2 *)*param_1;
  uVar1 = *(undefined1 *)((int)puVar3 + 1);
  uVar2 = *(undefined1 *)puVar3;
  uVar4 = *puVar3;
  if (*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0') {
    *param_1 = puVar3 + 1;
    return uVar4;
  }
  *param_1 = puVar3 + 1;
  return CONCAT11(uVar2,uVar1);
}


PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x219899
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
LEA EAX,[EBX + 0x2f0]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0xc]
TEST EAX,EAX
JZ 0x001257c3
MOV EAX,dword ptr [EAX + 0x4]
MOV EDX,dword ptr [ESI]
CMP byte ptr [EAX + 0x4],0x0
MOVZX ECX,byte ptr [EDX + 0x1]
MOVZX EBX,byte ptr [EDX]
JNZ 0x001257b0
MOV EAX,ECX
ADD EDX,0x2
MOV dword ptr [ESI],EDX
SHL EAX,0x8
ADD ESP,0x4
OR EAX,EBX
POP EBX
POP ESI
RET
ADD EDX,0x2
SHL EBX,0x8
MOVZX EAX,CL
MOV dword ptr [ESI],EDX
ADD ESP,0x4
OR EAX,EBX
POP EBX
POP ESI
RET
PUSH EAX
LEA EAX,[EBX + 0xfff204bc]
PUSH EAX
LEA EAX,[EBX + 0xfff0726d]
PUSH 0x69
PUSH EAX
CALL 0x0008b620
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined2 FUN_00125760(undefined4 *param_1)\n\n{\n  undefined1 uVar1;\n  undefined1 uVar2;\n  undefined2 *puVar3;\n  undefined2 uVar4;\n  \n  if (*(int *)(DAT_0033f2f0 + 0xc) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620("../../gold/parameters.h",0x69,"target",0);\n  }\n  puVar3 = (undefined2 *)*param_1;\n  uVar1 = *(undefined1 *)((int)puVar3 + 1);\n  uVar2 = *(undefined1 *)puVar3;\n  uVar4 = *puVar3;\n  if (*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0') {\n    *param_1 = puVar3 + 1;\n    return uVar4;\n  }\n  *param_1 = puVar3 + 1;\n  return CONCAT11(uVar2,uVar1);\n}\n\n" comment (function_definition "undefined2 FUN_00125760(undefined4 *param_1)\n\n{\n  undefined1 uVar1;\n  undefined1 uVar2;\n  undefined2 *puVar3;\n  undefined2 uVar4;\n  \n  if (*(int *)(DAT_0033f2f0 + 0xc) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620("../../gold/parameters.h",0x69,"target",0);\n  }\n  puVar3 = (undefined2 *)*param_1;\n  uVar1 = *(undefined1 *)((int)puVar3 + 1);\n  uVar2 = *(undefined1 *)puVar3;\n  uVar4 = *puVar3;\n  if (*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0') {\n    *param_1 = puVar3 + 1;\n    return uVar4;\n  }\n  *param_1 = puVar3 + 1;\n  return CONCAT11(uVar2,uVar1);\n}" type_identifier (function_declarator "FUN_00125760(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined1 uVar1;\n  undefined1 uVar2;\n  undefined2 *puVar3;\n  undefined2 uVar4;\n  \n  if (*(int *)(DAT_0033f2f0 + 0xc) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620("../../gold/parameters.h",0x69,"target",0);\n  }\n  puVar3 = (undefined2 *)*param_1;\n  uVar1 = *(undefined1 *)((int)puVar3 + 1);\n  uVar2 = *(undefined1 *)puVar3;\n  uVar4 = *puVar3;\n  if (*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0') {\n    *param_1 = puVar3 + 1;\n    return uVar4;\n  }\n  *param_1 = puVar3 + 1;\n  return CONCAT11(uVar2,uVar1);\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "undefined2 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined2 uVar4;" type_identifier identifier ;) (if_statement "if (*(int *)(DAT_0033f2f0 + 0xc) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620("../../gold/parameters.h",0x69,"target",0);\n  }" if (parenthesized_expression "(*(int *)(DAT_0033f2f0 + 0xc) == 0)" ( (binary_expression "*(int *)(DAT_0033f2f0 + 0xc) == 0" (pointer_expression "*(int *)(DAT_0033f2f0 + 0xc)" * (cast_expression "(int *)(DAT_0033f2f0 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0033f2f0 + 0xc)" ( (binary_expression "DAT_0033f2f0 + 0xc" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620("../../gold/parameters.h",0x69,"target",0);\n  }" { comment (expression_statement "FUN_0008b620("../../gold/parameters.h",0x69,"target",0);" (call_expression "FUN_0008b620("../../gold/parameters.h",0x69,"target",0)" identifier (argument_list "("../../gold/parameters.h",0x69,"target",0)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") , number_literal ))) ;) })) (expression_statement "puVar3 = (undefined2 *)*param_1;" (assignment_expression "puVar3 = (undefined2 *)*param_1" identifier = (cast_expression "(undefined2 *)*param_1" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "uVar1 = *(undefined1 *)((int)puVar3 + 1);" (assignment_expression "uVar1 = *(undefined1 *)((int)puVar3 + 1)" identifier = (pointer_expression "*(undefined1 *)((int)puVar3 + 1)" * (cast_expression "(undefined1 *)((int)puVar3 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + 1)" ( (binary_expression "(int)puVar3 + 1" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined1 *)puVar3;" (assignment_expression "uVar2 = *(undefined1 *)puVar3" identifier = (pointer_expression "*(undefined1 *)puVar3" * (cast_expression "(undefined1 *)puVar3" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar4 = *puVar3;" (assignment_expression "uVar4 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (if_statement "if (*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0') {\n    *param_1 = puVar3 + 1;\n    return uVar4;\n  }" if (parenthesized_expression "(*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0')" ( (binary_expression "*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0'" (pointer_expression "*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4)" * (cast_expression "(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4)" ( (binary_expression "*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4" (pointer_expression "*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4)" * (cast_expression "(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0033f2f0 + 0xc) + 4)" ( (binary_expression "*(int *)(DAT_0033f2f0 + 0xc) + 4" (pointer_expression "*(int *)(DAT_0033f2f0 + 0xc)" * (cast_expression "(int *)(DAT_0033f2f0 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0033f2f0 + 0xc)" ( (binary_expression "DAT_0033f2f0 + 0xc" identifier + number_literal) )))) + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_1 = puVar3 + 1;\n    return uVar4;\n  }" { (expression_statement "*param_1 = puVar3 + 1;" (assignment_expression "*param_1 = puVar3 + 1" (pointer_expression "*param_1" * identifier) = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (return_statement "return uVar4;" return identifier ;) })) (expression_statement "*param_1 = puVar3 + 1;" (assignment_expression "*param_1 = puVar3 + 1" (pointer_expression "*param_1" * identifier) = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (return_statement "return CONCAT11(uVar2,uVar1);" return (call_expression "CONCAT11(uVar2,uVar1)" identifier (argument_list "(uVar2,uVar1)" ( identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* WARNING: Enum "ELFOSABI": Some values do not have unique names */\n\nValtype gold::read_from_pointer<16>(uchar **source)\n\n{\n  undefined1 uVar1;\n  Valtype *pVVar2;\n  Valtype VVar3;\n  Valtype VVar4;\n  \n  if (parameters->target_ == (Target *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n  }\n  pVVar2 = (Valtype *)*source;\n  uVar1 = *(undefined1 *)((int)pVVar2 + 1);\n  VVar4 = *pVVar2;\n  VVar3 = *pVVar2;\n  if (parameters->target_->pti_->is_big_endian == false) {\n    *source = (uchar *)(pVVar2 + 1);\n    return VVar3;\n  }\n  *source = (uchar *)(pVVar2 + 1);\n  return CONCAT11((char)VVar4,uVar1);\n}\n\n" comment comment comment comment (ERROR "Valtype gold::read_from_pointer<16>(uchar **source)" type_identifier (ERROR "gold::" identifier : :) identifier < (binary_expression "16>(uchar **source)" number_literal > (parenthesized_expression "(uchar **source)" ( (binary_expression "uchar **source" identifier * (pointer_expression "*source" * identifier)) )))) (compound_statement "{\n  undefined1 uVar1;\n  Valtype *pVVar2;\n  Valtype VVar3;\n  Valtype VVar4;\n  \n  if (parameters->target_ == (Target *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n  }\n  pVVar2 = (Valtype *)*source;\n  uVar1 = *(undefined1 *)((int)pVVar2 + 1);\n  VVar4 = *pVVar2;\n  VVar3 = *pVVar2;\n  if (parameters->target_->pti_->is_big_endian == false) {\n    *source = (uchar *)(pVVar2 + 1);\n    return VVar3;\n  }\n  *source = (uchar *)(pVVar2 + 1);\n  return CONCAT11((char)VVar4,uVar1);\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "Valtype *pVVar2;" type_identifier (pointer_declarator "*pVVar2" * identifier) ;) (declaration "Valtype VVar3;" type_identifier identifier ;) (declaration "Valtype VVar4;" type_identifier identifier ;) (if_statement "if (parameters->target_ == (Target *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n  }" if (parenthesized_expression "(parameters->target_ == (Target *)0x0)" ( (binary_expression "parameters->target_ == (Target *)0x0" (field_expression "parameters->target_" identifier -> field_identifier) == (cast_expression "(Target *)0x0" ( (type_descriptor "Target *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/parameters.h",0x69,"target");" (call_expression "do_gold_unreachable("../../gold/parameters.h",0x69,"target")" identifier (argument_list "("../../gold/parameters.h",0x69,"target")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") ))) ;) })) (expression_statement "pVVar2 = (Valtype *)*source;" (assignment_expression "pVVar2 = (Valtype *)*source" identifier = (cast_expression "(Valtype *)*source" ( (type_descriptor "Valtype *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*source" * identifier))) ;) (expression_statement "uVar1 = *(undefined1 *)((int)pVVar2 + 1);" (assignment_expression "uVar1 = *(undefined1 *)((int)pVVar2 + 1)" identifier = (pointer_expression "*(undefined1 *)((int)pVVar2 + 1)" * (cast_expression "(undefined1 *)((int)pVVar2 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pVVar2 + 1)" ( (binary_expression "(int)pVVar2 + 1" (cast_expression "(int)pVVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "VVar4 = *pVVar2;" (assignment_expression "VVar4 = *pVVar2" identifier = (pointer_expression "*pVVar2" * identifier)) ;) (expression_statement "VVar3 = *pVVar2;" (assignment_expression "VVar3 = *pVVar2" identifier = (pointer_expression "*pVVar2" * identifier)) ;) (if_statement "if (parameters->target_->pti_->is_big_endian == false) {\n    *source = (uchar *)(pVVar2 + 1);\n    return VVar3;\n  }" if (parenthesized_expression "(parameters->target_->pti_->is_big_endian == false)" ( (binary_expression "parameters->target_->pti_->is_big_endian == false" (field_expression "parameters->target_->pti_->is_big_endian" (field_expression "parameters->target_->pti_" (field_expression "parameters->target_" identifier -> field_identifier) -> field_identifier) -> field_identifier) == false) )) (compound_statement "{\n    *source = (uchar *)(pVVar2 + 1);\n    return VVar3;\n  }" { (expression_statement "*source = (uchar *)(pVVar2 + 1);" (assignment_expression "*source = (uchar *)(pVVar2 + 1)" (pointer_expression "*source" * identifier) = (cast_expression "(uchar *)(pVVar2 + 1)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pVVar2 + 1)" ( (binary_expression "pVVar2 + 1" identifier + number_literal) )))) ;) (return_statement "return VVar3;" return identifier ;) })) (expression_statement "*source = (uchar *)(pVVar2 + 1);" (assignment_expression "*source = (uchar *)(pVVar2 + 1)" (pointer_expression "*source" * identifier) = (cast_expression "(uchar *)(pVVar2 + 1)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pVVar2 + 1)" ( (binary_expression "pVVar2 + 1" identifier + number_literal) )))) ;) (return_statement "return CONCAT11((char)VVar4,uVar1);" return (call_expression "CONCAT11((char)VVar4,uVar1)" identifier (argument_list "((char)VVar4,uVar1)" ( (cast_expression "(char)VVar4" ( (type_descriptor "char" primitive_type) ) identifier) , identifier ))) ;) }))
(translation_unit "undefined2 FUN_00125760(undefined4 *param_1)\n\n{\n  undefined1 uVar1;\n  undefined1 uVar2;\n  undefined2 *puVar3;\n  undefined2 uVar4;\n  \n  if (*(int *)(DAT_0033f2f0 + 0xc) == 0) {\n                    \n    FUN_0008b620("../../gold/parameters.h",0x69,"target",0);\n  }\n  puVar3 = (undefined2 *)*param_1;\n  uVar1 = *(undefined1 *)((int)puVar3 + 1);\n  uVar2 = *(undefined1 *)puVar3;\n  uVar4 = *puVar3;\n  if (*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0') {\n    *param_1 = puVar3 + 1;\n    return uVar4;\n  }\n  *param_1 = puVar3 + 1;\n  return CONCAT11(uVar2,uVar1);\n}\n\n" (function_definition "undefined2 FUN_00125760(undefined4 *param_1)\n\n{\n  undefined1 uVar1;\n  undefined1 uVar2;\n  undefined2 *puVar3;\n  undefined2 uVar4;\n  \n  if (*(int *)(DAT_0033f2f0 + 0xc) == 0) {\n                    \n    FUN_0008b620("../../gold/parameters.h",0x69,"target",0);\n  }\n  puVar3 = (undefined2 *)*param_1;\n  uVar1 = *(undefined1 *)((int)puVar3 + 1);\n  uVar2 = *(undefined1 *)puVar3;\n  uVar4 = *puVar3;\n  if (*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0') {\n    *param_1 = puVar3 + 1;\n    return uVar4;\n  }\n  *param_1 = puVar3 + 1;\n  return CONCAT11(uVar2,uVar1);\n}" type_identifier (function_declarator "FUN_00125760(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined1 uVar1;\n  undefined1 uVar2;\n  undefined2 *puVar3;\n  undefined2 uVar4;\n  \n  if (*(int *)(DAT_0033f2f0 + 0xc) == 0) {\n                    \n    FUN_0008b620("../../gold/parameters.h",0x69,"target",0);\n  }\n  puVar3 = (undefined2 *)*param_1;\n  uVar1 = *(undefined1 *)((int)puVar3 + 1);\n  uVar2 = *(undefined1 *)puVar3;\n  uVar4 = *puVar3;\n  if (*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0') {\n    *param_1 = puVar3 + 1;\n    return uVar4;\n  }\n  *param_1 = puVar3 + 1;\n  return CONCAT11(uVar2,uVar1);\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "undefined2 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined2 uVar4;" type_identifier identifier ;) (if_statement "if (*(int *)(DAT_0033f2f0 + 0xc) == 0) {\n                    \n    FUN_0008b620("../../gold/parameters.h",0x69,"target",0);\n  }" if (parenthesized_expression "(*(int *)(DAT_0033f2f0 + 0xc) == 0)" ( (binary_expression "*(int *)(DAT_0033f2f0 + 0xc) == 0" (pointer_expression "*(int *)(DAT_0033f2f0 + 0xc)" * (cast_expression "(int *)(DAT_0033f2f0 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0033f2f0 + 0xc)" ( (binary_expression "DAT_0033f2f0 + 0xc" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    FUN_0008b620("../../gold/parameters.h",0x69,"target",0);\n  }" { (expression_statement "FUN_0008b620("../../gold/parameters.h",0x69,"target",0);" (call_expression "FUN_0008b620("../../gold/parameters.h",0x69,"target",0)" identifier (argument_list "("../../gold/parameters.h",0x69,"target",0)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") , number_literal ))) ;) })) (expression_statement "puVar3 = (undefined2 *)*param_1;" (assignment_expression "puVar3 = (undefined2 *)*param_1" identifier = (cast_expression "(undefined2 *)*param_1" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "uVar1 = *(undefined1 *)((int)puVar3 + 1);" (assignment_expression "uVar1 = *(undefined1 *)((int)puVar3 + 1)" identifier = (pointer_expression "*(undefined1 *)((int)puVar3 + 1)" * (cast_expression "(undefined1 *)((int)puVar3 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar3 + 1)" ( (binary_expression "(int)puVar3 + 1" (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined1 *)puVar3;" (assignment_expression "uVar2 = *(undefined1 *)puVar3" identifier = (pointer_expression "*(undefined1 *)puVar3" * (cast_expression "(undefined1 *)puVar3" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar4 = *puVar3;" (assignment_expression "uVar4 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (if_statement "if (*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0') {\n    *param_1 = puVar3 + 1;\n    return uVar4;\n  }" if (parenthesized_expression "(*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0')" ( (binary_expression "*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0'" (pointer_expression "*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4)" * (cast_expression "(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4)" ( (binary_expression "*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4" (pointer_expression "*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4)" * (cast_expression "(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0033f2f0 + 0xc) + 4)" ( (binary_expression "*(int *)(DAT_0033f2f0 + 0xc) + 4" (pointer_expression "*(int *)(DAT_0033f2f0 + 0xc)" * (cast_expression "(int *)(DAT_0033f2f0 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0033f2f0 + 0xc)" ( (binary_expression "DAT_0033f2f0 + 0xc" identifier + number_literal) )))) + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *param_1 = puVar3 + 1;\n    return uVar4;\n  }" { (expression_statement "*param_1 = puVar3 + 1;" (assignment_expression "*param_1 = puVar3 + 1" (pointer_expression "*param_1" * identifier) = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (return_statement "return uVar4;" return identifier ;) })) (expression_statement "*param_1 = puVar3 + 1;" (assignment_expression "*param_1 = puVar3 + 1" (pointer_expression "*param_1" * identifier) = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (return_statement "return CONCAT11(uVar2,uVar1);" return (call_expression "CONCAT11(uVar2,uVar1)" identifier (argument_list "(uVar2,uVar1)" ( identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (return_statement return (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })))
(function_definition "undefined2 FUN_00125760(undefined4 *param_1)\n\n{\n  undefined1 uVar1;\n  undefined1 uVar2;\n  undefined2 *puVar3;\n  undefined2 uVar4;\n  \n  if (*(int *)(DAT_0033f2f0 + 0xc) == 0) {\n                    \n    FUN_0008b620("../../gold/parameters.h",0x69,"target",0);\n  }\n  puVar3 = (undefined2 *)*param_1;\n  uVar1 = *(undefined1 *)((int)puVar3 + 1);\n  uVar2 = *(undefined1 *)puVar3;\n  uVar4 = *puVar3;\n  if (*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0') {\n    *param_1 = puVar3 + 1;\n    return uVar4;\n  }\n  *param_1 = puVar3 + 1;\n  return CONCAT11(uVar2,uVar1);\n}" (type_identifier "undefined2") (function_declarator "FUN_00125760(undefined4 *param_1)" (identifier "FUN_00125760") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined1 uVar1;\n  undefined1 uVar2;\n  undefined2 *puVar3;\n  undefined2 uVar4;\n  \n  if (*(int *)(DAT_0033f2f0 + 0xc) == 0) {\n                    \n    FUN_0008b620("../../gold/parameters.h",0x69,"target",0);\n  }\n  puVar3 = (undefined2 *)*param_1;\n  uVar1 = *(undefined1 *)((int)puVar3 + 1);\n  uVar2 = *(undefined1 *)puVar3;\n  uVar4 = *puVar3;\n  if (*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0') {\n    *param_1 = puVar3 + 1;\n    return uVar4;\n  }\n  *param_1 = puVar3 + 1;\n  return CONCAT11(uVar2,uVar1);\n}" ({ "{") (declaration "undefined1 uVar1;" (type_identifier "undefined1") (identifier "uVar1") (; ";")) (declaration "undefined1 uVar2;" (type_identifier "undefined1") (identifier "uVar2") (; ";")) (declaration "undefined2 *puVar3;" (type_identifier "undefined2") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined2 uVar4;" (type_identifier "undefined2") (identifier "uVar4") (; ";")) (if_statement "if (*(int *)(DAT_0033f2f0 + 0xc) == 0) {\n                    \n    FUN_0008b620("../../gold/parameters.h",0x69,"target",0);\n  }" (if "if") (parenthesized_expression "(*(int *)(DAT_0033f2f0 + 0xc) == 0)" (( "(") (binary_expression "*(int *)(DAT_0033f2f0 + 0xc) == 0" (pointer_expression "*(int *)(DAT_0033f2f0 + 0xc)" (* "*") (cast_expression "(int *)(DAT_0033f2f0 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0033f2f0 + 0xc)" (( "(") (binary_expression "DAT_0033f2f0 + 0xc" (identifier "DAT_0033f2f0") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0008b620("../../gold/parameters.h",0x69,"target",0);\n  }" ({ "{") (expression_statement "FUN_0008b620("../../gold/parameters.h",0x69,"target",0);" (call_expression "FUN_0008b620("../../gold/parameters.h",0x69,"target",0)" (identifier "FUN_0008b620") (argument_list "("../../gold/parameters.h",0x69,"target",0)" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x69") (, ",") (string_literal ""target"" (" """) (string_content "target") (" """)) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar3 = (undefined2 *)*param_1;" (assignment_expression "puVar3 = (undefined2 *)*param_1" (identifier "puVar3") (= "=") (cast_expression "(undefined2 *)*param_1" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "uVar1 = *(undefined1 *)((int)puVar3 + 1);" (assignment_expression "uVar1 = *(undefined1 *)((int)puVar3 + 1)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined1 *)((int)puVar3 + 1)" (* "*") (cast_expression "(undefined1 *)((int)puVar3 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar3 + 1)" (( "(") (binary_expression "(int)puVar3 + 1" (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3")) (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined1 *)puVar3;" (assignment_expression "uVar2 = *(undefined1 *)puVar3" (identifier "uVar2") (= "=") (pointer_expression "*(undefined1 *)puVar3" (* "*") (cast_expression "(undefined1 *)puVar3" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3")))) (; ";")) (expression_statement "uVar4 = *puVar3;" (assignment_expression "uVar4 = *puVar3" (identifier "uVar4") (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (if_statement "if (*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0') {\n    *param_1 = puVar3 + 1;\n    return uVar4;\n  }" (if "if") (parenthesized_expression "(*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0')" (( "(") (binary_expression "*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0'" (pointer_expression "*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4)" (* "*") (cast_expression "(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4)" (( "(") (binary_expression "*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4" (pointer_expression "*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4)" (* "*") (cast_expression "(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_0033f2f0 + 0xc) + 4)" (( "(") (binary_expression "*(int *)(DAT_0033f2f0 + 0xc) + 4" (pointer_expression "*(int *)(DAT_0033f2f0 + 0xc)" (* "*") (cast_expression "(int *)(DAT_0033f2f0 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0033f2f0 + 0xc)" (( "(") (binary_expression "DAT_0033f2f0 + 0xc" (identifier "DAT_0033f2f0") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *param_1 = puVar3 + 1;\n    return uVar4;\n  }" ({ "{") (expression_statement "*param_1 = puVar3 + 1;" (assignment_expression "*param_1 = puVar3 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}"))) (expression_statement "*param_1 = puVar3 + 1;" (assignment_expression "*param_1 = puVar3 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return CONCAT11(uVar2,uVar1);" (return "return") (call_expression "CONCAT11(uVar2,uVar1)" (identifier "CONCAT11") (argument_list "(uVar2,uVar1)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */

type_2 gold::read_from_pointer<16>(type_4 **source)

{
  type_1 uVar1;
  type_2 *var_2;
  type_2 VVar3;
  type_2 VVar4;
  
  if (parameters->target_ == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/parameters.h",0x69,"target");
  }
  var_2 = (type_2 *)*source;
  uVar1 = *(type_1 *)((int)var_2 + 1);
  VVar4 = *var_2;
  VVar3 = *var_2;
  if (parameters->target_->pti_->is_big_endian == false) {
    *source = (type_4 *)(var_2 + 1);
    return VVar3;
  }
  *source = (type_4 *)(var_2 + 1);
  return var_3((char)VVar4,uVar1);
}


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

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

undefined2 MASKED(undefined4 *param_1)

{
  undefined1 uVar1;
  undefined1 uVar2;
  undefined2 *puVar3;
  undefined2 uVar4;
  
  if (*(int *)(DAT_0033f2f0 + 0xc) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0008b620("../../gold/parameters.h",0x69,"target",0);
  }
  puVar3 = (undefined2 *)*param_1;
  uVar1 = *(undefined1 *)((int)puVar3 + 1);
  uVar2 = *(undefined1 *)puVar3;
  uVar4 = *puVar3;
  if (*(char *)(*(int *)(*(int *)(DAT_0033f2f0 + 0xc) + 4) + 4) == '\0') {
    *param_1 = puVar3 + 1;
    return uVar4;
  }
  *param_1 = puVar3 + 1;
  return CONCAT11(uVar2,uVar1);
}

