
int init_copy(void **a,void *b)

{
  int iVar1;
  int iVar2;
  void *pvVar3;
  
  if (a == (void **)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);
  }
  pvVar3 = calloc(1,0x18);
  *a = pvVar3;
  if (pvVar3 == (void *)0x0) {
    return 0xd;
  }
  iVar1 = mp_init(pvVar3);
  if (iVar1 == 0) {
    if (b == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);
    }
    if (*a == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);
    }
    iVar1 = mp_copy(b);
    if (iVar1 != 0) {
      if (iVar1 == -2) {
        return 0xd;
      }
      iVar2 = 1;
      if (iVar1 == -3) {
        iVar2 = 0x10;
      }
      return iVar2;
    }
  }
  else {
    free(*a);
    iVar1 = 0xd;
  }
  return iVar1;
}



undefined8 FUN_0016c510(long *param_1,long param_2)

{
  int iVar1;
  void *pvVar2;
  undefined8 uVar3;
  
  if (param_1 == (long *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);
  }
  pvVar2 = calloc(1,0x18);
  *param_1 = (long)pvVar2;
  if (pvVar2 == (void *)0x0) {
    return 0xd;
  }
  iVar1 = mp_init(pvVar2);
  if (iVar1 == 0) {
    if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);
    }
    if (*param_1 == 0) {
                    /* WARNING: Subroutine does not return */
      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);
    }
    uVar3 = mp_copy(param_2);
    iVar1 = (int)uVar3;
    if (iVar1 != 0) {
      if (iVar1 == -2) {
        return 0xd;
      }
      uVar3 = 1;
      if (iVar1 == -3) {
        uVar3 = 0x10;
      }
      return uVar3;
    }
  }
  else {
    free((void *)*param_1);
    uVar3 = 0xd;
  }
  return uVar3;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
