
elf_vma byte_get_little_endian(uchar *field,int size)

{
  char *message;
  
  switch(size) {
  default:
    message = (char *)dcgettext(0,"Unhandled data length: %d\n",5);
    error(message,size);
                    /* WARNING: Subroutine does not return */
    abort();
  case 1:
    return (ulong)*field;
  case 2:
    return (ulong)*(ushort *)field;
  case 3:
    return (ulong)field[1] << 8 | (ulong)field[2] << 0x10 | (ulong)*field;
  case 4:
    return (ulong)*(uint *)field;
  case 5:
    return (ulong)*(uint5 *)field;
  case 6:
    return (ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field;
  case 7:
    return (ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field |
           (ulong)field[6] << 0x30;
  case 8:
    return *(elf_vma *)field;
  }
}



ulong FUN_00103d90(ulong *param_1,undefined4 param_2)

{
  undefined8 uVar1;
  
  switch(param_2) {
  default:
    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);
    error(uVar1,param_2);
                    /* WARNING: Subroutine does not return */
    abort();
  case 1:
    return (ulong)(byte)*param_1;
  case 2:
    return (ulong)(ushort)*param_1;
  case 3:
    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |
           (ulong)(byte)*param_1;
  case 4:
    return (ulong)(uint)*param_1;
  case 5:
    return (ulong)(uint5)*param_1;
  case 6:
    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28
           | (ulong)(uint)*param_1;
  case 7:
    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28
           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;
  case 8:
    return *param_1;
  }
}


CMP ESI,0x8
JA 0x00103e44
LEA RCX,[0x106a54]
MOV EDX,ESI
MOVSXD RAX,dword ptr [RCX + RDX*0x4]
ADD RAX,RCX
JMP RAX
MOV RAX,qword ptr [RDI]
RET
MOVZX EAX,byte ptr [RDI]
RET
MOVZX EAX,word ptr [RDI]
RET
MOVZX EAX,byte ptr [RDI + 0x1]
MOVZX EDX,byte ptr [RDI + 0x2]
SHL RAX,0x8
SHL RDX,0x10
OR RAX,RDX
MOVZX EDX,byte ptr [RDI]
OR RAX,RDX
RET
MOV EAX,dword ptr [RDI]
RET
MOVZX EAX,byte ptr [RDI + 0x4]
MOV EDX,dword ptr [RDI]
SHL RAX,0x20
OR RAX,RDX
RET
MOVZX EAX,byte ptr [RDI + 0x4]
MOVZX EDX,byte ptr [RDI + 0x5]
SHL RAX,0x20
SHL RDX,0x28
OR RAX,RDX
MOV EDX,dword ptr [RDI]
OR RAX,RDX
RET
MOVZX EAX,byte ptr [RDI + 0x4]
MOVZX EDX,byte ptr [RDI + 0x5]
SHL RAX,0x20
SHL RDX,0x28
OR RAX,RDX
MOV EDX,dword ptr [RDI]
OR RAX,RDX
MOVZX EDX,byte ptr [RDI + 0x6]
SHL RDX,0x30
OR RAX,RDX
RET
PUSH RBX
MOV EDX,0x5
MOV EBX,ESI
XOR EDI,EDI
LEA RSI,[0x10693b]
CALL 0x001020c0
MOV ESI,EBX
MOV RDI,RAX
XOR EAX,EAX
CALL 0x00103650
CALL 0x00102050
(translation_unit "ulong FUN_00103d90(ulong *param_1,undefined4 param_2)\n\n{\n  undefined8 uVar1;\n  \n  switch(param_2) {\n  default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    /* WARNING: Subroutine does not return */\n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)*param_1;\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;\n  case 4:\n    return (ulong)(uint)*param_1;\n  case 5:\n    return (ulong)(uint5)*param_1;\n  case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;\n  case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;\n  case 8:\n    return *param_1;\n  }\n}\n\n" (function_definition "ulong FUN_00103d90(ulong *param_1,undefined4 param_2)\n\n{\n  undefined8 uVar1;\n  \n  switch(param_2) {\n  default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    /* WARNING: Subroutine does not return */\n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)*param_1;\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;\n  case 4:\n    return (ulong)(uint)*param_1;\n  case 5:\n    return (ulong)(uint5)*param_1;\n  case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;\n  case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;\n  case 8:\n    return *param_1;\n  }\n}" type_identifier (function_declarator "FUN_00103d90(ulong *param_1,undefined4 param_2)" identifier (parameter_list "(ulong *param_1,undefined4 param_2)" ( (parameter_declaration "ulong *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  switch(param_2) {\n  default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    /* WARNING: Subroutine does not return */\n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)*param_1;\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;\n  case 4:\n    return (ulong)(uint)*param_1;\n  case 5:\n    return (ulong)(uint5)*param_1;\n  case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;\n  case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;\n  case 8:\n    return *param_1;\n  }\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (switch_statement "switch(param_2) {\n  default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    /* WARNING: Subroutine does not return */\n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)*param_1;\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;\n  case 4:\n    return (ulong)(uint)*param_1;\n  case 5:\n    return (ulong)(uint5)*param_1;\n  case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;\n  case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;\n  case 8:\n    return *param_1;\n  }" switch (parenthesized_expression "(param_2)" ( identifier )) (compound_statement "{\n  default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    /* WARNING: Subroutine does not return */\n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)*param_1;\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;\n  case 4:\n    return (ulong)(uint)*param_1;\n  case 5:\n    return (ulong)(uint5)*param_1;\n  case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;\n  case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;\n  case 8:\n    return *param_1;\n  }" { (case_statement "default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    /* WARNING: Subroutine does not return */\n    abort();" default : (expression_statement "uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);" (assignment_expression "uVar1 = dcgettext(0,"Unhandled data length: %d\n",5)" identifier = (call_expression "dcgettext(0,"Unhandled data length: %d\n",5)" identifier (argument_list "(0,"Unhandled data length: %d\n",5)" ( number_literal , (string_literal ""Unhandled data length: %d\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar1,param_2);" (call_expression "error(uVar1,param_2)" identifier (argument_list "(uVar1,param_2)" ( identifier , identifier ))) ;) comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) (case_statement "case 1:\n    return (ulong)(byte)*param_1;" case number_literal : (return_statement "return (ulong)(byte)*param_1;" return (binary_expression "(ulong)(byte)*param_1" (call_expression "(ulong)(byte)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier) ;)) (case_statement "case 2:\n    return (ulong)(ushort)*param_1;" case number_literal : (return_statement "return (ulong)(ushort)*param_1;" return (binary_expression "(ulong)(ushort)*param_1" (call_expression "(ulong)(ushort)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(ushort)" ( identifier ))) * identifier) ;)) (case_statement "case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;" case number_literal : (return_statement "return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;" return (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1" (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10" (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 8" (binary_expression "(ulong)*(byte *)((long)param_1 + 1)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)((long)param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 1)" ( (binary_expression "(long)param_1 + 1" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) << number_literal) | (binary_expression "(ulong)*(byte *)((long)param_1 + 2) << 0x10" (binary_expression "(ulong)*(byte *)((long)param_1 + 2)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)((long)param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 2)" ( (binary_expression "(long)param_1 + 2" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) << number_literal)) | (binary_expression "(ulong)(byte)*param_1" (call_expression "(ulong)(byte)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier)) ;)) (case_statement "case 4:\n    return (ulong)(uint)*param_1;" case number_literal : (return_statement "return (ulong)(uint)*param_1;" return (binary_expression "(ulong)(uint)*param_1" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uint)" ( identifier ))) * identifier) ;)) (case_statement "case 5:\n    return (ulong)(uint5)*param_1;" case number_literal : (return_statement "return (ulong)(uint5)*param_1;" return (binary_expression "(ulong)(uint5)*param_1" (call_expression "(ulong)(uint5)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uint5)" ( identifier ))) * identifier) ;)) (case_statement "case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;" case number_literal : (return_statement "return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;" return (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1" (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20" (binary_expression "(ulong)*(byte *)((long)param_1 + 4)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)((long)param_1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 4)" ( (binary_expression "(long)param_1 + 4" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) << number_literal) | (binary_expression "(ulong)*(byte *)((long)param_1 + 5) << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 5)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)((long)param_1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 5)" ( (binary_expression "(long)param_1 + 5" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) << number_literal)) | (binary_expression "(ulong)(uint)*param_1" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uint)" ( identifier ))) * identifier)) ;)) (case_statement "case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;" case number_literal : (return_statement "return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;" return (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30" (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1" (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20" (binary_expression "(ulong)*(byte *)((long)param_1 + 4)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)((long)param_1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 4)" ( (binary_expression "(long)param_1 + 4" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) << number_literal) | (binary_expression "(ulong)*(byte *)((long)param_1 + 5) << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 5)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)((long)param_1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 5)" ( (binary_expression "(long)param_1 + 5" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) << number_literal)) | (binary_expression "(ulong)(uint)*param_1" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uint)" ( identifier ))) * identifier)) | (binary_expression "(ulong)*(byte *)((long)param_1 + 6) << 0x30" (binary_expression "(ulong)*(byte *)((long)param_1 + 6)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)((long)param_1 + 6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 6)" ( (binary_expression "(long)param_1 + 6" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) << number_literal)) ;)) (case_statement "case 8:\n    return *param_1;" case number_literal : (return_statement "return *param_1;" return (pointer_expression "*param_1" * identifier) ;)) })) })))
(translation_unit "elf_vma byte_get_little_endian(uchar *field,int size)\n\n{\n  char *message;\n  \n  switch(size) {\n  default:\n    message = (char *)dcgettext(0,"Unhandled data length: %d\n",5);\n    error(message,size);\n                    /* WARNING: Subroutine does not return */\n    abort();\n  case 1:\n    return (ulong)*field;\n  case 2:\n    return (ulong)*(ushort *)field;\n  case 3:\n    return (ulong)field[1] << 8 | (ulong)field[2] << 0x10 | (ulong)*field;\n  case 4:\n    return (ulong)*(uint *)field;\n  case 5:\n    return (ulong)*(uint5 *)field;\n  case 6:\n    return (ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field;\n  case 7:\n    return (ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field |\n           (ulong)field[6] << 0x30;\n  case 8:\n    return *(elf_vma *)field;\n  }\n}\n\n" (function_definition "elf_vma byte_get_little_endian(uchar *field,int size)\n\n{\n  char *message;\n  \n  switch(size) {\n  default:\n    message = (char *)dcgettext(0,"Unhandled data length: %d\n",5);\n    error(message,size);\n                    /* WARNING: Subroutine does not return */\n    abort();\n  case 1:\n    return (ulong)*field;\n  case 2:\n    return (ulong)*(ushort *)field;\n  case 3:\n    return (ulong)field[1] << 8 | (ulong)field[2] << 0x10 | (ulong)*field;\n  case 4:\n    return (ulong)*(uint *)field;\n  case 5:\n    return (ulong)*(uint5 *)field;\n  case 6:\n    return (ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field;\n  case 7:\n    return (ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field |\n           (ulong)field[6] << 0x30;\n  case 8:\n    return *(elf_vma *)field;\n  }\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  char *message;\n  \n  switch(size) {\n  default:\n    message = (char *)dcgettext(0,"Unhandled data length: %d\n",5);\n    error(message,size);\n                    /* WARNING: Subroutine does not return */\n    abort();\n  case 1:\n    return (ulong)*field;\n  case 2:\n    return (ulong)*(ushort *)field;\n  case 3:\n    return (ulong)field[1] << 8 | (ulong)field[2] << 0x10 | (ulong)*field;\n  case 4:\n    return (ulong)*(uint *)field;\n  case 5:\n    return (ulong)*(uint5 *)field;\n  case 6:\n    return (ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field;\n  case 7:\n    return (ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field |\n           (ulong)field[6] << 0x30;\n  case 8:\n    return *(elf_vma *)field;\n  }\n}" { (declaration "char *message;" primitive_type (pointer_declarator "*message" * identifier) ;) (switch_statement "switch(size) {\n  default:\n    message = (char *)dcgettext(0,"Unhandled data length: %d\n",5);\n    error(message,size);\n                    /* WARNING: Subroutine does not return */\n    abort();\n  case 1:\n    return (ulong)*field;\n  case 2:\n    return (ulong)*(ushort *)field;\n  case 3:\n    return (ulong)field[1] << 8 | (ulong)field[2] << 0x10 | (ulong)*field;\n  case 4:\n    return (ulong)*(uint *)field;\n  case 5:\n    return (ulong)*(uint5 *)field;\n  case 6:\n    return (ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field;\n  case 7:\n    return (ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field |\n           (ulong)field[6] << 0x30;\n  case 8:\n    return *(elf_vma *)field;\n  }" switch (parenthesized_expression "(size)" ( identifier )) (compound_statement "{\n  default:\n    message = (char *)dcgettext(0,"Unhandled data length: %d\n",5);\n    error(message,size);\n                    /* WARNING: Subroutine does not return */\n    abort();\n  case 1:\n    return (ulong)*field;\n  case 2:\n    return (ulong)*(ushort *)field;\n  case 3:\n    return (ulong)field[1] << 8 | (ulong)field[2] << 0x10 | (ulong)*field;\n  case 4:\n    return (ulong)*(uint *)field;\n  case 5:\n    return (ulong)*(uint5 *)field;\n  case 6:\n    return (ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field;\n  case 7:\n    return (ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field |\n           (ulong)field[6] << 0x30;\n  case 8:\n    return *(elf_vma *)field;\n  }" { (case_statement "default:\n    message = (char *)dcgettext(0,"Unhandled data length: %d\n",5);\n    error(message,size);\n                    /* WARNING: Subroutine does not return */\n    abort();" default : (expression_statement "message = (char *)dcgettext(0,"Unhandled data length: %d\n",5);" (assignment_expression "message = (char *)dcgettext(0,"Unhandled data length: %d\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Unhandled data length: %d\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Unhandled data length: %d\n",5)" identifier (argument_list "(0,"Unhandled data length: %d\n",5)" ( number_literal , (string_literal ""Unhandled data length: %d\n"" " string_content escape_sequence ") , number_literal ))))) ;) (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 "()" ( ))) ;)) (case_statement "case 1:\n    return (ulong)*field;" case number_literal : (return_statement "return (ulong)*field;" return (binary_expression "(ulong)*field" (parenthesized_expression "(ulong)" ( identifier )) * identifier) ;)) (case_statement "case 2:\n    return (ulong)*(ushort *)field;" case number_literal : (return_statement "return (ulong)*(ushort *)field;" return (binary_expression "(ulong)*(ushort *)field" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(ushort *)field" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) (case_statement "case 3:\n    return (ulong)field[1] << 8 | (ulong)field[2] << 0x10 | (ulong)*field;" case number_literal : (return_statement "return (ulong)field[1] << 8 | (ulong)field[2] << 0x10 | (ulong)*field;" return (binary_expression "(ulong)field[1] << 8 | (ulong)field[2] << 0x10 | (ulong)*field" (binary_expression "(ulong)field[1] << 8 | (ulong)field[2] << 0x10" (binary_expression "(ulong)field[1] << 8" (cast_expression "(ulong)field[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "field[1]" identifier [ number_literal ])) << number_literal) | (binary_expression "(ulong)field[2] << 0x10" (cast_expression "(ulong)field[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "field[2]" identifier [ number_literal ])) << number_literal)) | (binary_expression "(ulong)*field" (parenthesized_expression "(ulong)" ( identifier )) * identifier)) ;)) (case_statement "case 4:\n    return (ulong)*(uint *)field;" case number_literal : (return_statement "return (ulong)*(uint *)field;" return (binary_expression "(ulong)*(uint *)field" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)field" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) (case_statement "case 5:\n    return (ulong)*(uint5 *)field;" case number_literal : (return_statement "return (ulong)*(uint5 *)field;" return (binary_expression "(ulong)*(uint5 *)field" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint5 *)field" ( (type_descriptor "uint5 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) (case_statement "case 6:\n    return (ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field;" case number_literal : (return_statement "return (ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field;" return (binary_expression "(ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field" (binary_expression "(ulong)field[4] << 0x20 | (ulong)field[5] << 0x28" (binary_expression "(ulong)field[4] << 0x20" (cast_expression "(ulong)field[4]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "field[4]" identifier [ number_literal ])) << number_literal) | (binary_expression "(ulong)field[5] << 0x28" (cast_expression "(ulong)field[5]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "field[5]" identifier [ number_literal ])) << number_literal)) | (binary_expression "(ulong)*(uint *)field" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)field" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;)) (case_statement "case 7:\n    return (ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field |\n           (ulong)field[6] << 0x30;" case number_literal : (return_statement "return (ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field |\n           (ulong)field[6] << 0x30;" return (binary_expression "(ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field |\n           (ulong)field[6] << 0x30" (binary_expression "(ulong)field[4] << 0x20 | (ulong)field[5] << 0x28 | (ulong)*(uint *)field" (binary_expression "(ulong)field[4] << 0x20 | (ulong)field[5] << 0x28" (binary_expression "(ulong)field[4] << 0x20" (cast_expression "(ulong)field[4]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "field[4]" identifier [ number_literal ])) << number_literal) | (binary_expression "(ulong)field[5] << 0x28" (cast_expression "(ulong)field[5]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "field[5]" identifier [ number_literal ])) << number_literal)) | (binary_expression "(ulong)*(uint *)field" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)field" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) | (binary_expression "(ulong)field[6] << 0x30" (cast_expression "(ulong)field[6]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "field[6]" identifier [ number_literal ])) << number_literal)) ;)) (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)) ;)) })) })))
(translation_unit "ulong FUN_00103d90(ulong *param_1,undefined4 param_2)\n\n{\n  undefined8 uVar1;\n  \n  switch(param_2) {\n  default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)*param_1;\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;\n  case 4:\n    return (ulong)(uint)*param_1;\n  case 5:\n    return (ulong)(uint5)*param_1;\n  case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;\n  case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;\n  case 8:\n    return *param_1;\n  }\n}\n\n" (function_definition "ulong FUN_00103d90(ulong *param_1,undefined4 param_2)\n\n{\n  undefined8 uVar1;\n  \n  switch(param_2) {\n  default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)*param_1;\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;\n  case 4:\n    return (ulong)(uint)*param_1;\n  case 5:\n    return (ulong)(uint5)*param_1;\n  case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;\n  case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;\n  case 8:\n    return *param_1;\n  }\n}" type_identifier (function_declarator "FUN_00103d90(ulong *param_1,undefined4 param_2)" identifier (parameter_list "(ulong *param_1,undefined4 param_2)" ( (parameter_declaration "ulong *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  switch(param_2) {\n  default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)*param_1;\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;\n  case 4:\n    return (ulong)(uint)*param_1;\n  case 5:\n    return (ulong)(uint5)*param_1;\n  case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;\n  case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;\n  case 8:\n    return *param_1;\n  }\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (switch_statement "switch(param_2) {\n  default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)*param_1;\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;\n  case 4:\n    return (ulong)(uint)*param_1;\n  case 5:\n    return (ulong)(uint5)*param_1;\n  case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;\n  case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;\n  case 8:\n    return *param_1;\n  }" switch (parenthesized_expression "(param_2)" ( identifier )) (compound_statement "{\n  default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)*param_1;\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;\n  case 4:\n    return (ulong)(uint)*param_1;\n  case 5:\n    return (ulong)(uint5)*param_1;\n  case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;\n  case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;\n  case 8:\n    return *param_1;\n  }" { (case_statement "default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    \n    abort();" default : (expression_statement "uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);" (assignment_expression "uVar1 = dcgettext(0,"Unhandled data length: %d\n",5)" identifier = (call_expression "dcgettext(0,"Unhandled data length: %d\n",5)" identifier (argument_list "(0,"Unhandled data length: %d\n",5)" ( number_literal , (string_literal ""Unhandled data length: %d\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "error(uVar1,param_2);" (call_expression "error(uVar1,param_2)" identifier (argument_list "(uVar1,param_2)" ( identifier , identifier ))) ;) (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) (case_statement "case 1:\n    return (ulong)(byte)*param_1;" case number_literal : (return_statement "return (ulong)(byte)*param_1;" return (binary_expression "(ulong)(byte)*param_1" (call_expression "(ulong)(byte)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier) ;)) (case_statement "case 2:\n    return (ulong)(ushort)*param_1;" case number_literal : (return_statement "return (ulong)(ushort)*param_1;" return (binary_expression "(ulong)(ushort)*param_1" (call_expression "(ulong)(ushort)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(ushort)" ( identifier ))) * identifier) ;)) (case_statement "case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;" case number_literal : (return_statement "return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;" return (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1" (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10" (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 8" (binary_expression "(ulong)*(byte *)((long)param_1 + 1)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)((long)param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 1)" ( (binary_expression "(long)param_1 + 1" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) << number_literal) | (binary_expression "(ulong)*(byte *)((long)param_1 + 2) << 0x10" (binary_expression "(ulong)*(byte *)((long)param_1 + 2)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)((long)param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 2)" ( (binary_expression "(long)param_1 + 2" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) << number_literal)) | (binary_expression "(ulong)(byte)*param_1" (call_expression "(ulong)(byte)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier)) ;)) (case_statement "case 4:\n    return (ulong)(uint)*param_1;" case number_literal : (return_statement "return (ulong)(uint)*param_1;" return (binary_expression "(ulong)(uint)*param_1" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uint)" ( identifier ))) * identifier) ;)) (case_statement "case 5:\n    return (ulong)(uint5)*param_1;" case number_literal : (return_statement "return (ulong)(uint5)*param_1;" return (binary_expression "(ulong)(uint5)*param_1" (call_expression "(ulong)(uint5)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uint5)" ( identifier ))) * identifier) ;)) (case_statement "case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;" case number_literal : (return_statement "return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;" return (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1" (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20" (binary_expression "(ulong)*(byte *)((long)param_1 + 4)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)((long)param_1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 4)" ( (binary_expression "(long)param_1 + 4" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) << number_literal) | (binary_expression "(ulong)*(byte *)((long)param_1 + 5) << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 5)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)((long)param_1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 5)" ( (binary_expression "(long)param_1 + 5" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) << number_literal)) | (binary_expression "(ulong)(uint)*param_1" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uint)" ( identifier ))) * identifier)) ;)) (case_statement "case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;" case number_literal : (return_statement "return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;" return (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30" (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1" (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20" (binary_expression "(ulong)*(byte *)((long)param_1 + 4)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)((long)param_1 + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 4)" ( (binary_expression "(long)param_1 + 4" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) << number_literal) | (binary_expression "(ulong)*(byte *)((long)param_1 + 5) << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 5)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)((long)param_1 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 5)" ( (binary_expression "(long)param_1 + 5" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) << number_literal)) | (binary_expression "(ulong)(uint)*param_1" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uint)" ( identifier ))) * identifier)) | (binary_expression "(ulong)*(byte *)((long)param_1 + 6) << 0x30" (binary_expression "(ulong)*(byte *)((long)param_1 + 6)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)((long)param_1 + 6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 6)" ( (binary_expression "(long)param_1 + 6" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) << number_literal)) ;)) (case_statement "case 8:\n    return *param_1;" case number_literal : (return_statement "return *param_1;" return (pointer_expression "*param_1" * identifier) ;)) })) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement default : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (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 (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 (sized_type_specifier long)) ) 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 (sized_type_specifier long)) ) 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 : (return_statement return (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 (sized_type_specifier long)) ) 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 (sized_type_specifier long)) ) IDENT) + LIT) )))) << LIT)) | (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) * IDENT)) ;)) (case_statement case LIT : (return_statement return (binary_expression (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 (sized_type_specifier long)) ) 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 (sized_type_specifier long)) ) IDENT) + LIT) )))) << LIT)) | (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) * IDENT)) | (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) << LIT)) ;)) (case_statement case LIT : (return_statement return (pointer_expression * IDENT) ;)) })) })))
(function_definition "ulong FUN_00103d90(ulong *param_1,undefined4 param_2)\n\n{\n  undefined8 uVar1;\n  \n  switch(param_2) {\n  default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)*param_1;\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;\n  case 4:\n    return (ulong)(uint)*param_1;\n  case 5:\n    return (ulong)(uint5)*param_1;\n  case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;\n  case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;\n  case 8:\n    return *param_1;\n  }\n}" (type_identifier "ulong") (function_declarator "FUN_00103d90(ulong *param_1,undefined4 param_2)" (identifier "FUN_00103d90") (parameter_list "(ulong *param_1,undefined4 param_2)" (( "(") (parameter_declaration "ulong *param_1" (type_identifier "ulong") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  \n  switch(param_2) {\n  default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)*param_1;\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;\n  case 4:\n    return (ulong)(uint)*param_1;\n  case 5:\n    return (ulong)(uint5)*param_1;\n  case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;\n  case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;\n  case 8:\n    return *param_1;\n  }\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (switch_statement "switch(param_2) {\n  default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)*param_1;\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;\n  case 4:\n    return (ulong)(uint)*param_1;\n  case 5:\n    return (ulong)(uint5)*param_1;\n  case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;\n  case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;\n  case 8:\n    return *param_1;\n  }" (switch "switch") (parenthesized_expression "(param_2)" (( "(") (identifier "param_2") () ")")) (compound_statement "{\n  default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)*param_1;\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;\n  case 4:\n    return (ulong)(uint)*param_1;\n  case 5:\n    return (ulong)(uint5)*param_1;\n  case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;\n  case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;\n  case 8:\n    return *param_1;\n  }" ({ "{") (case_statement "default:\n    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar1,param_2);\n                    \n    abort();" (default "default") (: ":") (expression_statement "uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);" (assignment_expression "uVar1 = dcgettext(0,"Unhandled data length: %d\n",5)" (identifier "uVar1") (= "=") (call_expression "dcgettext(0,"Unhandled data length: %d\n",5)" (identifier "dcgettext") (argument_list "(0,"Unhandled data length: %d\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Unhandled data length: %d\n"" (" """) (string_content "Unhandled data length: %d") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(uVar1,param_2);" (call_expression "error(uVar1,param_2)" (identifier "error") (argument_list "(uVar1,param_2)" (( "(") (identifier "uVar1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";"))) (case_statement "case 1:\n    return (ulong)(byte)*param_1;" (case "case") (number_literal "1") (: ":") (return_statement "return (ulong)(byte)*param_1;" (return "return") (binary_expression "(ulong)(byte)*param_1" (call_expression "(ulong)(byte)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(byte)" (( "(") (identifier "byte") () ")"))) (* "*") (identifier "param_1")) (; ";"))) (case_statement "case 2:\n    return (ulong)(ushort)*param_1;" (case "case") (number_literal "2") (: ":") (return_statement "return (ulong)(ushort)*param_1;" (return "return") (binary_expression "(ulong)(ushort)*param_1" (call_expression "(ulong)(ushort)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(ushort)" (( "(") (identifier "ushort") () ")"))) (* "*") (identifier "param_1")) (; ";"))) (case_statement "case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;" (case "case") (number_literal "3") (: ":") (return_statement "return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1;" (return "return") (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |\n           (ulong)(byte)*param_1" (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10" (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 8" (binary_expression "(ulong)*(byte *)((long)param_1 + 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(byte *)((long)param_1 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 1)" (( "(") (binary_expression "(long)param_1 + 1" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "1")) () ")")))) (<< "<<") (number_literal "8")) (| "|") (binary_expression "(ulong)*(byte *)((long)param_1 + 2) << 0x10" (binary_expression "(ulong)*(byte *)((long)param_1 + 2)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(byte *)((long)param_1 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 2)" (( "(") (binary_expression "(long)param_1 + 2" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "2")) () ")")))) (<< "<<") (number_literal "0x10"))) (| "|") (binary_expression "(ulong)(byte)*param_1" (call_expression "(ulong)(byte)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(byte)" (( "(") (identifier "byte") () ")"))) (* "*") (identifier "param_1"))) (; ";"))) (case_statement "case 4:\n    return (ulong)(uint)*param_1;" (case "case") (number_literal "4") (: ":") (return_statement "return (ulong)(uint)*param_1;" (return "return") (binary_expression "(ulong)(uint)*param_1" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (identifier "param_1")) (; ";"))) (case_statement "case 5:\n    return (ulong)(uint5)*param_1;" (case "case") (number_literal "5") (: ":") (return_statement "return (ulong)(uint5)*param_1;" (return "return") (binary_expression "(ulong)(uint5)*param_1" (call_expression "(ulong)(uint5)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(uint5)" (( "(") (identifier "uint5") () ")"))) (* "*") (identifier "param_1")) (; ";"))) (case_statement "case 6:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;" (case "case") (number_literal "6") (: ":") (return_statement "return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1;" (return "return") (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1" (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20" (binary_expression "(ulong)*(byte *)((long)param_1 + 4)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(byte *)((long)param_1 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 4)" (( "(") (binary_expression "(long)param_1 + 4" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "4")) () ")")))) (<< "<<") (number_literal "0x20")) (| "|") (binary_expression "(ulong)*(byte *)((long)param_1 + 5) << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 5)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(byte *)((long)param_1 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 5)" (( "(") (binary_expression "(long)param_1 + 5" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "5")) () ")")))) (<< "<<") (number_literal "0x28"))) (| "|") (binary_expression "(ulong)(uint)*param_1" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (identifier "param_1"))) (; ";"))) (case_statement "case 7:\n    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;" (case "case") (number_literal "7") (: ":") (return_statement "return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;" (return "return") (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30" (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28\n           | (ulong)(uint)*param_1" (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 4) << 0x20" (binary_expression "(ulong)*(byte *)((long)param_1 + 4)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(byte *)((long)param_1 + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 4)" (( "(") (binary_expression "(long)param_1 + 4" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "4")) () ")")))) (<< "<<") (number_literal "0x20")) (| "|") (binary_expression "(ulong)*(byte *)((long)param_1 + 5) << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 5)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(byte *)((long)param_1 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 5)" (( "(") (binary_expression "(long)param_1 + 5" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "5")) () ")")))) (<< "<<") (number_literal "0x28"))) (| "|") (binary_expression "(ulong)(uint)*param_1" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (identifier "param_1"))) (| "|") (binary_expression "(ulong)*(byte *)((long)param_1 + 6) << 0x30" (binary_expression "(ulong)*(byte *)((long)param_1 + 6)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(byte *)((long)param_1 + 6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 6)" (( "(") (binary_expression "(long)param_1 + 6" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "6")) () ")")))) (<< "<<") (number_literal "0x30"))) (; ";"))) (case_statement "case 8:\n    return *param_1;" (case "case") (number_literal "8") (: ":") (return_statement "return *param_1;" (return "return") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (; ";"))) (} "}"))) (} "}")))

