
/* get_ttype_entry(lsda_header_info*, unsigned long) */

ulong get_ttype_entry(lsda_header_info *param_1,ulong param_2)

{
  lsda_header_info lVar1;
  byte bVar2;
  long lVar3;
  ulong local_10 [2];
  
  lVar1 = param_1[0x28];
  if (lVar1 == (lsda_header_info)0xff) {
    lVar3 = 0;
  }
  else {
    bVar2 = (byte)lVar1 & 7;
    if (bVar2 == 2) {
      lVar3 = param_2 * -2;
    }
    else {
      if (bVar2 < 3) {
        if (bVar2 != 0) {
LAB_002a18ac:
                    /* WARNING: Subroutine does not return */
          abort();
        }
      }
      else {
        lVar3 = param_2 * -4;
        if (bVar2 == 3) goto LAB_002a186b;
        if (bVar2 != 4) goto LAB_002a18ac;
      }
      lVar3 = param_2 * -8;
    }
  }
LAB_002a186b:
  read_encoded_value_with_base
            ((uchar)lVar1,*(ulong *)(param_1 + 0x10),(uchar *)(lVar3 + *(long *)(param_1 + 0x18)),
             local_10);
  return local_10[0];
}



undefined8 FUN_002a1840(long param_1,long param_2)

{
  byte bVar1;
  byte bVar2;
  long lVar3;
  undefined8 local_10 [2];
  
  bVar1 = *(byte *)(param_1 + 0x28);
  if (bVar1 == 0xff) {
    lVar3 = 0;
  }
  else {
    bVar2 = bVar1 & 7;
    if (bVar2 == 2) {
      lVar3 = param_2 * -2;
    }
    else {
      if (bVar2 < 3) {
        if (bVar2 != 0) {
LAB_002a18ac:
                    /* WARNING: Subroutine does not return */
          abort();
        }
      }
      else {
        lVar3 = param_2 * -4;
        if (bVar2 == 3) goto LAB_002a186b;
        if (bVar2 != 4) goto LAB_002a18ac;
      }
      lVar3 = param_2 * -8;
    }
  }
LAB_002a186b:
  FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10);
  return local_10[0];
}


