
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* DWARF original prototype: Valtype read_from_pointer<64>(Dwarf_info_reader * this, uchar * *
   source) */

Valtype __thiscall
gold::Dwarf_info_reader::read_from_pointer<64>(Dwarf_info_reader *this,uchar **source)

{
  Relobj *pRVar1;
  _func_int_varargs **pp_Var2;
  _func_int_varargs *p_Var3;
  uint *puVar4;
  uint uVar5;
  char cVar6;
  uint uVar8;
  uint uVar9;
  int iVar7;
  
  pRVar1 = this->object_;
  pp_Var2 = (pRVar1->super_Object)._vptr_Object;
  p_Var3 = pp_Var2[3];
  if (p_Var3 == Relobj::is_big_endian) {
    iVar7 = (*pp_Var2[0x3a])(pRVar1);
    cVar6 = (char)iVar7;
  }
  else {
    iVar7 = (*p_Var3)(pRVar1);
    cVar6 = (char)iVar7;
  }
  puVar4 = (uint *)*source;
  uVar5 = *puVar4;
  uVar8 = puVar4[1];
  uVar9 = uVar5;
  if (cVar6 != '\0') {
    uVar9 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;
    uVar8 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;
  }
  *source = (uchar *)(puVar4 + 2);
  return CONCAT44(uVar8,uVar9);
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined8 FUN_0005b150(int param_1,int *param_2)

{
  int *piVar1;
  code *pcVar2;
  uint *puVar3;
  uint uVar4;
  char cVar5;
  uint uVar6;
  uint uVar7;
  
  piVar1 = *(int **)(param_1 + 8);
  pcVar2 = *(code **)(*piVar1 + 0xc);
  if (pcVar2 == FUN_0003a350) {
    cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);
  }
  else {
    cVar5 = (*pcVar2)(piVar1);
  }
  puVar3 = (uint *)*param_2;
  uVar4 = *puVar3;
  uVar6 = puVar3[1];
  uVar7 = uVar4;
  if (cVar5 != '\0') {
    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
    uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;
  }
  *param_2 = (int)(puVar3 + 2);
  return CONCAT44(uVar6,uVar7);
}