type_1 function_1(type_2 *var_4,int size)

{
  char *message;
  
  switch(size) {
  default:
    message = (char *)var_1(0,"Unhandled data length: %d\n",5);
    var_2(message,size);
                    /* WARNING: Subroutine does not return */
    var_3();
  case 1:
    return (type_4)*var_4;
  case 2:
    return (type_4)*(type_3 *)var_4;
  case 3:
    return (type_4)var_4[1] << 8 | (type_4)var_4[2] << 0x10 | (type_4)*var_4;
  case 4:
    return (type_4)*(type_5 *)var_4;
  case 5:
    return (type_4)*(type_6 *)var_4;
  case 6:
    return (type_4)var_4[4] << 0x20 | (type_4)var_4[5] << 0x28 | (type_4)*(type_5 *)var_4;
  case 7:
    return (type_4)var_4[4] << 0x20 | (type_4)var_4[5] << 0x28 | (type_4)*(type_5 *)var_4 |
           (type_4)var_4[6] << 0x30;
  case 8:
    return *(type_1 *)var_4;
  }
}


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

ulong MASKED(ulong *param_1,undefined4 param_2)

{
  undefined8 uVar1;
  
  switch(param_2) {
  default:
    uVar1 = dcgettext(0,"Unhandled data length: %d\n",5);
    error(uVar1,param_2);
                    /* WARNING: Subroutine does not return */
    abort();
  case 1:
    return (ulong)(byte)*param_1;
  case 2:
    return (ulong)(ushort)*param_1;
  case 3:
    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)*(byte *)((long)param_1 + 2) << 0x10 |
           (ulong)(byte)*param_1;
  case 4:
    return (ulong)(uint)*param_1;
  case 5:
    return (ulong)(uint5)*param_1;
  case 6:
    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28
           | (ulong)(uint)*param_1;
  case 7:
    return (ulong)*(byte *)((long)param_1 + 4) << 0x20 | (ulong)*(byte *)((long)param_1 + 5) << 0x28
           | (ulong)(uint)*param_1 | (ulong)*(byte *)((long)param_1 + 6) << 0x30;
  case 8:
    return *param_1;
  }
}

