
undefined8 base_from_cb_data(byte param_1,long param_2)

{
  if (param_1 != 0xff) {
    param_1 = param_1 & 0x70;
    if (param_1 == 0x20) {
      return *(undefined8 *)(param_2 + 8);
    }
    if (param_1 < 0x21) {
      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;
    }
    else {
      if (param_1 == 0x30) {
        return *(undefined8 *)(param_2 + 0x10);
      }
      if (param_1 != 0x50) {
LAB_00330c5b:
                    /* WARNING: Subroutine does not return */
        abort();
      }
    }
  }
  return 0;
}



undefined8 FUN_00330c20(byte param_1,long param_2)

{
  if (param_1 != 0xff) {
    param_1 = param_1 & 0x70;
    if (param_1 == 0x20) {
      return *(undefined8 *)(param_2 + 8);
    }
    if (param_1 < 0x21) {
      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;
    }
    else {
      if (param_1 == 0x30) {
        return *(undefined8 *)(param_2 + 0x10);
      }
      if (param_1 != 0x50) {
LAB_00330c5b:
                    /* WARNING: Subroutine does not return */
        abort();
      }
    }
  }
  return 0;
}


CMP DIL,0xff
JZ 0x00330c46
AND EDI,0x70
CMP DIL,0x20
JZ 0x00330c68
JBE 0x00330c50
CMP DIL,0x30
JNZ 0x00330c40
MOV RAX,qword ptr [RSI + 0x10]
RET
CMP DIL,0x50
JNZ 0x00330c5b
XOR EAX,EAX
RET
TEST DIL,DIL
JZ 0x00330c46
CMP DIL,0x10
JZ 0x00330c46
PUSH RAX
CALL 0x001441a0
MOV RAX,qword ptr [RSI + 0x8]
RET
(translation_unit "undefined8 FUN_00330c20(byte param_1,long param_2)\n\n{\n  if (param_1 != 0xff) {\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00330c20(byte param_1,long param_2)\n\n{\n  if (param_1 != 0xff) {\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00330c20(byte param_1,long param_2)" identifier (parameter_list "(byte param_1,long param_2)" ( (parameter_declaration "byte param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if (param_1 != 0xff) {\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }\n  return 0;\n}" { (if_statement "if (param_1 != 0xff) {\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }" if (parenthesized_expression "(param_1 != 0xff)" ( (binary_expression "param_1 != 0xff" identifier != number_literal) )) (compound_statement "{\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }" { (expression_statement "param_1 = param_1 & 0x70;" (assignment_expression "param_1 = param_1 & 0x70" identifier = (binary_expression "param_1 & 0x70" identifier & number_literal)) ;) (if_statement "if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }" if (parenthesized_expression "(param_1 == 0x20)" ( (binary_expression "param_1 == 0x20" identifier == number_literal) )) (compound_statement "{\n      return *(undefined8 *)(param_2 + 8);\n    }" { (return_statement "return *(undefined8 *)(param_2 + 8);" return (pointer_expression "*(undefined8 *)(param_2 + 8)" * (cast_expression "(undefined8 *)(param_2 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) ;) })) (if_statement "if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }" if (parenthesized_expression "(param_1 < 0x21)" ( (binary_expression "param_1 < 0x21" identifier < number_literal) )) (compound_statement "{\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }" { (if_statement "if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;" if (parenthesized_expression "((param_1 != 0) && (param_1 != 0x10))" ( (binary_expression "(param_1 != 0) && (param_1 != 0x10)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_1 != 0x10)" ( (binary_expression "param_1 != 0x10" identifier != number_literal) ))) )) (goto_statement "goto LAB_00330c5b;" goto statement_identifier ;)) }) (else_clause "else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }" else (compound_statement "{\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }" { (if_statement "if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }" if (parenthesized_expression "(param_1 == 0x30)" ( (binary_expression "param_1 == 0x30" identifier == number_literal) )) (compound_statement "{\n        return *(undefined8 *)(param_2 + 0x10);\n      }" { (return_statement "return *(undefined8 *)(param_2 + 0x10);" return (pointer_expression "*(undefined8 *)(param_2 + 0x10)" * (cast_expression "(undefined8 *)(param_2 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) ;) })) (if_statement "if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }" if (parenthesized_expression "(param_1 != 0x50)" ( (binary_expression "param_1 != 0x50" identifier != number_literal) )) (compound_statement "{\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }" { (labeled_statement "LAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();" statement_identifier : comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) }))) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8 base_from_cb_data(byte param_1,long param_2)\n\n{\n  if (param_1 != 0xff) {\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 base_from_cb_data(byte param_1,long param_2)\n\n{\n  if (param_1 != 0xff) {\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "base_from_cb_data(byte param_1,long param_2)" identifier (parameter_list "(byte param_1,long param_2)" ( (parameter_declaration "byte param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if (param_1 != 0xff) {\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }\n  return 0;\n}" { (if_statement "if (param_1 != 0xff) {\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }" if (parenthesized_expression "(param_1 != 0xff)" ( (binary_expression "param_1 != 0xff" identifier != number_literal) )) (compound_statement "{\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }\n  }" { (expression_statement "param_1 = param_1 & 0x70;" (assignment_expression "param_1 = param_1 & 0x70" identifier = (binary_expression "param_1 & 0x70" identifier & number_literal)) ;) (if_statement "if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }" if (parenthesized_expression "(param_1 == 0x20)" ( (binary_expression "param_1 == 0x20" identifier == number_literal) )) (compound_statement "{\n      return *(undefined8 *)(param_2 + 8);\n    }" { (return_statement "return *(undefined8 *)(param_2 + 8);" return (pointer_expression "*(undefined8 *)(param_2 + 8)" * (cast_expression "(undefined8 *)(param_2 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) ;) })) (if_statement "if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }" if (parenthesized_expression "(param_1 < 0x21)" ( (binary_expression "param_1 < 0x21" identifier < number_literal) )) (compound_statement "{\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }" { (if_statement "if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;" if (parenthesized_expression "((param_1 != 0) && (param_1 != 0x10))" ( (binary_expression "(param_1 != 0) && (param_1 != 0x10)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_1 != 0x10)" ( (binary_expression "param_1 != 0x10" identifier != number_literal) ))) )) (goto_statement "goto LAB_00330c5b;" goto statement_identifier ;)) }) (else_clause "else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }" else (compound_statement "{\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }\n    }" { (if_statement "if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }" if (parenthesized_expression "(param_1 == 0x30)" ( (binary_expression "param_1 == 0x30" identifier == number_literal) )) (compound_statement "{\n        return *(undefined8 *)(param_2 + 0x10);\n      }" { (return_statement "return *(undefined8 *)(param_2 + 0x10);" return (pointer_expression "*(undefined8 *)(param_2 + 0x10)" * (cast_expression "(undefined8 *)(param_2 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) ;) })) (if_statement "if (param_1 != 0x50) {\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }" if (parenthesized_expression "(param_1 != 0x50)" ( (binary_expression "param_1 != 0x50" identifier != number_literal) )) (compound_statement "{\nLAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();\n      }" { (labeled_statement "LAB_00330c5b:\n                    /* WARNING: Subroutine does not return */\n        abort();" statement_identifier : comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) }))) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8 FUN_00330c20(byte param_1,long param_2)\n\n{\n  if (param_1 != 0xff) {\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00330c20(byte param_1,long param_2)\n\n{\n  if (param_1 != 0xff) {\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00330c20(byte param_1,long param_2)" identifier (parameter_list "(byte param_1,long param_2)" ( (parameter_declaration "byte param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if (param_1 != 0xff) {\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }\n    }\n  }\n  return 0;\n}" { (if_statement "if (param_1 != 0xff) {\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }\n    }\n  }" if (parenthesized_expression "(param_1 != 0xff)" ( (binary_expression "param_1 != 0xff" identifier != number_literal) )) (compound_statement "{\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }\n    }\n  }" { (expression_statement "param_1 = param_1 & 0x70;" (assignment_expression "param_1 = param_1 & 0x70" identifier = (binary_expression "param_1 & 0x70" identifier & number_literal)) ;) (if_statement "if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }" if (parenthesized_expression "(param_1 == 0x20)" ( (binary_expression "param_1 == 0x20" identifier == number_literal) )) (compound_statement "{\n      return *(undefined8 *)(param_2 + 8);\n    }" { (return_statement "return *(undefined8 *)(param_2 + 8);" return (pointer_expression "*(undefined8 *)(param_2 + 8)" * (cast_expression "(undefined8 *)(param_2 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) ;) })) (if_statement "if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }\n    }" if (parenthesized_expression "(param_1 < 0x21)" ( (binary_expression "param_1 < 0x21" identifier < number_literal) )) (compound_statement "{\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }" { (if_statement "if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;" if (parenthesized_expression "((param_1 != 0) && (param_1 != 0x10))" ( (binary_expression "(param_1 != 0) && (param_1 != 0x10)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_1 != 0x10)" ( (binary_expression "param_1 != 0x10" identifier != number_literal) ))) )) (goto_statement "goto LAB_00330c5b;" goto statement_identifier ;)) }) (else_clause "else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }\n    }" else (compound_statement "{\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }\n    }" { (if_statement "if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }" if (parenthesized_expression "(param_1 == 0x30)" ( (binary_expression "param_1 == 0x30" identifier == number_literal) )) (compound_statement "{\n        return *(undefined8 *)(param_2 + 0x10);\n      }" { (return_statement "return *(undefined8 *)(param_2 + 0x10);" return (pointer_expression "*(undefined8 *)(param_2 + 0x10)" * (cast_expression "(undefined8 *)(param_2 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) ;) })) (if_statement "if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }" if (parenthesized_expression "(param_1 != 0x50)" ( (binary_expression "param_1 != 0x50" identifier != number_literal) )) (compound_statement "{\nLAB_00330c5b:\n                    \n        abort();\n      }" { (labeled_statement "LAB_00330c5b:\n                    \n        abort();" statement_identifier : (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) }))) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (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 { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (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 { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) }))) })) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_00330c20(byte param_1,long param_2)\n\n{\n  if (param_1 != 0xff) {\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }\n    }\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_00330c20(byte param_1,long param_2)" (identifier "FUN_00330c20") (parameter_list "(byte param_1,long param_2)" (( "(") (parameter_declaration "byte param_1" (type_identifier "byte") (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  if (param_1 != 0xff) {\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }\n    }\n  }\n  return 0;\n}" ({ "{") (if_statement "if (param_1 != 0xff) {\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != 0xff)" (( "(") (binary_expression "param_1 != 0xff" (identifier "param_1") (!= "!=") (number_literal "0xff")) () ")")) (compound_statement "{\n    param_1 = param_1 & 0x70;\n    if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }\n    if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }\n    }\n  }" ({ "{") (expression_statement "param_1 = param_1 & 0x70;" (assignment_expression "param_1 = param_1 & 0x70" (identifier "param_1") (= "=") (binary_expression "param_1 & 0x70" (identifier "param_1") (& "&") (number_literal "0x70"))) (; ";")) (if_statement "if (param_1 == 0x20) {\n      return *(undefined8 *)(param_2 + 8);\n    }" (if "if") (parenthesized_expression "(param_1 == 0x20)" (( "(") (binary_expression "param_1 == 0x20" (identifier "param_1") (== "==") (number_literal "0x20")) () ")")) (compound_statement "{\n      return *(undefined8 *)(param_2 + 8);\n    }" ({ "{") (return_statement "return *(undefined8 *)(param_2 + 8);" (return "return") (pointer_expression "*(undefined8 *)(param_2 + 8)" (* "*") (cast_expression "(undefined8 *)(param_2 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (; ";")) (} "}"))) (if_statement "if (param_1 < 0x21) {\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }\n    else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }\n    }" (if "if") (parenthesized_expression "(param_1 < 0x21)" (( "(") (binary_expression "param_1 < 0x21" (identifier "param_1") (< "<") (number_literal "0x21")) () ")")) (compound_statement "{\n      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;\n    }" ({ "{") (if_statement "if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;" (if "if") (parenthesized_expression "((param_1 != 0) && (param_1 != 0x10))" (( "(") (binary_expression "(param_1 != 0) && (param_1 != 0x10)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_1 != 0x10)" (( "(") (binary_expression "param_1 != 0x10" (identifier "param_1") (!= "!=") (number_literal "0x10")) () ")"))) () ")")) (goto_statement "goto LAB_00330c5b;" (goto "goto") (statement_identifier "LAB_00330c5b") (; ";"))) (} "}")) (else_clause "else {\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }\n    }" (else "else") (compound_statement "{\n      if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }\n      if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }\n    }" ({ "{") (if_statement "if (param_1 == 0x30) {\n        return *(undefined8 *)(param_2 + 0x10);\n      }" (if "if") (parenthesized_expression "(param_1 == 0x30)" (( "(") (binary_expression "param_1 == 0x30" (identifier "param_1") (== "==") (number_literal "0x30")) () ")")) (compound_statement "{\n        return *(undefined8 *)(param_2 + 0x10);\n      }" ({ "{") (return_statement "return *(undefined8 *)(param_2 + 0x10);" (return "return") (pointer_expression "*(undefined8 *)(param_2 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (} "}"))) (if_statement "if (param_1 != 0x50) {\nLAB_00330c5b:\n                    \n        abort();\n      }" (if "if") (parenthesized_expression "(param_1 != 0x50)" (( "(") (binary_expression "param_1 != 0x50" (identifier "param_1") (!= "!=") (number_literal "0x50")) () ")")) (compound_statement "{\nLAB_00330c5b:\n                    \n        abort();\n      }" ({ "{") (labeled_statement "LAB_00330c5b:\n                    \n        abort();" (statement_identifier "LAB_00330c5b") (: ":") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (} "}")))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(type_2 var_1,long var_2)

{
  if (var_1 != 0xff) {
    var_1 = var_1 & 0x70;
    if (var_1 == 0x20) {
      return *(type_1 *)(var_2 + 8);
    }
    if (var_1 < 0x21) {
      if ((var_1 != 0) && (var_1 != 0x10)) goto LAB_00330c5b;
    }
    else {
      if (var_1 == 0x30) {
        return *(type_1 *)(var_2 + 0x10);
      }
      if (var_1 != 0x50) {
LAB_00330c5b:
                    /* WARNING: Subroutine does not return */
        var_3();
      }
    }
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (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 (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (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 (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))))))) (return_statement (number_literal)))))

undefined8 MASKED(byte param_1,long param_2)

{
  if (param_1 != 0xff) {
    param_1 = param_1 & 0x70;
    if (param_1 == 0x20) {
      return *(undefined8 *)(param_2 + 8);
    }
    if (param_1 < 0x21) {
      if ((param_1 != 0) && (param_1 != 0x10)) goto LAB_00330c5b;
    }
    else {
      if (param_1 == 0x30) {
        return *(undefined8 *)(param_2 + 0x10);
      }
      if (param_1 != 0x50) {
LAB_00330c5b:
                    /* WARNING: Subroutine does not return */
        abort();
      }
    }
  }
  return 0;
}

