
elf_vma byte_get_big_endian(uchar *field,int size)

{
  uint uVar1;
  ulong uVar2;
  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)(*(ushort *)field << 8 | *(ushort *)field >> 8);
  case 3:
    return (ulong)field[1] << 8 | (ulong)*field << 0x10 | (ulong)field[2];
  case 4:
    uVar1 = *(uint *)field;
    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);
  case 5:
    uVar1 = *(uint *)(field + 1);
    return (ulong)CONCAT14(*field,uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |
                                  uVar1 << 0x18);
  case 6:
    uVar1 = *(uint *)(field + 2);
    return (ulong)field[1] << 0x20 | (ulong)*field << 0x28 |
           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);
  case 7:
    uVar1 = *(uint *)(field + 3);
    return (ulong)field[2] << 0x20 | (ulong)field[1] << 0x28 | (ulong)*field << 0x30 |
           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);
  case 8:
    uVar2 = *(ulong *)field;
    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |
           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |
           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;
  }
}



ulong FUN_00103730(ulong *param_1,undefined4 param_2)

{
  uint uVar1;
  ulong uVar2;
  undefined8 uVar3;
  
  switch(param_2) {
  default:
    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);
    error(uVar3,param_2);
                    /* WARNING: Subroutine does not return */
    abort();
  case 1:
    return (ulong)(byte)*param_1;
  case 2:
    return (ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);
  case 3:
    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |
           (ulong)*(byte *)((long)param_1 + 2);
  case 4:
    uVar1 = (uint)*param_1;
    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);
  case 5:
    uVar1 = *(uint *)((long)param_1 + 1);
    return (ulong)CONCAT14((byte)*param_1,
                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |
                           uVar1 << 0x18);
  case 6:
    uVar1 = *(uint *)((long)param_1 + 2);
    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |
           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);
  case 7:
    uVar1 = *(uint *)((long)param_1 + 3);
    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28
           | (ulong)(byte)*param_1 << 0x30 |
           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);
  case 8:
    uVar2 = *param_1;
    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |
           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |
           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;
  }
}


