
/* base_of_encoded_value(unsigned char, _Unwind_Context*) */

undefined8 base_of_encoded_value(uchar param_1,_Unwind_Context *param_2)

{
  byte bVar1;
  undefined8 uVar2;
  
  if (param_1 == 0xff) {
    return 0;
  }
  bVar1 = param_1 & 0x70;
  if (bVar1 == 0x20) {
    uVar2 = _Unwind_GetTextRelBase(param_2);
    return uVar2;
  }
  if (bVar1 < 0x21) {
    if (bVar1 == 0) {
      return 0;
    }
    if (bVar1 == 0x10) {
      return 0;
    }
  }
  else {
    if (bVar1 == 0x40) {
      uVar2 = _Unwind_GetRegionStart(param_2);
      return uVar2;
    }
    if (bVar1 == 0x50) {
      return 0;
    }
    if (bVar1 == 0x30) {
      uVar2 = _Unwind_GetDataRelBase(param_2);
      return uVar2;
    }
  }
                    /* WARNING: Subroutine does not return */
  abort();
}



undefined8 FUN_002eef30(byte param_1,undefined8 param_2)

{
  undefined8 uVar1;
  
  if (param_1 == 0xff) {
    return 0;
  }
  param_1 = param_1 & 0x70;
  if (param_1 == 0x20) {
    uVar1 = FUN_0037d5e0(param_2);
    return uVar1;
  }
  if (param_1 < 0x21) {
    if (param_1 == 0) {
      return 0;
    }
    if (param_1 == 0x10) {
      return 0;
    }
  }
  else {
    if (param_1 == 0x40) {
      uVar1 = FUN_0037d5a0(param_2);
      return uVar1;
    }
    if (param_1 == 0x50) {
      return 0;
    }
    if (param_1 == 0x30) {
      uVar1 = FUN_0037d5d0(param_2);
      return uVar1;
    }
  }
                    /* WARNING: Subroutine does not return */
  abort();
}