PUSH ESI
CALL 0x000559ea
ADD ESI,0x333eaa
PUSH EBX
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x10]
MOV EBX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [EAX + 0x8]
LEA ESI,[ESI + 0xffcab350]
MOV EDX,dword ptr [EAX]
MOV ECX,dword ptr [EDX + 0xc]
CMP ECX,ESI
JNZ 0x0005b1b0
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EDX + 0xe8]
ADD ESP,0x10
MOV ECX,dword ptr [EBX]
MOV ESI,dword ptr [ECX]
MOV EDX,dword ptr [ECX + 0x4]
TEST AL,AL
JZ 0x0005b19c
MOV EAX,ESI
BSWAP EDX
MOV ESI,EDX
BSWAP EAX
MOV EDX,EAX
ADD ECX,0x8
MOV EAX,ESI
MOV dword ptr [EBX],ECX
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0xc
PUSH EAX
CALL ECX
ADD ESP,0x10
JMP 0x0005b187
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined8 FUN_0005b150(int param_1,int *param_2)\n\n{\n  int *piVar1;\n  code *pcVar2;\n  uint *puVar3;\n  uint uVar4;\n  char cVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  piVar1 = *(int **)(param_1 + 8);\n  pcVar2 = *(code **)(*piVar1 + 0xc);\n  if (pcVar2 == FUN_0003a350) {\n    cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);\n  }\n  else {\n    cVar5 = (*pcVar2)(piVar1);\n  }\n  puVar3 = (uint *)*param_2;\n  uVar4 = *puVar3;\n  uVar6 = puVar3[1];\n  uVar7 = uVar4;\n  if (cVar5 != '\0') {\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  }\n  *param_2 = (int)(puVar3 + 2);\n  return CONCAT44(uVar6,uVar7);\n}\n\n" comment (function_definition "undefined8 FUN_0005b150(int param_1,int *param_2)\n\n{\n  int *piVar1;\n  code *pcVar2;\n  uint *puVar3;\n  uint uVar4;\n  char cVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  piVar1 = *(int **)(param_1 + 8);\n  pcVar2 = *(code **)(*piVar1 + 0xc);\n  if (pcVar2 == FUN_0003a350) {\n    cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);\n  }\n  else {\n    cVar5 = (*pcVar2)(piVar1);\n  }\n  puVar3 = (uint *)*param_2;\n  uVar4 = *puVar3;\n  uVar6 = puVar3[1];\n  uVar7 = uVar4;\n  if (cVar5 != '\0') {\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  }\n  *param_2 = (int)(puVar3 + 2);\n  return CONCAT44(uVar6,uVar7);\n}" type_identifier (function_declarator "FUN_0005b150(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  code *pcVar2;\n  uint *puVar3;\n  uint uVar4;\n  char cVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  piVar1 = *(int **)(param_1 + 8);\n  pcVar2 = *(code **)(*piVar1 + 0xc);\n  if (pcVar2 == FUN_0003a350) {\n    cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);\n  }\n  else {\n    cVar5 = (*pcVar2)(piVar1);\n  }\n  puVar3 = (uint *)*param_2;\n  uVar4 = *puVar3;\n  uVar6 = puVar3[1];\n  uVar7 = uVar4;\n  if (cVar5 != '\0') {\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  }\n  *param_2 = (int)(puVar3 + 2);\n  return CONCAT44(uVar6,uVar7);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 8);" (assignment_expression "piVar1 = *(int **)(param_1 + 8)" identifier = (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "pcVar2 = *(code **)(*piVar1 + 0xc);" (assignment_expression "pcVar2 = *(code **)(*piVar1 + 0xc)" identifier = (pointer_expression "*(code **)(*piVar1 + 0xc)" * (cast_expression "(code **)(*piVar1 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0xc)" ( (binary_expression "*piVar1 + 0xc" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) ;) (if_statement "if (pcVar2 == FUN_0003a350) {\n    cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);\n  }\n  else {\n    cVar5 = (*pcVar2)(piVar1);\n  }" if (parenthesized_expression "(pcVar2 == FUN_0003a350)" ( (binary_expression "pcVar2 == FUN_0003a350" identifier == identifier) )) (compound_statement "{\n    cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);\n  }" { (expression_statement "cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);" (assignment_expression "cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0xe8))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0xe8))" ( (pointer_expression "**(code **)(*piVar1 + 0xe8)" * (pointer_expression "*(code **)(*piVar1 + 0xe8)" * (cast_expression "(code **)(*piVar1 + 0xe8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0xe8)" ( (binary_expression "*piVar1 + 0xe8" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }) (else_clause "else {\n    cVar5 = (*pcVar2)(piVar1);\n  }" else (compound_statement "{\n    cVar5 = (*pcVar2)(piVar1);\n  }" { (expression_statement "cVar5 = (*pcVar2)(piVar1);" (assignment_expression "cVar5 = (*pcVar2)(piVar1)" identifier = (call_expression "(*pcVar2)(piVar1)" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "(piVar1)" ( identifier )))) ;) }))) (expression_statement "puVar3 = (uint *)*param_2;" (assignment_expression "puVar3 = (uint *)*param_2" identifier = (cast_expression "(uint *)*param_2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "uVar4 = *puVar3;" (assignment_expression "uVar4 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "uVar6 = puVar3[1];" (assignment_expression "uVar6 = puVar3[1]" identifier = (subscript_expression "puVar3[1]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = uVar4;" (assignment_expression "uVar7 = uVar4" identifier = identifier) ;) (if_statement "if (cVar5 != '\0') {\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  }" if (parenthesized_expression "(cVar5 != '\0')" ( (binary_expression "cVar5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  }" { (expression_statement "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;" (assignment_expression "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" identifier = (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" ( (binary_expression "uVar6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" ( (binary_expression "uVar6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar6 << 0x18" identifier << number_literal))) ;) (expression_statement "uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;" (assignment_expression "uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" identifier = (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8" (binary_expression "uVar4 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar4 & 0xff0000) >> 8" (parenthesized_expression "(uVar4 & 0xff0000)" ( (binary_expression "uVar4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar4 & 0xff00) << 8" (parenthesized_expression "(uVar4 & 0xff00)" ( (binary_expression "uVar4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar4 << 0x18" identifier << number_literal))) ;) })) (expression_statement "*param_2 = (int)(puVar3 + 2);" (assignment_expression "*param_2 = (int)(puVar3 + 2)" (pointer_expression "*param_2" * identifier) = (cast_expression "(int)(puVar3 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar3 + 2)" ( (binary_expression "puVar3 + 2" identifier + number_literal) )))) ;) (return_statement "return CONCAT44(uVar6,uVar7);" return (call_expression "CONCAT44(uVar6,uVar7)" identifier (argument_list "(uVar6,uVar7)" ( identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* DWARF original prototype: Valtype read_from_pointer<64>(Dwarf_info_reader * this, uchar * *\n   source) */\n\nValtype __thiscall\ngold::Dwarf_info_reader::read_from_pointer<64>(Dwarf_info_reader *this,uchar **source)\n\n{\n  Relobj *pRVar1;\n  _func_int_varargs **pp_Var2;\n  _func_int_varargs *p_Var3;\n  uint *puVar4;\n  uint uVar5;\n  char cVar6;\n  uint uVar8;\n  uint uVar9;\n  int iVar7;\n  \n  pRVar1 = this->object_;\n  pp_Var2 = (pRVar1->super_Object)._vptr_Object;\n  p_Var3 = pp_Var2[3];\n  if (p_Var3 == Relobj::is_big_endian) {\n    iVar7 = (*pp_Var2[0x3a])(pRVar1);\n    cVar6 = (char)iVar7;\n  }\n  else {\n    iVar7 = (*p_Var3)(pRVar1);\n    cVar6 = (char)iVar7;\n  }\n  puVar4 = (uint *)*source;\n  uVar5 = *puVar4;\n  uVar8 = puVar4[1];\n  uVar9 = uVar5;\n  if (cVar6 != '\0') {\n    uVar9 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    uVar8 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;\n  }\n  *source = (uchar *)(puVar4 + 2);\n  return CONCAT44(uVar8,uVar9);\n}\n\n" comment comment (declaration "Valtype __thiscall\ngold::Dwarf_info_reader::read_from_pointer<64>(Dwarf_info_reader *this,uchar **source)\n\n{\n  Relobj *pRVar1;" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Dwarf_info_reader::read_from_pointer<64>(Dwarf_info_reader" identifier : : identifier : : identifier < number_literal > ( identifier) (pointer_declarator "*this" * identifier) , (ERROR "uchar **source)\n\n{\n  Relobj" identifier (pointer_declarator "**source" * (pointer_declarator "*source" * identifier)) ) { identifier) (pointer_declarator "*pRVar1" * identifier) ;) (declaration "_func_int_varargs **pp_Var2;" type_identifier (pointer_declarator "**pp_Var2" * (pointer_declarator "*pp_Var2" * identifier)) ;) (declaration "_func_int_varargs *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "pRVar1 = this->object_;" (assignment_expression "pRVar1 = this->object_" identifier = (field_expression "this->object_" identifier -> field_identifier)) ;) (expression_statement "pp_Var2 = (pRVar1->super_Object)._vptr_Object;" (assignment_expression "pp_Var2 = (pRVar1->super_Object)._vptr_Object" identifier = (field_expression "(pRVar1->super_Object)._vptr_Object" (parenthesized_expression "(pRVar1->super_Object)" ( (field_expression "pRVar1->super_Object" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "p_Var3 = pp_Var2[3];" (assignment_expression "p_Var3 = pp_Var2[3]" identifier = (subscript_expression "pp_Var2[3]" identifier [ number_literal ])) ;) (if_statement "if (p_Var3 == Relobj::is_big_endian) {\n    iVar7 = (*pp_Var2[0x3a])(pRVar1);\n    cVar6 = (char)iVar7;\n  }\n  else {\n    iVar7 = (*p_Var3)(pRVar1);\n    cVar6 = (char)iVar7;\n  }" if (parenthesized_expression "(p_Var3 == Relobj::is_big_endian)" ( (binary_expression "p_Var3 == Relobj" identifier == identifier) (ERROR "::is_big_endian" : : identifier) )) (compound_statement "{\n    iVar7 = (*pp_Var2[0x3a])(pRVar1);\n    cVar6 = (char)iVar7;\n  }" { (expression_statement "iVar7 = (*pp_Var2[0x3a])(pRVar1);" (assignment_expression "iVar7 = (*pp_Var2[0x3a])(pRVar1)" identifier = (call_expression "(*pp_Var2[0x3a])(pRVar1)" (parenthesized_expression "(*pp_Var2[0x3a])" ( (pointer_expression "*pp_Var2[0x3a]" * (subscript_expression "pp_Var2[0x3a]" identifier [ number_literal ])) )) (argument_list "(pRVar1)" ( identifier )))) ;) (expression_statement "cVar6 = (char)iVar7;" (assignment_expression "cVar6 = (char)iVar7" identifier = (cast_expression "(char)iVar7" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }) (else_clause "else {\n    iVar7 = (*p_Var3)(pRVar1);\n    cVar6 = (char)iVar7;\n  }" else (compound_statement "{\n    iVar7 = (*p_Var3)(pRVar1);\n    cVar6 = (char)iVar7;\n  }" { (expression_statement "iVar7 = (*p_Var3)(pRVar1);" (assignment_expression "iVar7 = (*p_Var3)(pRVar1)" identifier = (call_expression "(*p_Var3)(pRVar1)" (parenthesized_expression "(*p_Var3)" ( (pointer_expression "*p_Var3" * identifier) )) (argument_list "(pRVar1)" ( identifier )))) ;) (expression_statement "cVar6 = (char)iVar7;" (assignment_expression "cVar6 = (char)iVar7" identifier = (cast_expression "(char)iVar7" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }))) (expression_statement "puVar4 = (uint *)*source;" (assignment_expression "puVar4 = (uint *)*source" identifier = (cast_expression "(uint *)*source" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*source" * identifier))) ;) (expression_statement "uVar5 = *puVar4;" (assignment_expression "uVar5 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) (expression_statement "uVar8 = puVar4[1];" (assignment_expression "uVar8 = puVar4[1]" identifier = (subscript_expression "puVar4[1]" identifier [ number_literal ])) ;) (expression_statement "uVar9 = uVar5;" (assignment_expression "uVar9 = uVar5" identifier = identifier) ;) (if_statement "if (cVar6 != '\0') {\n    uVar9 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    uVar8 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;\n  }" if (parenthesized_expression "(cVar6 != '\0')" ( (binary_expression "cVar6 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar9 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;\n    uVar8 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;\n  }" { (expression_statement "uVar9 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18;" (assignment_expression "uVar9 = uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" identifier = (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8 | uVar8 << 0x18" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8 | (uVar8 & 0xff00) << 8" (binary_expression "uVar8 >> 0x18 | (uVar8 & 0xff0000) >> 8" (binary_expression "uVar8 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar8 & 0xff0000) >> 8" (parenthesized_expression "(uVar8 & 0xff0000)" ( (binary_expression "uVar8 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar8 & 0xff00) << 8" (parenthesized_expression "(uVar8 & 0xff00)" ( (binary_expression "uVar8 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar8 << 0x18" identifier << number_literal))) ;) (expression_statement "uVar8 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18;" (assignment_expression "uVar8 = uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18" identifier = (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8 | uVar5 << 0x18" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8 | (uVar5 & 0xff00) << 8" (binary_expression "uVar5 >> 0x18 | (uVar5 & 0xff0000) >> 8" (binary_expression "uVar5 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar5 & 0xff0000) >> 8" (parenthesized_expression "(uVar5 & 0xff0000)" ( (binary_expression "uVar5 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar5 & 0xff00) << 8" (parenthesized_expression "(uVar5 & 0xff00)" ( (binary_expression "uVar5 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar5 << 0x18" identifier << number_literal))) ;) })) (expression_statement "*source = (uchar *)(puVar4 + 2);" (assignment_expression "*source = (uchar *)(puVar4 + 2)" (pointer_expression "*source" * identifier) = (cast_expression "(uchar *)(puVar4 + 2)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 2)" ( (binary_expression "puVar4 + 2" identifier + number_literal) )))) ;) (return_statement "return CONCAT44(uVar8,uVar9);" return (call_expression "CONCAT44(uVar8,uVar9)" identifier (argument_list "(uVar8,uVar9)" ( identifier , identifier ))) ;) (ERROR "}" }))
(translation_unit "undefined8 FUN_0005b150(int param_1,int *param_2)\n\n{\n  int *piVar1;\n  code *pcVar2;\n  uint *puVar3;\n  uint uVar4;\n  char cVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  piVar1 = *(int **)(param_1 + 8);\n  pcVar2 = *(code **)(*piVar1 + 0xc);\n  if (pcVar2 == FUN_0003a350) {\n    cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);\n  }\n  else {\n    cVar5 = (*pcVar2)(piVar1);\n  }\n  puVar3 = (uint *)*param_2;\n  uVar4 = *puVar3;\n  uVar6 = puVar3[1];\n  uVar7 = uVar4;\n  if (cVar5 != '\0') {\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  }\n  *param_2 = (int)(puVar3 + 2);\n  return CONCAT44(uVar6,uVar7);\n}\n\n" (function_definition "undefined8 FUN_0005b150(int param_1,int *param_2)\n\n{\n  int *piVar1;\n  code *pcVar2;\n  uint *puVar3;\n  uint uVar4;\n  char cVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  piVar1 = *(int **)(param_1 + 8);\n  pcVar2 = *(code **)(*piVar1 + 0xc);\n  if (pcVar2 == FUN_0003a350) {\n    cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);\n  }\n  else {\n    cVar5 = (*pcVar2)(piVar1);\n  }\n  puVar3 = (uint *)*param_2;\n  uVar4 = *puVar3;\n  uVar6 = puVar3[1];\n  uVar7 = uVar4;\n  if (cVar5 != '\0') {\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  }\n  *param_2 = (int)(puVar3 + 2);\n  return CONCAT44(uVar6,uVar7);\n}" type_identifier (function_declarator "FUN_0005b150(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  code *pcVar2;\n  uint *puVar3;\n  uint uVar4;\n  char cVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  piVar1 = *(int **)(param_1 + 8);\n  pcVar2 = *(code **)(*piVar1 + 0xc);\n  if (pcVar2 == FUN_0003a350) {\n    cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);\n  }\n  else {\n    cVar5 = (*pcVar2)(piVar1);\n  }\n  puVar3 = (uint *)*param_2;\n  uVar4 = *puVar3;\n  uVar6 = puVar3[1];\n  uVar7 = uVar4;\n  if (cVar5 != '\0') {\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  }\n  *param_2 = (int)(puVar3 + 2);\n  return CONCAT44(uVar6,uVar7);\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 8);" (assignment_expression "piVar1 = *(int **)(param_1 + 8)" identifier = (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "pcVar2 = *(code **)(*piVar1 + 0xc);" (assignment_expression "pcVar2 = *(code **)(*piVar1 + 0xc)" identifier = (pointer_expression "*(code **)(*piVar1 + 0xc)" * (cast_expression "(code **)(*piVar1 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0xc)" ( (binary_expression "*piVar1 + 0xc" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) ;) (if_statement "if (pcVar2 == FUN_0003a350) {\n    cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);\n  }\n  else {\n    cVar5 = (*pcVar2)(piVar1);\n  }" if (parenthesized_expression "(pcVar2 == FUN_0003a350)" ( (binary_expression "pcVar2 == FUN_0003a350" identifier == identifier) )) (compound_statement "{\n    cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);\n  }" { (expression_statement "cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);" (assignment_expression "cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0xe8))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0xe8))" ( (pointer_expression "**(code **)(*piVar1 + 0xe8)" * (pointer_expression "*(code **)(*piVar1 + 0xe8)" * (cast_expression "(code **)(*piVar1 + 0xe8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0xe8)" ( (binary_expression "*piVar1 + 0xe8" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }) (else_clause "else {\n    cVar5 = (*pcVar2)(piVar1);\n  }" else (compound_statement "{\n    cVar5 = (*pcVar2)(piVar1);\n  }" { (expression_statement "cVar5 = (*pcVar2)(piVar1);" (assignment_expression "cVar5 = (*pcVar2)(piVar1)" identifier = (call_expression "(*pcVar2)(piVar1)" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "(piVar1)" ( identifier )))) ;) }))) (expression_statement "puVar3 = (uint *)*param_2;" (assignment_expression "puVar3 = (uint *)*param_2" identifier = (cast_expression "(uint *)*param_2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "uVar4 = *puVar3;" (assignment_expression "uVar4 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "uVar6 = puVar3[1];" (assignment_expression "uVar6 = puVar3[1]" identifier = (subscript_expression "puVar3[1]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = uVar4;" (assignment_expression "uVar7 = uVar4" identifier = identifier) ;) (if_statement "if (cVar5 != '\0') {\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  }" if (parenthesized_expression "(cVar5 != '\0')" ( (binary_expression "cVar5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  }" { (expression_statement "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;" (assignment_expression "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" identifier = (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" ( (binary_expression "uVar6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" ( (binary_expression "uVar6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar6 << 0x18" identifier << number_literal))) ;) (expression_statement "uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;" (assignment_expression "uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" identifier = (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8" (binary_expression "uVar4 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar4 & 0xff0000) >> 8" (parenthesized_expression "(uVar4 & 0xff0000)" ( (binary_expression "uVar4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar4 & 0xff00) << 8" (parenthesized_expression "(uVar4 & 0xff00)" ( (binary_expression "uVar4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar4 << 0x18" identifier << number_literal))) ;) })) (expression_statement "*param_2 = (int)(puVar3 + 2);" (assignment_expression "*param_2 = (int)(puVar3 + 2)" (pointer_expression "*param_2" * identifier) = (cast_expression "(int)(puVar3 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar3 + 2)" ( (binary_expression "puVar3 + 2" identifier + number_literal) )))) ;) (return_statement "return CONCAT44(uVar6,uVar7);" return (call_expression "CONCAT44(uVar6,uVar7)" identifier (argument_list "(uVar6,uVar7)" ( identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT )))) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (return_statement return (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })))
(function_definition "undefined8 FUN_0005b150(int param_1,int *param_2)\n\n{\n  int *piVar1;\n  code *pcVar2;\n  uint *puVar3;\n  uint uVar4;\n  char cVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  piVar1 = *(int **)(param_1 + 8);\n  pcVar2 = *(code **)(*piVar1 + 0xc);\n  if (pcVar2 == FUN_0003a350) {\n    cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);\n  }\n  else {\n    cVar5 = (*pcVar2)(piVar1);\n  }\n  puVar3 = (uint *)*param_2;\n  uVar4 = *puVar3;\n  uVar6 = puVar3[1];\n  uVar7 = uVar4;\n  if (cVar5 != '\0') {\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  }\n  *param_2 = (int)(puVar3 + 2);\n  return CONCAT44(uVar6,uVar7);\n}" (type_identifier "undefined8") (function_declarator "FUN_0005b150(int param_1,int *param_2)" (identifier "FUN_0005b150") (parameter_list "(int param_1,int *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  code *pcVar2;\n  uint *puVar3;\n  uint uVar4;\n  char cVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  piVar1 = *(int **)(param_1 + 8);\n  pcVar2 = *(code **)(*piVar1 + 0xc);\n  if (pcVar2 == FUN_0003a350) {\n    cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);\n  }\n  else {\n    cVar5 = (*pcVar2)(piVar1);\n  }\n  puVar3 = (uint *)*param_2;\n  uVar4 = *puVar3;\n  uVar6 = puVar3[1];\n  uVar7 = uVar4;\n  if (cVar5 != '\0') {\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  }\n  *param_2 = (int)(puVar3 + 2);\n  return CONCAT44(uVar6,uVar7);\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "code *pcVar2;" (type_identifier "code") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "uint *puVar3;" (type_identifier "uint") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "char cVar5;" (primitive_type "char") (identifier "cVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (expression_statement "piVar1 = *(int **)(param_1 + 8);" (assignment_expression "piVar1 = *(int **)(param_1 + 8)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "pcVar2 = *(code **)(*piVar1 + 0xc);" (assignment_expression "pcVar2 = *(code **)(*piVar1 + 0xc)" (identifier "pcVar2") (= "=") (pointer_expression "*(code **)(*piVar1 + 0xc)" (* "*") (cast_expression "(code **)(*piVar1 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0xc)" (( "(") (binary_expression "*piVar1 + 0xc" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (pcVar2 == FUN_0003a350) {\n    cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);\n  }\n  else {\n    cVar5 = (*pcVar2)(piVar1);\n  }" (if "if") (parenthesized_expression "(pcVar2 == FUN_0003a350)" (( "(") (binary_expression "pcVar2 == FUN_0003a350" (identifier "pcVar2") (== "==") (identifier "FUN_0003a350")) () ")")) (compound_statement "{\n    cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);\n  }" ({ "{") (expression_statement "cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);" (assignment_expression "cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1)" (identifier "cVar5") (= "=") (call_expression "(**(code **)(*piVar1 + 0xe8))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0xe8))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0xe8)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0xe8)" (* "*") (cast_expression "(code **)(*piVar1 + 0xe8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0xe8)" (( "(") (binary_expression "*piVar1 + 0xe8" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0xe8")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    cVar5 = (*pcVar2)(piVar1);\n  }" (else "else") (compound_statement "{\n    cVar5 = (*pcVar2)(piVar1);\n  }" ({ "{") (expression_statement "cVar5 = (*pcVar2)(piVar1);" (assignment_expression "cVar5 = (*pcVar2)(piVar1)" (identifier "cVar5") (= "=") (call_expression "(*pcVar2)(piVar1)" (parenthesized_expression "(*pcVar2)" (( "(") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (} "}")))) (expression_statement "puVar3 = (uint *)*param_2;" (assignment_expression "puVar3 = (uint *)*param_2" (identifier "puVar3") (= "=") (cast_expression "(uint *)*param_2" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "uVar4 = *puVar3;" (assignment_expression "uVar4 = *puVar3" (identifier "uVar4") (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "uVar6 = puVar3[1];" (assignment_expression "uVar6 = puVar3[1]" (identifier "uVar6") (= "=") (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar7 = uVar4;" (assignment_expression "uVar7 = uVar4" (identifier "uVar7") (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (cVar5 != '\0') {\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  }" (if "if") (parenthesized_expression "(cVar5 != '\0')" (( "(") (binary_expression "cVar5 != '\0'" (identifier "cVar5") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;\n    uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n  }" ({ "{") (expression_statement "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;" (assignment_expression "uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" (identifier "uVar7") (= "=") (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8" (binary_expression "uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8" (binary_expression "uVar6 >> 0x18" (identifier "uVar6") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar6 & 0xff0000) >> 8" (parenthesized_expression "(uVar6 & 0xff0000)" (( "(") (binary_expression "uVar6 & 0xff0000" (identifier "uVar6") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar6 & 0xff00) << 8" (parenthesized_expression "(uVar6 & 0xff00)" (( "(") (binary_expression "uVar6 & 0xff00" (identifier "uVar6") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar6 << 0x18" (identifier "uVar6") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;" (assignment_expression "uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" (identifier "uVar6") (= "=") (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8" (binary_expression "uVar4 >> 0x18" (identifier "uVar4") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar4 & 0xff0000) >> 8" (parenthesized_expression "(uVar4 & 0xff0000)" (( "(") (binary_expression "uVar4 & 0xff0000" (identifier "uVar4") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar4 & 0xff00) << 8" (parenthesized_expression "(uVar4 & 0xff00)" (( "(") (binary_expression "uVar4 & 0xff00" (identifier "uVar4") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar4 << 0x18" (identifier "uVar4") (<< "<<") (number_literal "0x18")))) (; ";")) (} "}"))) (expression_statement "*param_2 = (int)(puVar3 + 2);" (assignment_expression "*param_2 = (int)(puVar3 + 2)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (cast_expression "(int)(puVar3 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(puVar3 + 2)" (( "(") (binary_expression "puVar3 + 2" (identifier "puVar3") (+ "+") (number_literal "2")) () ")")))) (; ";")) (return_statement "return CONCAT44(uVar6,uVar7);" (return "return") (call_expression "CONCAT44(uVar6,uVar7)" (identifier "CONCAT44") (argument_list "(uVar6,uVar7)" (( "(") (identifier "uVar6") (, ",") (identifier "uVar7") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* DWARF original prototype: Valtype read_from_pointer<64>(Dwarf_info_reader * this, uchar * *
   source) */

type_1 __thiscall
gold::Dwarf_info_reader::read_from_pointer<64>(Dwarf_info_reader *this,type_4 **source)

{
  var_2 *pRVar1;
  type_2 **pp_Var2;
  type_2 *var_1;
  type_3 *var_6;
  type_3 var_5;
  char var_3;
  type_3 var_4;
  type_3 uVar9;
  int iVar7;
  
  pRVar1 = this->object_;
  pp_Var2 = (pRVar1->super_Object)._vptr_Object;
  var_1 = pp_Var2[3];
  if (var_1 == var_2::is_big_endian) {
    iVar7 = (*pp_Var2[0x3a])(pRVar1);
    var_3 = (char)iVar7;
  }
  else {
    iVar7 = (*var_1)(pRVar1);
    var_3 = (char)iVar7;
  }
  var_6 = (type_3 *)*source;
  var_5 = *var_6;
  var_4 = var_6[1];
  uVar9 = var_5;
  if (var_3 != '\0') {
    uVar9 = var_4 >> 0x18 | (var_4 & 0xff0000) >> 8 | (var_4 & 0xff00) << 8 | var_4 << 0x18;
    var_4 = var_5 >> 0x18 | (var_5 & 0xff0000) >> 8 | (var_5 & 0xff00) << 8 | var_5 << 0x18;
  }
  *source = (type_4 *)(var_6 + 2);
  return var_7(var_4,uVar9);
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined8 MASKED(int param_1,int *param_2)

{
  int *piVar1;
  code *pcVar2;
  uint *puVar3;
  uint uVar4;
  char cVar5;
  uint uVar6;
  uint uVar7;
  
  piVar1 = *(int **)(param_1 + 8);
  pcVar2 = *(code **)(*piVar1 + 0xc);
  if (pcVar2 == FUN_0003a350) {
    cVar5 = (**(code **)(*piVar1 + 0xe8))(piVar1);
  }
  else {
    cVar5 = (*pcVar2)(piVar1);
  }
  puVar3 = (uint *)*param_2;
  uVar4 = *puVar3;
  uVar6 = puVar3[1];
  uVar7 = uVar4;
  if (cVar5 != '\0') {
    uVar7 = uVar6 >> 0x18 | (uVar6 & 0xff0000) >> 8 | (uVar6 & 0xff00) << 8 | uVar6 << 0x18;
    uVar6 = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;
  }
  *param_2 = (int)(puVar3 + 2);
  return CONCAT44(uVar6,uVar7);
}

