
int isprime(void *a,int b,int *c)

{
  int iVar1;
  bool bVar2;
  
  if (a == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);
  }
  if (c != (int *)0x0) {
    if (b == 0) {
      b = 0x28;
    }
    iVar1 = mp_prime_is_prime(a,b);
    if (iVar1 != 0) {
      if (iVar1 == -2) {
        iVar1 = 0xd;
      }
      else {
        bVar2 = iVar1 == -3;
        iVar1 = 1;
        if (bVar2) {
          iVar1 = 0x10;
        }
      }
    }
    *c = (uint)(*c == 1);
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);
}



undefined8 FUN_00160ef0(long param_1,int param_2,uint *param_3)

{
  int iVar1;
  undefined8 uVar2;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);
  }
  if (param_3 != (uint *)0x0) {
    if (param_2 == 0) {
      param_2 = 0x28;
    }
    uVar2 = mp_prime_is_prime(param_1,param_2);
    iVar1 = (int)uVar2;
    if (iVar1 != 0) {
      if (iVar1 == -2) {
        uVar2 = 0xd;
      }
      else {
        uVar2 = 1;
        if (iVar1 == -3) {
          uVar2 = 0x10;
        }
      }
    }
    *param_3 = (uint)(*param_3 == 1);
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);
}


