
int write_radix(void *a,char *b,int radix)

{
  int iVar1;
  undefined4 in_register_00000014;
  bool bVar2;
  
  if (a == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("a != NULL","src/math/ltm_desc.c",0xb0);
  }
  if (b != (char *)0x0) {
    iVar1 = mp_toradix(a,b,CONCAT44(in_register_00000014,radix));
    if (iVar1 != 0) {
      if (iVar1 == -2) {
        iVar1 = 0xd;
      }
      else {
        bVar2 = iVar1 == -3;
        iVar1 = 1;
        if (bVar2) {
          iVar1 = 0x10;
        }
      }
    }
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);
}



undefined8 FUN_00161ae0(long param_1,long param_2)

{
  int iVar1;
  undefined8 uVar2;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("a != NULL","src/math/ltm_desc.c",0xb0);
  }
  if (param_2 != 0) {
    uVar2 = mp_toradix();
    iVar1 = (int)uVar2;
    if (iVar1 != 0) {
      if (iVar1 == -2) {
        uVar2 = 0xd;
      }
      else {
        uVar2 = 1;
        if (iVar1 == -3) {
          uVar2 = 0x10;
        }
      }
    }
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);
}


SUB RSP,0x8
TEST RDI,RDI
JZ 0x00161b1f
TEST RSI,RSI
JZ 0x00161b37
CALL 0x00113710
TEST EAX,EAX
JZ 0x00161b0c
CMP EAX,-0x2
JZ 0x00161b18
CMP EAX,-0x3
MOV EDX,0x10
MOV EAX,0x1
CMOVZ EAX,EDX
ADD RSP,0x8
RET
MOV EAX,0xd
JMP 0x00161b0c
MOV EDX,0xb0
LEA RSI,[0x1bdba1]
LEA RDI,[0x1aa70e]
CALL 0x00114270
MOV EDX,0xb1
LEA RSI,[0x1bdba1]
LEA RDI,[0x1c07ee]
CALL 0x00114270
(translation_unit "undefined8 FUN_00161ae0(long param_1,long param_2)\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",0xb0);\n  }\n  if (param_2 != 0) {\n    uVar2 = mp_toradix();\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    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);\n}\n\n" (function_definition "undefined8 FUN_00161ae0(long param_1,long param_2)\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",0xb0);\n  }\n  if (param_2 != 0) {\n    uVar2 = mp_toradix();\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    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);\n}" type_identifier (function_declarator "FUN_00161ae0(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) 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",0xb0);\n  }\n  if (param_2 != 0) {\n    uVar2 = mp_toradix();\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    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);\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",0xb0);\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",0xb0);\n  }" { comment (expression_statement "crypt_argchk("a != NULL","src/math/ltm_desc.c",0xb0);" (call_expression "crypt_argchk("a != NULL","src/math/ltm_desc.c",0xb0)" identifier (argument_list "("a != NULL","src/math/ltm_desc.c",0xb0)" ( (string_literal ""a != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_2 != 0) {\n    uVar2 = mp_toradix();\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    return uVar2;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = mp_toradix();\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    return uVar2;\n  }" { (expression_statement "uVar2 = mp_toradix();" (assignment_expression "uVar2 = mp_toradix()" identifier = (call_expression "mp_toradix()" identifier (argument_list "()" ( )))) ;) (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) ;) })) }))) })) (return_statement "return uVar2;" return identifier ;) })) comment (expression_statement "crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);" (call_expression "crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1)" identifier (argument_list "("b != NULL","src/math/ltm_desc.c",0xb1)" ( (string_literal ""b != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "int write_radix(void *a,char *b,int radix)\n\n{\n  int iVar1;\n  undefined4 in_register_00000014;\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",0xb0);\n  }\n  if (b != (char *)0x0) {\n    iVar1 = mp_toradix(a,b,CONCAT44(in_register_00000014,radix));\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    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);\n}\n\n" (function_definition "int write_radix(void *a,char *b,int radix)\n\n{\n  int iVar1;\n  undefined4 in_register_00000014;\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",0xb0);\n  }\n  if (b != (char *)0x0) {\n    iVar1 = mp_toradix(a,b,CONCAT44(in_register_00000014,radix));\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    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);\n}" primitive_type (function_declarator "write_radix(void *a,char *b,int radix)" identifier (parameter_list "(void *a,char *b,int radix)" ( (parameter_declaration "void *a" primitive_type (pointer_declarator "*a" * identifier)) , (parameter_declaration "char *b" primitive_type (pointer_declarator "*b" * identifier)) , (parameter_declaration "int radix" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 in_register_00000014;\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",0xb0);\n  }\n  if (b != (char *)0x0) {\n    iVar1 = mp_toradix(a,b,CONCAT44(in_register_00000014,radix));\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    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 in_register_00000014;" type_identifier 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",0xb0);\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",0xb0);\n  }" { comment (expression_statement "crypt_argchk("a != NULL","src/math/ltm_desc.c",0xb0);" (call_expression "crypt_argchk("a != NULL","src/math/ltm_desc.c",0xb0)" identifier (argument_list "("a != NULL","src/math/ltm_desc.c",0xb0)" ( (string_literal ""a != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (b != (char *)0x0) {\n    iVar1 = mp_toradix(a,b,CONCAT44(in_register_00000014,radix));\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    return iVar1;\n  }" if (parenthesized_expression "(b != (char *)0x0)" ( (binary_expression "b != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = mp_toradix(a,b,CONCAT44(in_register_00000014,radix));\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    return iVar1;\n  }" { (expression_statement "iVar1 = mp_toradix(a,b,CONCAT44(in_register_00000014,radix));" (assignment_expression "iVar1 = mp_toradix(a,b,CONCAT44(in_register_00000014,radix))" identifier = (call_expression "mp_toradix(a,b,CONCAT44(in_register_00000014,radix))" identifier (argument_list "(a,b,CONCAT44(in_register_00000014,radix))" ( identifier , identifier , (call_expression "CONCAT44(in_register_00000014,radix)" identifier (argument_list "(in_register_00000014,radix)" ( 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) ;) })) }))) })) (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);" (call_expression "crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1)" identifier (argument_list "("b != NULL","src/math/ltm_desc.c",0xb1)" ( (string_literal ""b != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "undefined8 FUN_00161ae0(long param_1,long param_2)\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",0xb0);\n  }\n  if (param_2 != 0) {\n    uVar2 = mp_toradix();\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    return uVar2;\n  }\n                    \n  crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);\n}\n\n" (function_definition "undefined8 FUN_00161ae0(long param_1,long param_2)\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",0xb0);\n  }\n  if (param_2 != 0) {\n    uVar2 = mp_toradix();\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    return uVar2;\n  }\n                    \n  crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);\n}" type_identifier (function_declarator "FUN_00161ae0(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) 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",0xb0);\n  }\n  if (param_2 != 0) {\n    uVar2 = mp_toradix();\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    return uVar2;\n  }\n                    \n  crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);\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",0xb0);\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",0xb0);\n  }" { (expression_statement "crypt_argchk("a != NULL","src/math/ltm_desc.c",0xb0);" (call_expression "crypt_argchk("a != NULL","src/math/ltm_desc.c",0xb0)" identifier (argument_list "("a != NULL","src/math/ltm_desc.c",0xb0)" ( (string_literal ""a != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_2 != 0) {\n    uVar2 = mp_toradix();\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    return uVar2;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = mp_toradix();\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    return uVar2;\n  }" { (expression_statement "uVar2 = mp_toradix();" (assignment_expression "uVar2 = mp_toradix()" identifier = (call_expression "mp_toradix()" identifier (argument_list "()" ( )))) ;) (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) ;) })) }))) })) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);" (call_expression "crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1)" identifier (argument_list "("b != NULL","src/math/ltm_desc.c",0xb1)" ( (string_literal ""b != 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 (sized_type_specifier long) 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 != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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) ;) })) }))) })) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })))
(function_definition "undefined8 FUN_00161ae0(long param_1,long param_2)\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",0xb0);\n  }\n  if (param_2 != 0) {\n    uVar2 = mp_toradix();\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    return uVar2;\n  }\n                    \n  crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);\n}" (type_identifier "undefined8") (function_declarator "FUN_00161ae0(long param_1,long param_2)" (identifier "FUN_00161ae0") (parameter_list "(long param_1,long param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (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",0xb0);\n  }\n  if (param_2 != 0) {\n    uVar2 = mp_toradix();\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    return uVar2;\n  }\n                    \n  crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);\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",0xb0);\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",0xb0);\n  }" ({ "{") (expression_statement "crypt_argchk("a != NULL","src/math/ltm_desc.c",0xb0);" (call_expression "crypt_argchk("a != NULL","src/math/ltm_desc.c",0xb0)" (identifier "crypt_argchk") (argument_list "("a != NULL","src/math/ltm_desc.c",0xb0)" (( "(") (string_literal ""a != NULL"" (" """) (string_content "a != NULL") (" """)) (, ",") (string_literal ""src/math/ltm_desc.c"" (" """) (string_content "src/math/ltm_desc.c") (" """)) (, ",") (number_literal "0xb0") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_2 != 0) {\n    uVar2 = mp_toradix();\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    return uVar2;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = mp_toradix();\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    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = mp_toradix();" (assignment_expression "uVar2 = mp_toradix()" (identifier "uVar2") (= "=") (call_expression "mp_toradix()" (identifier "mp_toradix") (argument_list "()" (( "(") () ")")))) (; ";")) (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")) (; ";")) (} "}"))) (} "}")))) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);" (call_expression "crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1)" (identifier "crypt_argchk") (argument_list "("b != NULL","src/math/ltm_desc.c",0xb1)" (( "(") (string_literal ""b != NULL"" (" """) (string_content "b != NULL") (" """)) (, ",") (string_literal ""src/math/ltm_desc.c"" (" """) (string_content "src/math/ltm_desc.c") (" """)) (, ",") (number_literal "0xb1") () ")"))) (; ";")) (} "}")))

int function_1(void *var_1,char *var_3,int radix)

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


(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: (sized_type_specifier) 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: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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)))))))))) (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,long param_2)

{
  int iVar1;
  undefined8 uVar2;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("a != NULL","src/math/ltm_desc.c",0xb0);
  }
  if (param_2 != 0) {
    uVar2 = mp_toradix();
    iVar1 = (int)uVar2;
    if (iVar1 != 0) {
      if (iVar1 == -2) {
        uVar2 = 0xd;
      }
      else {
        uVar2 = 1;
        if (iVar1 == -3) {
          uVar2 = 0x10;
        }
      }
    }
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("b != NULL","src/math/ltm_desc.c",0xb1);
}

