
/* WARNING: Unknown calling convention */

int bignum_bit(Bignum_conflict bn,int i)

{
  byte bVar1;
  int iVar2;
  uint uVar3;
  
  uVar3 = 0;
  if ((-1 < i) && (i < (int)*bn << 6)) {
    iVar2 = i + 0x3f;
    if (-1 < i) {
      iVar2 = i;
    }
    bVar1 = (byte)(i >> 0x1f);
    uVar3 = (uint)(bn[(long)(iVar2 >> 6) + 1] >>
                  (((char)i + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;
  }
  return uVar3;
}



uint FUN_0014a3e0(int *param_1,int param_2)

{
  byte bVar1;
  int iVar2;
  uint uVar3;
  
  uVar3 = 0;
  if ((-1 < param_2) && (param_2 < *param_1 << 6)) {
    iVar2 = param_2 + 0x3f;
    if (-1 < param_2) {
      iVar2 = param_2;
    }
    bVar1 = (byte)(param_2 >> 0x1f);
    uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>
                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;
  }
  return uVar3;
}


MOV EAX,0x0
TEST ESI,ESI
JS 0x0014a41a
MOV EDX,dword ptr [RDI]
SHL EDX,0x6
CMP EDX,ESI
JLE 0x0014a41a
LEA EAX,[RSI + 0x3f]
TEST ESI,ESI
CMOVNS EAX,ESI
SAR EAX,0x6
CDQE
MOV EDX,ESI
SAR EDX,0x1f
SHR EDX,0x1a
LEA ECX,[RSI + RDX*0x1]
AND ECX,0x3f
SUB ECX,EDX
MOV RAX,qword ptr [RDI + RAX*0x8 + 0x8]
SHR RAX,CL
AND EAX,0x1
RET
(translation_unit "uint FUN_0014a3e0(int *param_1,int param_2)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = 0;\n  if ((-1 < param_2) && (param_2 < *param_1 << 6)) {\n    iVar2 = param_2 + 0x3f;\n    if (-1 < param_2) {\n      iVar2 = param_2;\n    }\n    bVar1 = (byte)(param_2 >> 0x1f);\n    uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }\n  return uVar3;\n}\n\n" (function_definition "uint FUN_0014a3e0(int *param_1,int param_2)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = 0;\n  if ((-1 < param_2) && (param_2 < *param_1 << 6)) {\n    iVar2 = param_2 + 0x3f;\n    if (-1 < param_2) {\n      iVar2 = param_2;\n    }\n    bVar1 = (byte)(param_2 >> 0x1f);\n    uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_0014a3e0(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = 0;\n  if ((-1 < param_2) && (param_2 < *param_1 << 6)) {\n    iVar2 = param_2 + 0x3f;\n    if (-1 < param_2) {\n      iVar2 = param_2;\n    }\n    bVar1 = (byte)(param_2 >> 0x1f);\n    uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }\n  return uVar3;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if ((-1 < param_2) && (param_2 < *param_1 << 6)) {\n    iVar2 = param_2 + 0x3f;\n    if (-1 < param_2) {\n      iVar2 = param_2;\n    }\n    bVar1 = (byte)(param_2 >> 0x1f);\n    uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }" if (parenthesized_expression "((-1 < param_2) && (param_2 < *param_1 << 6))" ( (binary_expression "(-1 < param_2) && (param_2 < *param_1 << 6)" (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) && (parenthesized_expression "(param_2 < *param_1 << 6)" ( (binary_expression "param_2 < *param_1 << 6" identifier < (binary_expression "*param_1 << 6" (pointer_expression "*param_1" * identifier) << number_literal)) ))) )) (compound_statement "{\n    iVar2 = param_2 + 0x3f;\n    if (-1 < param_2) {\n      iVar2 = param_2;\n    }\n    bVar1 = (byte)(param_2 >> 0x1f);\n    uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }" { (expression_statement "iVar2 = param_2 + 0x3f;" (assignment_expression "iVar2 = param_2 + 0x3f" identifier = (binary_expression "param_2 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < param_2) {\n      iVar2 = param_2;\n    }" if (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) (compound_statement "{\n      iVar2 = param_2;\n    }" { (expression_statement "iVar2 = param_2;" (assignment_expression "iVar2 = param_2" identifier = identifier) ;) })) (expression_statement "bVar1 = (byte)(param_2 >> 0x1f);" (assignment_expression "bVar1 = (byte)(param_2 >> 0x1f)" identifier = (call_expression "(byte)(param_2 >> 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 0x1f)" ( (binary_expression "param_2 >> 0x1f" identifier >> number_literal) )))) ;) (expression_statement "uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;" (assignment_expression "uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1" identifier = (binary_expression "(uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1" (call_expression "(uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f))" ( (binary_expression "*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)" (pointer_expression "*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2)" * (cast_expression "(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (long)(iVar2 >> 6) * 2 + 2)" ( (binary_expression "param_1 + (long)(iVar2 >> 6) * 2 + 2" (binary_expression "param_1 + (long)(iVar2 >> 6) * 2" identifier + (binary_expression "(long)(iVar2 >> 6) * 2" (cast_expression "(long)(iVar2 >> 6)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar2 >> 6)" ( (binary_expression "iVar2 >> 6" identifier >> number_literal) ))) * number_literal)) + number_literal) )))) >> (parenthesized_expression "(((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)" ( (binary_expression "((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f" (binary_expression "((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2)" (parenthesized_expression "((char)param_2 + (bVar1 >> 2) & 0x3f)" ( (binary_expression "(char)param_2 + (bVar1 >> 2) & 0x3f" (binary_expression "(char)param_2 + (bVar1 >> 2)" (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier) + (parenthesized_expression "(bVar1 >> 2)" ( (binary_expression "bVar1 >> 2" identifier >> number_literal) ))) & number_literal) )) - (parenthesized_expression "(bVar1 >> 2)" ( (binary_expression "bVar1 >> 2" identifier >> number_literal) ))) & number_literal) ))) ))) & number_literal)) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint bignum_bit(Bignum_conflict bn,int i)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = 0;\n  if ((-1 < i) && (i < (int)*bn << 6)) {\n    iVar2 = i + 0x3f;\n    if (-1 < i) {\n      iVar2 = i;\n    }\n    bVar1 = (byte)(i >> 0x1f);\n    uVar3 = (uint)(bn[(long)(iVar2 >> 6) + 1] >>\n                  (((char)i + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }\n  return uVar3;\n}\n\n" comment (function_definition "int bignum_bit(Bignum_conflict bn,int i)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = 0;\n  if ((-1 < i) && (i < (int)*bn << 6)) {\n    iVar2 = i + 0x3f;\n    if (-1 < i) {\n      iVar2 = i;\n    }\n    bVar1 = (byte)(i >> 0x1f);\n    uVar3 = (uint)(bn[(long)(iVar2 >> 6) + 1] >>\n                  (((char)i + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }\n  return uVar3;\n}" primitive_type (function_declarator "bignum_bit(Bignum_conflict bn,int i)" identifier (parameter_list "(Bignum_conflict bn,int i)" ( (parameter_declaration "Bignum_conflict bn" type_identifier identifier) , (parameter_declaration "int i" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = 0;\n  if ((-1 < i) && (i < (int)*bn << 6)) {\n    iVar2 = i + 0x3f;\n    if (-1 < i) {\n      iVar2 = i;\n    }\n    bVar1 = (byte)(i >> 0x1f);\n    uVar3 = (uint)(bn[(long)(iVar2 >> 6) + 1] >>\n                  (((char)i + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }\n  return uVar3;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if ((-1 < i) && (i < (int)*bn << 6)) {\n    iVar2 = i + 0x3f;\n    if (-1 < i) {\n      iVar2 = i;\n    }\n    bVar1 = (byte)(i >> 0x1f);\n    uVar3 = (uint)(bn[(long)(iVar2 >> 6) + 1] >>\n                  (((char)i + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }" if (parenthesized_expression "((-1 < i) && (i < (int)*bn << 6))" ( (binary_expression "(-1 < i) && (i < (int)*bn << 6)" (parenthesized_expression "(-1 < i)" ( (binary_expression "-1 < i" number_literal < identifier) )) && (parenthesized_expression "(i < (int)*bn << 6)" ( (binary_expression "i < (int)*bn << 6" identifier < (binary_expression "(int)*bn << 6" (cast_expression "(int)*bn" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*bn" * identifier)) << number_literal)) ))) )) (compound_statement "{\n    iVar2 = i + 0x3f;\n    if (-1 < i) {\n      iVar2 = i;\n    }\n    bVar1 = (byte)(i >> 0x1f);\n    uVar3 = (uint)(bn[(long)(iVar2 >> 6) + 1] >>\n                  (((char)i + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }" { (expression_statement "iVar2 = i + 0x3f;" (assignment_expression "iVar2 = i + 0x3f" identifier = (binary_expression "i + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < i) {\n      iVar2 = i;\n    }" if (parenthesized_expression "(-1 < i)" ( (binary_expression "-1 < i" number_literal < identifier) )) (compound_statement "{\n      iVar2 = i;\n    }" { (expression_statement "iVar2 = i;" (assignment_expression "iVar2 = i" identifier = identifier) ;) })) (expression_statement "bVar1 = (byte)(i >> 0x1f);" (assignment_expression "bVar1 = (byte)(i >> 0x1f)" identifier = (call_expression "(byte)(i >> 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(i >> 0x1f)" ( (binary_expression "i >> 0x1f" identifier >> number_literal) )))) ;) (expression_statement "uVar3 = (uint)(bn[(long)(iVar2 >> 6) + 1] >>\n                  (((char)i + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;" (assignment_expression "uVar3 = (uint)(bn[(long)(iVar2 >> 6) + 1] >>\n                  (((char)i + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1" identifier = (binary_expression "(uint)(bn[(long)(iVar2 >> 6) + 1] >>\n                  (((char)i + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1" (call_expression "(uint)(bn[(long)(iVar2 >> 6) + 1] >>\n                  (((char)i + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bn[(long)(iVar2 >> 6) + 1] >>\n                  (((char)i + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f))" ( (binary_expression "bn[(long)(iVar2 >> 6) + 1] >>\n                  (((char)i + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)" (subscript_expression "bn[(long)(iVar2 >> 6) + 1]" identifier [ (binary_expression "(long)(iVar2 >> 6) + 1" (cast_expression "(long)(iVar2 >> 6)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar2 >> 6)" ( (binary_expression "iVar2 >> 6" identifier >> number_literal) ))) + number_literal) ]) >> (parenthesized_expression "(((char)i + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)" ( (binary_expression "((char)i + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f" (binary_expression "((char)i + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2)" (parenthesized_expression "((char)i + (bVar1 >> 2) & 0x3f)" ( (binary_expression "(char)i + (bVar1 >> 2) & 0x3f" (binary_expression "(char)i + (bVar1 >> 2)" (cast_expression "(char)i" ( (type_descriptor "char" primitive_type) ) identifier) + (parenthesized_expression "(bVar1 >> 2)" ( (binary_expression "bVar1 >> 2" identifier >> number_literal) ))) & number_literal) )) - (parenthesized_expression "(bVar1 >> 2)" ( (binary_expression "bVar1 >> 2" identifier >> number_literal) ))) & number_literal) ))) ))) & number_literal)) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "uint FUN_0014a3e0(int *param_1,int param_2)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = 0;\n  if ((-1 < param_2) && (param_2 < *param_1 << 6)) {\n    iVar2 = param_2 + 0x3f;\n    if (-1 < param_2) {\n      iVar2 = param_2;\n    }\n    bVar1 = (byte)(param_2 >> 0x1f);\n    uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }\n  return uVar3;\n}\n\n" (function_definition "uint FUN_0014a3e0(int *param_1,int param_2)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = 0;\n  if ((-1 < param_2) && (param_2 < *param_1 << 6)) {\n    iVar2 = param_2 + 0x3f;\n    if (-1 < param_2) {\n      iVar2 = param_2;\n    }\n    bVar1 = (byte)(param_2 >> 0x1f);\n    uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_0014a3e0(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = 0;\n  if ((-1 < param_2) && (param_2 < *param_1 << 6)) {\n    iVar2 = param_2 + 0x3f;\n    if (-1 < param_2) {\n      iVar2 = param_2;\n    }\n    bVar1 = (byte)(param_2 >> 0x1f);\n    uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }\n  return uVar3;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if ((-1 < param_2) && (param_2 < *param_1 << 6)) {\n    iVar2 = param_2 + 0x3f;\n    if (-1 < param_2) {\n      iVar2 = param_2;\n    }\n    bVar1 = (byte)(param_2 >> 0x1f);\n    uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }" if (parenthesized_expression "((-1 < param_2) && (param_2 < *param_1 << 6))" ( (binary_expression "(-1 < param_2) && (param_2 < *param_1 << 6)" (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) && (parenthesized_expression "(param_2 < *param_1 << 6)" ( (binary_expression "param_2 < *param_1 << 6" identifier < (binary_expression "*param_1 << 6" (pointer_expression "*param_1" * identifier) << number_literal)) ))) )) (compound_statement "{\n    iVar2 = param_2 + 0x3f;\n    if (-1 < param_2) {\n      iVar2 = param_2;\n    }\n    bVar1 = (byte)(param_2 >> 0x1f);\n    uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }" { (expression_statement "iVar2 = param_2 + 0x3f;" (assignment_expression "iVar2 = param_2 + 0x3f" identifier = (binary_expression "param_2 + 0x3f" identifier + number_literal)) ;) (if_statement "if (-1 < param_2) {\n      iVar2 = param_2;\n    }" if (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) (compound_statement "{\n      iVar2 = param_2;\n    }" { (expression_statement "iVar2 = param_2;" (assignment_expression "iVar2 = param_2" identifier = identifier) ;) })) (expression_statement "bVar1 = (byte)(param_2 >> 0x1f);" (assignment_expression "bVar1 = (byte)(param_2 >> 0x1f)" identifier = (call_expression "(byte)(param_2 >> 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_2 >> 0x1f)" ( (binary_expression "param_2 >> 0x1f" identifier >> number_literal) )))) ;) (expression_statement "uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;" (assignment_expression "uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1" identifier = (binary_expression "(uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1" (call_expression "(uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f))" ( (binary_expression "*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)" (pointer_expression "*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2)" * (cast_expression "(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + (long)(iVar2 >> 6) * 2 + 2)" ( (binary_expression "param_1 + (long)(iVar2 >> 6) * 2 + 2" (binary_expression "param_1 + (long)(iVar2 >> 6) * 2" identifier + (binary_expression "(long)(iVar2 >> 6) * 2" (cast_expression "(long)(iVar2 >> 6)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar2 >> 6)" ( (binary_expression "iVar2 >> 6" identifier >> number_literal) ))) * number_literal)) + number_literal) )))) >> (parenthesized_expression "(((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)" ( (binary_expression "((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f" (binary_expression "((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2)" (parenthesized_expression "((char)param_2 + (bVar1 >> 2) & 0x3f)" ( (binary_expression "(char)param_2 + (bVar1 >> 2) & 0x3f" (binary_expression "(char)param_2 + (bVar1 >> 2)" (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier) + (parenthesized_expression "(bVar1 >> 2)" ( (binary_expression "bVar1 >> 2" identifier >> number_literal) ))) & number_literal) )) - (parenthesized_expression "(bVar1 >> 2)" ( (binary_expression "bVar1 >> 2" identifier >> number_literal) ))) & number_literal) ))) ))) & number_literal)) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression IDENT < (binary_expression (pointer_expression * IDENT) << LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) * LIT)) + LIT) )))) >> (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) & LIT) )) - (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) & LIT) ))) ))) & LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_0014a3e0(int *param_1,int param_2)\n\n{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = 0;\n  if ((-1 < param_2) && (param_2 < *param_1 << 6)) {\n    iVar2 = param_2 + 0x3f;\n    if (-1 < param_2) {\n      iVar2 = param_2;\n    }\n    bVar1 = (byte)(param_2 >> 0x1f);\n    uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }\n  return uVar3;\n}" (type_identifier "uint") (function_declarator "FUN_0014a3e0(int *param_1,int param_2)" (identifier "FUN_0014a3e0") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  uint uVar3;\n  \n  uVar3 = 0;\n  if ((-1 < param_2) && (param_2 < *param_1 << 6)) {\n    iVar2 = param_2 + 0x3f;\n    if (-1 < param_2) {\n      iVar2 = param_2;\n    }\n    bVar1 = (byte)(param_2 >> 0x1f);\n    uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }\n  return uVar3;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((-1 < param_2) && (param_2 < *param_1 << 6)) {\n    iVar2 = param_2 + 0x3f;\n    if (-1 < param_2) {\n      iVar2 = param_2;\n    }\n    bVar1 = (byte)(param_2 >> 0x1f);\n    uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }" (if "if") (parenthesized_expression "((-1 < param_2) && (param_2 < *param_1 << 6))" (( "(") (binary_expression "(-1 < param_2) && (param_2 < *param_1 << 6)" (parenthesized_expression "(-1 < param_2)" (( "(") (binary_expression "-1 < param_2" (number_literal "-1") (< "<") (identifier "param_2")) () ")")) (&& "&&") (parenthesized_expression "(param_2 < *param_1 << 6)" (( "(") (binary_expression "param_2 < *param_1 << 6" (identifier "param_2") (< "<") (binary_expression "*param_1 << 6" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (<< "<<") (number_literal "6"))) () ")"))) () ")")) (compound_statement "{\n    iVar2 = param_2 + 0x3f;\n    if (-1 < param_2) {\n      iVar2 = param_2;\n    }\n    bVar1 = (byte)(param_2 >> 0x1f);\n    uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;\n  }" ({ "{") (expression_statement "iVar2 = param_2 + 0x3f;" (assignment_expression "iVar2 = param_2 + 0x3f" (identifier "iVar2") (= "=") (binary_expression "param_2 + 0x3f" (identifier "param_2") (+ "+") (number_literal "0x3f"))) (; ";")) (if_statement "if (-1 < param_2) {\n      iVar2 = param_2;\n    }" (if "if") (parenthesized_expression "(-1 < param_2)" (( "(") (binary_expression "-1 < param_2" (number_literal "-1") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n      iVar2 = param_2;\n    }" ({ "{") (expression_statement "iVar2 = param_2;" (assignment_expression "iVar2 = param_2" (identifier "iVar2") (= "=") (identifier "param_2")) (; ";")) (} "}"))) (expression_statement "bVar1 = (byte)(param_2 >> 0x1f);" (assignment_expression "bVar1 = (byte)(param_2 >> 0x1f)" (identifier "bVar1") (= "=") (call_expression "(byte)(param_2 >> 0x1f)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(param_2 >> 0x1f)" (( "(") (binary_expression "param_2 >> 0x1f" (identifier "param_2") (>> ">>") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;" (assignment_expression "uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1" (identifier "uVar3") (= "=") (binary_expression "(uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1" (call_expression "(uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f))" (( "(") (binary_expression "*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>\n                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)" (pointer_expression "*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2)" (* "*") (cast_expression "(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + (long)(iVar2 >> 6) * 2 + 2)" (( "(") (binary_expression "param_1 + (long)(iVar2 >> 6) * 2 + 2" (binary_expression "param_1 + (long)(iVar2 >> 6) * 2" (identifier "param_1") (+ "+") (binary_expression "(long)(iVar2 >> 6) * 2" (cast_expression "(long)(iVar2 >> 6)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(iVar2 >> 6)" (( "(") (binary_expression "iVar2 >> 6" (identifier "iVar2") (>> ">>") (number_literal "6")) () ")"))) (* "*") (number_literal "2"))) (+ "+") (number_literal "2")) () ")")))) (>> ">>") (parenthesized_expression "(((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)" (( "(") (binary_expression "((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f" (binary_expression "((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2)" (parenthesized_expression "((char)param_2 + (bVar1 >> 2) & 0x3f)" (( "(") (binary_expression "(char)param_2 + (bVar1 >> 2) & 0x3f" (binary_expression "(char)param_2 + (bVar1 >> 2)" (cast_expression "(char)param_2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_2")) (+ "+") (parenthesized_expression "(bVar1 >> 2)" (( "(") (binary_expression "bVar1 >> 2" (identifier "bVar1") (>> ">>") (number_literal "2")) () ")"))) (& "&") (number_literal "0x3f")) () ")")) (- "-") (parenthesized_expression "(bVar1 >> 2)" (( "(") (binary_expression "bVar1 >> 2" (identifier "bVar1") (>> ">>") (number_literal "2")) () ")"))) (& "&") (number_literal "0x3f")) () ")"))) () ")"))) (& "&") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 bn,int var_1)

{
  type_2 var_3;
  int var_2;
  type_3 uVar3;
  
  uVar3 = 0;
  if ((-1 < var_1) && (var_1 < (int)*bn << 6)) {
    var_2 = var_1 + 0x3f;
    if (-1 < var_1) {
      var_2 = var_1;
    }
    var_3 = (type_2)(var_1 >> 0x1f);
    uVar3 = (type_3)(bn[(long)(var_2 >> 6) + 1] >>
                  (((char)var_1 + (var_3 >> 2) & 0x3f) - (var_3 >> 2) & 0x3f)) & 1;
  }
  return uVar3;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (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: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal)))))) right: (number_literal)))))) (return_statement (identifier)))))

uint MASKED(int *param_1,int param_2)

{
  byte bVar1;
  int iVar2;
  uint uVar3;
  
  uVar3 = 0;
  if ((-1 < param_2) && (param_2 < *param_1 << 6)) {
    iVar2 = param_2 + 0x3f;
    if (-1 < param_2) {
      iVar2 = param_2;
    }
    bVar1 = (byte)(param_2 >> 0x1f);
    uVar3 = (uint)(*(ulong *)(param_1 + (long)(iVar2 >> 6) * 2 + 2) >>
                  (((char)param_2 + (bVar1 >> 2) & 0x3f) - (bVar1 >> 2) & 0x3f)) & 1;
  }
  return uVar3;
}