TEST RDI,RDI
JZ 0x0016c5a4
MOV RBX,RDI
MOV RBP,RSI
MOV EDI,0x1
MOV ESI,0x18
CALL 0x00113d60
MOV qword ptr [RBX],RAX
TEST RAX,RAX
JZ 0x0016c598
MOV RDI,RAX
CALL 0x001136f0
TEST EAX,EAX
JZ 0x0016c560
MOV RDI,qword ptr [RBX]
CALL 0x00113130
MOV EAX,0xd
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV RSI,qword ptr [RBX]
TEST RBP,RBP
JZ 0x0016c5d4
TEST RSI,RSI
JZ 0x0016c5bc
MOV RDI,RBP
CALL 0x00114360
TEST EAX,EAX
JZ 0x0016c555
CMP EAX,-0x2
JZ 0x0016c598
CMP EAX,-0x3
MOV EDX,0x10
MOV EAX,0x1
CMOVZ EAX,EDX
ADD RSP,0x8
POP RBX
POP RBP
RET
ADD RSP,0x8
MOV EAX,0xd
POP RBX
POP RBP
RET
MOV EDX,0x2e
LEA RSI,[0x1cd1c1]
LEA RDI,[0x1b96ce]
CALL 0x00114270
MOV EDX,0x4c
LEA RSI,[0x1cd1c1]
LEA RDI,[0x1cfe0e]
CALL 0x00114270
MOV EDX,0x4b
LEA RSI,[0x1cd1c1]
LEA RDI,[0x1b96ce]
CALL 0x00114270
(translation_unit "undefined8 FUN_0016c510(long *param_1,long param_2)\n\n{\n  int iVar1;\n  void *pvVar2;\n  undefined8 uVar3;\n  \n  if (param_1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }\n  pvVar2 = calloc(1,0x18);\n  *param_1 = (long)pvVar2;\n  if (pvVar2 == (void *)0x0) {\n    return 0xd;\n  }\n  iVar1 = mp_init(pvVar2);\n  if (iVar1 == 0) {\n    if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    uVar3 = mp_copy(param_2);\n    iVar1 = (int)uVar3;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }\n  }\n  else {\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined8 FUN_0016c510(long *param_1,long param_2)\n\n{\n  int iVar1;\n  void *pvVar2;\n  undefined8 uVar3;\n  \n  if (param_1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }\n  pvVar2 = calloc(1,0x18);\n  *param_1 = (long)pvVar2;\n  if (pvVar2 == (void *)0x0) {\n    return 0xd;\n  }\n  iVar1 = mp_init(pvVar2);\n  if (iVar1 == 0) {\n    if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    uVar3 = mp_copy(param_2);\n    iVar1 = (int)uVar3;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }\n  }\n  else {\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_0016c510(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) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  undefined8 uVar3;\n  \n  if (param_1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }\n  pvVar2 = calloc(1,0x18);\n  *param_1 = (long)pvVar2;\n  if (pvVar2 == (void *)0x0) {\n    return 0xd;\n  }\n  iVar1 = mp_init(pvVar2);\n  if (iVar1 == 0) {\n    if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    uVar3 = mp_copy(param_2);\n    iVar1 = (int)uVar3;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }\n  }\n  else {\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (if_statement "if (param_1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }" if (parenthesized_expression "(param_1 == (long *)0x0)" ( (binary_expression "param_1 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }" { comment (expression_statement "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);" (call_expression "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e)" identifier (argument_list "("a != NULL","src/math/ltm_desc.c",0x2e)" ( (string_literal ""a != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "pvVar2 = calloc(1,0x18);" (assignment_expression "pvVar2 = calloc(1,0x18)" identifier = (call_expression "calloc(1,0x18)" identifier (argument_list "(1,0x18)" ( number_literal , number_literal )))) ;) (expression_statement "*param_1 = (long)pvVar2;" (assignment_expression "*param_1 = (long)pvVar2" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)pvVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (if_statement "if (pvVar2 == (void *)0x0) {\n    return 0xd;\n  }" if (parenthesized_expression "(pvVar2 == (void *)0x0)" ( (binary_expression "pvVar2 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0xd;\n  }" { (return_statement "return 0xd;" return number_literal ;) })) (expression_statement "iVar1 = mp_init(pvVar2);" (assignment_expression "iVar1 = mp_init(pvVar2)" identifier = (call_expression "mp_init(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    uVar3 = mp_copy(param_2);\n    iVar1 = (int)uVar3;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }\n  }\n  else {\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    uVar3 = mp_copy(param_2);\n    iVar1 = (int)uVar3;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }\n  }" { (if_statement "if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }" { comment (expression_statement "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);" (call_expression "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b)" identifier (argument_list "("a != NULL","src/math/ltm_desc.c",0x4b)" ( (string_literal ""a != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (*param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }" { comment (expression_statement "crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);" (call_expression "crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c)" identifier (argument_list "("b != NULL","src/math/ltm_desc.c",0x4c)" ( (string_literal ""b != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "uVar3 = mp_copy(param_2);" (assignment_expression "uVar3 = mp_copy(param_2)" identifier = (call_expression "mp_copy(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar1 = (int)uVar3;" (assignment_expression "iVar1 = (int)uVar3" identifier = (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }" { (if_statement "if (iVar1 == -2) {\n        return 0xd;\n      }" if (parenthesized_expression "(iVar1 == -2)" ( (binary_expression "iVar1 == -2" identifier == number_literal) )) (compound_statement "{\n        return 0xd;\n      }" { (return_statement "return 0xd;" return number_literal ;) })) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (if_statement "if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }" if (parenthesized_expression "(iVar1 == -3)" ( (binary_expression "iVar1 == -3" identifier == number_literal) )) (compound_statement "{\n        uVar3 = 0x10;\n      }" { (expression_statement "uVar3 = 0x10;" (assignment_expression "uVar3 = 0x10" identifier = number_literal) ;) })) (return_statement "return uVar3;" return identifier ;) })) }) (else_clause "else {\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }" else (compound_statement "{\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }" { (expression_statement "free((void *)*param_1);" (call_expression "free((void *)*param_1)" identifier (argument_list "((void *)*param_1)" ( (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (expression_statement "uVar3 = 0xd;" (assignment_expression "uVar3 = 0xd" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "int init_copy(void **a,void *b)\n\n{\n  int iVar1;\n  int iVar2;\n  void *pvVar3;\n  \n  if (a == (void **)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }\n  pvVar3 = calloc(1,0x18);\n  *a = pvVar3;\n  if (pvVar3 == (void *)0x0) {\n    return 0xd;\n  }\n  iVar1 = mp_init(pvVar3);\n  if (iVar1 == 0) {\n    if (b == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*a == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    iVar1 = mp_copy(b);\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      iVar2 = 1;\n      if (iVar1 == -3) {\n        iVar2 = 0x10;\n      }\n      return iVar2;\n    }\n  }\n  else {\n    free(*a);\n    iVar1 = 0xd;\n  }\n  return iVar1;\n}\n\n" (function_definition "int init_copy(void **a,void *b)\n\n{\n  int iVar1;\n  int iVar2;\n  void *pvVar3;\n  \n  if (a == (void **)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }\n  pvVar3 = calloc(1,0x18);\n  *a = pvVar3;\n  if (pvVar3 == (void *)0x0) {\n    return 0xd;\n  }\n  iVar1 = mp_init(pvVar3);\n  if (iVar1 == 0) {\n    if (b == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*a == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    iVar1 = mp_copy(b);\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      iVar2 = 1;\n      if (iVar1 == -3) {\n        iVar2 = 0x10;\n      }\n      return iVar2;\n    }\n  }\n  else {\n    free(*a);\n    iVar1 = 0xd;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "init_copy(void **a,void *b)" identifier (parameter_list "(void **a,void *b)" ( (parameter_declaration "void **a" primitive_type (pointer_declarator "**a" * (pointer_declarator "*a" * identifier))) , (parameter_declaration "void *b" primitive_type (pointer_declarator "*b" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  void *pvVar3;\n  \n  if (a == (void **)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }\n  pvVar3 = calloc(1,0x18);\n  *a = pvVar3;\n  if (pvVar3 == (void *)0x0) {\n    return 0xd;\n  }\n  iVar1 = mp_init(pvVar3);\n  if (iVar1 == 0) {\n    if (b == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*a == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    iVar1 = mp_copy(b);\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      iVar2 = 1;\n      if (iVar1 == -3) {\n        iVar2 = 0x10;\n      }\n      return iVar2;\n    }\n  }\n  else {\n    free(*a);\n    iVar1 = 0xd;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (if_statement "if (a == (void **)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\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 "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }" { comment (expression_statement "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);" (call_expression "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e)" identifier (argument_list "("a != NULL","src/math/ltm_desc.c",0x2e)" ( (string_literal ""a != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "pvVar3 = calloc(1,0x18);" (assignment_expression "pvVar3 = calloc(1,0x18)" identifier = (call_expression "calloc(1,0x18)" identifier (argument_list "(1,0x18)" ( number_literal , number_literal )))) ;) (expression_statement "*a = pvVar3;" (assignment_expression "*a = pvVar3" (pointer_expression "*a" * identifier) = identifier) ;) (if_statement "if (pvVar3 == (void *)0x0) {\n    return 0xd;\n  }" if (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0xd;\n  }" { (return_statement "return 0xd;" return number_literal ;) })) (expression_statement "iVar1 = mp_init(pvVar3);" (assignment_expression "iVar1 = mp_init(pvVar3)" identifier = (call_expression "mp_init(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    if (b == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*a == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    iVar1 = mp_copy(b);\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      iVar2 = 1;\n      if (iVar1 == -3) {\n        iVar2 = 0x10;\n      }\n      return iVar2;\n    }\n  }\n  else {\n    free(*a);\n    iVar1 = 0xd;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if (b == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*a == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    iVar1 = mp_copy(b);\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      iVar2 = 1;\n      if (iVar1 == -3) {\n        iVar2 = 0x10;\n      }\n      return iVar2;\n    }\n  }" { (if_statement "if (b == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }" if (parenthesized_expression "(b == (void *)0x0)" ( (binary_expression "b == (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",0x4b);\n    }" { comment (expression_statement "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);" (call_expression "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b)" identifier (argument_list "("a != NULL","src/math/ltm_desc.c",0x4b)" ( (string_literal ""a != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (*a == (void *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }" if (parenthesized_expression "(*a == (void *)0x0)" ( (binary_expression "*a == (void *)0x0" (pointer_expression "*a" * 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("b != NULL","src/math/ltm_desc.c",0x4c);\n    }" { comment (expression_statement "crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);" (call_expression "crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c)" identifier (argument_list "("b != NULL","src/math/ltm_desc.c",0x4c)" ( (string_literal ""b != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar1 = mp_copy(b);" (assignment_expression "iVar1 = mp_copy(b)" identifier = (call_expression "mp_copy(b)" identifier (argument_list "(b)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      iVar2 = 1;\n      if (iVar1 == -3) {\n        iVar2 = 0x10;\n      }\n      return iVar2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      iVar2 = 1;\n      if (iVar1 == -3) {\n        iVar2 = 0x10;\n      }\n      return iVar2;\n    }" { (if_statement "if (iVar1 == -2) {\n        return 0xd;\n      }" if (parenthesized_expression "(iVar1 == -2)" ( (binary_expression "iVar1 == -2" identifier == number_literal) )) (compound_statement "{\n        return 0xd;\n      }" { (return_statement "return 0xd;" return number_literal ;) })) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (if_statement "if (iVar1 == -3) {\n        iVar2 = 0x10;\n      }" if (parenthesized_expression "(iVar1 == -3)" ( (binary_expression "iVar1 == -3" identifier == number_literal) )) (compound_statement "{\n        iVar2 = 0x10;\n      }" { (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" identifier = number_literal) ;) })) (return_statement "return iVar2;" return identifier ;) })) }) (else_clause "else {\n    free(*a);\n    iVar1 = 0xd;\n  }" else (compound_statement "{\n    free(*a);\n    iVar1 = 0xd;\n  }" { (expression_statement "free(*a);" (call_expression "free(*a)" identifier (argument_list "(*a)" ( (pointer_expression "*a" * identifier) ))) ;) (expression_statement "iVar1 = 0xd;" (assignment_expression "iVar1 = 0xd" identifier = number_literal) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined8 FUN_0016c510(long *param_1,long param_2)\n\n{\n  int iVar1;\n  void *pvVar2;\n  undefined8 uVar3;\n  \n  if (param_1 == (long *)0x0) {\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }\n  pvVar2 = calloc(1,0x18);\n  *param_1 = (long)pvVar2;\n  if (pvVar2 == (void *)0x0) {\n    return 0xd;\n  }\n  iVar1 = mp_init(pvVar2);\n  if (iVar1 == 0) {\n    if (param_2 == 0) {\n                    \n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*param_1 == 0) {\n                    \n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    uVar3 = mp_copy(param_2);\n    iVar1 = (int)uVar3;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }\n  }\n  else {\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined8 FUN_0016c510(long *param_1,long param_2)\n\n{\n  int iVar1;\n  void *pvVar2;\n  undefined8 uVar3;\n  \n  if (param_1 == (long *)0x0) {\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }\n  pvVar2 = calloc(1,0x18);\n  *param_1 = (long)pvVar2;\n  if (pvVar2 == (void *)0x0) {\n    return 0xd;\n  }\n  iVar1 = mp_init(pvVar2);\n  if (iVar1 == 0) {\n    if (param_2 == 0) {\n                    \n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*param_1 == 0) {\n                    \n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    uVar3 = mp_copy(param_2);\n    iVar1 = (int)uVar3;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }\n  }\n  else {\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_0016c510(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) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  undefined8 uVar3;\n  \n  if (param_1 == (long *)0x0) {\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }\n  pvVar2 = calloc(1,0x18);\n  *param_1 = (long)pvVar2;\n  if (pvVar2 == (void *)0x0) {\n    return 0xd;\n  }\n  iVar1 = mp_init(pvVar2);\n  if (iVar1 == 0) {\n    if (param_2 == 0) {\n                    \n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*param_1 == 0) {\n                    \n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    uVar3 = mp_copy(param_2);\n    iVar1 = (int)uVar3;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }\n  }\n  else {\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (if_statement "if (param_1 == (long *)0x0) {\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }" if (parenthesized_expression "(param_1 == (long *)0x0)" ( (binary_expression "param_1 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }" { (expression_statement "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);" (call_expression "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e)" identifier (argument_list "("a != NULL","src/math/ltm_desc.c",0x2e)" ( (string_literal ""a != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "pvVar2 = calloc(1,0x18);" (assignment_expression "pvVar2 = calloc(1,0x18)" identifier = (call_expression "calloc(1,0x18)" identifier (argument_list "(1,0x18)" ( number_literal , number_literal )))) ;) (expression_statement "*param_1 = (long)pvVar2;" (assignment_expression "*param_1 = (long)pvVar2" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)pvVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (if_statement "if (pvVar2 == (void *)0x0) {\n    return 0xd;\n  }" if (parenthesized_expression "(pvVar2 == (void *)0x0)" ( (binary_expression "pvVar2 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0xd;\n  }" { (return_statement "return 0xd;" return number_literal ;) })) (expression_statement "iVar1 = mp_init(pvVar2);" (assignment_expression "iVar1 = mp_init(pvVar2)" identifier = (call_expression "mp_init(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    if (param_2 == 0) {\n                    \n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*param_1 == 0) {\n                    \n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    uVar3 = mp_copy(param_2);\n    iVar1 = (int)uVar3;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }\n  }\n  else {\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\n                    \n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*param_1 == 0) {\n                    \n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    uVar3 = mp_copy(param_2);\n    iVar1 = (int)uVar3;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }\n  }" { (if_statement "if (param_2 == 0) {\n                    \n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }" { (expression_statement "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);" (call_expression "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b)" identifier (argument_list "("a != NULL","src/math/ltm_desc.c",0x4b)" ( (string_literal ""a != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (*param_1 == 0) {\n                    \n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n                    \n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }" { (expression_statement "crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);" (call_expression "crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c)" identifier (argument_list "("b != NULL","src/math/ltm_desc.c",0x4c)" ( (string_literal ""b != NULL"" " string_content ") , (string_literal ""src/math/ltm_desc.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "uVar3 = mp_copy(param_2);" (assignment_expression "uVar3 = mp_copy(param_2)" identifier = (call_expression "mp_copy(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar1 = (int)uVar3;" (assignment_expression "iVar1 = (int)uVar3" identifier = (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }" { (if_statement "if (iVar1 == -2) {\n        return 0xd;\n      }" if (parenthesized_expression "(iVar1 == -2)" ( (binary_expression "iVar1 == -2" identifier == number_literal) )) (compound_statement "{\n        return 0xd;\n      }" { (return_statement "return 0xd;" return number_literal ;) })) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (if_statement "if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }" if (parenthesized_expression "(iVar1 == -3)" ( (binary_expression "iVar1 == -3" identifier == number_literal) )) (compound_statement "{\n        uVar3 = 0x10;\n      }" { (expression_statement "uVar3 = 0x10;" (assignment_expression "uVar3 = 0x10" identifier = number_literal) ;) })) (return_statement "return uVar3;" return identifier ;) })) }) (else_clause "else {\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }" else (compound_statement "{\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }" { (expression_statement "free((void *)*param_1);" (call_expression "free((void *)*param_1)" identifier (argument_list "((void *)*param_1)" ( (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (expression_statement "uVar3 = 0xd;" (assignment_expression "uVar3 = 0xd" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 { (return_statement return LIT ;) })) (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 ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined8 FUN_0016c510(long *param_1,long param_2)\n\n{\n  int iVar1;\n  void *pvVar2;\n  undefined8 uVar3;\n  \n  if (param_1 == (long *)0x0) {\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }\n  pvVar2 = calloc(1,0x18);\n  *param_1 = (long)pvVar2;\n  if (pvVar2 == (void *)0x0) {\n    return 0xd;\n  }\n  iVar1 = mp_init(pvVar2);\n  if (iVar1 == 0) {\n    if (param_2 == 0) {\n                    \n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*param_1 == 0) {\n                    \n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    uVar3 = mp_copy(param_2);\n    iVar1 = (int)uVar3;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }\n  }\n  else {\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }\n  return uVar3;\n}" (type_identifier "undefined8") (function_declarator "FUN_0016c510(long *param_1,long param_2)" (identifier "FUN_0016c510") (parameter_list "(long *param_1,long param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  undefined8 uVar3;\n  \n  if (param_1 == (long *)0x0) {\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }\n  pvVar2 = calloc(1,0x18);\n  *param_1 = (long)pvVar2;\n  if (pvVar2 == (void *)0x0) {\n    return 0xd;\n  }\n  iVar1 = mp_init(pvVar2);\n  if (iVar1 == 0) {\n    if (param_2 == 0) {\n                    \n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*param_1 == 0) {\n                    \n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    uVar3 = mp_copy(param_2);\n    iVar1 = (int)uVar3;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }\n  }\n  else {\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }\n  return uVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "void *pvVar2;" (primitive_type "void") (pointer_declarator "*pvVar2" (* "*") (identifier "pvVar2")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (if_statement "if (param_1 == (long *)0x0) {\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }" (if "if") (parenthesized_expression "(param_1 == (long *)0x0)" (( "(") (binary_expression "param_1 == (long *)0x0" (identifier "param_1") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);\n  }" ({ "{") (expression_statement "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);" (call_expression "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e)" (identifier "crypt_argchk") (argument_list "("a != NULL","src/math/ltm_desc.c",0x2e)" (( "(") (string_literal ""a != NULL"" (" """) (string_content "a != NULL") (" """)) (, ",") (string_literal ""src/math/ltm_desc.c"" (" """) (string_content "src/math/ltm_desc.c") (" """)) (, ",") (number_literal "0x2e") () ")"))) (; ";")) (} "}"))) (expression_statement "pvVar2 = calloc(1,0x18);" (assignment_expression "pvVar2 = calloc(1,0x18)" (identifier "pvVar2") (= "=") (call_expression "calloc(1,0x18)" (identifier "calloc") (argument_list "(1,0x18)" (( "(") (number_literal "1") (, ",") (number_literal "0x18") () ")")))) (; ";")) (expression_statement "*param_1 = (long)pvVar2;" (assignment_expression "*param_1 = (long)pvVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(long)pvVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar2"))) (; ";")) (if_statement "if (pvVar2 == (void *)0x0) {\n    return 0xd;\n  }" (if "if") (parenthesized_expression "(pvVar2 == (void *)0x0)" (( "(") (binary_expression "pvVar2 == (void *)0x0" (identifier "pvVar2") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return 0xd;\n  }" ({ "{") (return_statement "return 0xd;" (return "return") (number_literal "0xd") (; ";")) (} "}"))) (expression_statement "iVar1 = mp_init(pvVar2);" (assignment_expression "iVar1 = mp_init(pvVar2)" (identifier "iVar1") (= "=") (call_expression "mp_init(pvVar2)" (identifier "mp_init") (argument_list "(pvVar2)" (( "(") (identifier "pvVar2") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    if (param_2 == 0) {\n                    \n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*param_1 == 0) {\n                    \n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    uVar3 = mp_copy(param_2);\n    iVar1 = (int)uVar3;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }\n  }\n  else {\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_2 == 0) {\n                    \n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }\n    if (*param_1 == 0) {\n                    \n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }\n    uVar3 = mp_copy(param_2);\n    iVar1 = (int)uVar3;\n    if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }\n  }" ({ "{") (if_statement "if (param_2 == 0) {\n                    \n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);\n    }" ({ "{") (expression_statement "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);" (call_expression "crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b)" (identifier "crypt_argchk") (argument_list "("a != NULL","src/math/ltm_desc.c",0x4b)" (( "(") (string_literal ""a != NULL"" (" """) (string_content "a != NULL") (" """)) (, ",") (string_literal ""src/math/ltm_desc.c"" (" """) (string_content "src/math/ltm_desc.c") (" """)) (, ",") (number_literal "0x4b") () ")"))) (; ";")) (} "}"))) (if_statement "if (*param_1 == 0) {\n                    \n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);\n    }" ({ "{") (expression_statement "crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);" (call_expression "crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c)" (identifier "crypt_argchk") (argument_list "("b != NULL","src/math/ltm_desc.c",0x4c)" (( "(") (string_literal ""b != NULL"" (" """) (string_content "b != NULL") (" """)) (, ",") (string_literal ""src/math/ltm_desc.c"" (" """) (string_content "src/math/ltm_desc.c") (" """)) (, ",") (number_literal "0x4c") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar3 = mp_copy(param_2);" (assignment_expression "uVar3 = mp_copy(param_2)" (identifier "uVar3") (= "=") (call_expression "mp_copy(param_2)" (identifier "mp_copy") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar1 = (int)uVar3;" (assignment_expression "iVar1 = (int)uVar3" (identifier "iVar1") (= "=") (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3"))) (; ";")) (if_statement "if (iVar1 != 0) {\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (iVar1 == -2) {\n        return 0xd;\n      }\n      uVar3 = 1;\n      if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }\n      return uVar3;\n    }" ({ "{") (if_statement "if (iVar1 == -2) {\n        return 0xd;\n      }" (if "if") (parenthesized_expression "(iVar1 == -2)" (( "(") (binary_expression "iVar1 == -2" (identifier "iVar1") (== "==") (number_literal "-2")) () ")")) (compound_statement "{\n        return 0xd;\n      }" ({ "{") (return_statement "return 0xd;" (return "return") (number_literal "0xd") (; ";")) (} "}"))) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (if_statement "if (iVar1 == -3) {\n        uVar3 = 0x10;\n      }" (if "if") (parenthesized_expression "(iVar1 == -3)" (( "(") (binary_expression "iVar1 == -3" (identifier "iVar1") (== "==") (number_literal "-3")) () ")")) (compound_statement "{\n        uVar3 = 0x10;\n      }" ({ "{") (expression_statement "uVar3 = 0x10;" (assignment_expression "uVar3 = 0x10" (identifier "uVar3") (= "=") (number_literal "0x10")) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }" (else "else") (compound_statement "{\n    free((void *)*param_1);\n    uVar3 = 0xd;\n  }" ({ "{") (expression_statement "free((void *)*param_1);" (call_expression "free((void *)*param_1)" (identifier "free") (argument_list "((void *)*param_1)" (( "(") (cast_expression "(void *)*param_1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (expression_statement "uVar3 = 0xd;" (assignment_expression "uVar3 = 0xd" (identifier "uVar3") (= "=") (number_literal "0xd")) (; ";")) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

int function_1(void **var_1,void *var_7)

{
  int var_6;
  int iVar2;
  void *var_4;
  
  if (var_1 == (void **)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("a != NULL","src/math/ltm_desc.c",0x2e);
  }
  var_4 = var_3(1,0x18);
  *var_1 = var_4;
  if (var_4 == (void *)0x0) {
    return 0xd;
  }
  var_6 = var_5(var_4);
  if (var_6 == 0) {
    if (var_7 == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
      var_2("a != NULL","src/math/ltm_desc.c",0x4b);
    }
    if (*var_1 == (void *)0x0) {
                    /* WARNING: Subroutine does not return */
      var_2("b != NULL","src/math/ltm_desc.c",0x4c);
    }
    var_6 = var_8(var_7);
    if (var_6 != 0) {
      if (var_6 == -2) {
        return 0xd;
      }
      iVar2 = 1;
      if (var_6 == -3) {
        iVar2 = 0x10;
      }
      return iVar2;
    }
  }
  else {
    var_9(*var_1);
    var_6 = 0xd;
  }
  return var_6;
}


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

undefined8 MASKED(long *param_1,long param_2)

{
  int iVar1;
  void *pvVar2;
  undefined8 uVar3;
  
  if (param_1 == (long *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("a != NULL","src/math/ltm_desc.c",0x2e);
  }
  pvVar2 = calloc(1,0x18);
  *param_1 = (long)pvVar2;
  if (pvVar2 == (void *)0x0) {
    return 0xd;
  }
  iVar1 = mp_init(pvVar2);
  if (iVar1 == 0) {
    if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
      crypt_argchk("a != NULL","src/math/ltm_desc.c",0x4b);
    }
    if (*param_1 == 0) {
                    /* WARNING: Subroutine does not return */
      crypt_argchk("b != NULL","src/math/ltm_desc.c",0x4c);
    }
    uVar3 = mp_copy(param_2);
    iVar1 = (int)uVar3;
    if (iVar1 != 0) {
      if (iVar1 == -2) {
        return 0xd;
      }
      uVar3 = 1;
      if (iVar1 == -3) {
        uVar3 = 0x10;
      }
      return uVar3;
    }
  }
  else {
    free((void *)*param_1);
    uVar3 = 0xd;
  }
  return uVar3;
}