CMP DIL,0xff
JZ 0x002eef60
MOV EAX,EDI
AND EAX,0x70
CMP AL,0x20
JZ 0x002eef70
JBE 0x002eef58
CMP AL,0x40
JZ 0x002eef68
CMP AL,0x50
JZ 0x002eef60
CMP AL,0x30
JNZ 0x002eef78
MOV RDI,RSI
JMP 0x0037d5d0
TEST AL,AL
JZ 0x002eef60
CMP AL,0x10
JNZ 0x002eef78
XOR EAX,EAX
RET
MOV RDI,RSI
JMP 0x0037d5a0
MOV RDI,RSI
JMP 0x0037d5e0
PUSH RAX
CALL 0x001491a0
(translation_unit "undefined8 FUN_002eef30(byte param_1,undefined8 param_2)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  param_1 = param_1 & 0x70;\n  if (param_1 == 0x20) {\n    uVar1 = FUN_0037d5e0(param_2);\n    return uVar1;\n  }\n  if (param_1 < 0x21) {\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == 0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}\n\n" (function_definition "undefined8 FUN_002eef30(byte param_1,undefined8 param_2)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  param_1 = param_1 & 0x70;\n  if (param_1 == 0x20) {\n    uVar1 = FUN_0037d5e0(param_2);\n    return uVar1;\n  }\n  if (param_1 < 0x21) {\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == 0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" type_identifier (function_declarator "FUN_002eef30(byte param_1,undefined8 param_2)" identifier (parameter_list "(byte param_1,undefined8 param_2)" ( (parameter_declaration "byte param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  param_1 = param_1 & 0x70;\n  if (param_1 == 0x20) {\n    uVar1 = FUN_0037d5e0(param_2);\n    return uVar1;\n  }\n  if (param_1 < 0x21) {\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == 0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == 0xff) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0xff)" ( (binary_expression "param_1 == 0xff" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (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    uVar1 = FUN_0037d5e0(param_2);\n    return uVar1;\n  }" if (parenthesized_expression "(param_1 == 0x20)" ( (binary_expression "param_1 == 0x20" identifier == number_literal) )) (compound_statement "{\n    uVar1 = FUN_0037d5e0(param_2);\n    return uVar1;\n  }" { (expression_statement "uVar1 = FUN_0037d5e0(param_2);" (assignment_expression "uVar1 = FUN_0037d5e0(param_2)" identifier = (call_expression "FUN_0037d5e0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (param_1 < 0x21) {\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == 0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }\n  }" if (parenthesized_expression "(param_1 < 0x21)" ( (binary_expression "param_1 < 0x21" identifier < number_literal) )) (compound_statement "{\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == 0x10) {\n      return 0;\n    }\n  }" { (if_statement "if (param_1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1 == 0x10) {\n      return 0;\n    }" if (parenthesized_expression "(param_1 == 0x10)" ( (binary_expression "param_1 == 0x10" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }\n  }" else (compound_statement "{\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }\n  }" { (if_statement "if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }" if (parenthesized_expression "(param_1 == 0x40)" ( (binary_expression "param_1 == 0x40" identifier == number_literal) )) (compound_statement "{\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_0037d5a0(param_2);" (assignment_expression "uVar1 = FUN_0037d5a0(param_2)" identifier = (call_expression "FUN_0037d5a0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (param_1 == 0x50) {\n      return 0;\n    }" if (parenthesized_expression "(param_1 == 0x50)" ( (binary_expression "param_1 == 0x50" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }" if (parenthesized_expression "(param_1 == 0x30)" ( (binary_expression "param_1 == 0x30" identifier == number_literal) )) (compound_statement "{\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_0037d5d0(param_2);" (assignment_expression "uVar1 = FUN_0037d5d0(param_2)" identifier = (call_expression "FUN_0037d5d0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) }))) comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* base_of_encoded_value(unsigned char, _Unwind_Context*) */\n\nundefined8 base_of_encoded_value(uchar param_1,_Unwind_Context *param_2)\n\n{\n  byte bVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  bVar1 = param_1 & 0x70;\n  if (bVar1 == 0x20) {\n    uVar2 = _Unwind_GetTextRelBase(param_2);\n    return uVar2;\n  }\n  if (bVar1 < 0x21) {\n    if (bVar1 == 0) {\n      return 0;\n    }\n    if (bVar1 == 0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar1 == 0x40) {\n      uVar2 = _Unwind_GetRegionStart(param_2);\n      return uVar2;\n    }\n    if (bVar1 == 0x50) {\n      return 0;\n    }\n    if (bVar1 == 0x30) {\n      uVar2 = _Unwind_GetDataRelBase(param_2);\n      return uVar2;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}\n\n" comment (function_definition "undefined8 base_of_encoded_value(uchar param_1,_Unwind_Context *param_2)\n\n{\n  byte bVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  bVar1 = param_1 & 0x70;\n  if (bVar1 == 0x20) {\n    uVar2 = _Unwind_GetTextRelBase(param_2);\n    return uVar2;\n  }\n  if (bVar1 < 0x21) {\n    if (bVar1 == 0) {\n      return 0;\n    }\n    if (bVar1 == 0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar1 == 0x40) {\n      uVar2 = _Unwind_GetRegionStart(param_2);\n      return uVar2;\n    }\n    if (bVar1 == 0x50) {\n      return 0;\n    }\n    if (bVar1 == 0x30) {\n      uVar2 = _Unwind_GetDataRelBase(param_2);\n      return uVar2;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" type_identifier (function_declarator "base_of_encoded_value(uchar param_1,_Unwind_Context *param_2)" identifier (parameter_list "(uchar param_1,_Unwind_Context *param_2)" ( (parameter_declaration "uchar param_1" type_identifier identifier) , (parameter_declaration "_Unwind_Context *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  bVar1 = param_1 & 0x70;\n  if (bVar1 == 0x20) {\n    uVar2 = _Unwind_GetTextRelBase(param_2);\n    return uVar2;\n  }\n  if (bVar1 < 0x21) {\n    if (bVar1 == 0) {\n      return 0;\n    }\n    if (bVar1 == 0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar1 == 0x40) {\n      uVar2 = _Unwind_GetRegionStart(param_2);\n      return uVar2;\n    }\n    if (bVar1 == 0x50) {\n      return 0;\n    }\n    if (bVar1 == 0x30) {\n      uVar2 = _Unwind_GetDataRelBase(param_2);\n      return uVar2;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 0xff) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0xff)" ( (binary_expression "param_1 == 0xff" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar1 = param_1 & 0x70;" (assignment_expression "bVar1 = param_1 & 0x70" identifier = (binary_expression "param_1 & 0x70" identifier & number_literal)) ;) (if_statement "if (bVar1 == 0x20) {\n    uVar2 = _Unwind_GetTextRelBase(param_2);\n    return uVar2;\n  }" if (parenthesized_expression "(bVar1 == 0x20)" ( (binary_expression "bVar1 == 0x20" identifier == number_literal) )) (compound_statement "{\n    uVar2 = _Unwind_GetTextRelBase(param_2);\n    return uVar2;\n  }" { (expression_statement "uVar2 = _Unwind_GetTextRelBase(param_2);" (assignment_expression "uVar2 = _Unwind_GetTextRelBase(param_2)" identifier = (call_expression "_Unwind_GetTextRelBase(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (bVar1 < 0x21) {\n    if (bVar1 == 0) {\n      return 0;\n    }\n    if (bVar1 == 0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (bVar1 == 0x40) {\n      uVar2 = _Unwind_GetRegionStart(param_2);\n      return uVar2;\n    }\n    if (bVar1 == 0x50) {\n      return 0;\n    }\n    if (bVar1 == 0x30) {\n      uVar2 = _Unwind_GetDataRelBase(param_2);\n      return uVar2;\n    }\n  }" if (parenthesized_expression "(bVar1 < 0x21)" ( (binary_expression "bVar1 < 0x21" identifier < number_literal) )) (compound_statement "{\n    if (bVar1 == 0) {\n      return 0;\n    }\n    if (bVar1 == 0x10) {\n      return 0;\n    }\n  }" { (if_statement "if (bVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (bVar1 == 0x10) {\n      return 0;\n    }" if (parenthesized_expression "(bVar1 == 0x10)" ( (binary_expression "bVar1 == 0x10" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (bVar1 == 0x40) {\n      uVar2 = _Unwind_GetRegionStart(param_2);\n      return uVar2;\n    }\n    if (bVar1 == 0x50) {\n      return 0;\n    }\n    if (bVar1 == 0x30) {\n      uVar2 = _Unwind_GetDataRelBase(param_2);\n      return uVar2;\n    }\n  }" else (compound_statement "{\n    if (bVar1 == 0x40) {\n      uVar2 = _Unwind_GetRegionStart(param_2);\n      return uVar2;\n    }\n    if (bVar1 == 0x50) {\n      return 0;\n    }\n    if (bVar1 == 0x30) {\n      uVar2 = _Unwind_GetDataRelBase(param_2);\n      return uVar2;\n    }\n  }" { (if_statement "if (bVar1 == 0x40) {\n      uVar2 = _Unwind_GetRegionStart(param_2);\n      return uVar2;\n    }" if (parenthesized_expression "(bVar1 == 0x40)" ( (binary_expression "bVar1 == 0x40" identifier == number_literal) )) (compound_statement "{\n      uVar2 = _Unwind_GetRegionStart(param_2);\n      return uVar2;\n    }" { (expression_statement "uVar2 = _Unwind_GetRegionStart(param_2);" (assignment_expression "uVar2 = _Unwind_GetRegionStart(param_2)" identifier = (call_expression "_Unwind_GetRegionStart(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (bVar1 == 0x50) {\n      return 0;\n    }" if (parenthesized_expression "(bVar1 == 0x50)" ( (binary_expression "bVar1 == 0x50" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (bVar1 == 0x30) {\n      uVar2 = _Unwind_GetDataRelBase(param_2);\n      return uVar2;\n    }" if (parenthesized_expression "(bVar1 == 0x30)" ( (binary_expression "bVar1 == 0x30" identifier == number_literal) )) (compound_statement "{\n      uVar2 = _Unwind_GetDataRelBase(param_2);\n      return uVar2;\n    }" { (expression_statement "uVar2 = _Unwind_GetDataRelBase(param_2);" (assignment_expression "uVar2 = _Unwind_GetDataRelBase(param_2)" identifier = (call_expression "_Unwind_GetDataRelBase(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (return_statement "return uVar2;" return identifier ;) })) }))) comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined8 FUN_002eef30(byte param_1,undefined8 param_2)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  param_1 = param_1 & 0x70;\n  if (param_1 == 0x20) {\n    uVar1 = FUN_0037d5e0(param_2);\n    return uVar1;\n  }\n  if (param_1 < 0x21) {\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == 0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }\n  }\n                    \n  abort();\n}\n\n" (function_definition "undefined8 FUN_002eef30(byte param_1,undefined8 param_2)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  param_1 = param_1 & 0x70;\n  if (param_1 == 0x20) {\n    uVar1 = FUN_0037d5e0(param_2);\n    return uVar1;\n  }\n  if (param_1 < 0x21) {\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == 0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }\n  }\n                    \n  abort();\n}" type_identifier (function_declarator "FUN_002eef30(byte param_1,undefined8 param_2)" identifier (parameter_list "(byte param_1,undefined8 param_2)" ( (parameter_declaration "byte param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  param_1 = param_1 & 0x70;\n  if (param_1 == 0x20) {\n    uVar1 = FUN_0037d5e0(param_2);\n    return uVar1;\n  }\n  if (param_1 < 0x21) {\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == 0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }\n  }\n                    \n  abort();\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 == 0xff) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0xff)" ( (binary_expression "param_1 == 0xff" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (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    uVar1 = FUN_0037d5e0(param_2);\n    return uVar1;\n  }" if (parenthesized_expression "(param_1 == 0x20)" ( (binary_expression "param_1 == 0x20" identifier == number_literal) )) (compound_statement "{\n    uVar1 = FUN_0037d5e0(param_2);\n    return uVar1;\n  }" { (expression_statement "uVar1 = FUN_0037d5e0(param_2);" (assignment_expression "uVar1 = FUN_0037d5e0(param_2)" identifier = (call_expression "FUN_0037d5e0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (param_1 < 0x21) {\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == 0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }\n  }" if (parenthesized_expression "(param_1 < 0x21)" ( (binary_expression "param_1 < 0x21" identifier < number_literal) )) (compound_statement "{\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == 0x10) {\n      return 0;\n    }\n  }" { (if_statement "if (param_1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1 == 0x10) {\n      return 0;\n    }" if (parenthesized_expression "(param_1 == 0x10)" ( (binary_expression "param_1 == 0x10" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }\n  }" else (compound_statement "{\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }\n  }" { (if_statement "if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }" if (parenthesized_expression "(param_1 == 0x40)" ( (binary_expression "param_1 == 0x40" identifier == number_literal) )) (compound_statement "{\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_0037d5a0(param_2);" (assignment_expression "uVar1 = FUN_0037d5a0(param_2)" identifier = (call_expression "FUN_0037d5a0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (param_1 == 0x50) {\n      return 0;\n    }" if (parenthesized_expression "(param_1 == 0x50)" ( (binary_expression "param_1 == 0x50" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }" if (parenthesized_expression "(param_1 == 0x30)" ( (binary_expression "param_1 == 0x30" identifier == number_literal) )) (compound_statement "{\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_0037d5d0(param_2);" (assignment_expression "uVar1 = FUN_0037d5d0(param_2)" identifier = (call_expression "FUN_0037d5d0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) }))) (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (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 = (call_expression IDENT (argument_list ( IDENT )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (return_statement return IDENT ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined8 FUN_002eef30(byte param_1,undefined8 param_2)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  param_1 = param_1 & 0x70;\n  if (param_1 == 0x20) {\n    uVar1 = FUN_0037d5e0(param_2);\n    return uVar1;\n  }\n  if (param_1 < 0x21) {\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == 0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }\n  }\n                    \n  abort();\n}" (type_identifier "undefined8") (function_declarator "FUN_002eef30(byte param_1,undefined8 param_2)" (identifier "FUN_002eef30") (parameter_list "(byte param_1,undefined8 param_2)" (( "(") (parameter_declaration "byte param_1" (type_identifier "byte") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (param_1 == 0xff) {\n    return 0;\n  }\n  param_1 = param_1 & 0x70;\n  if (param_1 == 0x20) {\n    uVar1 = FUN_0037d5e0(param_2);\n    return uVar1;\n  }\n  if (param_1 < 0x21) {\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == 0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }\n  }\n                    \n  abort();\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (if_statement "if (param_1 == 0xff) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == 0xff)" (( "(") (binary_expression "param_1 == 0xff" (identifier "param_1") (== "==") (number_literal "0xff")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (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    uVar1 = FUN_0037d5e0(param_2);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(param_1 == 0x20)" (( "(") (binary_expression "param_1 == 0x20" (identifier "param_1") (== "==") (number_literal "0x20")) () ")")) (compound_statement "{\n    uVar1 = FUN_0037d5e0(param_2);\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = FUN_0037d5e0(param_2);" (assignment_expression "uVar1 = FUN_0037d5e0(param_2)" (identifier "uVar1") (= "=") (call_expression "FUN_0037d5e0(param_2)" (identifier "FUN_0037d5e0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (if_statement "if (param_1 < 0x21) {\n    if (param_1 == 0) {\n      return 0;\n    }\n    if (param_1 == 0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\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) {\n      return 0;\n    }\n    if (param_1 == 0x10) {\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (param_1 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_1 == 0x10) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_1 == 0x10)" (( "(") (binary_expression "param_1 == 0x10" (identifier "param_1") (== "==") (number_literal "0x10")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }\n  }" (else "else") (compound_statement "{\n    if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }\n    if (param_1 == 0x50) {\n      return 0;\n    }\n    if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }\n  }" ({ "{") (if_statement "if (param_1 == 0x40) {\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(param_1 == 0x40)" (( "(") (binary_expression "param_1 == 0x40" (identifier "param_1") (== "==") (number_literal "0x40")) () ")")) (compound_statement "{\n      uVar1 = FUN_0037d5a0(param_2);\n      return uVar1;\n    }" ({ "{") (expression_statement "uVar1 = FUN_0037d5a0(param_2);" (assignment_expression "uVar1 = FUN_0037d5a0(param_2)" (identifier "uVar1") (= "=") (call_expression "FUN_0037d5a0(param_2)" (identifier "FUN_0037d5a0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (if_statement "if (param_1 == 0x50) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_1 == 0x50)" (( "(") (binary_expression "param_1 == 0x50" (identifier "param_1") (== "==") (number_literal "0x50")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_1 == 0x30) {\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(param_1 == 0x30)" (( "(") (binary_expression "param_1 == 0x30" (identifier "param_1") (== "==") (number_literal "0x30")) () ")")) (compound_statement "{\n      uVar1 = FUN_0037d5d0(param_2);\n      return uVar1;\n    }" ({ "{") (expression_statement "uVar1 = FUN_0037d5d0(param_2);" (assignment_expression "uVar1 = FUN_0037d5d0(param_2)" (identifier "uVar1") (= "=") (call_expression "FUN_0037d5d0(param_2)" (identifier "FUN_0037d5d0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}")))) (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* base_of_encoded_value(unsigned char, _Unwind_Context*) */

type_1 function_1(type_2 var_1,type_3 *param_2)

{
  type_4 var_2;
  type_1 uVar2;
  
  if (var_1 == 0xff) {
    return 0;
  }
  var_2 = var_1 & 0x70;
  if (var_2 == 0x20) {
    uVar2 = var_3(param_2);
    return uVar2;
  }
  if (var_2 < 0x21) {
    if (var_2 == 0) {
      return 0;
    }
    if (var_2 == 0x10) {
      return 0;
    }
  }
  else {
    if (var_2 == 0x40) {
      uVar2 = var_4(param_2);
      return uVar2;
    }
    if (var_2 == 0x50) {
      return 0;
    }
    if (var_2 == 0x30) {
      uVar2 = var_5(param_2);
      return uVar2;
    }
  }
                    /* WARNING: Subroutine does not return */
  var_6();
}


(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: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (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: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (return_statement (identifier)))) (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 (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (return_statement (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

undefined8 MASKED(byte param_1,undefined8 param_2)

{
  undefined8 uVar1;
  
  if (param_1 == 0xff) {
    return 0;
  }
  param_1 = param_1 & 0x70;
  if (param_1 == 0x20) {
    uVar1 = FUN_0037d5e0(param_2);
    return uVar1;
  }
  if (param_1 < 0x21) {
    if (param_1 == 0) {
      return 0;
    }
    if (param_1 == 0x10) {
      return 0;
    }
  }
  else {
    if (param_1 == 0x40) {
      uVar1 = FUN_0037d5a0(param_2);
      return uVar1;
    }
    if (param_1 == 0x50) {
      return 0;
    }
    if (param_1 == 0x30) {
      uVar1 = FUN_0037d5d0(param_2);
      return uVar1;
    }
  }
                    /* WARNING: Subroutine does not return */
  abort();
}

