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

elf_vma byte_get_little_endian(uchar *field,int size)

{
  int in_EAX;
  char *message;
  uint uVar1;
  uint uVar2;
  
  if ((uint)size < 9) {
    in_EAX = (int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00048f1a::switchdataD_000594c0)[size];
    switch(size) {
    case 0:
      goto _L93;
    case 1:
      return (elf_vma)*field;
    case 2:
      return (elf_vma)*(ushort *)field;
    case 3:
      return (elf_vma)((uint)field[1] << 8 | (uint)field[2] << 0x10 | (uint)*field);
    case 4:
      return (elf_vma)*(uint *)field;
    case 5:
      return (elf_vma)*(uint5 *)field;
    case 6:
      uVar2 = (uint)field[4];
      uVar1 = (uint)field[5] << 8;
      break;
    case 7:
      uVar2 = (uint)*(ushort *)(field + 4);
      uVar1 = (uint)field[6] << 0x10;
      break;
    case 8:
      return *(elf_vma *)field;
    }
    return CONCAT44(uVar2 | uVar1,*(undefined4 *)field);
  }
_L93:
  message = (char *)dcgettext(0,"Unhandled data length: %d\n",5,in_EAX);
  error(message,size);
                    /* WARNING: Subroutine does not return */
  abort();
}



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

ulonglong __regparm1 FUN_00048ef0(int param_1,ulonglong *param_2,uint param_3)

{
  undefined4 uVar1;
  uint uVar2;
  uint uVar3;
  
  if (param_3 < 9) {
    param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);
    switch(param_3) {
    case 0:
      goto LAB_00048fc6;
    case 1:
      return (ulonglong)(byte)*param_2;
    case 2:
      return (ulonglong)(ushort)*param_2;
    case 3:
      return (ulonglong)
             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |
             (uint)(byte)*param_2);
    case 4:
      return (ulonglong)(uint)*param_2;
    case 5:
      return (ulonglong)(uint5)*param_2;
    case 6:
      uVar3 = (uint)*(byte *)((int)param_2 + 4);
      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;
      break;
    case 7:
      uVar3 = (uint)*(ushort *)((int)param_2 + 4);
      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;
      break;
    case 8:
      return *param_2;
    }
    return CONCAT44(uVar3 | uVar2,(uint)*param_2);
  }
LAB_00048fc6:
  uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1);
  error(uVar1,param_3);
                    /* WARNING: Subroutine does not return */
  abort();
}


PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x2a109
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x14]
MOV ECX,dword ptr [ESP + 0x10]
CMP ESI,0x8
JA 0x00048fc6
MOV EAX,dword ptr [EBX + ESI*0x4 + 0xfffe64c0]
ADD EAX,EBX
JMP EAX
PUSH EAX
LEA EAX,[EBX + 0xfffe63c3]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141f0
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x00048830
CALL 0x000147a0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nulonglong __regparm1 FUN_00048ef0(int param_1,ulonglong *param_2,uint param_3)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (param_3 < 9) {\n    param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);\n    switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }\n    return CONCAT44(uVar3 | uVar2,(uint)*param_2);\n  }\nLAB_00048fc6:\n  uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1);\n  error(uVar1,param_3);\n                    /* WARNING: Subroutine does not return */\n  abort();\n}\n\n" comment (function_definition "ulonglong __regparm1 FUN_00048ef0(int param_1,ulonglong *param_2,uint param_3)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (param_3 < 9) {\n    param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);\n    switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }\n    return CONCAT44(uVar3 | uVar2,(uint)*param_2);\n  }\nLAB_00048fc6:\n  uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1);\n  error(uVar1,param_3);\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" type_identifier (ERROR "__regparm1" identifier) (function_declarator "FUN_00048ef0(int param_1,ulonglong *param_2,uint param_3)" identifier (parameter_list "(int param_1,ulonglong *param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "ulonglong *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (param_3 < 9) {\n    param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);\n    switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }\n    return CONCAT44(uVar3 | uVar2,(uint)*param_2);\n  }\nLAB_00048fc6:\n  uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1);\n  error(uVar1,param_3);\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (param_3 < 9) {\n    param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);\n    switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }\n    return CONCAT44(uVar3 | uVar2,(uint)*param_2);\n  }" if (parenthesized_expression "(param_3 < 9)" ( (binary_expression "param_3 < 9" identifier < number_literal) )) (compound_statement "{\n    param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);\n    switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }\n    return CONCAT44(uVar3 | uVar2,(uint)*param_2);\n  }" { (expression_statement "param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);" (assignment_expression "param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4)" identifier = (binary_expression "(int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4)" (cast_expression "(int)&__DT_PLTGOT" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&__DT_PLTGOT" & identifier)) + (pointer_expression "*(int *)(&DAT_000594c0 + param_3 * 4)" * (cast_expression "(int *)(&DAT_000594c0 + param_3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000594c0 + param_3 * 4)" ( (binary_expression "&DAT_000594c0 + param_3 * 4" (pointer_expression "&DAT_000594c0" & identifier) + (binary_expression "param_3 * 4" identifier * number_literal)) )))))) ;) (switch_statement "switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }" switch (parenthesized_expression "(param_3)" ( identifier )) (compound_statement "{\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }" { (case_statement "case 0:\n      goto LAB_00048fc6;" case number_literal : (goto_statement "goto LAB_00048fc6;" goto statement_identifier ;)) (case_statement "case 1:\n      return (ulonglong)(byte)*param_2;" case number_literal : (return_statement "return (ulonglong)(byte)*param_2;" return (binary_expression "(ulonglong)(byte)*param_2" (call_expression "(ulonglong)(byte)" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier) ;)) (case_statement "case 2:\n      return (ulonglong)(ushort)*param_2;" case number_literal : (return_statement "return (ulonglong)(ushort)*param_2;" return (binary_expression "(ulonglong)(ushort)*param_2" (call_expression "(ulonglong)(ushort)" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(ushort)" ( identifier ))) * identifier) ;)) (case_statement "case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);" case number_literal : (return_statement "return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);" return (call_expression "(ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2)" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2)" ( (binary_expression "(uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2" (binary_expression "(uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10" (binary_expression "(uint)*(byte *)((int)param_2 + 1) << 8" (binary_expression "(uint)*(byte *)((int)param_2 + 1)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)param_2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 1)" ( (binary_expression "(int)param_2 + 1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) << number_literal) | (binary_expression "(uint)*(byte *)((int)param_2 + 2) << 0x10" (binary_expression "(uint)*(byte *)((int)param_2 + 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)param_2 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 2)" ( (binary_expression "(int)param_2 + 2" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) << number_literal)) | (binary_expression "(uint)(byte)*param_2" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier)) ))) ;)) (case_statement "case 4:\n      return (ulonglong)(uint)*param_2;" case number_literal : (return_statement "return (ulonglong)(uint)*param_2;" return (binary_expression "(ulonglong)(uint)*param_2" (call_expression "(ulonglong)(uint)" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(uint)" ( identifier ))) * identifier) ;)) (case_statement "case 5:\n      return (ulonglong)(uint5)*param_2;" case number_literal : (return_statement "return (ulonglong)(uint5)*param_2;" return (binary_expression "(ulonglong)(uint5)*param_2" (call_expression "(ulonglong)(uint5)" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(uint5)" ( identifier ))) * identifier) ;)) (case_statement "case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;" case number_literal : (expression_statement "uVar3 = (uint)*(byte *)((int)param_2 + 4);" (assignment_expression "uVar3 = (uint)*(byte *)((int)param_2 + 4)" identifier = (binary_expression "(uint)*(byte *)((int)param_2 + 4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)param_2 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 4)" ( (binary_expression "(int)param_2 + 4" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;" (assignment_expression "uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8" identifier = (binary_expression "(uint)*(byte *)((int)param_2 + 5) << 8" (binary_expression "(uint)*(byte *)((int)param_2 + 5)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)param_2 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 5)" ( (binary_expression "(int)param_2 + 5" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) << number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;" case number_literal : (expression_statement "uVar3 = (uint)*(ushort *)((int)param_2 + 4);" (assignment_expression "uVar3 = (uint)*(ushort *)((int)param_2 + 4)" identifier = (binary_expression "(uint)*(ushort *)((int)param_2 + 4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)((int)param_2 + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 4)" ( (binary_expression "(int)param_2 + 4" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;" (assignment_expression "uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10" identifier = (binary_expression "(uint)*(byte *)((int)param_2 + 6) << 0x10" (binary_expression "(uint)*(byte *)((int)param_2 + 6)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)param_2 + 6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 6)" ( (binary_expression "(int)param_2 + 6" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) << number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 8:\n      return *param_2;" case number_literal : (return_statement "return *param_2;" return (pointer_expression "*param_2" * identifier) ;)) })) (return_statement "return CONCAT44(uVar3 | uVar2,(uint)*param_2);" return (call_expression "CONCAT44(uVar3 | uVar2,(uint)*param_2)" identifier (argument_list "(uVar3 | uVar2,(uint)*param_2)" ( (binary_expression "uVar3 | uVar2" identifier | identifier) , (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" ( identifier )) * identifier) ))) ;) })) (labeled_statement "LAB_00048fc6:\n  uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1);" statement_identifier : (expression_statement "uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1);" (assignment_expression "uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1)" identifier = (call_expression "dcgettext(0,"Unhandled data length: %d\n",5,param_1)" identifier (argument_list "(0,"Unhandled data length: %d\n",5,param_1)" ( number_literal , (string_literal ""Unhandled data length: %d\n"" " string_content escape_sequence ") , number_literal , identifier )))) ;)) (expression_statement "error(uVar1,param_3);" (call_expression "error(uVar1,param_3)" identifier (argument_list "(uVar1,param_3)" ( identifier , identifier ))) ;) comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nelf_vma byte_get_little_endian(uchar *field,int size)\n\n{\n  int in_EAX;\n  char *message;\n  uint uVar1;\n  uint uVar2;\n  \n  if ((uint)size < 9) {\n    in_EAX = (int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00048f1a::switchdataD_000594c0)[size];\n    switch(size) {\n    case 0:\n      goto _L93;\n    case 1:\n      return (elf_vma)*field;\n    case 2:\n      return (elf_vma)*(ushort *)field;\n    case 3:\n      return (elf_vma)((uint)field[1] << 8 | (uint)field[2] << 0x10 | (uint)*field);\n    case 4:\n      return (elf_vma)*(uint *)field;\n    case 5:\n      return (elf_vma)*(uint5 *)field;\n    case 6:\n      uVar2 = (uint)field[4];\n      uVar1 = (uint)field[5] << 8;\n      break;\n    case 7:\n      uVar2 = (uint)*(ushort *)(field + 4);\n      uVar1 = (uint)field[6] << 0x10;\n      break;\n    case 8:\n      return *(elf_vma *)field;\n    }\n    return CONCAT44(uVar2 | uVar1,*(undefined4 *)field);\n  }\n_L93:\n  message = (char *)dcgettext(0,"Unhandled data length: %d\n",5,in_EAX);\n  error(message,size);\n                    /* WARNING: Subroutine does not return */\n  abort();\n}\n\n" comment comment (function_definition "elf_vma byte_get_little_endian(uchar *field,int size)\n\n{\n  int in_EAX;\n  char *message;\n  uint uVar1;\n  uint uVar2;\n  \n  if ((uint)size < 9) {\n    in_EAX = (int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00048f1a::switchdataD_000594c0)[size];\n    switch(size) {\n    case 0:\n      goto _L93;\n    case 1:\n      return (elf_vma)*field;\n    case 2:\n      return (elf_vma)*(ushort *)field;\n    case 3:\n      return (elf_vma)((uint)field[1] << 8 | (uint)field[2] << 0x10 | (uint)*field);\n    case 4:\n      return (elf_vma)*(uint *)field;\n    case 5:\n      return (elf_vma)*(uint5 *)field;\n    case 6:\n      uVar2 = (uint)field[4];\n      uVar1 = (uint)field[5] << 8;\n      break;\n    case 7:\n      uVar2 = (uint)*(ushort *)(field + 4);\n      uVar1 = (uint)field[6] << 0x10;\n      break;\n    case 8:\n      return *(elf_vma *)field;\n    }\n    return CONCAT44(uVar2 | uVar1,*(undefined4 *)field);\n  }\n_L93:\n  message = (char *)dcgettext(0,"Unhandled data length: %d\n",5,in_EAX);\n  error(message,size);\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" type_identifier (function_declarator "byte_get_little_endian(uchar *field,int size)" identifier (parameter_list "(uchar *field,int size)" ( (parameter_declaration "uchar *field" type_identifier (pointer_declarator "*field" * identifier)) , (parameter_declaration "int size" primitive_type identifier) ))) (compound_statement "{\n  int in_EAX;\n  char *message;\n  uint uVar1;\n  uint uVar2;\n  \n  if ((uint)size < 9) {\n    in_EAX = (int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00048f1a::switchdataD_000594c0)[size];\n    switch(size) {\n    case 0:\n      goto _L93;\n    case 1:\n      return (elf_vma)*field;\n    case 2:\n      return (elf_vma)*(ushort *)field;\n    case 3:\n      return (elf_vma)((uint)field[1] << 8 | (uint)field[2] << 0x10 | (uint)*field);\n    case 4:\n      return (elf_vma)*(uint *)field;\n    case 5:\n      return (elf_vma)*(uint5 *)field;\n    case 6:\n      uVar2 = (uint)field[4];\n      uVar1 = (uint)field[5] << 8;\n      break;\n    case 7:\n      uVar2 = (uint)*(ushort *)(field + 4);\n      uVar1 = (uint)field[6] << 0x10;\n      break;\n    case 8:\n      return *(elf_vma *)field;\n    }\n    return CONCAT44(uVar2 | uVar1,*(undefined4 *)field);\n  }\n_L93:\n  message = (char *)dcgettext(0,"Unhandled data length: %d\n",5,in_EAX);\n  error(message,size);\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" { (declaration "int in_EAX;" primitive_type identifier ;) (declaration "char *message;" primitive_type (pointer_declarator "*message" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if ((uint)size < 9) {\n    in_EAX = (int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00048f1a::switchdataD_000594c0)[size];\n    switch(size) {\n    case 0:\n      goto _L93;\n    case 1:\n      return (elf_vma)*field;\n    case 2:\n      return (elf_vma)*(ushort *)field;\n    case 3:\n      return (elf_vma)((uint)field[1] << 8 | (uint)field[2] << 0x10 | (uint)*field);\n    case 4:\n      return (elf_vma)*(uint *)field;\n    case 5:\n      return (elf_vma)*(uint5 *)field;\n    case 6:\n      uVar2 = (uint)field[4];\n      uVar1 = (uint)field[5] << 8;\n      break;\n    case 7:\n      uVar2 = (uint)*(ushort *)(field + 4);\n      uVar1 = (uint)field[6] << 0x10;\n      break;\n    case 8:\n      return *(elf_vma *)field;\n    }\n    return CONCAT44(uVar2 | uVar1,*(undefined4 *)field);\n  }" if (parenthesized_expression "((uint)size < 9)" ( (binary_expression "(uint)size < 9" (cast_expression "(uint)size" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) )) (compound_statement "{\n    in_EAX = (int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00048f1a::switchdataD_000594c0)[size];\n    switch(size) {\n    case 0:\n      goto _L93;\n    case 1:\n      return (elf_vma)*field;\n    case 2:\n      return (elf_vma)*(ushort *)field;\n    case 3:\n      return (elf_vma)((uint)field[1] << 8 | (uint)field[2] << 0x10 | (uint)*field);\n    case 4:\n      return (elf_vma)*(uint *)field;\n    case 5:\n      return (elf_vma)*(uint5 *)field;\n    case 6:\n      uVar2 = (uint)field[4];\n      uVar1 = (uint)field[5] << 8;\n      break;\n    case 7:\n      uVar2 = (uint)*(ushort *)(field + 4);\n      uVar1 = (uint)field[6] << 0x10;\n      break;\n    case 8:\n      return *(elf_vma *)field;\n    }\n    return CONCAT44(uVar2 | uVar1,*(undefined4 *)field);\n  }" { (expression_statement "in_EAX = (int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00048f1a::switchdataD_000594c0)[size];" (assignment_expression "in_EAX = (int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00048f1a::switchdataD_000594c0)[size]" identifier = (binary_expression "(int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00048f1a::switchdataD_000594c0)[size]" (cast_expression "(int)&_GLOBAL_OFFSET_TABLE_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&_GLOBAL_OFFSET_TABLE_" & identifier)) + (subscript_expression "(&switchD_00048f1a::switchdataD_000594c0)[size]" (parenthesized_expression "(&switchD_00048f1a::switchdataD_000594c0)" ( (ERROR "&switchD_00048f1a::" (pointer_expression "&switchD_00048f1a" & identifier) : :) identifier )) [ identifier ]))) ;) (switch_statement "switch(size) {\n    case 0:\n      goto _L93;\n    case 1:\n      return (elf_vma)*field;\n    case 2:\n      return (elf_vma)*(ushort *)field;\n    case 3:\n      return (elf_vma)((uint)field[1] << 8 | (uint)field[2] << 0x10 | (uint)*field);\n    case 4:\n      return (elf_vma)*(uint *)field;\n    case 5:\n      return (elf_vma)*(uint5 *)field;\n    case 6:\n      uVar2 = (uint)field[4];\n      uVar1 = (uint)field[5] << 8;\n      break;\n    case 7:\n      uVar2 = (uint)*(ushort *)(field + 4);\n      uVar1 = (uint)field[6] << 0x10;\n      break;\n    case 8:\n      return *(elf_vma *)field;\n    }" switch (parenthesized_expression "(size)" ( identifier )) (compound_statement "{\n    case 0:\n      goto _L93;\n    case 1:\n      return (elf_vma)*field;\n    case 2:\n      return (elf_vma)*(ushort *)field;\n    case 3:\n      return (elf_vma)((uint)field[1] << 8 | (uint)field[2] << 0x10 | (uint)*field);\n    case 4:\n      return (elf_vma)*(uint *)field;\n    case 5:\n      return (elf_vma)*(uint5 *)field;\n    case 6:\n      uVar2 = (uint)field[4];\n      uVar1 = (uint)field[5] << 8;\n      break;\n    case 7:\n      uVar2 = (uint)*(ushort *)(field + 4);\n      uVar1 = (uint)field[6] << 0x10;\n      break;\n    case 8:\n      return *(elf_vma *)field;\n    }" { (case_statement "case 0:\n      goto _L93;" case number_literal : (goto_statement "goto _L93;" goto statement_identifier ;)) (case_statement "case 1:\n      return (elf_vma)*field;" case number_literal : (return_statement "return (elf_vma)*field;" return (binary_expression "(elf_vma)*field" (parenthesized_expression "(elf_vma)" ( identifier )) * identifier) ;)) (case_statement "case 2:\n      return (elf_vma)*(ushort *)field;" case number_literal : (return_statement "return (elf_vma)*(ushort *)field;" return (binary_expression "(elf_vma)*(ushort *)field" (parenthesized_expression "(elf_vma)" ( identifier )) * (cast_expression "(ushort *)field" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) (case_statement "case 3:\n      return (elf_vma)((uint)field[1] << 8 | (uint)field[2] << 0x10 | (uint)*field);" case number_literal : (return_statement "return (elf_vma)((uint)field[1] << 8 | (uint)field[2] << 0x10 | (uint)*field);" return (call_expression "(elf_vma)((uint)field[1] << 8 | (uint)field[2] << 0x10 | (uint)*field)" (parenthesized_expression "(elf_vma)" ( identifier )) (argument_list "((uint)field[1] << 8 | (uint)field[2] << 0x10 | (uint)*field)" ( (binary_expression "(uint)field[1] << 8 | (uint)field[2] << 0x10 | (uint)*field" (binary_expression "(uint)field[1] << 8 | (uint)field[2] << 0x10" (binary_expression "(uint)field[1] << 8" (cast_expression "(uint)field[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "field[1]" identifier [ number_literal ])) << number_literal) | (binary_expression "(uint)field[2] << 0x10" (cast_expression "(uint)field[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "field[2]" identifier [ number_literal ])) << number_literal)) | (binary_expression "(uint)*field" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ))) ;)) (case_statement "case 4:\n      return (elf_vma)*(uint *)field;" case number_literal : (return_statement "return (elf_vma)*(uint *)field;" return (binary_expression "(elf_vma)*(uint *)field" (parenthesized_expression "(elf_vma)" ( identifier )) * (cast_expression "(uint *)field" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) (case_statement "case 5:\n      return (elf_vma)*(uint5 *)field;" case number_literal : (return_statement "return (elf_vma)*(uint5 *)field;" return (binary_expression "(elf_vma)*(uint5 *)field" (parenthesized_expression "(elf_vma)" ( identifier )) * (cast_expression "(uint5 *)field" ( (type_descriptor "uint5 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) (case_statement "case 6:\n      uVar2 = (uint)field[4];\n      uVar1 = (uint)field[5] << 8;\n      break;" case number_literal : (expression_statement "uVar2 = (uint)field[4];" (assignment_expression "uVar2 = (uint)field[4]" identifier = (cast_expression "(uint)field[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "field[4]" identifier [ number_literal ]))) ;) (expression_statement "uVar1 = (uint)field[5] << 8;" (assignment_expression "uVar1 = (uint)field[5] << 8" identifier = (binary_expression "(uint)field[5] << 8" (cast_expression "(uint)field[5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "field[5]" identifier [ number_literal ])) << number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 7:\n      uVar2 = (uint)*(ushort *)(field + 4);\n      uVar1 = (uint)field[6] << 0x10;\n      break;" case number_literal : (expression_statement "uVar2 = (uint)*(ushort *)(field + 4);" (assignment_expression "uVar2 = (uint)*(ushort *)(field + 4)" identifier = (binary_expression "(uint)*(ushort *)(field + 4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(field + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(field + 4)" ( (binary_expression "field + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = (uint)field[6] << 0x10;" (assignment_expression "uVar1 = (uint)field[6] << 0x10" identifier = (binary_expression "(uint)field[6] << 0x10" (cast_expression "(uint)field[6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "field[6]" identifier [ number_literal ])) << number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 8:\n      return *(elf_vma *)field;" case number_literal : (return_statement "return *(elf_vma *)field;" return (pointer_expression "*(elf_vma *)field" * (cast_expression "(elf_vma *)field" ( (type_descriptor "elf_vma *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) })) (return_statement "return CONCAT44(uVar2 | uVar1,*(undefined4 *)field);" return (call_expression "CONCAT44(uVar2 | uVar1,*(undefined4 *)field)" identifier (argument_list "(uVar2 | uVar1,*(undefined4 *)field)" ( (binary_expression "uVar2 | uVar1" identifier | identifier) , (pointer_expression "*(undefined4 *)field" * (cast_expression "(undefined4 *)field" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) })) (labeled_statement "_L93:\n  message = (char *)dcgettext(0,"Unhandled data length: %d\n",5,in_EAX);" statement_identifier : (expression_statement "message = (char *)dcgettext(0,"Unhandled data length: %d\n",5,in_EAX);" (assignment_expression "message = (char *)dcgettext(0,"Unhandled data length: %d\n",5,in_EAX)" identifier = (cast_expression "(char *)dcgettext(0,"Unhandled data length: %d\n",5,in_EAX)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Unhandled data length: %d\n",5,in_EAX)" identifier (argument_list "(0,"Unhandled data length: %d\n",5,in_EAX)" ( number_literal , (string_literal ""Unhandled data length: %d\n"" " string_content escape_sequence ") , number_literal , identifier ))))) ;)) (expression_statement "error(message,size);" (call_expression "error(message,size)" identifier (argument_list "(message,size)" ( identifier , identifier ))) ;) comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "ulonglong __regparm1 FUN_00048ef0(int param_1,ulonglong *param_2,uint param_3)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (param_3 < 9) {\n    param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);\n    switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }\n    return CONCAT44(uVar3 | uVar2,(uint)*param_2);\n  }\nLAB_00048fc6:\n  uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1);\n  error(uVar1,param_3);\n                    \n  abort();\n}\n\n" (function_definition "ulonglong __regparm1 FUN_00048ef0(int param_1,ulonglong *param_2,uint param_3)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (param_3 < 9) {\n    param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);\n    switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }\n    return CONCAT44(uVar3 | uVar2,(uint)*param_2);\n  }\nLAB_00048fc6:\n  uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1);\n  error(uVar1,param_3);\n                    \n  abort();\n}" type_identifier (ERROR "__regparm1" identifier) (function_declarator "FUN_00048ef0(int param_1,ulonglong *param_2,uint param_3)" identifier (parameter_list "(int param_1,ulonglong *param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "ulonglong *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (param_3 < 9) {\n    param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);\n    switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }\n    return CONCAT44(uVar3 | uVar2,(uint)*param_2);\n  }\nLAB_00048fc6:\n  uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1);\n  error(uVar1,param_3);\n                    \n  abort();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (param_3 < 9) {\n    param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);\n    switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }\n    return CONCAT44(uVar3 | uVar2,(uint)*param_2);\n  }" if (parenthesized_expression "(param_3 < 9)" ( (binary_expression "param_3 < 9" identifier < number_literal) )) (compound_statement "{\n    param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);\n    switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }\n    return CONCAT44(uVar3 | uVar2,(uint)*param_2);\n  }" { (expression_statement "param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);" (assignment_expression "param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4)" identifier = (binary_expression "(int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4)" (cast_expression "(int)&__DT_PLTGOT" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&__DT_PLTGOT" & identifier)) + (pointer_expression "*(int *)(&DAT_000594c0 + param_3 * 4)" * (cast_expression "(int *)(&DAT_000594c0 + param_3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000594c0 + param_3 * 4)" ( (binary_expression "&DAT_000594c0 + param_3 * 4" (pointer_expression "&DAT_000594c0" & identifier) + (binary_expression "param_3 * 4" identifier * number_literal)) )))))) ;) (switch_statement "switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }" switch (parenthesized_expression "(param_3)" ( identifier )) (compound_statement "{\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }" { (case_statement "case 0:\n      goto LAB_00048fc6;" case number_literal : (goto_statement "goto LAB_00048fc6;" goto statement_identifier ;)) (case_statement "case 1:\n      return (ulonglong)(byte)*param_2;" case number_literal : (return_statement "return (ulonglong)(byte)*param_2;" return (binary_expression "(ulonglong)(byte)*param_2" (call_expression "(ulonglong)(byte)" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier) ;)) (case_statement "case 2:\n      return (ulonglong)(ushort)*param_2;" case number_literal : (return_statement "return (ulonglong)(ushort)*param_2;" return (binary_expression "(ulonglong)(ushort)*param_2" (call_expression "(ulonglong)(ushort)" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(ushort)" ( identifier ))) * identifier) ;)) (case_statement "case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);" case number_literal : (return_statement "return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);" return (call_expression "(ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2)" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2)" ( (binary_expression "(uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2" (binary_expression "(uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10" (binary_expression "(uint)*(byte *)((int)param_2 + 1) << 8" (binary_expression "(uint)*(byte *)((int)param_2 + 1)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)param_2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 1)" ( (binary_expression "(int)param_2 + 1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) << number_literal) | (binary_expression "(uint)*(byte *)((int)param_2 + 2) << 0x10" (binary_expression "(uint)*(byte *)((int)param_2 + 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)param_2 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 2)" ( (binary_expression "(int)param_2 + 2" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) << number_literal)) | (binary_expression "(uint)(byte)*param_2" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier)) ))) ;)) (case_statement "case 4:\n      return (ulonglong)(uint)*param_2;" case number_literal : (return_statement "return (ulonglong)(uint)*param_2;" return (binary_expression "(ulonglong)(uint)*param_2" (call_expression "(ulonglong)(uint)" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(uint)" ( identifier ))) * identifier) ;)) (case_statement "case 5:\n      return (ulonglong)(uint5)*param_2;" case number_literal : (return_statement "return (ulonglong)(uint5)*param_2;" return (binary_expression "(ulonglong)(uint5)*param_2" (call_expression "(ulonglong)(uint5)" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(uint5)" ( identifier ))) * identifier) ;)) (case_statement "case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;" case number_literal : (expression_statement "uVar3 = (uint)*(byte *)((int)param_2 + 4);" (assignment_expression "uVar3 = (uint)*(byte *)((int)param_2 + 4)" identifier = (binary_expression "(uint)*(byte *)((int)param_2 + 4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)param_2 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 4)" ( (binary_expression "(int)param_2 + 4" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;" (assignment_expression "uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8" identifier = (binary_expression "(uint)*(byte *)((int)param_2 + 5) << 8" (binary_expression "(uint)*(byte *)((int)param_2 + 5)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)param_2 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 5)" ( (binary_expression "(int)param_2 + 5" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) << number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;" case number_literal : (expression_statement "uVar3 = (uint)*(ushort *)((int)param_2 + 4);" (assignment_expression "uVar3 = (uint)*(ushort *)((int)param_2 + 4)" identifier = (binary_expression "(uint)*(ushort *)((int)param_2 + 4)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)((int)param_2 + 4)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 4)" ( (binary_expression "(int)param_2 + 4" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;" (assignment_expression "uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10" identifier = (binary_expression "(uint)*(byte *)((int)param_2 + 6) << 0x10" (binary_expression "(uint)*(byte *)((int)param_2 + 6)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)param_2 + 6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 6)" ( (binary_expression "(int)param_2 + 6" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) << number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 8:\n      return *param_2;" case number_literal : (return_statement "return *param_2;" return (pointer_expression "*param_2" * identifier) ;)) })) (return_statement "return CONCAT44(uVar3 | uVar2,(uint)*param_2);" return (call_expression "CONCAT44(uVar3 | uVar2,(uint)*param_2)" identifier (argument_list "(uVar3 | uVar2,(uint)*param_2)" ( (binary_expression "uVar3 | uVar2" identifier | identifier) , (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" ( identifier )) * identifier) ))) ;) })) (labeled_statement "LAB_00048fc6:\n  uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1);" statement_identifier : (expression_statement "uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1);" (assignment_expression "uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1)" identifier = (call_expression "dcgettext(0,"Unhandled data length: %d\n",5,param_1)" identifier (argument_list "(0,"Unhandled data length: %d\n",5,param_1)" ( number_literal , (string_literal ""Unhandled data length: %d\n"" " string_content escape_sequence ") , number_literal , identifier )))) ;)) (expression_statement "error(uVar1,param_3);" (call_expression "error(uVar1,param_3)" identifier (argument_list "(uVar1,param_3)" ( identifier , identifier ))) ;) (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))))) ;) (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement case LIT : (goto_statement goto statement_identifier ;)) (case_statement case LIT : (return_statement return (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) * IDENT) ;)) (case_statement case LIT : (return_statement return (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) * IDENT) ;)) (case_statement case LIT : (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) << LIT) | (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) << LIT)) | (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) * IDENT)) ))) ;)) (case_statement case LIT : (return_statement return (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) * IDENT) ;)) (case_statement case LIT : (return_statement return (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) * IDENT) ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) << LIT)) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) << LIT)) ;) (break_statement break ;)) (case_statement case LIT : (return_statement return (pointer_expression * IDENT) ;)) })) (return_statement return (call_expression IDENT (argument_list ( (binary_expression IDENT | IDENT) , (binary_expression (parenthesized_expression ( IDENT )) * IDENT) ))) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT , IDENT )))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "ulonglong __regparm1 FUN_00048ef0(int param_1,ulonglong *param_2,uint param_3)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (param_3 < 9) {\n    param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);\n    switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }\n    return CONCAT44(uVar3 | uVar2,(uint)*param_2);\n  }\nLAB_00048fc6:\n  uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1);\n  error(uVar1,param_3);\n                    \n  abort();\n}" (type_identifier "ulonglong") (ERROR "__regparm1" (identifier "__regparm1")) (function_declarator "FUN_00048ef0(int param_1,ulonglong *param_2,uint param_3)" (identifier "FUN_00048ef0") (parameter_list "(int param_1,ulonglong *param_2,uint param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "ulonglong *param_2" (type_identifier "ulonglong") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (param_3 < 9) {\n    param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);\n    switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }\n    return CONCAT44(uVar3 | uVar2,(uint)*param_2);\n  }\nLAB_00048fc6:\n  uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1);\n  error(uVar1,param_3);\n                    \n  abort();\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (if_statement "if (param_3 < 9) {\n    param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);\n    switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }\n    return CONCAT44(uVar3 | uVar2,(uint)*param_2);\n  }" (if "if") (parenthesized_expression "(param_3 < 9)" (( "(") (binary_expression "param_3 < 9" (identifier "param_3") (< "<") (number_literal "9")) () ")")) (compound_statement "{\n    param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);\n    switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }\n    return CONCAT44(uVar3 | uVar2,(uint)*param_2);\n  }" ({ "{") (expression_statement "param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);" (assignment_expression "param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4)" (identifier "param_1") (= "=") (binary_expression "(int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4)" (cast_expression "(int)&__DT_PLTGOT" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT"))) (+ "+") (pointer_expression "*(int *)(&DAT_000594c0 + param_3 * 4)" (* "*") (cast_expression "(int *)(&DAT_000594c0 + param_3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000594c0 + param_3 * 4)" (( "(") (binary_expression "&DAT_000594c0 + param_3 * 4" (pointer_expression "&DAT_000594c0" (& "&") (identifier "DAT_000594c0")) (+ "+") (binary_expression "param_3 * 4" (identifier "param_3") (* "*") (number_literal "4"))) () ")")))))) (; ";")) (switch_statement "switch(param_3) {\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }" (switch "switch") (parenthesized_expression "(param_3)" (( "(") (identifier "param_3") () ")")) (compound_statement "{\n    case 0:\n      goto LAB_00048fc6;\n    case 1:\n      return (ulonglong)(byte)*param_2;\n    case 2:\n      return (ulonglong)(ushort)*param_2;\n    case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);\n    case 4:\n      return (ulonglong)(uint)*param_2;\n    case 5:\n      return (ulonglong)(uint5)*param_2;\n    case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;\n    case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;\n    case 8:\n      return *param_2;\n    }" ({ "{") (case_statement "case 0:\n      goto LAB_00048fc6;" (case "case") (number_literal "0") (: ":") (goto_statement "goto LAB_00048fc6;" (goto "goto") (statement_identifier "LAB_00048fc6") (; ";"))) (case_statement "case 1:\n      return (ulonglong)(byte)*param_2;" (case "case") (number_literal "1") (: ":") (return_statement "return (ulonglong)(byte)*param_2;" (return "return") (binary_expression "(ulonglong)(byte)*param_2" (call_expression "(ulonglong)(byte)" (parenthesized_expression "(ulonglong)" (( "(") (identifier "ulonglong") () ")")) (argument_list "(byte)" (( "(") (identifier "byte") () ")"))) (* "*") (identifier "param_2")) (; ";"))) (case_statement "case 2:\n      return (ulonglong)(ushort)*param_2;" (case "case") (number_literal "2") (: ":") (return_statement "return (ulonglong)(ushort)*param_2;" (return "return") (binary_expression "(ulonglong)(ushort)*param_2" (call_expression "(ulonglong)(ushort)" (parenthesized_expression "(ulonglong)" (( "(") (identifier "ulonglong") () ")")) (argument_list "(ushort)" (( "(") (identifier "ushort") () ")"))) (* "*") (identifier "param_2")) (; ";"))) (case_statement "case 3:\n      return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);" (case "case") (number_literal "3") (: ":") (return_statement "return (ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2);" (return "return") (call_expression "(ulonglong)\n             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2)" (parenthesized_expression "(ulonglong)" (( "(") (identifier "ulonglong") () ")")) (argument_list "((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2)" (( "(") (binary_expression "(uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |\n             (uint)(byte)*param_2" (binary_expression "(uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10" (binary_expression "(uint)*(byte *)((int)param_2 + 1) << 8" (binary_expression "(uint)*(byte *)((int)param_2 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)((int)param_2 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 1)" (( "(") (binary_expression "(int)param_2 + 1" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "1")) () ")")))) (<< "<<") (number_literal "8")) (| "|") (binary_expression "(uint)*(byte *)((int)param_2 + 2) << 0x10" (binary_expression "(uint)*(byte *)((int)param_2 + 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)((int)param_2 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 2)" (( "(") (binary_expression "(int)param_2 + 2" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "2")) () ")")))) (<< "<<") (number_literal "0x10"))) (| "|") (binary_expression "(uint)(byte)*param_2" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(byte)" (( "(") (identifier "byte") () ")"))) (* "*") (identifier "param_2"))) () ")"))) (; ";"))) (case_statement "case 4:\n      return (ulonglong)(uint)*param_2;" (case "case") (number_literal "4") (: ":") (return_statement "return (ulonglong)(uint)*param_2;" (return "return") (binary_expression "(ulonglong)(uint)*param_2" (call_expression "(ulonglong)(uint)" (parenthesized_expression "(ulonglong)" (( "(") (identifier "ulonglong") () ")")) (argument_list "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (identifier "param_2")) (; ";"))) (case_statement "case 5:\n      return (ulonglong)(uint5)*param_2;" (case "case") (number_literal "5") (: ":") (return_statement "return (ulonglong)(uint5)*param_2;" (return "return") (binary_expression "(ulonglong)(uint5)*param_2" (call_expression "(ulonglong)(uint5)" (parenthesized_expression "(ulonglong)" (( "(") (identifier "ulonglong") () ")")) (argument_list "(uint5)" (( "(") (identifier "uint5") () ")"))) (* "*") (identifier "param_2")) (; ";"))) (case_statement "case 6:\n      uVar3 = (uint)*(byte *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;\n      break;" (case "case") (number_literal "6") (: ":") (expression_statement "uVar3 = (uint)*(byte *)((int)param_2 + 4);" (assignment_expression "uVar3 = (uint)*(byte *)((int)param_2 + 4)" (identifier "uVar3") (= "=") (binary_expression "(uint)*(byte *)((int)param_2 + 4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)((int)param_2 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 4)" (( "(") (binary_expression "(int)param_2 + 4" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;" (assignment_expression "uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8" (identifier "uVar2") (= "=") (binary_expression "(uint)*(byte *)((int)param_2 + 5) << 8" (binary_expression "(uint)*(byte *)((int)param_2 + 5)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)((int)param_2 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 5)" (( "(") (binary_expression "(int)param_2 + 5" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "5")) () ")")))) (<< "<<") (number_literal "8"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 7:\n      uVar3 = (uint)*(ushort *)((int)param_2 + 4);\n      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;\n      break;" (case "case") (number_literal "7") (: ":") (expression_statement "uVar3 = (uint)*(ushort *)((int)param_2 + 4);" (assignment_expression "uVar3 = (uint)*(ushort *)((int)param_2 + 4)" (identifier "uVar3") (= "=") (binary_expression "(uint)*(ushort *)((int)param_2 + 4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)((int)param_2 + 4)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 4)" (( "(") (binary_expression "(int)param_2 + 4" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;" (assignment_expression "uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10" (identifier "uVar2") (= "=") (binary_expression "(uint)*(byte *)((int)param_2 + 6) << 0x10" (binary_expression "(uint)*(byte *)((int)param_2 + 6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)((int)param_2 + 6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 6)" (( "(") (binary_expression "(int)param_2 + 6" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "6")) () ")")))) (<< "<<") (number_literal "0x10"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 8:\n      return *param_2;" (case "case") (number_literal "8") (: ":") (return_statement "return *param_2;" (return "return") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (; ";"))) (} "}"))) (return_statement "return CONCAT44(uVar3 | uVar2,(uint)*param_2);" (return "return") (call_expression "CONCAT44(uVar3 | uVar2,(uint)*param_2)" (identifier "CONCAT44") (argument_list "(uVar3 | uVar2,(uint)*param_2)" (( "(") (binary_expression "uVar3 | uVar2" (identifier "uVar3") (| "|") (identifier "uVar2")) (, ",") (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_2")) () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_00048fc6:\n  uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1);" (statement_identifier "LAB_00048fc6") (: ":") (expression_statement "uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1);" (assignment_expression "uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1)" (identifier "uVar1") (= "=") (call_expression "dcgettext(0,"Unhandled data length: %d\n",5,param_1)" (identifier "dcgettext") (argument_list "(0,"Unhandled data length: %d\n",5,param_1)" (( "(") (number_literal "0") (, ",") (string_literal ""Unhandled data length: %d\n"" (" """) (string_content "Unhandled data length: %d") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") (, ",") (identifier "param_1") () ")")))) (; ";"))) (expression_statement "error(uVar1,param_3);" (call_expression "error(uVar1,param_3)" (identifier "error") (argument_list "(uVar1,param_3)" (( "(") (identifier "uVar1") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 function_1(type_2 *var_1,int size)

{
  int in_EAX;
  char *message;
  type_3 var_4;
  type_3 var_3;
  
  if ((type_3)size < 9) {
    in_EAX = (int)&_GLOBAL_OFFSET_TABLE_ + (&switchD_00048f1a::switchdataD_000594c0)[size];
    switch(size) {
    case 0:
      goto _L93;
    case 1:
      return (type_1)*var_1;
    case 2:
      return (type_1)*(type_4 *)var_1;
    case 3:
      return (type_1)((type_3)var_1[1] << 8 | (type_3)var_1[2] << 0x10 | (type_3)*var_1);
    case 4:
      return (type_1)*(type_3 *)var_1;
    case 5:
      return (type_1)*(type_5 *)var_1;
    case 6:
      var_3 = (type_3)var_1[4];
      var_4 = (type_3)var_1[5] << 8;
      break;
    case 7:
      var_3 = (type_3)*(type_4 *)(var_1 + 4);
      var_4 = (type_3)var_1[6] << 0x10;
      break;
    case 8:
      return *(type_1 *)var_1;
    }
    return var_2(var_3 | var_4,*(type_6 *)var_1);
  }
_L93:
  message = (char *)var_5(0,"Unhandled data length: %d\n",5,in_EAX);
  var_6(message,size);
                    /* WARNING: Subroutine does not return */
  var_7();
}


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

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

ulonglong __regparm1 MASKED(int param_1,ulonglong *param_2,uint param_3)

{
  undefined4 uVar1;
  uint uVar2;
  uint uVar3;
  
  if (param_3 < 9) {
    param_1 = (int)&__DT_PLTGOT + *(int *)(&DAT_000594c0 + param_3 * 4);
    switch(param_3) {
    case 0:
      goto LAB_00048fc6;
    case 1:
      return (ulonglong)(byte)*param_2;
    case 2:
      return (ulonglong)(ushort)*param_2;
    case 3:
      return (ulonglong)
             ((uint)*(byte *)((int)param_2 + 1) << 8 | (uint)*(byte *)((int)param_2 + 2) << 0x10 |
             (uint)(byte)*param_2);
    case 4:
      return (ulonglong)(uint)*param_2;
    case 5:
      return (ulonglong)(uint5)*param_2;
    case 6:
      uVar3 = (uint)*(byte *)((int)param_2 + 4);
      uVar2 = (uint)*(byte *)((int)param_2 + 5) << 8;
      break;
    case 7:
      uVar3 = (uint)*(ushort *)((int)param_2 + 4);
      uVar2 = (uint)*(byte *)((int)param_2 + 6) << 0x10;
      break;
    case 8:
      return *param_2;
    }
    return CONCAT44(uVar3 | uVar2,(uint)*param_2);
  }
LAB_00048fc6:
  uVar1 = dcgettext(0,"Unhandled data length: %d\n",5,param_1);
  error(uVar1,param_3);
                    /* WARNING: Subroutine does not return */
  abort();
}