CMP ESI,0x8
JA 0x00103800
LEA RCX,[0x1069e8]
MOV EDX,ESI
MOVSXD RAX,dword ptr [RCX + RDX*0x4]
ADD RAX,RCX
JMP RAX
MOV RAX,qword ptr [RDI]
BSWAP RAX
RET
MOVZX EAX,byte ptr [RDI]
RET
MOVZX EAX,word ptr [RDI]
ROL AX,0x8
MOVZX EAX,AX
RET
MOVZX EAX,byte ptr [RDI + 0x1]
MOVZX EDX,byte ptr [RDI]
SHL RAX,0x8
SHL RDX,0x10
OR RAX,RDX
MOVZX EDX,byte ptr [RDI + 0x2]
OR RAX,RDX
RET
MOV EAX,dword ptr [RDI]
BSWAP EAX
MOV EAX,EAX
RET
MOV EDX,dword ptr [RDI + 0x1]
MOVZX EAX,byte ptr [RDI]
BSWAP EDX
SHL RAX,0x20
MOV EDX,EDX
OR RAX,RDX
RET
MOVZX EAX,byte ptr [RDI + 0x1]
MOVZX ECX,byte ptr [RDI]
MOV EDX,dword ptr [RDI + 0x2]
SHL RAX,0x20
SHL RCX,0x28
OR RAX,RCX
BSWAP EDX
MOV EDX,EDX
OR RAX,RDX
RET
MOVZX EAX,byte ptr [RDI + 0x2]
MOVZX ECX,byte ptr [RDI + 0x1]
MOV EDX,dword ptr [RDI + 0x3]
SHL RCX,0x28
SHL RAX,0x20
OR RAX,RCX
MOVZX ECX,byte ptr [RDI]
BSWAP EDX
MOV EDX,EDX
SHL RCX,0x30
OR RAX,RCX
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_00103730(ulong *param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  undefined8 uVar3;\n  \n  switch(param_2) {\n  default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,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)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);\n  case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }\n}\n\n" (function_definition "ulong FUN_00103730(ulong *param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  undefined8 uVar3;\n  \n  switch(param_2) {\n  default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,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)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);\n  case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }\n}" type_identifier (function_declarator "FUN_00103730(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  uint uVar1;\n  ulong uVar2;\n  undefined8 uVar3;\n  \n  switch(param_2) {\n  default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,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)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);\n  case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (switch_statement "switch(param_2) {\n  default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,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)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);\n  case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }" switch (parenthesized_expression "(param_2)" ( identifier )) (compound_statement "{\n  default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,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)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);\n  case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }" { (case_statement "default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,param_2);\n                    /* WARNING: Subroutine does not return */\n    abort();" default : (expression_statement "uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);" (assignment_expression "uVar3 = 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(uVar3,param_2);" (call_expression "error(uVar3,param_2)" identifier (argument_list "(uVar3,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)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);" case number_literal : (return_statement "return (ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);" return (call_expression "(ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8)" (call_expression "(ulong)(ushort)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "((ushort)*param_1 << 8 | (ushort)*param_1 >> 8)" ( (binary_expression "(ushort)*param_1 << 8 | (ushort)*param_1 >> 8" (binary_expression "(ushort)*param_1 << 8" (binary_expression "(ushort)*param_1" (parenthesized_expression "(ushort)" ( identifier )) * identifier) << number_literal) | (binary_expression "(ushort)*param_1 >> 8" (binary_expression "(ushort)*param_1" (parenthesized_expression "(ushort)" ( identifier )) * identifier) >> number_literal)) ))) ;)) (case_statement "case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);" case number_literal : (return_statement "return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);" return (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2)" (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 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)*param_1 << 0x10" (binary_expression "(ulong)(byte)*param_1" (call_expression "(ulong)(byte)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier) << number_literal)) | (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) ))))) ;)) (case_statement "case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" case number_literal : (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (return_statement "return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" return (call_expression "(ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" ( (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) ))) ;)) (case_statement "case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);" case number_literal : (expression_statement "uVar1 = *(uint *)((long)param_1 + 1);" (assignment_expression "uVar1 = *(uint *)((long)param_1 + 1)" identifier = (pointer_expression "*(uint *)((long)param_1 + 1)" * (cast_expression "(uint *)((long)param_1 + 1)" ( (type_descriptor "uint *" 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) ))))) ;) (return_statement "return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);" return (cast_expression "(ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18)" ( (type_descriptor "ulong" type_identifier) ) (call_expression "CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18)" identifier (argument_list "((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18)" ( (binary_expression "(byte)*param_1" (parenthesized_expression "(byte)" ( identifier )) * identifier) , (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) )))) ;)) (case_statement "case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" case number_literal : (expression_statement "uVar1 = *(uint *)((long)param_1 + 2);" (assignment_expression "uVar1 = *(uint *)((long)param_1 + 2)" identifier = (pointer_expression "*(uint *)((long)param_1 + 2)" * (cast_expression "(uint *)((long)param_1 + 2)" ( (type_descriptor "uint *" 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) ))))) ;) (return_statement "return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" return (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 0x20" (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)*param_1 << 0x28" (binary_expression "(ulong)(byte)*param_1" (call_expression "(ulong)(byte)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier) << number_literal)) | (call_expression "(ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" ( (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) )))) ;)) (case_statement "case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" case number_literal : (expression_statement "uVar1 = *(uint *)((long)param_1 + 3);" (assignment_expression "uVar1 = *(uint *)((long)param_1 + 3)" identifier = (pointer_expression "*(uint *)((long)param_1 + 3)" * (cast_expression "(uint *)((long)param_1 + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 3)" ( (binary_expression "(long)param_1 + 3" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (return_statement "return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" return (binary_expression "(ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (binary_expression "(ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30" (binary_expression "(ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 2) << 0x20" (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 *)((long)param_1 + 1) << 0x28" (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)*param_1 << 0x30" (binary_expression "(ulong)(byte)*param_1" (call_expression "(ulong)(byte)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier) << number_literal)) | (call_expression "(ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" ( (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) )))) ;)) (case_statement "case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;" case number_literal : (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (return_statement "return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;" return (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28" (binary_expression "uVar2 >> 0x38" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff000000000000) >> 0x28" (parenthesized_expression "(uVar2 & 0xff000000000000)" ( (binary_expression "uVar2 & 0xff000000000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff0000000000) >> 0x18" (parenthesized_expression "(uVar2 & 0xff0000000000)" ( (binary_expression "uVar2 & 0xff0000000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00000000) >> 8" (parenthesized_expression "(uVar2 & 0xff00000000)" ( (binary_expression "uVar2 & 0xff00000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff000000) << 8" (parenthesized_expression "(uVar2 & 0xff000000)" ( (binary_expression "uVar2 & 0xff000000" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar2 & 0xff0000) << 0x18" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar2 & 0xff00) << 0x28" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x38" identifier << number_literal)) ;)) })) })))
(translation_unit "elf_vma byte_get_big_endian(uchar *field,int size)\n\n{\n  uint uVar1;\n  ulong uVar2;\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)(*(ushort *)field << 8 | *(ushort *)field >> 8);\n  case 3:\n    return (ulong)field[1] << 8 | (ulong)*field << 0x10 | (ulong)field[2];\n  case 4:\n    uVar1 = *(uint *)field;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)(field + 1);\n    return (ulong)CONCAT14(*field,uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                                  uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)(field + 2);\n    return (ulong)field[1] << 0x20 | (ulong)*field << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)(field + 3);\n    return (ulong)field[2] << 0x20 | (ulong)field[1] << 0x28 | (ulong)*field << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *(ulong *)field;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }\n}\n\n" (function_definition "elf_vma byte_get_big_endian(uchar *field,int size)\n\n{\n  uint uVar1;\n  ulong uVar2;\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)(*(ushort *)field << 8 | *(ushort *)field >> 8);\n  case 3:\n    return (ulong)field[1] << 8 | (ulong)*field << 0x10 | (ulong)field[2];\n  case 4:\n    uVar1 = *(uint *)field;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)(field + 1);\n    return (ulong)CONCAT14(*field,uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                                  uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)(field + 2);\n    return (ulong)field[1] << 0x20 | (ulong)*field << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)(field + 3);\n    return (ulong)field[2] << 0x20 | (ulong)field[1] << 0x28 | (ulong)*field << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *(ulong *)field;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }\n}" type_identifier (function_declarator "byte_get_big_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  uint uVar1;\n  ulong uVar2;\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)(*(ushort *)field << 8 | *(ushort *)field >> 8);\n  case 3:\n    return (ulong)field[1] << 8 | (ulong)*field << 0x10 | (ulong)field[2];\n  case 4:\n    uVar1 = *(uint *)field;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)(field + 1);\n    return (ulong)CONCAT14(*field,uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                                  uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)(field + 2);\n    return (ulong)field[1] << 0x20 | (ulong)*field << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)(field + 3);\n    return (ulong)field[2] << 0x20 | (ulong)field[1] << 0x28 | (ulong)*field << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *(ulong *)field;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (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)(*(ushort *)field << 8 | *(ushort *)field >> 8);\n  case 3:\n    return (ulong)field[1] << 8 | (ulong)*field << 0x10 | (ulong)field[2];\n  case 4:\n    uVar1 = *(uint *)field;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)(field + 1);\n    return (ulong)CONCAT14(*field,uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                                  uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)(field + 2);\n    return (ulong)field[1] << 0x20 | (ulong)*field << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)(field + 3);\n    return (ulong)field[2] << 0x20 | (ulong)field[1] << 0x28 | (ulong)*field << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *(ulong *)field;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\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)(*(ushort *)field << 8 | *(ushort *)field >> 8);\n  case 3:\n    return (ulong)field[1] << 8 | (ulong)*field << 0x10 | (ulong)field[2];\n  case 4:\n    uVar1 = *(uint *)field;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)(field + 1);\n    return (ulong)CONCAT14(*field,uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                                  uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)(field + 2);\n    return (ulong)field[1] << 0x20 | (ulong)*field << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)(field + 3);\n    return (ulong)field[2] << 0x20 | (ulong)field[1] << 0x28 | (ulong)*field << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *(ulong *)field;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\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)(*(ushort *)field << 8 | *(ushort *)field >> 8);" case number_literal : (return_statement "return (ulong)(ushort)(*(ushort *)field << 8 | *(ushort *)field >> 8);" return (call_expression "(ulong)(ushort)(*(ushort *)field << 8 | *(ushort *)field >> 8)" (call_expression "(ulong)(ushort)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "(*(ushort *)field << 8 | *(ushort *)field >> 8)" ( (binary_expression "*(ushort *)field << 8 | *(ushort *)field >> 8" (binary_expression "*(ushort *)field << 8" (pointer_expression "*(ushort *)field" * (cast_expression "(ushort *)field" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) << number_literal) | (binary_expression "*(ushort *)field >> 8" (pointer_expression "*(ushort *)field" * (cast_expression "(ushort *)field" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) >> number_literal)) ))) ;)) (case_statement "case 3:\n    return (ulong)field[1] << 8 | (ulong)*field << 0x10 | (ulong)field[2];" case number_literal : (return_statement "return (ulong)field[1] << 8 | (ulong)*field << 0x10 | (ulong)field[2];" return (binary_expression "(ulong)field[1] << 8 | (ulong)*field << 0x10 | (ulong)field[2]" (binary_expression "(ulong)field[1] << 8 | (ulong)*field << 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 << 0x10" (binary_expression "(ulong)*field" (parenthesized_expression "(ulong)" ( identifier )) * identifier) << number_literal)) | (cast_expression "(ulong)field[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "field[2]" identifier [ number_literal ]))) ;)) (case_statement "case 4:\n    uVar1 = *(uint *)field;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" case number_literal : (expression_statement "uVar1 = *(uint *)field;" (assignment_expression "uVar1 = *(uint *)field" identifier = (pointer_expression "*(uint *)field" * (cast_expression "(uint *)field" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (return_statement "return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" return (call_expression "(ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" ( (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) ))) ;)) (case_statement "case 5:\n    uVar1 = *(uint *)(field + 1);\n    return (ulong)CONCAT14(*field,uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                                  uVar1 << 0x18);" case number_literal : (expression_statement "uVar1 = *(uint *)(field + 1);" (assignment_expression "uVar1 = *(uint *)(field + 1)" identifier = (pointer_expression "*(uint *)(field + 1)" * (cast_expression "(uint *)(field + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(field + 1)" ( (binary_expression "field + 1" identifier + number_literal) ))))) ;) (return_statement "return (ulong)CONCAT14(*field,uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                                  uVar1 << 0x18);" return (cast_expression "(ulong)CONCAT14(*field,uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                                  uVar1 << 0x18)" ( (type_descriptor "ulong" type_identifier) ) (call_expression "CONCAT14(*field,uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                                  uVar1 << 0x18)" identifier (argument_list "(*field,uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                                  uVar1 << 0x18)" ( (pointer_expression "*field" * identifier) , (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                                  uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) )))) ;)) (case_statement "case 6:\n    uVar1 = *(uint *)(field + 2);\n    return (ulong)field[1] << 0x20 | (ulong)*field << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" case number_literal : (expression_statement "uVar1 = *(uint *)(field + 2);" (assignment_expression "uVar1 = *(uint *)(field + 2)" identifier = (pointer_expression "*(uint *)(field + 2)" * (cast_expression "(uint *)(field + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(field + 2)" ( (binary_expression "field + 2" identifier + number_literal) ))))) ;) (return_statement "return (ulong)field[1] << 0x20 | (ulong)*field << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" return (binary_expression "(ulong)field[1] << 0x20 | (ulong)*field << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (binary_expression "(ulong)field[1] << 0x20 | (ulong)*field << 0x28" (binary_expression "(ulong)field[1] << 0x20" (cast_expression "(ulong)field[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "field[1]" identifier [ number_literal ])) << number_literal) | (binary_expression "(ulong)*field << 0x28" (binary_expression "(ulong)*field" (parenthesized_expression "(ulong)" ( identifier )) * identifier) << number_literal)) | (call_expression "(ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" ( (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) )))) ;)) (case_statement "case 7:\n    uVar1 = *(uint *)(field + 3);\n    return (ulong)field[2] << 0x20 | (ulong)field[1] << 0x28 | (ulong)*field << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" case number_literal : (expression_statement "uVar1 = *(uint *)(field + 3);" (assignment_expression "uVar1 = *(uint *)(field + 3)" identifier = (pointer_expression "*(uint *)(field + 3)" * (cast_expression "(uint *)(field + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(field + 3)" ( (binary_expression "field + 3" identifier + number_literal) ))))) ;) (return_statement "return (ulong)field[2] << 0x20 | (ulong)field[1] << 0x28 | (ulong)*field << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" return (binary_expression "(ulong)field[2] << 0x20 | (ulong)field[1] << 0x28 | (ulong)*field << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (binary_expression "(ulong)field[2] << 0x20 | (ulong)field[1] << 0x28 | (ulong)*field << 0x30" (binary_expression "(ulong)field[2] << 0x20 | (ulong)field[1] << 0x28" (binary_expression "(ulong)field[2] << 0x20" (cast_expression "(ulong)field[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "field[2]" identifier [ number_literal ])) << number_literal) | (binary_expression "(ulong)field[1] << 0x28" (cast_expression "(ulong)field[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "field[1]" identifier [ number_literal ])) << number_literal)) | (binary_expression "(ulong)*field << 0x30" (binary_expression "(ulong)*field" (parenthesized_expression "(ulong)" ( identifier )) * identifier) << number_literal)) | (call_expression "(ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" ( (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) )))) ;)) (case_statement "case 8:\n    uVar2 = *(ulong *)field;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;" case number_literal : (expression_statement "uVar2 = *(ulong *)field;" (assignment_expression "uVar2 = *(ulong *)field" identifier = (pointer_expression "*(ulong *)field" * (cast_expression "(ulong *)field" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (return_statement "return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;" return (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28" (binary_expression "uVar2 >> 0x38" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff000000000000) >> 0x28" (parenthesized_expression "(uVar2 & 0xff000000000000)" ( (binary_expression "uVar2 & 0xff000000000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff0000000000) >> 0x18" (parenthesized_expression "(uVar2 & 0xff0000000000)" ( (binary_expression "uVar2 & 0xff0000000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00000000) >> 8" (parenthesized_expression "(uVar2 & 0xff00000000)" ( (binary_expression "uVar2 & 0xff00000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff000000) << 8" (parenthesized_expression "(uVar2 & 0xff000000)" ( (binary_expression "uVar2 & 0xff000000" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar2 & 0xff0000) << 0x18" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar2 & 0xff00) << 0x28" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x38" identifier << number_literal)) ;)) })) })))
(translation_unit "ulong FUN_00103730(ulong *param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  undefined8 uVar3;\n  \n  switch(param_2) {\n  default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);\n  case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }\n}\n\n" (function_definition "ulong FUN_00103730(ulong *param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  undefined8 uVar3;\n  \n  switch(param_2) {\n  default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);\n  case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }\n}" type_identifier (function_declarator "FUN_00103730(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  uint uVar1;\n  ulong uVar2;\n  undefined8 uVar3;\n  \n  switch(param_2) {\n  default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);\n  case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (switch_statement "switch(param_2) {\n  default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);\n  case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }" switch (parenthesized_expression "(param_2)" ( identifier )) (compound_statement "{\n  default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);\n  case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }" { (case_statement "default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,param_2);\n                    \n    abort();" default : (expression_statement "uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);" (assignment_expression "uVar3 = 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(uVar3,param_2);" (call_expression "error(uVar3,param_2)" identifier (argument_list "(uVar3,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)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);" case number_literal : (return_statement "return (ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);" return (call_expression "(ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8)" (call_expression "(ulong)(ushort)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(ushort)" ( identifier ))) (argument_list "((ushort)*param_1 << 8 | (ushort)*param_1 >> 8)" ( (binary_expression "(ushort)*param_1 << 8 | (ushort)*param_1 >> 8" (binary_expression "(ushort)*param_1 << 8" (binary_expression "(ushort)*param_1" (parenthesized_expression "(ushort)" ( identifier )) * identifier) << number_literal) | (binary_expression "(ushort)*param_1 >> 8" (binary_expression "(ushort)*param_1" (parenthesized_expression "(ushort)" ( identifier )) * identifier) >> number_literal)) ))) ;)) (case_statement "case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);" case number_literal : (return_statement "return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);" return (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2)" (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 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)*param_1 << 0x10" (binary_expression "(ulong)(byte)*param_1" (call_expression "(ulong)(byte)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier) << number_literal)) | (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) ))))) ;)) (case_statement "case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" case number_literal : (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (return_statement "return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" return (call_expression "(ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" ( (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) ))) ;)) (case_statement "case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);" case number_literal : (expression_statement "uVar1 = *(uint *)((long)param_1 + 1);" (assignment_expression "uVar1 = *(uint *)((long)param_1 + 1)" identifier = (pointer_expression "*(uint *)((long)param_1 + 1)" * (cast_expression "(uint *)((long)param_1 + 1)" ( (type_descriptor "uint *" 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) ))))) ;) (return_statement "return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);" return (cast_expression "(ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18)" ( (type_descriptor "ulong" type_identifier) ) (call_expression "CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18)" identifier (argument_list "((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18)" ( (binary_expression "(byte)*param_1" (parenthesized_expression "(byte)" ( identifier )) * identifier) , (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) )))) ;)) (case_statement "case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" case number_literal : (expression_statement "uVar1 = *(uint *)((long)param_1 + 2);" (assignment_expression "uVar1 = *(uint *)((long)param_1 + 2)" identifier = (pointer_expression "*(uint *)((long)param_1 + 2)" * (cast_expression "(uint *)((long)param_1 + 2)" ( (type_descriptor "uint *" 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) ))))) ;) (return_statement "return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" return (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 0x20" (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)*param_1 << 0x28" (binary_expression "(ulong)(byte)*param_1" (call_expression "(ulong)(byte)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier) << number_literal)) | (call_expression "(ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" ( (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) )))) ;)) (case_statement "case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" case number_literal : (expression_statement "uVar1 = *(uint *)((long)param_1 + 3);" (assignment_expression "uVar1 = *(uint *)((long)param_1 + 3)" identifier = (pointer_expression "*(uint *)((long)param_1 + 3)" * (cast_expression "(uint *)((long)param_1 + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 3)" ( (binary_expression "(long)param_1 + 3" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (return_statement "return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" return (binary_expression "(ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (binary_expression "(ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30" (binary_expression "(ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 2) << 0x20" (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 *)((long)param_1 + 1) << 0x28" (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)*param_1 << 0x30" (binary_expression "(ulong)(byte)*param_1" (call_expression "(ulong)(byte)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier) << number_literal)) | (call_expression "(ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" ( (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal)) )))) ;)) (case_statement "case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;" case number_literal : (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (return_statement "return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;" return (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28" (binary_expression "uVar2 >> 0x38" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff000000000000) >> 0x28" (parenthesized_expression "(uVar2 & 0xff000000000000)" ( (binary_expression "uVar2 & 0xff000000000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff0000000000) >> 0x18" (parenthesized_expression "(uVar2 & 0xff0000000000)" ( (binary_expression "uVar2 & 0xff0000000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00000000) >> 8" (parenthesized_expression "(uVar2 & 0xff00000000)" ( (binary_expression "uVar2 & 0xff00000000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff000000) << 8" (parenthesized_expression "(uVar2 & 0xff000000)" ( (binary_expression "uVar2 & 0xff000000" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar2 & 0xff0000) << 0x18" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) << number_literal)) | (binary_expression "(uVar2 & 0xff00) << 0x28" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x38" identifier << number_literal)) ;)) })) })))
(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 ;) (declaration TYPE IDENT ;) (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 (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) << LIT) | (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) >> LIT)) ))) ;)) (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 (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) * IDENT) << LIT)) | (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) ))))) ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT)) ))) ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (binary_expression (parenthesized_expression ( IDENT )) * IDENT) , (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT)) )))) ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + 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 (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) * IDENT) << LIT)) | (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT)) )))) ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + 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 (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) * IDENT) << LIT)) | (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT)) )))) ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (return_statement return (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT)) ;)) })) })))
(function_definition "ulong FUN_00103730(ulong *param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  undefined8 uVar3;\n  \n  switch(param_2) {\n  default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);\n  case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }\n}" (type_identifier "ulong") (function_declarator "FUN_00103730(ulong *param_1,undefined4 param_2)" (identifier "FUN_00103730") (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  uint uVar1;\n  ulong uVar2;\n  undefined8 uVar3;\n  \n  switch(param_2) {\n  default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);\n  case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (switch_statement "switch(param_2) {\n  default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);\n  case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }" (switch "switch") (parenthesized_expression "(param_2)" (( "(") (identifier "param_2") () ")")) (compound_statement "{\n  default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,param_2);\n                    \n    abort();\n  case 1:\n    return (ulong)(byte)*param_1;\n  case 2:\n    return (ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);\n  case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);\n  case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);\n  case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);\n  case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;\n  }" ({ "{") (case_statement "default:\n    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);\n    error(uVar3,param_2);\n                    \n    abort();" (default "default") (: ":") (expression_statement "uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);" (assignment_expression "uVar3 = dcgettext(0,"Unhandled data length: %d\n",5)" (identifier "uVar3") (= "=") (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(uVar3,param_2);" (call_expression "error(uVar3,param_2)" (identifier "error") (argument_list "(uVar3,param_2)" (( "(") (identifier "uVar3") (, ",") (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)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);" (case "case") (number_literal "2") (: ":") (return_statement "return (ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);" (return "return") (call_expression "(ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8)" (call_expression "(ulong)(ushort)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(ushort)" (( "(") (identifier "ushort") () ")"))) (argument_list "((ushort)*param_1 << 8 | (ushort)*param_1 >> 8)" (( "(") (binary_expression "(ushort)*param_1 << 8 | (ushort)*param_1 >> 8" (binary_expression "(ushort)*param_1 << 8" (binary_expression "(ushort)*param_1" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (* "*") (identifier "param_1")) (<< "<<") (number_literal "8")) (| "|") (binary_expression "(ushort)*param_1 >> 8" (binary_expression "(ushort)*param_1" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (* "*") (identifier "param_1")) (>> ">>") (number_literal "8"))) () ")"))) (; ";"))) (case_statement "case 3:\n    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);" (case "case") (number_literal "3") (: ":") (return_statement "return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2);" (return "return") (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |\n           (ulong)*(byte *)((long)param_1 + 2)" (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 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)*param_1 << 0x10" (binary_expression "(ulong)(byte)*param_1" (call_expression "(ulong)(byte)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(byte)" (( "(") (identifier "byte") () ")"))) (* "*") (identifier "param_1")) (<< "<<") (number_literal "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")) () ")"))))) (; ";"))) (case_statement "case 4:\n    uVar1 = (uint)*param_1;\n    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" (case "case") (number_literal "4") (: ":") (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" (identifier "uVar1") (= "=") (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_1"))) (; ";")) (return_statement "return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" (return "return") (call_expression "(ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (( "(") (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" (identifier "uVar1") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" (( "(") (binary_expression "uVar1 & 0xff0000" (identifier "uVar1") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" (( "(") (binary_expression "uVar1 & 0xff00" (identifier "uVar1") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar1 << 0x18" (identifier "uVar1") (<< "<<") (number_literal "0x18"))) () ")"))) (; ";"))) (case_statement "case 5:\n    uVar1 = *(uint *)((long)param_1 + 1);\n    return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);" (case "case") (number_literal "5") (: ":") (expression_statement "uVar1 = *(uint *)((long)param_1 + 1);" (assignment_expression "uVar1 = *(uint *)((long)param_1 + 1)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)((long)param_1 + 1)" (* "*") (cast_expression "(uint *)((long)param_1 + 1)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (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")) () ")"))))) (; ";")) (return_statement "return (ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18);" (return "return") (cast_expression "(ulong)CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18)" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (call_expression "CONCAT14((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18)" (identifier "CONCAT14") (argument_list "((byte)*param_1,\n                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18)" (( "(") (binary_expression "(byte)*param_1" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (* "*") (identifier "param_1")) (, ",") (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |\n                           uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" (identifier "uVar1") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" (( "(") (binary_expression "uVar1 & 0xff0000" (identifier "uVar1") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" (( "(") (binary_expression "uVar1 & 0xff00" (identifier "uVar1") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar1 << 0x18" (identifier "uVar1") (<< "<<") (number_literal "0x18"))) () ")")))) (; ";"))) (case_statement "case 6:\n    uVar1 = *(uint *)((long)param_1 + 2);\n    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" (case "case") (number_literal "6") (: ":") (expression_statement "uVar1 = *(uint *)((long)param_1 + 2);" (assignment_expression "uVar1 = *(uint *)((long)param_1 + 2)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)((long)param_1 + 2)" (* "*") (cast_expression "(uint *)((long)param_1 + 2)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (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")) () ")"))))) (; ";")) (return_statement "return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" (return "return") (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 0x20" (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 "0x20")) (| "|") (binary_expression "(ulong)(byte)*param_1 << 0x28" (binary_expression "(ulong)(byte)*param_1" (call_expression "(ulong)(byte)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(byte)" (( "(") (identifier "byte") () ")"))) (* "*") (identifier "param_1")) (<< "<<") (number_literal "0x28"))) (| "|") (call_expression "(ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (( "(") (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" (identifier "uVar1") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" (( "(") (binary_expression "uVar1 & 0xff0000" (identifier "uVar1") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" (( "(") (binary_expression "uVar1 & 0xff00" (identifier "uVar1") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar1 << 0x18" (identifier "uVar1") (<< "<<") (number_literal "0x18"))) () ")")))) (; ";"))) (case_statement "case 7:\n    uVar1 = *(uint *)((long)param_1 + 3);\n    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" (case "case") (number_literal "7") (: ":") (expression_statement "uVar1 = *(uint *)((long)param_1 + 3);" (assignment_expression "uVar1 = *(uint *)((long)param_1 + 3)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)((long)param_1 + 3)" (* "*") (cast_expression "(uint *)((long)param_1 + 3)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 3)" (( "(") (binary_expression "(long)param_1 + 3" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "3")) () ")"))))) (; ";")) (return_statement "return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);" (return "return") (binary_expression "(ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30 |\n           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (binary_expression "(ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28\n           | (ulong)(byte)*param_1 << 0x30" (binary_expression "(ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28" (binary_expression "(ulong)*(byte *)((long)param_1 + 2) << 0x20" (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 "0x20")) (| "|") (binary_expression "(ulong)*(byte *)((long)param_1 + 1) << 0x28" (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 "0x28"))) (| "|") (binary_expression "(ulong)(byte)*param_1 << 0x30" (binary_expression "(ulong)(byte)*param_1" (call_expression "(ulong)(byte)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(byte)" (( "(") (identifier "byte") () ")"))) (* "*") (identifier "param_1")) (<< "<<") (number_literal "0x30"))) (| "|") (call_expression "(ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18)" (( "(") (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" (identifier "uVar1") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" (( "(") (binary_expression "uVar1 & 0xff0000" (identifier "uVar1") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" (( "(") (binary_expression "uVar1 & 0xff00" (identifier "uVar1") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar1 << 0x18" (identifier "uVar1") (<< "<<") (number_literal "0x18"))) () ")")))) (; ";"))) (case_statement "case 8:\n    uVar2 = *param_1;\n    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;" (case "case") (number_literal "8") (: ":") (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" (identifier "uVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (return_statement "return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;" (return "return") (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |\n           (uVar2 & 0xff00) << 0x28" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |\n           (uVar2 & 0xff00000000) >> 8" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18" (binary_expression "uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28" (binary_expression "uVar2 >> 0x38" (identifier "uVar2") (>> ">>") (number_literal "0x38")) (| "|") (binary_expression "(uVar2 & 0xff000000000000) >> 0x28" (parenthesized_expression "(uVar2 & 0xff000000000000)" (( "(") (binary_expression "uVar2 & 0xff000000000000" (identifier "uVar2") (& "&") (number_literal "0xff000000000000")) () ")")) (>> ">>") (number_literal "0x28"))) (| "|") (binary_expression "(uVar2 & 0xff0000000000) >> 0x18" (parenthesized_expression "(uVar2 & 0xff0000000000)" (( "(") (binary_expression "uVar2 & 0xff0000000000" (identifier "uVar2") (& "&") (number_literal "0xff0000000000")) () ")")) (>> ">>") (number_literal "0x18"))) (| "|") (binary_expression "(uVar2 & 0xff00000000) >> 8" (parenthesized_expression "(uVar2 & 0xff00000000)" (( "(") (binary_expression "uVar2 & 0xff00000000" (identifier "uVar2") (& "&") (number_literal "0xff00000000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar2 & 0xff000000) << 8" (parenthesized_expression "(uVar2 & 0xff000000)" (( "(") (binary_expression "uVar2 & 0xff000000" (identifier "uVar2") (& "&") (number_literal "0xff000000")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "(uVar2 & 0xff0000) << 0x18" (parenthesized_expression "(uVar2 & 0xff0000)" (( "(") (binary_expression "uVar2 & 0xff0000" (identifier "uVar2") (& "&") (number_literal "0xff0000")) () ")")) (<< "<<") (number_literal "0x18"))) (| "|") (binary_expression "(uVar2 & 0xff00) << 0x28" (parenthesized_expression "(uVar2 & 0xff00)" (( "(") (binary_expression "uVar2 & 0xff00" (identifier "uVar2") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "0x28"))) (| "|") (binary_expression "uVar2 << 0x38" (identifier "uVar2") (<< "<<") (number_literal "0x38"))) (; ";"))) (} "}"))) (} "}")))

type_1 function_1(type_2 *var_4,int size)

{
  type_3 var_5;
  type_4 var_7;
  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_5)(*(type_5 *)var_4 << 8 | *(type_5 *)var_4 >> 8);
  case 3:
    return (type_4)var_4[1] << 8 | (type_4)*var_4 << 0x10 | (type_4)var_4[2];
  case 4:
    var_5 = *(type_3 *)var_4;
    return (type_4)(var_5 >> 0x18 | (var_5 & 0xff0000) >> 8 | (var_5 & 0xff00) << 8 | var_5 << 0x18);
  case 5:
    var_5 = *(type_3 *)(var_4 + 1);
    return (type_4)var_6(*var_4,var_5 >> 0x18 | (var_5 & 0xff0000) >> 8 | (var_5 & 0xff00) << 8 |
                                  var_5 << 0x18);
  case 6:
    var_5 = *(type_3 *)(var_4 + 2);
    return (type_4)var_4[1] << 0x20 | (type_4)*var_4 << 0x28 |
           (type_4)(var_5 >> 0x18 | (var_5 & 0xff0000) >> 8 | (var_5 & 0xff00) << 8 | var_5 << 0x18);
  case 7:
    var_5 = *(type_3 *)(var_4 + 3);
    return (type_4)var_4[2] << 0x20 | (type_4)var_4[1] << 0x28 | (type_4)*var_4 << 0x30 |
           (type_4)(var_5 >> 0x18 | (var_5 & 0xff0000) >> 8 | (var_5 & 0xff00) << 8 | var_5 << 0x18);
  case 8:
    var_7 = *(type_4 *)var_4;
    return var_7 >> 0x38 | (var_7 & 0xff000000000000) >> 0x28 | (var_7 & 0xff0000000000) >> 0x18 |
           (var_7 & 0xff00000000) >> 8 | (var_7 & 0xff000000) << 8 | (var_7 & 0xff0000) << 0x18 |
           (var_7 & 0xff00) << 0x28 | var_7 << 0x38;
  }
}


(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)) (declaration type: (type_identifier) declarator: (identifier)) (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 (call_expression function: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (identifier))) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal)) right: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal))))))) (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: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (identifier))) right: (identifier)) right: (number_literal))) 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: (sized_type_specifier)) value: (identifier)) right: (number_literal)))))))) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal))))))) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))))))) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (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: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (identifier))) right: (identifier)) right: (number_literal))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))))))) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (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: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (identifier))) right: (identifier)) right: (number_literal))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))))))) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (return_statement (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal))))))))))

