
int cipher_is_valid(int idx)

{
  uint uVar1;
  
  uVar1 = 10;
  if ((uint)idx < 0x20) {
    uVar1 = -(uint)(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0) == 0) & 10;
  }
  return uVar1;
}



byte cipher_is_valid(uint param_1)

{
  byte bVar1;
  
  bVar1 = 10;
  if (param_1 < 0x20) {
    bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;
  }
  return bVar1;
}


MOV EAX,0xa
CMP EDI,0x1f
JA 0x00165b0b
MOVSXD RDI,EDI
LEA RAX,[RDI + RDI*0x2]
SHL RAX,0x6
ADD RAX,qword ptr [0x001dfee8]
CMP qword ptr [RAX],0x1
SBB EAX,EAX
AND EAX,0xa
RET
(translation_unit "byte cipher_is_valid(uint param_1)\n\n{\n  byte bVar1;\n  \n  bVar1 = 10;\n  if (param_1 < 0x20) {\n    bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;\n  }\n  return bVar1;\n}\n\n" (function_definition "byte cipher_is_valid(uint param_1)\n\n{\n  byte bVar1;\n  \n  bVar1 = 10;\n  if (param_1 < 0x20) {\n    bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;\n  }\n  return bVar1;\n}" type_identifier (function_declarator "cipher_is_valid(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  \n  bVar1 = 10;\n  if (param_1 < 0x20) {\n    bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;\n  }\n  return bVar1;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (expression_statement "bVar1 = 10;" (assignment_expression "bVar1 = 10" identifier = number_literal) ;) (if_statement "if (param_1 < 0x20) {\n    bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;\n  }" if (parenthesized_expression "(param_1 < 0x20)" ( (binary_expression "param_1 < 0x20" identifier < number_literal) )) (compound_statement "{\n    bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;\n  }" { (expression_statement "bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;" (assignment_expression "bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10" identifier = (binary_expression "-(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10" (unary_expression "-(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0)" - (parenthesized_expression "(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0)" ( (binary_expression "*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0" (pointer_expression "*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0)" * (cast_expression "(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0)" ( (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0" identifier + (binary_expression "(long)(int)param_1 * 0xc0" (cast_expression "(long)(int)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) * number_literal)) )))) == number_literal) ))) & number_literal)) ;) })) (return_statement "return bVar1;" return identifier ;) })))
(translation_unit "int cipher_is_valid(int idx)\n\n{\n  uint uVar1;\n  \n  uVar1 = 10;\n  if ((uint)idx < 0x20) {\n    uVar1 = -(uint)(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0) == 0) & 10;\n  }\n  return uVar1;\n}\n\n" (function_definition "int cipher_is_valid(int idx)\n\n{\n  uint uVar1;\n  \n  uVar1 = 10;\n  if ((uint)idx < 0x20) {\n    uVar1 = -(uint)(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0) == 0) & 10;\n  }\n  return uVar1;\n}" primitive_type (function_declarator "cipher_is_valid(int idx)" identifier (parameter_list "(int idx)" ( (parameter_declaration "int idx" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = 10;\n  if ((uint)idx < 0x20) {\n    uVar1 = -(uint)(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0) == 0) & 10;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 10;" (assignment_expression "uVar1 = 10" identifier = number_literal) ;) (if_statement "if ((uint)idx < 0x20) {\n    uVar1 = -(uint)(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0) == 0) & 10;\n  }" if (parenthesized_expression "((uint)idx < 0x20)" ( (binary_expression "(uint)idx < 0x20" (cast_expression "(uint)idx" ( (type_descriptor "uint" type_identifier) ) identifier) < number_literal) )) (compound_statement "{\n    uVar1 = -(uint)(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0) == 0) & 10;\n  }" { (expression_statement "uVar1 = -(uint)(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0) == 0) & 10;" (assignment_expression "uVar1 = -(uint)(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0) == 0) & 10" identifier = (binary_expression "-(uint)(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0) == 0) & 10" (unary_expression "-(uint)(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0) == 0)" - (call_expression "(uint)(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0) == 0)" ( (binary_expression "*(long *)(PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0) == 0" (pointer_expression "*(long *)(PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0)" * (cast_expression "(long *)(PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0)" ( (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)idx * 0xc0" identifier + (binary_expression "(long)idx * 0xc0" (cast_expression "(long)idx" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) == number_literal) )))) & number_literal)) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "byte cipher_is_valid(uint param_1)\n\n{\n  byte bVar1;\n  \n  bVar1 = 10;\n  if (param_1 < 0x20) {\n    bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;\n  }\n  return bVar1;\n}\n\n" (function_definition "byte cipher_is_valid(uint param_1)\n\n{\n  byte bVar1;\n  \n  bVar1 = 10;\n  if (param_1 < 0x20) {\n    bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;\n  }\n  return bVar1;\n}" type_identifier (function_declarator "cipher_is_valid(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  \n  bVar1 = 10;\n  if (param_1 < 0x20) {\n    bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;\n  }\n  return bVar1;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (expression_statement "bVar1 = 10;" (assignment_expression "bVar1 = 10" identifier = number_literal) ;) (if_statement "if (param_1 < 0x20) {\n    bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;\n  }" if (parenthesized_expression "(param_1 < 0x20)" ( (binary_expression "param_1 < 0x20" identifier < number_literal) )) (compound_statement "{\n    bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;\n  }" { (expression_statement "bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;" (assignment_expression "bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10" identifier = (binary_expression "-(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10" (unary_expression "-(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0)" - (parenthesized_expression "(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0)" ( (binary_expression "*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0" (pointer_expression "*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0)" * (cast_expression "(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0)" ( (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0" identifier + (binary_expression "(long)(int)param_1 * 0xc0" (cast_expression "(long)(int)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) * number_literal)) )))) == number_literal) ))) & number_literal)) ;) })) (return_statement "return bVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression - (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) * LIT)) )))) == LIT) ))) & LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "byte cipher_is_valid(uint param_1)\n\n{\n  byte bVar1;\n  \n  bVar1 = 10;\n  if (param_1 < 0x20) {\n    bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;\n  }\n  return bVar1;\n}" (type_identifier "byte") (function_declarator "cipher_is_valid(uint param_1)" (identifier "cipher_is_valid") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")"))) (compound_statement "{\n  byte bVar1;\n  \n  bVar1 = 10;\n  if (param_1 < 0x20) {\n    bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;\n  }\n  return bVar1;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (expression_statement "bVar1 = 10;" (assignment_expression "bVar1 = 10" (identifier "bVar1") (= "=") (number_literal "10")) (; ";")) (if_statement "if (param_1 < 0x20) {\n    bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;\n  }" (if "if") (parenthesized_expression "(param_1 < 0x20)" (( "(") (binary_expression "param_1 < 0x20" (identifier "param_1") (< "<") (number_literal "0x20")) () ")")) (compound_statement "{\n    bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;\n  }" ({ "{") (expression_statement "bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;" (assignment_expression "bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10" (identifier "bVar1") (= "=") (binary_expression "-(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10" (unary_expression "-(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0)" (- "-") (parenthesized_expression "(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0)" (( "(") (binary_expression "*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0" (pointer_expression "*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0)" (* "*") (cast_expression "(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0)" (( "(") (binary_expression "PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0" (identifier "PTR_cipher_descriptor_001dfee8") (+ "+") (binary_expression "(long)(int)param_1 * 0xc0" (cast_expression "(long)(int)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (* "*") (number_literal "0xc0"))) () ")")))) (== "==") (number_literal "0")) () ")"))) (& "&") (number_literal "10"))) (; ";")) (} "}"))) (return_statement "return bVar1;" (return "return") (identifier "bVar1") (; ";")) (} "}")))

int function_1(int idx)

{
  type_1 uVar1;
  
  uVar1 = 10;
  if ((type_1)idx < 0x20) {
    uVar1 = -(type_1)(*(long *)(var_1 + (long)idx * 0xc0) == 0) & 10;
  }
  return uVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_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: (unary_expression argument: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) right: (number_literal)))))) right: (number_literal)))) right: (number_literal)))))) (return_statement (identifier)))))

byte MASKED(uint param_1)

{
  byte bVar1;
  
  bVar1 = 10;
  if (param_1 < 0x20) {
    bVar1 = -(*(long *)(PTR_cipher_descriptor_001dfee8 + (long)(int)param_1 * 0xc0) == 0) & 10;
  }
  return bVar1;
}