SUB RSP,0x18
MOV R8,RDI
MOVZX EDI,byte ptr [RDI + 0x28]
CMP DIL,0xff
JZ 0x002a18c8
MOV EAX,EDI
AND EAX,0x7
CMP AL,0x2
JZ 0x002a18b8
JBE 0x002a1890
LEA RDX,[RSI*0x4]
NEG RDX
CMP AL,0x3
JNZ 0x002a18a8
MOV RSI,qword ptr [R8 + 0x10]
LEA RCX,[RSP + 0x8]
ADD RDX,qword ptr [R8 + 0x18]
CALL 0x002a16f0
MOV RAX,qword ptr [RSP + 0x8]
ADD RSP,0x18
RET
TEST AL,AL
JNZ 0x002a18ac
LEA RDX,[RSI*0x8]
NEG RDX
JMP 0x002a186b
CMP AL,0x4
JZ 0x002a1894
CALL 0x001441a0
LEA RDX,[RSI + RSI*0x1]
NEG RDX
JMP 0x002a186b
XOR EDX,EDX
JMP 0x002a186b
(translation_unit "undefined8 FUN_002a1840(long param_1,long param_2)\n\n{\n  byte bVar1;\n  byte bVar2;\n  long lVar3;\n  undefined8 local_10 [2];\n  \n  bVar1 = *(byte *)(param_1 + 0x28);\n  if (bVar1 == 0xff) {\n    lVar3 = 0;\n  }\n  else {\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }\nLAB_002a186b:\n  FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10);\n  return local_10[0];\n}\n\n" (function_definition "undefined8 FUN_002a1840(long param_1,long param_2)\n\n{\n  byte bVar1;\n  byte bVar2;\n  long lVar3;\n  undefined8 local_10 [2];\n  \n  bVar1 = *(byte *)(param_1 + 0x28);\n  if (bVar1 == 0xff) {\n    lVar3 = 0;\n  }\n  else {\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }\nLAB_002a186b:\n  FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10);\n  return local_10[0];\n}" type_identifier (function_declarator "FUN_002a1840(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  long lVar3;\n  undefined8 local_10 [2];\n  \n  bVar1 = *(byte *)(param_1 + 0x28);\n  if (bVar1 == 0xff) {\n    lVar3 = 0;\n  }\n  else {\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }\nLAB_002a186b:\n  FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10);\n  return local_10[0];\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_10 [2];" type_identifier (array_declarator "local_10 [2]" identifier [ number_literal ]) ;) (expression_statement "bVar1 = *(byte *)(param_1 + 0x28);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0x28)" identifier = (pointer_expression "*(byte *)(param_1 + 0x28)" * (cast_expression "(byte *)(param_1 + 0x28)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (bVar1 == 0xff) {\n    lVar3 = 0;\n  }\n  else {\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }" if (parenthesized_expression "(bVar1 == 0xff)" ( (binary_expression "bVar1 == 0xff" identifier == number_literal) )) (compound_statement "{\n    lVar3 = 0;\n  }" { (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }" else (compound_statement "{\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }" { (expression_statement "bVar2 = bVar1 & 7;" (assignment_expression "bVar2 = bVar1 & 7" identifier = (binary_expression "bVar1 & 7" identifier & number_literal)) ;) (if_statement "if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }" if (parenthesized_expression "(bVar2 == 2)" ( (binary_expression "bVar2 == 2" identifier == number_literal) )) (compound_statement "{\n      lVar3 = param_2 * -2;\n    }" { (expression_statement "lVar3 = param_2 * -2;" (assignment_expression "lVar3 = param_2 * -2" identifier = (binary_expression "param_2 * -2" identifier * number_literal)) ;) }) (else_clause "else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }" else (compound_statement "{\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }" { (if_statement "if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }" if (parenthesized_expression "(bVar2 < 3)" ( (binary_expression "bVar2 < 3" identifier < number_literal) )) (compound_statement "{\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }" { (if_statement "if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }" if (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }" { (labeled_statement "LAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();" statement_identifier : comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) }) (else_clause "else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }" else (compound_statement "{\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }" { (expression_statement "lVar3 = param_2 * -4;" (assignment_expression "lVar3 = param_2 * -4" identifier = (binary_expression "param_2 * -4" identifier * number_literal)) ;) (if_statement "if (bVar2 == 3) goto LAB_002a186b;" if (parenthesized_expression "(bVar2 == 3)" ( (binary_expression "bVar2 == 3" identifier == number_literal) )) (goto_statement "goto LAB_002a186b;" goto statement_identifier ;)) (if_statement "if (bVar2 != 4) goto LAB_002a18ac;" if (parenthesized_expression "(bVar2 != 4)" ( (binary_expression "bVar2 != 4" identifier != number_literal) )) (goto_statement "goto LAB_002a18ac;" goto statement_identifier ;)) }))) (expression_statement "lVar3 = param_2 * -8;" (assignment_expression "lVar3 = param_2 * -8" identifier = (binary_expression "param_2 * -8" identifier * number_literal)) ;) }))) }))) (labeled_statement "LAB_002a186b:\n  FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10);" statement_identifier : (expression_statement "FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10);" (call_expression "FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10)" identifier (argument_list "(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10)" ( identifier , (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (binary_expression "lVar3 + *(long *)(param_1 + 0x18)" identifier + (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) , identifier ))) ;)) (return_statement "return local_10[0];" return (subscript_expression "local_10[0]" identifier [ number_literal ]) ;) })))
(translation_unit "/* get_ttype_entry(lsda_header_info*, unsigned long) */\n\nulong get_ttype_entry(lsda_header_info *param_1,ulong param_2)\n\n{\n  lsda_header_info lVar1;\n  byte bVar2;\n  long lVar3;\n  ulong local_10 [2];\n  \n  lVar1 = param_1[0x28];\n  if (lVar1 == (lsda_header_info)0xff) {\n    lVar3 = 0;\n  }\n  else {\n    bVar2 = (byte)lVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }\nLAB_002a186b:\n  read_encoded_value_with_base\n            ((uchar)lVar1,*(ulong *)(param_1 + 0x10),(uchar *)(lVar3 + *(long *)(param_1 + 0x18)),\n             local_10);\n  return local_10[0];\n}\n\n" comment (function_definition "ulong get_ttype_entry(lsda_header_info *param_1,ulong param_2)\n\n{\n  lsda_header_info lVar1;\n  byte bVar2;\n  long lVar3;\n  ulong local_10 [2];\n  \n  lVar1 = param_1[0x28];\n  if (lVar1 == (lsda_header_info)0xff) {\n    lVar3 = 0;\n  }\n  else {\n    bVar2 = (byte)lVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }\nLAB_002a186b:\n  read_encoded_value_with_base\n            ((uchar)lVar1,*(ulong *)(param_1 + 0x10),(uchar *)(lVar3 + *(long *)(param_1 + 0x18)),\n             local_10);\n  return local_10[0];\n}" type_identifier (function_declarator "get_ttype_entry(lsda_header_info *param_1,ulong param_2)" identifier (parameter_list "(lsda_header_info *param_1,ulong param_2)" ( (parameter_declaration "lsda_header_info *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  lsda_header_info lVar1;\n  byte bVar2;\n  long lVar3;\n  ulong local_10 [2];\n  \n  lVar1 = param_1[0x28];\n  if (lVar1 == (lsda_header_info)0xff) {\n    lVar3 = 0;\n  }\n  else {\n    bVar2 = (byte)lVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }\nLAB_002a186b:\n  read_encoded_value_with_base\n            ((uchar)lVar1,*(ulong *)(param_1 + 0x10),(uchar *)(lVar3 + *(long *)(param_1 + 0x18)),\n             local_10);\n  return local_10[0];\n}" { (declaration "lsda_header_info lVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong local_10 [2];" type_identifier (array_declarator "local_10 [2]" identifier [ number_literal ]) ;) (expression_statement "lVar1 = param_1[0x28];" (assignment_expression "lVar1 = param_1[0x28]" identifier = (subscript_expression "param_1[0x28]" identifier [ number_literal ])) ;) (if_statement "if (lVar1 == (lsda_header_info)0xff) {\n    lVar3 = 0;\n  }\n  else {\n    bVar2 = (byte)lVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }" if (parenthesized_expression "(lVar1 == (lsda_header_info)0xff)" ( (binary_expression "lVar1 == (lsda_header_info)0xff" identifier == (cast_expression "(lsda_header_info)0xff" ( (type_descriptor "lsda_header_info" type_identifier) ) number_literal)) )) (compound_statement "{\n    lVar3 = 0;\n  }" { (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    bVar2 = (byte)lVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }" else (compound_statement "{\n    bVar2 = (byte)lVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }" { (expression_statement "bVar2 = (byte)lVar1 & 7;" (assignment_expression "bVar2 = (byte)lVar1 & 7" identifier = (binary_expression "(byte)lVar1 & 7" (cast_expression "(byte)lVar1" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) (if_statement "if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }" if (parenthesized_expression "(bVar2 == 2)" ( (binary_expression "bVar2 == 2" identifier == number_literal) )) (compound_statement "{\n      lVar3 = param_2 * -2;\n    }" { (expression_statement "lVar3 = param_2 * -2;" (assignment_expression "lVar3 = param_2 * -2" identifier = (binary_expression "param_2 * -2" identifier * number_literal)) ;) }) (else_clause "else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }" else (compound_statement "{\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }" { (if_statement "if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }" if (parenthesized_expression "(bVar2 < 3)" ( (binary_expression "bVar2 < 3" identifier < number_literal) )) (compound_statement "{\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }\n      }" { (if_statement "if (bVar2 != 0) {\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }" if (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();\n        }" { (labeled_statement "LAB_002a18ac:\n                    /* WARNING: Subroutine does not return */\n          abort();" statement_identifier : comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) }) (else_clause "else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }" else (compound_statement "{\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }" { (expression_statement "lVar3 = param_2 * -4;" (assignment_expression "lVar3 = param_2 * -4" identifier = (binary_expression "param_2 * -4" identifier * number_literal)) ;) (if_statement "if (bVar2 == 3) goto LAB_002a186b;" if (parenthesized_expression "(bVar2 == 3)" ( (binary_expression "bVar2 == 3" identifier == number_literal) )) (goto_statement "goto LAB_002a186b;" goto statement_identifier ;)) (if_statement "if (bVar2 != 4) goto LAB_002a18ac;" if (parenthesized_expression "(bVar2 != 4)" ( (binary_expression "bVar2 != 4" identifier != number_literal) )) (goto_statement "goto LAB_002a18ac;" goto statement_identifier ;)) }))) (expression_statement "lVar3 = param_2 * -8;" (assignment_expression "lVar3 = param_2 * -8" identifier = (binary_expression "param_2 * -8" identifier * number_literal)) ;) }))) }))) (labeled_statement "LAB_002a186b:\n  read_encoded_value_with_base\n            ((uchar)lVar1,*(ulong *)(param_1 + 0x10),(uchar *)(lVar3 + *(long *)(param_1 + 0x18)),\n             local_10);" statement_identifier : (expression_statement "read_encoded_value_with_base\n            ((uchar)lVar1,*(ulong *)(param_1 + 0x10),(uchar *)(lVar3 + *(long *)(param_1 + 0x18)),\n             local_10);" (call_expression "read_encoded_value_with_base\n            ((uchar)lVar1,*(ulong *)(param_1 + 0x10),(uchar *)(lVar3 + *(long *)(param_1 + 0x18)),\n             local_10)" identifier (argument_list "((uchar)lVar1,*(ulong *)(param_1 + 0x10),(uchar *)(lVar3 + *(long *)(param_1 + 0x18)),\n             local_10)" ( (cast_expression "(uchar)lVar1" ( (type_descriptor "uchar" type_identifier) ) identifier) , (pointer_expression "*(ulong *)(param_1 + 0x10)" * (cast_expression "(ulong *)(param_1 + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (cast_expression "(uchar *)(lVar3 + *(long *)(param_1 + 0x18))" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + *(long *)(param_1 + 0x18))" ( (binary_expression "lVar3 + *(long *)(param_1 + 0x18)" identifier + (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ))) , identifier ))) ;)) (return_statement "return local_10[0];" return (subscript_expression "local_10[0]" identifier [ number_literal ]) ;) })))
(translation_unit "undefined8 FUN_002a1840(long param_1,long param_2)\n\n{\n  byte bVar1;\n  byte bVar2;\n  long lVar3;\n  undefined8 local_10 [2];\n  \n  bVar1 = *(byte *)(param_1 + 0x28);\n  if (bVar1 == 0xff) {\n    lVar3 = 0;\n  }\n  else {\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }\nLAB_002a186b:\n  FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10);\n  return local_10[0];\n}\n\n" (function_definition "undefined8 FUN_002a1840(long param_1,long param_2)\n\n{\n  byte bVar1;\n  byte bVar2;\n  long lVar3;\n  undefined8 local_10 [2];\n  \n  bVar1 = *(byte *)(param_1 + 0x28);\n  if (bVar1 == 0xff) {\n    lVar3 = 0;\n  }\n  else {\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }\nLAB_002a186b:\n  FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10);\n  return local_10[0];\n}" type_identifier (function_declarator "FUN_002a1840(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  long lVar3;\n  undefined8 local_10 [2];\n  \n  bVar1 = *(byte *)(param_1 + 0x28);\n  if (bVar1 == 0xff) {\n    lVar3 = 0;\n  }\n  else {\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }\nLAB_002a186b:\n  FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10);\n  return local_10[0];\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_10 [2];" type_identifier (array_declarator "local_10 [2]" identifier [ number_literal ]) ;) (expression_statement "bVar1 = *(byte *)(param_1 + 0x28);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0x28)" identifier = (pointer_expression "*(byte *)(param_1 + 0x28)" * (cast_expression "(byte *)(param_1 + 0x28)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (bVar1 == 0xff) {\n    lVar3 = 0;\n  }\n  else {\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }" if (parenthesized_expression "(bVar1 == 0xff)" ( (binary_expression "bVar1 == 0xff" identifier == number_literal) )) (compound_statement "{\n    lVar3 = 0;\n  }" { (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }" else (compound_statement "{\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }" { (expression_statement "bVar2 = bVar1 & 7;" (assignment_expression "bVar2 = bVar1 & 7" identifier = (binary_expression "bVar1 & 7" identifier & number_literal)) ;) (if_statement "if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }" if (parenthesized_expression "(bVar2 == 2)" ( (binary_expression "bVar2 == 2" identifier == number_literal) )) (compound_statement "{\n      lVar3 = param_2 * -2;\n    }" { (expression_statement "lVar3 = param_2 * -2;" (assignment_expression "lVar3 = param_2 * -2" identifier = (binary_expression "param_2 * -2" identifier * number_literal)) ;) }) (else_clause "else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }" else (compound_statement "{\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }" { (if_statement "if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }" if (parenthesized_expression "(bVar2 < 3)" ( (binary_expression "bVar2 < 3" identifier < number_literal) )) (compound_statement "{\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }" { (if_statement "if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }" if (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_002a18ac:\n                    \n          abort();\n        }" { (labeled_statement "LAB_002a18ac:\n                    \n          abort();" statement_identifier : (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) }) (else_clause "else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }" else (compound_statement "{\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }" { (expression_statement "lVar3 = param_2 * -4;" (assignment_expression "lVar3 = param_2 * -4" identifier = (binary_expression "param_2 * -4" identifier * number_literal)) ;) (if_statement "if (bVar2 == 3) goto LAB_002a186b;" if (parenthesized_expression "(bVar2 == 3)" ( (binary_expression "bVar2 == 3" identifier == number_literal) )) (goto_statement "goto LAB_002a186b;" goto statement_identifier ;)) (if_statement "if (bVar2 != 4) goto LAB_002a18ac;" if (parenthesized_expression "(bVar2 != 4)" ( (binary_expression "bVar2 != 4" identifier != number_literal) )) (goto_statement "goto LAB_002a18ac;" goto statement_identifier ;)) }))) (expression_statement "lVar3 = param_2 * -8;" (assignment_expression "lVar3 = param_2 * -8" identifier = (binary_expression "param_2 * -8" identifier * number_literal)) ;) }))) }))) (labeled_statement "LAB_002a186b:\n  FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10);" statement_identifier : (expression_statement "FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10);" (call_expression "FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10)" identifier (argument_list "(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10)" ( identifier , (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (binary_expression "lVar3 + *(long *)(param_1 + 0x18)" identifier + (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) , identifier ))) ;)) (return_statement "return local_10[0];" return (subscript_expression "local_10[0]" identifier [ number_literal ]) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) }))) }))) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , IDENT ))) ;)) (return_statement return (subscript_expression IDENT [ LIT ]) ;) })))
(function_definition "undefined8 FUN_002a1840(long param_1,long param_2)\n\n{\n  byte bVar1;\n  byte bVar2;\n  long lVar3;\n  undefined8 local_10 [2];\n  \n  bVar1 = *(byte *)(param_1 + 0x28);\n  if (bVar1 == 0xff) {\n    lVar3 = 0;\n  }\n  else {\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }\nLAB_002a186b:\n  FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10);\n  return local_10[0];\n}" (type_identifier "undefined8") (function_declarator "FUN_002a1840(long param_1,long param_2)" (identifier "FUN_002a1840") (parameter_list "(long param_1,long param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  byte bVar1;\n  byte bVar2;\n  long lVar3;\n  undefined8 local_10 [2];\n  \n  bVar1 = *(byte *)(param_1 + 0x28);\n  if (bVar1 == 0xff) {\n    lVar3 = 0;\n  }\n  else {\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }\nLAB_002a186b:\n  FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10);\n  return local_10[0];\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "undefined8 local_10 [2];" (type_identifier "undefined8") (array_declarator "local_10 [2]" (identifier "local_10") ([ "[") (number_literal "2") (] "]")) (; ";")) (expression_statement "bVar1 = *(byte *)(param_1 + 0x28);" (assignment_expression "bVar1 = *(byte *)(param_1 + 0x28)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(param_1 + 0x28)" (* "*") (cast_expression "(byte *)(param_1 + 0x28)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (bVar1 == 0xff) {\n    lVar3 = 0;\n  }\n  else {\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }" (if "if") (parenthesized_expression "(bVar1 == 0xff)" (( "(") (binary_expression "bVar1 == 0xff" (identifier "bVar1") (== "==") (number_literal "0xff")) () ")")) (compound_statement "{\n    lVar3 = 0;\n  }" ({ "{") (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" (identifier "lVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }" (else "else") (compound_statement "{\n    bVar2 = bVar1 & 7;\n    if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }\n  }" ({ "{") (expression_statement "bVar2 = bVar1 & 7;" (assignment_expression "bVar2 = bVar1 & 7" (identifier "bVar2") (= "=") (binary_expression "bVar1 & 7" (identifier "bVar1") (& "&") (number_literal "7"))) (; ";")) (if_statement "if (bVar2 == 2) {\n      lVar3 = param_2 * -2;\n    }\n    else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }" (if "if") (parenthesized_expression "(bVar2 == 2)" (( "(") (binary_expression "bVar2 == 2" (identifier "bVar2") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      lVar3 = param_2 * -2;\n    }" ({ "{") (expression_statement "lVar3 = param_2 * -2;" (assignment_expression "lVar3 = param_2 * -2" (identifier "lVar3") (= "=") (binary_expression "param_2 * -2" (identifier "param_2") (* "*") (number_literal "-2"))) (; ";")) (} "}")) (else_clause "else {\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }" (else "else") (compound_statement "{\n      if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }\n      lVar3 = param_2 * -8;\n    }" ({ "{") (if_statement "if (bVar2 < 3) {\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }\n      else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }" (if "if") (parenthesized_expression "(bVar2 < 3)" (( "(") (binary_expression "bVar2 < 3" (identifier "bVar2") (< "<") (number_literal "3")) () ")")) (compound_statement "{\n        if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }\n      }" ({ "{") (if_statement "if (bVar2 != 0) {\nLAB_002a18ac:\n                    \n          abort();\n        }" (if "if") (parenthesized_expression "(bVar2 != 0)" (( "(") (binary_expression "bVar2 != 0" (identifier "bVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_002a18ac:\n                    \n          abort();\n        }" ({ "{") (labeled_statement "LAB_002a18ac:\n                    \n          abort();" (statement_identifier "LAB_002a18ac") (: ":") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (} "}")) (else_clause "else {\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }" (else "else") (compound_statement "{\n        lVar3 = param_2 * -4;\n        if (bVar2 == 3) goto LAB_002a186b;\n        if (bVar2 != 4) goto LAB_002a18ac;\n      }" ({ "{") (expression_statement "lVar3 = param_2 * -4;" (assignment_expression "lVar3 = param_2 * -4" (identifier "lVar3") (= "=") (binary_expression "param_2 * -4" (identifier "param_2") (* "*") (number_literal "-4"))) (; ";")) (if_statement "if (bVar2 == 3) goto LAB_002a186b;" (if "if") (parenthesized_expression "(bVar2 == 3)" (( "(") (binary_expression "bVar2 == 3" (identifier "bVar2") (== "==") (number_literal "3")) () ")")) (goto_statement "goto LAB_002a186b;" (goto "goto") (statement_identifier "LAB_002a186b") (; ";"))) (if_statement "if (bVar2 != 4) goto LAB_002a18ac;" (if "if") (parenthesized_expression "(bVar2 != 4)" (( "(") (binary_expression "bVar2 != 4" (identifier "bVar2") (!= "!=") (number_literal "4")) () ")")) (goto_statement "goto LAB_002a18ac;" (goto "goto") (statement_identifier "LAB_002a18ac") (; ";"))) (} "}")))) (expression_statement "lVar3 = param_2 * -8;" (assignment_expression "lVar3 = param_2 * -8" (identifier "lVar3") (= "=") (binary_expression "param_2 * -8" (identifier "param_2") (* "*") (number_literal "-8"))) (; ";")) (} "}")))) (} "}")))) (labeled_statement "LAB_002a186b:\n  FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10);" (statement_identifier "LAB_002a186b") (: ":") (expression_statement "FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10);" (call_expression "FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10)" (identifier "FUN_002a16f0") (argument_list "(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10)" (( "(") (identifier "bVar1") (, ",") (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (binary_expression "lVar3 + *(long *)(param_1 + 0x18)" (identifier "lVar3") (+ "+") (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (, ",") (identifier "local_10") () ")"))) (; ";"))) (return_statement "return local_10[0];" (return "return") (subscript_expression "local_10[0]" (identifier "local_10") ([ "[") (number_literal "0") (] "]")) (; ";")) (} "}")))

/* get_ttype_entry(lsda_header_info*, unsigned long) */

type_1 function_1(type_2 *var_6,type_1 var_3)

{
  type_2 var_1;
  type_3 var_2;
  long var_7;
  type_1 local_10 [2];
  
  var_1 = var_6[0x28];
  if (var_1 == (type_2)0xff) {
    var_7 = 0;
  }
  else {
    var_2 = (type_3)var_1 & 7;
    if (var_2 == 2) {
      var_7 = var_3 * -2;
    }
    else {
      if (var_2 < 3) {
        if (var_2 != 0) {
LAB_002a18ac:
                    /* WARNING: Subroutine does not return */
          var_4();
        }
      }
      else {
        var_7 = var_3 * -4;
        if (var_2 == 3) goto LAB_002a186b;
        if (var_2 != 4) goto LAB_002a18ac;
      }
      var_7 = var_3 * -8;
    }
  }
LAB_002a186b:
  var_5
            ((type_4)var_1,*(type_1 *)(var_6 + 0x10),(type_4 *)(var_7 + *(long *)(var_6 + 0x18)),
             local_10);
  return local_10[0];
}


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

undefined8 MASKED(long param_1,long param_2)

{
  byte bVar1;
  byte bVar2;
  long lVar3;
  undefined8 local_10 [2];
  
  bVar1 = *(byte *)(param_1 + 0x28);
  if (bVar1 == 0xff) {
    lVar3 = 0;
  }
  else {
    bVar2 = bVar1 & 7;
    if (bVar2 == 2) {
      lVar3 = param_2 * -2;
    }
    else {
      if (bVar2 < 3) {
        if (bVar2 != 0) {
LAB_002a18ac:
                    /* WARNING: Subroutine does not return */
          abort();
        }
      }
      else {
        lVar3 = param_2 * -4;
        if (bVar2 == 3) goto LAB_002a186b;
        if (bVar2 != 4) goto LAB_002a18ac;
      }
      lVar3 = param_2 * -8;
    }
  }
LAB_002a186b:
  FUN_002a16f0(bVar1,*(undefined8 *)(param_1 + 0x10),lVar3 + *(long *)(param_1 + 0x18),local_10);
  return local_10[0];
}