ulong MASKED(ulong *param_1,undefined4 param_2)

{
  uint uVar1;
  ulong uVar2;
  undefined8 uVar3;
  
  switch(param_2) {
  default:
    uVar3 = dcgettext(0,"Unhandled data length: %d\n",5);
    error(uVar3,param_2);
                    /* WARNING: Subroutine does not return */
    abort();
  case 1:
    return (ulong)(byte)*param_1;
  case 2:
    return (ulong)(ushort)((ushort)*param_1 << 8 | (ushort)*param_1 >> 8);
  case 3:
    return (ulong)*(byte *)((long)param_1 + 1) << 8 | (ulong)(byte)*param_1 << 0x10 |
           (ulong)*(byte *)((long)param_1 + 2);
  case 4:
    uVar1 = (uint)*param_1;
    return (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);
  case 5:
    uVar1 = *(uint *)((long)param_1 + 1);
    return (ulong)CONCAT14((byte)*param_1,
                           uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 |
                           uVar1 << 0x18);
  case 6:
    uVar1 = *(uint *)((long)param_1 + 2);
    return (ulong)*(byte *)((long)param_1 + 1) << 0x20 | (ulong)(byte)*param_1 << 0x28 |
           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);
  case 7:
    uVar1 = *(uint *)((long)param_1 + 3);
    return (ulong)*(byte *)((long)param_1 + 2) << 0x20 | (ulong)*(byte *)((long)param_1 + 1) << 0x28
           | (ulong)(byte)*param_1 << 0x30 |
           (ulong)(uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18);
  case 8:
    uVar2 = *param_1;
    return uVar2 >> 0x38 | (uVar2 & 0xff000000000000) >> 0x28 | (uVar2 & 0xff0000000000) >> 0x18 |
           (uVar2 & 0xff00000000) >> 8 | (uVar2 & 0xff000000) << 8 | (uVar2 & 0xff0000) << 0x18 |
           (uVar2 & 0xff00) << 0x28 | uVar2 << 0x38;
  }
}