PUSH RBX
TEST RDI,RDI
JZ 0x00160f3f
MOV RBX,RDX
TEST RDX,RDX
JZ 0x00160f57
TEST ESI,ESI
MOV EAX,0x28
CMOVZ ESI,EAX
CALL 0x00114650
TEST EAX,EAX
JZ 0x00160f26
CMP EAX,-0x2
JZ 0x00160f38
CMP EAX,-0x3
MOV EDX,0x10
MOV EAX,0x1
CMOVZ EAX,EDX
XOR ECX,ECX
CMP dword ptr [RBX],0x1
SETZ CL
MOV dword ptr [RBX],ECX
POP RBX
RET
MOV EAX,0xd
JMP 0x00160f26
MOV EDX,0x194
LEA RSI,[0x1bdba1]
LEA RDI,[0x1aa70e]
CALL 0x00114270
MOV EDX,0x195
LEA RSI,[0x1bdba1]
LEA RDI,[0x1bbc2c]
CALL 0x00114270
(translation_unit "undefined8 FUN_00160ef0(long param_1,int param_2,uint *param_3)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }\n  if (param_3 != (uint *)0x0) {\n    if (param_2 == 0) {\n      param_2 = 0x28;\n    }\n    uVar2 = mp_prime_is_prime(param_1,param_2);\n    iVar1 = (int)uVar2;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }\n    *param_3 = (uint)(*param_3 == 1);\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);\n}\n\n" (function_definition "undefined8 FUN_00160ef0(long param_1,int param_2,uint *param_3)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }\n  if (param_3 != (uint *)0x0) {\n    if (param_2 == 0) {\n      param_2 = 0x28;\n    }\n    uVar2 = mp_prime_is_prime(param_1,param_2);\n    iVar1 = (int)uVar2;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }\n    *param_3 = (uint)(*param_3 == 1);\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);\n}" type_identifier (function_declarator "FUN_00160ef0(long param_1,int param_2,uint *param_3)" identifier (parameter_list "(long param_1,int param_2,uint *param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }\n  if (param_3 != (uint *)0x0) {\n    if (param_2 == 0) {\n      param_2 = 0x28;\n    }\n    uVar2 = mp_prime_is_prime(param_1,param_2);\n    iVar1 = (int)uVar2;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }\n    *param_3 = (uint)(*param_3 == 1);\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }" { comment (expression_statement "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);" (call_expression "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194)" identifier (argument_list "("a != NULL","src/math/ltm_desc.c",0x194)" ( (string_literal ""a != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_3 != (uint *)0x0) {\n    if (param_2 == 0) {\n      param_2 = 0x28;\n    }\n    uVar2 = mp_prime_is_prime(param_1,param_2);\n    iVar1 = (int)uVar2;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }\n    *param_3 = (uint)(*param_3 == 1);\n    return uVar2;\n  }" if (parenthesized_expression "(param_3 != (uint *)0x0)" ( (binary_expression "param_3 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (param_2 == 0) {\n      param_2 = 0x28;\n    }\n    uVar2 = mp_prime_is_prime(param_1,param_2);\n    iVar1 = (int)uVar2;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }\n    *param_3 = (uint)(*param_3 == 1);\n    return uVar2;\n  }" { (if_statement "if (param_2 == 0) {\n      param_2 = 0x28;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      param_2 = 0x28;\n    }" { (expression_statement "param_2 = 0x28;" (assignment_expression "param_2 = 0x28" identifier = number_literal) ;) })) (expression_statement "uVar2 = mp_prime_is_prime(param_1,param_2);" (assignment_expression "uVar2 = mp_prime_is_prime(param_1,param_2)" identifier = (call_expression "mp_prime_is_prime(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "iVar1 = (int)uVar2;" (assignment_expression "iVar1 = (int)uVar2" identifier = (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }" { (if_statement "if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }" if (parenthesized_expression "(iVar1 == -2)" ( (binary_expression "iVar1 == -2" identifier == number_literal) )) (compound_statement "{\n        uVar2 = 0xd;\n      }" { (expression_statement "uVar2 = 0xd;" (assignment_expression "uVar2 = 0xd" identifier = number_literal) ;) }) (else_clause "else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }" else (compound_statement "{\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }" if (parenthesized_expression "(iVar1 == -3)" ( (binary_expression "iVar1 == -3" identifier == number_literal) )) (compound_statement "{\n          uVar2 = 0x10;\n        }" { (expression_statement "uVar2 = 0x10;" (assignment_expression "uVar2 = 0x10" identifier = number_literal) ;) })) }))) })) (expression_statement "*param_3 = (uint)(*param_3 == 1);" (assignment_expression "*param_3 = (uint)(*param_3 == 1)" (pointer_expression "*param_3" * identifier) = (call_expression "(uint)(*param_3 == 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_3 == 1)" ( (binary_expression "*param_3 == 1" (pointer_expression "*param_3" * identifier) == number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })) comment (expression_statement "crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);" (call_expression "crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195)" identifier (argument_list "("c != NULL","src/math/ltm_desc.c",0x195)" ( (string_literal ""c != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "int isprime(void *a,int b,int *c)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  if (a == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }\n  if (c != (int *)0x0) {\n    if (b == 0) {\n      b = 0x28;\n    }\n    iVar1 = mp_prime_is_prime(a,b);\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        iVar1 = 0xd;\n      }\n      else {\n        bVar2 = iVar1 == -3;\n        iVar1 = 1;\n        if (bVar2) {\n          iVar1 = 0x10;\n        }\n      }\n    }\n    *c = (uint)(*c == 1);\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);\n}\n\n" (function_definition "int isprime(void *a,int b,int *c)\n\n{\n  int iVar1;\n  bool bVar2;\n  \n  if (a == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }\n  if (c != (int *)0x0) {\n    if (b == 0) {\n      b = 0x28;\n    }\n    iVar1 = mp_prime_is_prime(a,b);\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        iVar1 = 0xd;\n      }\n      else {\n        bVar2 = iVar1 == -3;\n        iVar1 = 1;\n        if (bVar2) {\n          iVar1 = 0x10;\n        }\n      }\n    }\n    *c = (uint)(*c == 1);\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);\n}" primitive_type (function_declarator "isprime(void *a,int b,int *c)" identifier (parameter_list "(void *a,int b,int *c)" ( (parameter_declaration "void *a" primitive_type (pointer_declarator "*a" * identifier)) , (parameter_declaration "int b" primitive_type identifier) , (parameter_declaration "int *c" primitive_type (pointer_declarator "*c" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  bool bVar2;\n  \n  if (a == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }\n  if (c != (int *)0x0) {\n    if (b == 0) {\n      b = 0x28;\n    }\n    iVar1 = mp_prime_is_prime(a,b);\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        iVar1 = 0xd;\n      }\n      else {\n        bVar2 = iVar1 == -3;\n        iVar1 = 1;\n        if (bVar2) {\n          iVar1 = 0x10;\n        }\n      }\n    }\n    *c = (uint)(*c == 1);\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (if_statement "if (a == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }" if (parenthesized_expression "(a == (void *)0x0)" ( (binary_expression "a == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }" { comment (expression_statement "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);" (call_expression "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194)" identifier (argument_list "("a != NULL","src/math/ltm_desc.c",0x194)" ( (string_literal ""a != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (c != (int *)0x0) {\n    if (b == 0) {\n      b = 0x28;\n    }\n    iVar1 = mp_prime_is_prime(a,b);\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        iVar1 = 0xd;\n      }\n      else {\n        bVar2 = iVar1 == -3;\n        iVar1 = 1;\n        if (bVar2) {\n          iVar1 = 0x10;\n        }\n      }\n    }\n    *c = (uint)(*c == 1);\n    return iVar1;\n  }" if (parenthesized_expression "(c != (int *)0x0)" ( (binary_expression "c != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (b == 0) {\n      b = 0x28;\n    }\n    iVar1 = mp_prime_is_prime(a,b);\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        iVar1 = 0xd;\n      }\n      else {\n        bVar2 = iVar1 == -3;\n        iVar1 = 1;\n        if (bVar2) {\n          iVar1 = 0x10;\n        }\n      }\n    }\n    *c = (uint)(*c == 1);\n    return iVar1;\n  }" { (if_statement "if (b == 0) {\n      b = 0x28;\n    }" if (parenthesized_expression "(b == 0)" ( (binary_expression "b == 0" identifier == number_literal) )) (compound_statement "{\n      b = 0x28;\n    }" { (expression_statement "b = 0x28;" (assignment_expression "b = 0x28" identifier = number_literal) ;) })) (expression_statement "iVar1 = mp_prime_is_prime(a,b);" (assignment_expression "iVar1 = mp_prime_is_prime(a,b)" identifier = (call_expression "mp_prime_is_prime(a,b)" identifier (argument_list "(a,b)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        iVar1 = 0xd;\n      }\n      else {\n        bVar2 = iVar1 == -3;\n        iVar1 = 1;\n        if (bVar2) {\n          iVar1 = 0x10;\n        }\n      }\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar1 == -2) {\n        iVar1 = 0xd;\n      }\n      else {\n        bVar2 = iVar1 == -3;\n        iVar1 = 1;\n        if (bVar2) {\n          iVar1 = 0x10;\n        }\n      }\n    }" { (if_statement "if (iVar1 == -2) {\n        iVar1 = 0xd;\n      }\n      else {\n        bVar2 = iVar1 == -3;\n        iVar1 = 1;\n        if (bVar2) {\n          iVar1 = 0x10;\n        }\n      }" if (parenthesized_expression "(iVar1 == -2)" ( (binary_expression "iVar1 == -2" identifier == number_literal) )) (compound_statement "{\n        iVar1 = 0xd;\n      }" { (expression_statement "iVar1 = 0xd;" (assignment_expression "iVar1 = 0xd" identifier = number_literal) ;) }) (else_clause "else {\n        bVar2 = iVar1 == -3;\n        iVar1 = 1;\n        if (bVar2) {\n          iVar1 = 0x10;\n        }\n      }" else (compound_statement "{\n        bVar2 = iVar1 == -3;\n        iVar1 = 1;\n        if (bVar2) {\n          iVar1 = 0x10;\n        }\n      }" { (expression_statement "bVar2 = iVar1 == -3;" (assignment_expression "bVar2 = iVar1 == -3" identifier = (binary_expression "iVar1 == -3" identifier == number_literal)) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if (bVar2) {\n          iVar1 = 0x10;\n        }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n          iVar1 = 0x10;\n        }" { (expression_statement "iVar1 = 0x10;" (assignment_expression "iVar1 = 0x10" identifier = number_literal) ;) })) }))) })) (expression_statement "*c = (uint)(*c == 1);" (assignment_expression "*c = (uint)(*c == 1)" (pointer_expression "*c" * identifier) = (call_expression "(uint)(*c == 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*c == 1)" ( (binary_expression "*c == 1" (pointer_expression "*c" * identifier) == number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);" (call_expression "crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195)" identifier (argument_list "("c != NULL","src/math/ltm_desc.c",0x195)" ( (string_literal ""c != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "undefined8 FUN_00160ef0(long param_1,int param_2,uint *param_3)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }\n  if (param_3 != (uint *)0x0) {\n    if (param_2 == 0) {\n      param_2 = 0x28;\n    }\n    uVar2 = mp_prime_is_prime(param_1,param_2);\n    iVar1 = (int)uVar2;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }\n    *param_3 = (uint)(*param_3 == 1);\n    return uVar2;\n  }\n                    \n  crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);\n}\n\n" (function_definition "undefined8 FUN_00160ef0(long param_1,int param_2,uint *param_3)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }\n  if (param_3 != (uint *)0x0) {\n    if (param_2 == 0) {\n      param_2 = 0x28;\n    }\n    uVar2 = mp_prime_is_prime(param_1,param_2);\n    iVar1 = (int)uVar2;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }\n    *param_3 = (uint)(*param_3 == 1);\n    return uVar2;\n  }\n                    \n  crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);\n}" type_identifier (function_declarator "FUN_00160ef0(long param_1,int param_2,uint *param_3)" identifier (parameter_list "(long param_1,int param_2,uint *param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }\n  if (param_3 != (uint *)0x0) {\n    if (param_2 == 0) {\n      param_2 = 0x28;\n    }\n    uVar2 = mp_prime_is_prime(param_1,param_2);\n    iVar1 = (int)uVar2;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }\n    *param_3 = (uint)(*param_3 == 1);\n    return uVar2;\n  }\n                    \n  crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }" { (expression_statement "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);" (call_expression "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194)" identifier (argument_list "("a != NULL","src/math/ltm_desc.c",0x194)" ( (string_literal ""a != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_3 != (uint *)0x0) {\n    if (param_2 == 0) {\n      param_2 = 0x28;\n    }\n    uVar2 = mp_prime_is_prime(param_1,param_2);\n    iVar1 = (int)uVar2;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }\n    *param_3 = (uint)(*param_3 == 1);\n    return uVar2;\n  }" if (parenthesized_expression "(param_3 != (uint *)0x0)" ( (binary_expression "param_3 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (param_2 == 0) {\n      param_2 = 0x28;\n    }\n    uVar2 = mp_prime_is_prime(param_1,param_2);\n    iVar1 = (int)uVar2;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }\n    *param_3 = (uint)(*param_3 == 1);\n    return uVar2;\n  }" { (if_statement "if (param_2 == 0) {\n      param_2 = 0x28;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      param_2 = 0x28;\n    }" { (expression_statement "param_2 = 0x28;" (assignment_expression "param_2 = 0x28" identifier = number_literal) ;) })) (expression_statement "uVar2 = mp_prime_is_prime(param_1,param_2);" (assignment_expression "uVar2 = mp_prime_is_prime(param_1,param_2)" identifier = (call_expression "mp_prime_is_prime(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "iVar1 = (int)uVar2;" (assignment_expression "iVar1 = (int)uVar2" identifier = (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }" { (if_statement "if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }" if (parenthesized_expression "(iVar1 == -2)" ( (binary_expression "iVar1 == -2" identifier == number_literal) )) (compound_statement "{\n        uVar2 = 0xd;\n      }" { (expression_statement "uVar2 = 0xd;" (assignment_expression "uVar2 = 0xd" identifier = number_literal) ;) }) (else_clause "else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }" else (compound_statement "{\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }" if (parenthesized_expression "(iVar1 == -3)" ( (binary_expression "iVar1 == -3" identifier == number_literal) )) (compound_statement "{\n          uVar2 = 0x10;\n        }" { (expression_statement "uVar2 = 0x10;" (assignment_expression "uVar2 = 0x10" identifier = number_literal) ;) })) }))) })) (expression_statement "*param_3 = (uint)(*param_3 == 1);" (assignment_expression "*param_3 = (uint)(*param_3 == 1)" (pointer_expression "*param_3" * identifier) = (call_expression "(uint)(*param_3 == 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*param_3 == 1)" ( (binary_expression "*param_3 == 1" (pointer_expression "*param_3" * identifier) == number_literal) )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);" (call_expression "crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195)" identifier (argument_list "("c != NULL","src/math/ltm_desc.c",0x195)" ( (string_literal ""c != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }))) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * IDENT) == LIT) )))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })))
(function_definition "undefined8 FUN_00160ef0(long param_1,int param_2,uint *param_3)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }\n  if (param_3 != (uint *)0x0) {\n    if (param_2 == 0) {\n      param_2 = 0x28;\n    }\n    uVar2 = mp_prime_is_prime(param_1,param_2);\n    iVar1 = (int)uVar2;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }\n    *param_3 = (uint)(*param_3 == 1);\n    return uVar2;\n  }\n                    \n  crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);\n}" (type_identifier "undefined8") (function_declarator "FUN_00160ef0(long param_1,int param_2,uint *param_3)" (identifier "FUN_00160ef0") (parameter_list "(long param_1,int param_2,uint *param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == 0) {\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }\n  if (param_3 != (uint *)0x0) {\n    if (param_2 == 0) {\n      param_2 = 0x28;\n    }\n    uVar2 = mp_prime_is_prime(param_1,param_2);\n    iVar1 = (int)uVar2;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }\n    *param_3 = (uint)(*param_3 == 1);\n    return uVar2;\n  }\n                    \n  crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);\n  }" ({ "{") (expression_statement "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);" (call_expression "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194)" (identifier "crypt_argchk") (argument_list "("a != NULL","src/math/ltm_desc.c",0x194)" (( "(") (string_literal ""a != NULL"" (" """) (string_content "a != NULL") (" """)) (, ",") (string_literal ""src/math/ltm_desc.c"" (" """) (string_content "src/math/ltm_desc.c") (" """)) (, ",") (number_literal "0x194") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 != (uint *)0x0) {\n    if (param_2 == 0) {\n      param_2 = 0x28;\n    }\n    uVar2 = mp_prime_is_prime(param_1,param_2);\n    iVar1 = (int)uVar2;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }\n    *param_3 = (uint)(*param_3 == 1);\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(param_3 != (uint *)0x0)" (( "(") (binary_expression "param_3 != (uint *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (param_2 == 0) {\n      param_2 = 0x28;\n    }\n    uVar2 = mp_prime_is_prime(param_1,param_2);\n    iVar1 = (int)uVar2;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }\n    *param_3 = (uint)(*param_3 == 1);\n    return uVar2;\n  }" ({ "{") (if_statement "if (param_2 == 0) {\n      param_2 = 0x28;\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      param_2 = 0x28;\n    }" ({ "{") (expression_statement "param_2 = 0x28;" (assignment_expression "param_2 = 0x28" (identifier "param_2") (= "=") (number_literal "0x28")) (; ";")) (} "}"))) (expression_statement "uVar2 = mp_prime_is_prime(param_1,param_2);" (assignment_expression "uVar2 = mp_prime_is_prime(param_1,param_2)" (identifier "uVar2") (= "=") (call_expression "mp_prime_is_prime(param_1,param_2)" (identifier "mp_prime_is_prime") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar1 = (int)uVar2;" (assignment_expression "iVar1 = (int)uVar2" (identifier "iVar1") (= "=") (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2"))) (; ";")) (if_statement "if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }\n    }" ({ "{") (if_statement "if (iVar1 == -2) {\n        uVar2 = 0xd;\n      }\n      else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }" (if "if") (parenthesized_expression "(iVar1 == -2)" (( "(") (binary_expression "iVar1 == -2" (identifier "iVar1") (== "==") (number_literal "-2")) () ")")) (compound_statement "{\n        uVar2 = 0xd;\n      }" ({ "{") (expression_statement "uVar2 = 0xd;" (assignment_expression "uVar2 = 0xd" (identifier "uVar2") (= "=") (number_literal "0xd")) (; ";")) (} "}")) (else_clause "else {\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }" (else "else") (compound_statement "{\n        uVar2 = 1;\n        if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }\n      }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (if_statement "if (iVar1 == -3) {\n          uVar2 = 0x10;\n        }" (if "if") (parenthesized_expression "(iVar1 == -3)" (( "(") (binary_expression "iVar1 == -3" (identifier "iVar1") (== "==") (number_literal "-3")) () ")")) (compound_statement "{\n          uVar2 = 0x10;\n        }" ({ "{") (expression_statement "uVar2 = 0x10;" (assignment_expression "uVar2 = 0x10" (identifier "uVar2") (= "=") (number_literal "0x10")) (; ";")) (} "}"))) (} "}")))) (} "}"))) (expression_statement "*param_3 = (uint)(*param_3 == 1);" (assignment_expression "*param_3 = (uint)(*param_3 == 1)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (call_expression "(uint)(*param_3 == 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*param_3 == 1)" (( "(") (binary_expression "*param_3 == 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (== "==") (number_literal "1")) () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);" (call_expression "crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195)" (identifier "crypt_argchk") (argument_list "("c != NULL","src/math/ltm_desc.c",0x195)" (( "(") (string_literal ""c != NULL"" (" """) (string_content "c != NULL") (" """)) (, ",") (string_literal ""src/math/ltm_desc.c"" (" """) (string_content "src/math/ltm_desc.c") (" """)) (, ",") (number_literal "0x195") () ")"))) (; ";")) (} "}")))

int function_1(void *var_1,int var_4,int *var_3)

{
  int var_6;
  bool bVar2;
  
  if (var_1 == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("a != NULL","src/math/ltm_desc.c",0x194);
  }
  if (var_3 != (int *)0x0) {
    if (var_4 == 0) {
      var_4 = 0x28;
    }
    var_6 = var_5(var_1,var_4);
    if (var_6 != 0) {
      if (var_6 == -2) {
        var_6 = 0xd;
      }
      else {
        bVar2 = var_6 == -3;
        var_6 = 1;
        if (bVar2) {
          var_6 = 0x10;
        }
      }
    }
    *var_3 = (uint)(*var_3 == 1);
    return var_6;
  }
                    /* WARNING: Subroutine does not return */
  var_2("c != NULL","src/math/ltm_desc.c",0x195);
}


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

undefined8 MASKED(long param_1,int param_2,uint *param_3)

{
  int iVar1;
  undefined8 uVar2;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x194);
  }
  if (param_3 != (uint *)0x0) {
    if (param_2 == 0) {
      param_2 = 0x28;
    }
    uVar2 = mp_prime_is_prime(param_1,param_2);
    iVar1 = (int)uVar2;
    if (iVar1 != 0) {
      if (iVar1 == -2) {
        uVar2 = 0xd;
      }
      else {
        uVar2 = 1;
        if (iVar1 == -3) {
          uVar2 = 0x10;
        }
      }
    }
    *param_3 = (uint)(*param_3 == 1);
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("c != NULL","src/math/ltm_desc.c",0x195);
}

