
int dh_set_pg_groupsize(int groupsize,dh_key *key)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  int *piVar4;
  int iVar5;
  
  puVar2 = PTR_ltc_mp_001ecec8;
  puVar1 = PTR_ltc_dh_sets_001ece68;
  if (key == (dh_key *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);
  }
  if (*(long *)PTR_ltc_mp_001ecec8 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);
  }
  if (groupsize < 1) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);
  }
  iVar3 = *(int *)PTR_ltc_dh_sets_001ece68;
  if (iVar3 < groupsize) {
    iVar5 = 0;
    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;
    do {
      if (iVar3 == 0) {
        return 3;
      }
      piVar4 = piVar4 + 8;
      iVar3 = *piVar4;
      iVar5 = iVar5 + 1;
    } while (iVar3 < groupsize);
  }
  else {
    iVar5 = 0;
  }
  iVar3 = ltc_init_multi(&key->x,&key->y,&key->base,&key->prime,0);
  if ((iVar3 == 0) &&
     ((iVar3 = (**(code **)(puVar2 + 0x80))
                         (key->base,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x10),0x10),
      iVar3 != 0 ||
      (iVar3 = (**(code **)(puVar2 + 0x80))
                         (key->prime,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18),0x10),
      iVar3 != 0)))) {
    dh_free(key);
    return iVar3;
  }
  return iVar3;
}



ulong dh_set_pg_groupsize(int param_1,long param_2)

{
  int iVar1;
  undefined *puVar2;
  undefined *puVar3;
  int *piVar4;
  ulong uVar5;
  int iVar6;
  
  puVar3 = PTR_ltc_mp_001ecec8;
  puVar2 = PTR_ltc_dh_sets_001ece68;
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);
  }
  if (*(long *)PTR_ltc_mp_001ecec8 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);
  }
  if (param_1 < 1) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);
  }
  iVar1 = *(int *)PTR_ltc_dh_sets_001ece68;
  if (iVar1 < param_1) {
    iVar6 = 0;
    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;
    do {
      if (iVar1 == 0) {
        return 3;
      }
      piVar4 = piVar4 + 8;
      iVar1 = *piVar4;
      iVar6 = iVar6 + 1;
    } while (iVar1 < param_1);
  }
  else {
    iVar6 = 0;
  }
  uVar5 = ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0);
  if (((int)uVar5 == 0) &&
     ((uVar5 = (**(code **)(puVar3 + 0x80))
                         (*(undefined8 *)(param_2 + 0x18),
                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0
      || (uVar5 = (**(code **)(puVar3 + 0x80))
                            (*(undefined8 *)(param_2 + 0x20),
                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),
         (int)uVar5 != 0)))) {
    dh_free(param_2);
    return uVar5 & 0xffffffff;
  }
  return uVar5;
}


PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x18
TEST RSI,RSI
JZ 0x001859bf
MOV RBP,qword ptr [0x001ecec8]
CMP qword ptr [RBP],0x0
JZ 0x001859ef
TEST EDI,EDI
JLE 0x001859d7
MOV R13,qword ptr [0x001ece68]
MOV R12,RSI
MOV EDX,dword ptr [R13]
CMP EDI,EDX
JLE 0x001859b8
LEA RAX,[R13 + 0x20]
XOR EBX,EBX
TEST EDX,EDX
JNZ 0x00185914
JMP 0x001859a8
ADD RAX,0x20
TEST ECX,ECX
JZ 0x001859a8
MOV ECX,dword ptr [RAX]
ADD EBX,0x1
CMP ECX,EDI
JL 0x00185908
XOR R8D,R8D
LEA RCX,[R12 + 0x20]
LEA RDX,[R12 + 0x18]
XOR EAX,EAX
LEA RSI,[R12 + 0x10]
LEA RDI,[R12 + 0x8]
CALL 0x001135b0
TEST EAX,EAX
JNZ 0x00185979
MOVSXD RBX,EBX
MOV RDI,qword ptr [R12 + 0x18]
MOV EDX,0x10
SHL RBX,0x5
ADD RBX,R13
MOV RSI,qword ptr [RBX + 0x10]
CALL qword ptr [RBP + 0x80]
TEST EAX,EAX
JNZ 0x00185988
MOV RDI,qword ptr [R12 + 0x20]
MOV EDX,0x10
MOV RSI,qword ptr [RBX + 0x18]
CALL qword ptr [RBP + 0x80]
TEST EAX,EAX
JNZ 0x00185988
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
RET
MOV RDI,R12
MOV dword ptr [RSP + 0xc],EAX
CALL 0x00114d10
MOV EAX,dword ptr [RSP + 0xc]
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
RET
ADD RSP,0x18
MOV EAX,0x3
POP RBX
POP RBP
POP R12
POP R13
RET
XOR EBX,EBX
JMP 0x0018591d
MOV EDX,0x3c
LEA RSI,[0x1d53e7]
LEA RDI,[0x1d547d]
CALL 0x00114270
MOV EDX,0x3e
LEA RSI,[0x1d53e7]
LEA RDI,[0x1d53fa]
CALL 0x00114270
MOV EDX,0x3d
LEA RSI,[0x1d53e7]
LEA RDI,[0x1d53bd]
CALL 0x00114270
(translation_unit "ulong dh_set_pg_groupsize(int param_1,long param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  ulong uVar5;\n  int iVar6;\n  \n  puVar3 = PTR_ltc_mp_001ecec8;\n  puVar2 = PTR_ltc_dh_sets_001ece68;\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }\n  if (*(long *)PTR_ltc_mp_001ecec8 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }\n  if (param_1 < 1) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }\n  iVar1 = *(int *)PTR_ltc_dh_sets_001ece68;\n  if (iVar1 < param_1) {\n    iVar6 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);\n  }\n  else {\n    iVar6 = 0;\n  }\n  uVar5 = ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0);\n  if (((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))) {\n    dh_free(param_2);\n    return uVar5 & 0xffffffff;\n  }\n  return uVar5;\n}\n\n" (function_definition "ulong dh_set_pg_groupsize(int param_1,long param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  ulong uVar5;\n  int iVar6;\n  \n  puVar3 = PTR_ltc_mp_001ecec8;\n  puVar2 = PTR_ltc_dh_sets_001ece68;\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }\n  if (*(long *)PTR_ltc_mp_001ecec8 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }\n  if (param_1 < 1) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }\n  iVar1 = *(int *)PTR_ltc_dh_sets_001ece68;\n  if (iVar1 < param_1) {\n    iVar6 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);\n  }\n  else {\n    iVar6 = 0;\n  }\n  uVar5 = ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0);\n  if (((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))) {\n    dh_free(param_2);\n    return uVar5 & 0xffffffff;\n  }\n  return uVar5;\n}" type_identifier (function_declarator "dh_set_pg_groupsize(int param_1,long param_2)" identifier (parameter_list "(int param_1,long param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  ulong uVar5;\n  int iVar6;\n  \n  puVar3 = PTR_ltc_mp_001ecec8;\n  puVar2 = PTR_ltc_dh_sets_001ece68;\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }\n  if (*(long *)PTR_ltc_mp_001ecec8 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }\n  if (param_1 < 1) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }\n  iVar1 = *(int *)PTR_ltc_dh_sets_001ece68;\n  if (iVar1 < param_1) {\n    iVar6 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);\n  }\n  else {\n    iVar6 = 0;\n  }\n  uVar5 = ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0);\n  if (((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))) {\n    dh_free(param_2);\n    return uVar5 & 0xffffffff;\n  }\n  return uVar5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar3 = PTR_ltc_mp_001ecec8;" (assignment_expression "puVar3 = PTR_ltc_mp_001ecec8" identifier = identifier) ;) (expression_statement "puVar2 = PTR_ltc_dh_sets_001ece68;" (assignment_expression "puVar2 = PTR_ltc_dh_sets_001ece68" identifier = identifier) ;) (if_statement "if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\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("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }" { comment (expression_statement "crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);" (call_expression "crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c)" identifier (argument_list "("key != NULL","src/pk/dh/dh_set.c",0x3c)" ( (string_literal ""key != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_set.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (*(long *)PTR_ltc_mp_001ecec8 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }" if (parenthesized_expression "(*(long *)PTR_ltc_mp_001ecec8 == 0)" ( (binary_expression "*(long *)PTR_ltc_mp_001ecec8 == 0" (pointer_expression "*(long *)PTR_ltc_mp_001ecec8" * (cast_expression "(long *)PTR_ltc_mp_001ecec8" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }" { comment (expression_statement "crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);" (call_expression "crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d)" identifier (argument_list "("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d)" ( (string_literal ""ltc_mp.name != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_set.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_1 < 1) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }" if (parenthesized_expression "(param_1 < 1)" ( (binary_expression "param_1 < 1" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }" { comment (expression_statement "crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);" (call_expression "crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e)" identifier (argument_list "("groupsize > 0","src/pk/dh/dh_set.c",0x3e)" ( (string_literal ""groupsize > 0"" " string_content ") , (string_literal ""src/pk/dh/dh_set.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar1 = *(int *)PTR_ltc_dh_sets_001ece68;" (assignment_expression "iVar1 = *(int *)PTR_ltc_dh_sets_001ece68" identifier = (pointer_expression "*(int *)PTR_ltc_dh_sets_001ece68" * (cast_expression "(int *)PTR_ltc_dh_sets_001ece68" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar1 < param_1) {\n    iVar6 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);\n  }\n  else {\n    iVar6 = 0;\n  }" if (parenthesized_expression "(iVar1 < param_1)" ( (binary_expression "iVar1 < param_1" identifier < identifier) )) (compound_statement "{\n    iVar6 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);\n  }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "piVar4 = (int *)PTR_ltc_dh_sets_001ece68;" (assignment_expression "piVar4 = (int *)PTR_ltc_dh_sets_001ece68" identifier = (cast_expression "(int *)PTR_ltc_dh_sets_001ece68" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);" do (compound_statement "{\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    }" { (if_statement "if (iVar1 == 0) {\n        return 3;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return 3;\n      }" { (return_statement "return 3;" return number_literal ;) })) (expression_statement "piVar4 = piVar4 + 8;" (assignment_expression "piVar4 = piVar4 + 8" identifier = (binary_expression "piVar4 + 8" identifier + number_literal)) ;) (expression_statement "iVar1 = *piVar4;" (assignment_expression "iVar1 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 < param_1)" ( (binary_expression "iVar1 < param_1" identifier < identifier) )) ;) }) (else_clause "else {\n    iVar6 = 0;\n  }" else (compound_statement "{\n    iVar6 = 0;\n  }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }))) (expression_statement "uVar5 = ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0);" (assignment_expression "uVar5 = ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0)" identifier = (call_expression "ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0)" identifier (argument_list "(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0)" ( (binary_expression "param_2 + 8" identifier + number_literal) , (binary_expression "param_2 + 0x10" identifier + number_literal) , (binary_expression "param_2 + 0x18" identifier + number_literal) , (binary_expression "param_2 + 0x20" identifier + number_literal) , number_literal )))) ;) (if_statement "if (((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))) {\n    dh_free(param_2);\n    return uVar5 & 0xffffffff;\n  }" if (parenthesized_expression "(((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0))))" ( (binary_expression "((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))" (parenthesized_expression "((int)uVar5 == 0)" ( (binary_expression "(int)uVar5 == 0" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) && (parenthesized_expression "((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))" ( (parenthesized_expression "(uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0))" ( (comma_expression "uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)" (assignment_expression "uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10)" identifier = (call_expression "(**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10)" (parenthesized_expression "(**(code **)(puVar3 + 0x80))" ( (pointer_expression "**(code **)(puVar3 + 0x80)" * (pointer_expression "*(code **)(puVar3 + 0x80)" * (cast_expression "(code **)(puVar3 + 0x80)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x80)" ( (binary_expression "puVar3 + 0x80" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10)" ( (pointer_expression "*(undefined8 *)(param_2 + 0x18)" * (cast_expression "(undefined8 *)(param_2 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10)" * (cast_expression "(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + (long)iVar6 * 0x20 + 0x10)" ( (binary_expression "puVar2 + (long)iVar6 * 0x20 + 0x10" (binary_expression "puVar2 + (long)iVar6 * 0x20" identifier + (binary_expression "(long)iVar6 * 0x20" (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) , number_literal )))) , (binary_expression "(int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)" (binary_expression "(int)uVar5 != 0" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) || (parenthesized_expression "(uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)" ( (comma_expression "uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0" (assignment_expression "uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10)" identifier = (call_expression "(**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10)" (parenthesized_expression "(**(code **)(puVar3 + 0x80))" ( (pointer_expression "**(code **)(puVar3 + 0x80)" * (pointer_expression "*(code **)(puVar3 + 0x80)" * (cast_expression "(code **)(puVar3 + 0x80)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x80)" ( (binary_expression "puVar3 + 0x80" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10)" ( (pointer_expression "*(undefined8 *)(param_2 + 0x20)" * (cast_expression "(undefined8 *)(param_2 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18)" * (cast_expression "(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + (long)iVar6 * 0x20 + 0x18)" ( (binary_expression "puVar2 + (long)iVar6 * 0x20 + 0x18" (binary_expression "puVar2 + (long)iVar6 * 0x20" identifier + (binary_expression "(long)iVar6 * 0x20" (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) , number_literal )))) , (binary_expression "(int)uVar5 != 0" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal)) )))) )) ))) )) (compound_statement "{\n    dh_free(param_2);\n    return uVar5 & 0xffffffff;\n  }" { (expression_statement "dh_free(param_2);" (call_expression "dh_free(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (return_statement "return uVar5 & 0xffffffff;" return (binary_expression "uVar5 & 0xffffffff" identifier & number_literal) ;) })) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit "int dh_set_pg_groupsize(int groupsize,dh_key *key)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  puVar2 = PTR_ltc_mp_001ecec8;\n  puVar1 = PTR_ltc_dh_sets_001ece68;\n  if (key == (dh_key *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }\n  if (*(long *)PTR_ltc_mp_001ecec8 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }\n  if (groupsize < 1) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }\n  iVar3 = *(int *)PTR_ltc_dh_sets_001ece68;\n  if (iVar3 < groupsize) {\n    iVar5 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar3 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar3 = *piVar4;\n      iVar5 = iVar5 + 1;\n    } while (iVar3 < groupsize);\n  }\n  else {\n    iVar5 = 0;\n  }\n  iVar3 = ltc_init_multi(&key->x,&key->y,&key->base,&key->prime,0);\n  if ((iVar3 == 0) &&\n     ((iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->base,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x10),0x10),\n      iVar3 != 0 ||\n      (iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->prime,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18),0x10),\n      iVar3 != 0)))) {\n    dh_free(key);\n    return iVar3;\n  }\n  return iVar3;\n}\n\n" (function_definition "int dh_set_pg_groupsize(int groupsize,dh_key *key)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  puVar2 = PTR_ltc_mp_001ecec8;\n  puVar1 = PTR_ltc_dh_sets_001ece68;\n  if (key == (dh_key *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }\n  if (*(long *)PTR_ltc_mp_001ecec8 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }\n  if (groupsize < 1) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }\n  iVar3 = *(int *)PTR_ltc_dh_sets_001ece68;\n  if (iVar3 < groupsize) {\n    iVar5 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar3 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar3 = *piVar4;\n      iVar5 = iVar5 + 1;\n    } while (iVar3 < groupsize);\n  }\n  else {\n    iVar5 = 0;\n  }\n  iVar3 = ltc_init_multi(&key->x,&key->y,&key->base,&key->prime,0);\n  if ((iVar3 == 0) &&\n     ((iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->base,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x10),0x10),\n      iVar3 != 0 ||\n      (iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->prime,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18),0x10),\n      iVar3 != 0)))) {\n    dh_free(key);\n    return iVar3;\n  }\n  return iVar3;\n}" primitive_type (function_declarator "dh_set_pg_groupsize(int groupsize,dh_key *key)" identifier (parameter_list "(int groupsize,dh_key *key)" ( (parameter_declaration "int groupsize" primitive_type identifier) , (parameter_declaration "dh_key *key" type_identifier (pointer_declarator "*key" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  \n  puVar2 = PTR_ltc_mp_001ecec8;\n  puVar1 = PTR_ltc_dh_sets_001ece68;\n  if (key == (dh_key *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }\n  if (*(long *)PTR_ltc_mp_001ecec8 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }\n  if (groupsize < 1) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }\n  iVar3 = *(int *)PTR_ltc_dh_sets_001ece68;\n  if (iVar3 < groupsize) {\n    iVar5 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar3 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar3 = *piVar4;\n      iVar5 = iVar5 + 1;\n    } while (iVar3 < groupsize);\n  }\n  else {\n    iVar5 = 0;\n  }\n  iVar3 = ltc_init_multi(&key->x,&key->y,&key->base,&key->prime,0);\n  if ((iVar3 == 0) &&\n     ((iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->base,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x10),0x10),\n      iVar3 != 0 ||\n      (iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->prime,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18),0x10),\n      iVar3 != 0)))) {\n    dh_free(key);\n    return iVar3;\n  }\n  return iVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar2 = PTR_ltc_mp_001ecec8;" (assignment_expression "puVar2 = PTR_ltc_mp_001ecec8" identifier = identifier) ;) (expression_statement "puVar1 = PTR_ltc_dh_sets_001ece68;" (assignment_expression "puVar1 = PTR_ltc_dh_sets_001ece68" identifier = identifier) ;) (if_statement "if (key == (dh_key *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }" if (parenthesized_expression "(key == (dh_key *)0x0)" ( (binary_expression "key == (dh_key *)0x0" identifier == (cast_expression "(dh_key *)0x0" ( (type_descriptor "dh_key *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }" { comment (expression_statement "crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);" (call_expression "crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c)" identifier (argument_list "("key != NULL","src/pk/dh/dh_set.c",0x3c)" ( (string_literal ""key != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_set.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (*(long *)PTR_ltc_mp_001ecec8 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }" if (parenthesized_expression "(*(long *)PTR_ltc_mp_001ecec8 == 0)" ( (binary_expression "*(long *)PTR_ltc_mp_001ecec8 == 0" (pointer_expression "*(long *)PTR_ltc_mp_001ecec8" * (cast_expression "(long *)PTR_ltc_mp_001ecec8" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }" { comment (expression_statement "crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);" (call_expression "crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d)" identifier (argument_list "("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d)" ( (string_literal ""ltc_mp.name != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_set.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (groupsize < 1) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }" if (parenthesized_expression "(groupsize < 1)" ( (binary_expression "groupsize < 1" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }" { comment (expression_statement "crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);" (call_expression "crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e)" identifier (argument_list "("groupsize > 0","src/pk/dh/dh_set.c",0x3e)" ( (string_literal ""groupsize > 0"" " string_content ") , (string_literal ""src/pk/dh/dh_set.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar3 = *(int *)PTR_ltc_dh_sets_001ece68;" (assignment_expression "iVar3 = *(int *)PTR_ltc_dh_sets_001ece68" identifier = (pointer_expression "*(int *)PTR_ltc_dh_sets_001ece68" * (cast_expression "(int *)PTR_ltc_dh_sets_001ece68" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar3 < groupsize) {\n    iVar5 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar3 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar3 = *piVar4;\n      iVar5 = iVar5 + 1;\n    } while (iVar3 < groupsize);\n  }\n  else {\n    iVar5 = 0;\n  }" if (parenthesized_expression "(iVar3 < groupsize)" ( (binary_expression "iVar3 < groupsize" identifier < identifier) )) (compound_statement "{\n    iVar5 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar3 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar3 = *piVar4;\n      iVar5 = iVar5 + 1;\n    } while (iVar3 < groupsize);\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "piVar4 = (int *)PTR_ltc_dh_sets_001ece68;" (assignment_expression "piVar4 = (int *)PTR_ltc_dh_sets_001ece68" identifier = (cast_expression "(int *)PTR_ltc_dh_sets_001ece68" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      if (iVar3 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar3 = *piVar4;\n      iVar5 = iVar5 + 1;\n    } while (iVar3 < groupsize);" do (compound_statement "{\n      if (iVar3 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar3 = *piVar4;\n      iVar5 = iVar5 + 1;\n    }" { (if_statement "if (iVar3 == 0) {\n        return 3;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        return 3;\n      }" { (return_statement "return 3;" return number_literal ;) })) (expression_statement "piVar4 = piVar4 + 8;" (assignment_expression "piVar4 = piVar4 + 8" identifier = (binary_expression "piVar4 + 8" identifier + number_literal)) ;) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < groupsize)" ( (binary_expression "iVar3 < groupsize" identifier < identifier) )) ;) }) (else_clause "else {\n    iVar5 = 0;\n  }" else (compound_statement "{\n    iVar5 = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }))) (expression_statement "iVar3 = ltc_init_multi(&key->x,&key->y,&key->base,&key->prime,0);" (assignment_expression "iVar3 = ltc_init_multi(&key->x,&key->y,&key->base,&key->prime,0)" identifier = (call_expression "ltc_init_multi(&key->x,&key->y,&key->base,&key->prime,0)" identifier (argument_list "(&key->x,&key->y,&key->base,&key->prime,0)" ( (pointer_expression "&key->x" & (field_expression "key->x" identifier -> field_identifier)) , (pointer_expression "&key->y" & (field_expression "key->y" identifier -> field_identifier)) , (pointer_expression "&key->base" & (field_expression "key->base" identifier -> field_identifier)) , (pointer_expression "&key->prime" & (field_expression "key->prime" identifier -> field_identifier)) , number_literal )))) ;) (if_statement "if ((iVar3 == 0) &&\n     ((iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->base,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x10),0x10),\n      iVar3 != 0 ||\n      (iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->prime,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18),0x10),\n      iVar3 != 0)))) {\n    dh_free(key);\n    return iVar3;\n  }" if (parenthesized_expression "((iVar3 == 0) &&\n     ((iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->base,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x10),0x10),\n      iVar3 != 0 ||\n      (iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->prime,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18),0x10),\n      iVar3 != 0))))" ( (binary_expression "(iVar3 == 0) &&\n     ((iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->base,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x10),0x10),\n      iVar3 != 0 ||\n      (iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->prime,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18),0x10),\n      iVar3 != 0)))" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "((iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->base,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x10),0x10),\n      iVar3 != 0 ||\n      (iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->prime,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18),0x10),\n      iVar3 != 0)))" ( (parenthesized_expression "(iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->base,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x10),0x10),\n      iVar3 != 0 ||\n      (iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->prime,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18),0x10),\n      iVar3 != 0))" ( (comma_expression "iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->base,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x10),0x10),\n      iVar3 != 0 ||\n      (iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->prime,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18),0x10),\n      iVar3 != 0)" (assignment_expression "iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->base,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x10),0x10)" identifier = (call_expression "(**(code **)(puVar2 + 0x80))\n                         (key->base,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x10),0x10)" (parenthesized_expression "(**(code **)(puVar2 + 0x80))" ( (pointer_expression "**(code **)(puVar2 + 0x80)" * (pointer_expression "*(code **)(puVar2 + 0x80)" * (cast_expression "(code **)(puVar2 + 0x80)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 0x80)" ( (binary_expression "puVar2 + 0x80" identifier + number_literal) ))))) )) (argument_list "(key->base,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x10),0x10)" ( (field_expression "key->base" identifier -> field_identifier) , (pointer_expression "*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x10)" * (cast_expression "(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (long)iVar5 * 0x20 + 0x10)" ( (binary_expression "puVar1 + (long)iVar5 * 0x20 + 0x10" (binary_expression "puVar1 + (long)iVar5 * 0x20" identifier + (binary_expression "(long)iVar5 * 0x20" (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) , number_literal )))) , (binary_expression "iVar3 != 0 ||\n      (iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->prime,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18),0x10),\n      iVar3 != 0)" (binary_expression "iVar3 != 0" identifier != number_literal) || (parenthesized_expression "(iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->prime,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18),0x10),\n      iVar3 != 0)" ( (comma_expression "iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->prime,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18),0x10),\n      iVar3 != 0" (assignment_expression "iVar3 = (**(code **)(puVar2 + 0x80))\n                         (key->prime,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18),0x10)" identifier = (call_expression "(**(code **)(puVar2 + 0x80))\n                         (key->prime,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18),0x10)" (parenthesized_expression "(**(code **)(puVar2 + 0x80))" ( (pointer_expression "**(code **)(puVar2 + 0x80)" * (pointer_expression "*(code **)(puVar2 + 0x80)" * (cast_expression "(code **)(puVar2 + 0x80)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 0x80)" ( (binary_expression "puVar2 + 0x80" identifier + number_literal) ))))) )) (argument_list "(key->prime,*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18),0x10)" ( (field_expression "key->prime" identifier -> field_identifier) , (pointer_expression "*(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18)" * (cast_expression "(undefined8 *)(puVar1 + (long)iVar5 * 0x20 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + (long)iVar5 * 0x20 + 0x18)" ( (binary_expression "puVar1 + (long)iVar5 * 0x20 + 0x18" (binary_expression "puVar1 + (long)iVar5 * 0x20" identifier + (binary_expression "(long)iVar5 * 0x20" (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) , number_literal )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) )))) )) ))) )) (compound_statement "{\n    dh_free(key);\n    return iVar3;\n  }" { (expression_statement "dh_free(key);" (call_expression "dh_free(key)" identifier (argument_list "(key)" ( identifier ))) ;) (return_statement "return iVar3;" return identifier ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "ulong dh_set_pg_groupsize(int param_1,long param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  ulong uVar5;\n  int iVar6;\n  \n  puVar3 = PTR_ltc_mp_001ecec8;\n  puVar2 = PTR_ltc_dh_sets_001ece68;\n  if (param_2 == 0) {\n                    \n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }\n  if (*(long *)PTR_ltc_mp_001ecec8 == 0) {\n                    \n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }\n  if (param_1 < 1) {\n                    \n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }\n  iVar1 = *(int *)PTR_ltc_dh_sets_001ece68;\n  if (iVar1 < param_1) {\n    iVar6 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);\n  }\n  else {\n    iVar6 = 0;\n  }\n  uVar5 = ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0);\n  if (((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))) {\n    dh_free(param_2);\n    return uVar5 & 0xffffffff;\n  }\n  return uVar5;\n}\n\n" (function_definition "ulong dh_set_pg_groupsize(int param_1,long param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  ulong uVar5;\n  int iVar6;\n  \n  puVar3 = PTR_ltc_mp_001ecec8;\n  puVar2 = PTR_ltc_dh_sets_001ece68;\n  if (param_2 == 0) {\n                    \n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }\n  if (*(long *)PTR_ltc_mp_001ecec8 == 0) {\n                    \n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }\n  if (param_1 < 1) {\n                    \n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }\n  iVar1 = *(int *)PTR_ltc_dh_sets_001ece68;\n  if (iVar1 < param_1) {\n    iVar6 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);\n  }\n  else {\n    iVar6 = 0;\n  }\n  uVar5 = ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0);\n  if (((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))) {\n    dh_free(param_2);\n    return uVar5 & 0xffffffff;\n  }\n  return uVar5;\n}" type_identifier (function_declarator "dh_set_pg_groupsize(int param_1,long param_2)" identifier (parameter_list "(int param_1,long param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  ulong uVar5;\n  int iVar6;\n  \n  puVar3 = PTR_ltc_mp_001ecec8;\n  puVar2 = PTR_ltc_dh_sets_001ece68;\n  if (param_2 == 0) {\n                    \n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }\n  if (*(long *)PTR_ltc_mp_001ecec8 == 0) {\n                    \n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }\n  if (param_1 < 1) {\n                    \n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }\n  iVar1 = *(int *)PTR_ltc_dh_sets_001ece68;\n  if (iVar1 < param_1) {\n    iVar6 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);\n  }\n  else {\n    iVar6 = 0;\n  }\n  uVar5 = ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0);\n  if (((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))) {\n    dh_free(param_2);\n    return uVar5 & 0xffffffff;\n  }\n  return uVar5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar3 = PTR_ltc_mp_001ecec8;" (assignment_expression "puVar3 = PTR_ltc_mp_001ecec8" identifier = identifier) ;) (expression_statement "puVar2 = PTR_ltc_dh_sets_001ece68;" (assignment_expression "puVar2 = PTR_ltc_dh_sets_001ece68" identifier = identifier) ;) (if_statement "if (param_2 == 0) {\n                    \n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }" { (expression_statement "crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);" (call_expression "crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c)" identifier (argument_list "("key != NULL","src/pk/dh/dh_set.c",0x3c)" ( (string_literal ""key != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_set.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (*(long *)PTR_ltc_mp_001ecec8 == 0) {\n                    \n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }" if (parenthesized_expression "(*(long *)PTR_ltc_mp_001ecec8 == 0)" ( (binary_expression "*(long *)PTR_ltc_mp_001ecec8 == 0" (pointer_expression "*(long *)PTR_ltc_mp_001ecec8" * (cast_expression "(long *)PTR_ltc_mp_001ecec8" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n                    \n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }" { (expression_statement "crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);" (call_expression "crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d)" identifier (argument_list "("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d)" ( (string_literal ""ltc_mp.name != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_set.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_1 < 1) {\n                    \n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }" if (parenthesized_expression "(param_1 < 1)" ( (binary_expression "param_1 < 1" identifier < number_literal) )) (compound_statement "{\n                    \n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }" { (expression_statement "crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);" (call_expression "crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e)" identifier (argument_list "("groupsize > 0","src/pk/dh/dh_set.c",0x3e)" ( (string_literal ""groupsize > 0"" " string_content ") , (string_literal ""src/pk/dh/dh_set.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar1 = *(int *)PTR_ltc_dh_sets_001ece68;" (assignment_expression "iVar1 = *(int *)PTR_ltc_dh_sets_001ece68" identifier = (pointer_expression "*(int *)PTR_ltc_dh_sets_001ece68" * (cast_expression "(int *)PTR_ltc_dh_sets_001ece68" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar1 < param_1) {\n    iVar6 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);\n  }\n  else {\n    iVar6 = 0;\n  }" if (parenthesized_expression "(iVar1 < param_1)" ( (binary_expression "iVar1 < param_1" identifier < identifier) )) (compound_statement "{\n    iVar6 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);\n  }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "piVar4 = (int *)PTR_ltc_dh_sets_001ece68;" (assignment_expression "piVar4 = (int *)PTR_ltc_dh_sets_001ece68" identifier = (cast_expression "(int *)PTR_ltc_dh_sets_001ece68" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);" do (compound_statement "{\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    }" { (if_statement "if (iVar1 == 0) {\n        return 3;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return 3;\n      }" { (return_statement "return 3;" return number_literal ;) })) (expression_statement "piVar4 = piVar4 + 8;" (assignment_expression "piVar4 = piVar4 + 8" identifier = (binary_expression "piVar4 + 8" identifier + number_literal)) ;) (expression_statement "iVar1 = *piVar4;" (assignment_expression "iVar1 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 < param_1)" ( (binary_expression "iVar1 < param_1" identifier < identifier) )) ;) }) (else_clause "else {\n    iVar6 = 0;\n  }" else (compound_statement "{\n    iVar6 = 0;\n  }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }))) (expression_statement "uVar5 = ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0);" (assignment_expression "uVar5 = ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0)" identifier = (call_expression "ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0)" identifier (argument_list "(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0)" ( (binary_expression "param_2 + 8" identifier + number_literal) , (binary_expression "param_2 + 0x10" identifier + number_literal) , (binary_expression "param_2 + 0x18" identifier + number_literal) , (binary_expression "param_2 + 0x20" identifier + number_literal) , number_literal )))) ;) (if_statement "if (((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))) {\n    dh_free(param_2);\n    return uVar5 & 0xffffffff;\n  }" if (parenthesized_expression "(((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0))))" ( (binary_expression "((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))" (parenthesized_expression "((int)uVar5 == 0)" ( (binary_expression "(int)uVar5 == 0" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) && (parenthesized_expression "((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))" ( (parenthesized_expression "(uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0))" ( (comma_expression "uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)" (assignment_expression "uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10)" identifier = (call_expression "(**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10)" (parenthesized_expression "(**(code **)(puVar3 + 0x80))" ( (pointer_expression "**(code **)(puVar3 + 0x80)" * (pointer_expression "*(code **)(puVar3 + 0x80)" * (cast_expression "(code **)(puVar3 + 0x80)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x80)" ( (binary_expression "puVar3 + 0x80" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10)" ( (pointer_expression "*(undefined8 *)(param_2 + 0x18)" * (cast_expression "(undefined8 *)(param_2 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10)" * (cast_expression "(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + (long)iVar6 * 0x20 + 0x10)" ( (binary_expression "puVar2 + (long)iVar6 * 0x20 + 0x10" (binary_expression "puVar2 + (long)iVar6 * 0x20" identifier + (binary_expression "(long)iVar6 * 0x20" (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) , number_literal )))) , (binary_expression "(int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)" (binary_expression "(int)uVar5 != 0" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) || (parenthesized_expression "(uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)" ( (comma_expression "uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0" (assignment_expression "uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10)" identifier = (call_expression "(**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10)" (parenthesized_expression "(**(code **)(puVar3 + 0x80))" ( (pointer_expression "**(code **)(puVar3 + 0x80)" * (pointer_expression "*(code **)(puVar3 + 0x80)" * (cast_expression "(code **)(puVar3 + 0x80)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x80)" ( (binary_expression "puVar3 + 0x80" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10)" ( (pointer_expression "*(undefined8 *)(param_2 + 0x20)" * (cast_expression "(undefined8 *)(param_2 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18)" * (cast_expression "(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + (long)iVar6 * 0x20 + 0x18)" ( (binary_expression "puVar2 + (long)iVar6 * 0x20 + 0x18" (binary_expression "puVar2 + (long)iVar6 * 0x20" identifier + (binary_expression "(long)iVar6 * 0x20" (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) , number_literal )))) , (binary_expression "(int)uVar5 != 0" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal)) )))) )) ))) )) (compound_statement "{\n    dh_free(param_2);\n    return uVar5 & 0xffffffff;\n  }" { (expression_statement "dh_free(param_2);" (call_expression "dh_free(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (return_statement "return uVar5 & 0xffffffff;" return (binary_expression "uVar5 & 0xffffffff" identifier & number_literal) ;) })) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = 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 (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) 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 (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) + LIT) )))) , LIT )))) , (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != LIT) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) + LIT) )))) , LIT )))) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != LIT)) )))) )) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return (binary_expression IDENT & LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "ulong dh_set_pg_groupsize(int param_1,long param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  ulong uVar5;\n  int iVar6;\n  \n  puVar3 = PTR_ltc_mp_001ecec8;\n  puVar2 = PTR_ltc_dh_sets_001ece68;\n  if (param_2 == 0) {\n                    \n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }\n  if (*(long *)PTR_ltc_mp_001ecec8 == 0) {\n                    \n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }\n  if (param_1 < 1) {\n                    \n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }\n  iVar1 = *(int *)PTR_ltc_dh_sets_001ece68;\n  if (iVar1 < param_1) {\n    iVar6 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);\n  }\n  else {\n    iVar6 = 0;\n  }\n  uVar5 = ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0);\n  if (((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))) {\n    dh_free(param_2);\n    return uVar5 & 0xffffffff;\n  }\n  return uVar5;\n}" (type_identifier "ulong") (function_declarator "dh_set_pg_groupsize(int param_1,long param_2)" (identifier "dh_set_pg_groupsize") (parameter_list "(int param_1,long param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  ulong uVar5;\n  int iVar6;\n  \n  puVar3 = PTR_ltc_mp_001ecec8;\n  puVar2 = PTR_ltc_dh_sets_001ece68;\n  if (param_2 == 0) {\n                    \n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }\n  if (*(long *)PTR_ltc_mp_001ecec8 == 0) {\n                    \n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }\n  if (param_1 < 1) {\n                    \n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }\n  iVar1 = *(int *)PTR_ltc_dh_sets_001ece68;\n  if (iVar1 < param_1) {\n    iVar6 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);\n  }\n  else {\n    iVar6 = 0;\n  }\n  uVar5 = ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0);\n  if (((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))) {\n    dh_free(param_2);\n    return uVar5 & 0xffffffff;\n  }\n  return uVar5;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "ulong uVar5;" (type_identifier "ulong") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "puVar3 = PTR_ltc_mp_001ecec8;" (assignment_expression "puVar3 = PTR_ltc_mp_001ecec8" (identifier "puVar3") (= "=") (identifier "PTR_ltc_mp_001ecec8")) (; ";")) (expression_statement "puVar2 = PTR_ltc_dh_sets_001ece68;" (assignment_expression "puVar2 = PTR_ltc_dh_sets_001ece68" (identifier "puVar2") (= "=") (identifier "PTR_ltc_dh_sets_001ece68")) (; ";")) (if_statement "if (param_2 == 0) {\n                    \n    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);\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("key != NULL","src/pk/dh/dh_set.c",0x3c);\n  }" ({ "{") (expression_statement "crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);" (call_expression "crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c)" (identifier "crypt_argchk") (argument_list "("key != NULL","src/pk/dh/dh_set.c",0x3c)" (( "(") (string_literal ""key != NULL"" (" """) (string_content "key != NULL") (" """)) (, ",") (string_literal ""src/pk/dh/dh_set.c"" (" """) (string_content "src/pk/dh/dh_set.c") (" """)) (, ",") (number_literal "0x3c") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(long *)PTR_ltc_mp_001ecec8 == 0) {\n                    \n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }" (if "if") (parenthesized_expression "(*(long *)PTR_ltc_mp_001ecec8 == 0)" (( "(") (binary_expression "*(long *)PTR_ltc_mp_001ecec8 == 0" (pointer_expression "*(long *)PTR_ltc_mp_001ecec8" (* "*") (cast_expression "(long *)PTR_ltc_mp_001ecec8" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ltc_mp_001ecec8"))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);\n  }" ({ "{") (expression_statement "crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);" (call_expression "crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d)" (identifier "crypt_argchk") (argument_list "("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d)" (( "(") (string_literal ""ltc_mp.name != NULL"" (" """) (string_content "ltc_mp.name != NULL") (" """)) (, ",") (string_literal ""src/pk/dh/dh_set.c"" (" """) (string_content "src/pk/dh/dh_set.c") (" """)) (, ",") (number_literal "0x3d") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1 < 1) {\n                    \n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }" (if "if") (parenthesized_expression "(param_1 < 1)" (( "(") (binary_expression "param_1 < 1" (identifier "param_1") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n                    \n    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);\n  }" ({ "{") (expression_statement "crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);" (call_expression "crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e)" (identifier "crypt_argchk") (argument_list "("groupsize > 0","src/pk/dh/dh_set.c",0x3e)" (( "(") (string_literal ""groupsize > 0"" (" """) (string_content "groupsize > 0") (" """)) (, ",") (string_literal ""src/pk/dh/dh_set.c"" (" """) (string_content "src/pk/dh/dh_set.c") (" """)) (, ",") (number_literal "0x3e") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)PTR_ltc_dh_sets_001ece68;" (assignment_expression "iVar1 = *(int *)PTR_ltc_dh_sets_001ece68" (identifier "iVar1") (= "=") (pointer_expression "*(int *)PTR_ltc_dh_sets_001ece68" (* "*") (cast_expression "(int *)PTR_ltc_dh_sets_001ece68" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ltc_dh_sets_001ece68")))) (; ";")) (if_statement "if (iVar1 < param_1) {\n    iVar6 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);\n  }\n  else {\n    iVar6 = 0;\n  }" (if "if") (parenthesized_expression "(iVar1 < param_1)" (( "(") (binary_expression "iVar1 < param_1" (identifier "iVar1") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n    iVar6 = 0;\n    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;\n    do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);\n  }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar4 = (int *)PTR_ltc_dh_sets_001ece68;" (assignment_expression "piVar4 = (int *)PTR_ltc_dh_sets_001ece68" (identifier "piVar4") (= "=") (cast_expression "(int *)PTR_ltc_dh_sets_001ece68" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ltc_dh_sets_001ece68"))) (; ";")) (do_statement "do {\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    } while (iVar1 < param_1);" (do "do") (compound_statement "{\n      if (iVar1 == 0) {\n        return 3;\n      }\n      piVar4 = piVar4 + 8;\n      iVar1 = *piVar4;\n      iVar6 = iVar6 + 1;\n    }" ({ "{") (if_statement "if (iVar1 == 0) {\n        return 3;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 3;\n      }" ({ "{") (return_statement "return 3;" (return "return") (number_literal "3") (; ";")) (} "}"))) (expression_statement "piVar4 = piVar4 + 8;" (assignment_expression "piVar4 = piVar4 + 8" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 8" (identifier "piVar4") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "iVar1 = *piVar4;" (assignment_expression "iVar1 = *piVar4" (identifier "iVar1") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 < param_1)" (( "(") (binary_expression "iVar1 < param_1" (identifier "iVar1") (< "<") (identifier "param_1")) () ")")) (; ";")) (} "}")) (else_clause "else {\n    iVar6 = 0;\n  }" (else "else") (compound_statement "{\n    iVar6 = 0;\n  }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "uVar5 = ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0);" (assignment_expression "uVar5 = ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0)" (identifier "uVar5") (= "=") (call_expression "ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0)" (identifier "ltc_init_multi") (argument_list "(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) (, ",") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) (, ",") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) (, ",") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))) {\n    dh_free(param_2);\n    return uVar5 & 0xffffffff;\n  }" (if "if") (parenthesized_expression "(((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0))))" (( "(") (binary_expression "((int)uVar5 == 0) &&\n     ((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))" (parenthesized_expression "((int)uVar5 == 0)" (( "(") (binary_expression "(int)uVar5 == 0" (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)))" (( "(") (parenthesized_expression "(uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0))" (( "(") (comma_expression "uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)" (assignment_expression "uVar5 = (**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10)" (identifier "uVar5") (= "=") (call_expression "(**(code **)(puVar3 + 0x80))\n                         (*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10)" (parenthesized_expression "(**(code **)(puVar3 + 0x80))" (( "(") (pointer_expression "**(code **)(puVar3 + 0x80)" (* "*") (pointer_expression "*(code **)(puVar3 + 0x80)" (* "*") (cast_expression "(code **)(puVar3 + 0x80)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 0x80)" (( "(") (binary_expression "puVar3 + 0x80" (identifier "puVar3") (+ "+") (number_literal "0x80")) () ")"))))) () ")")) (argument_list "(*(undefined8 *)(param_2 + 0x18),\n                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10)" (( "(") (pointer_expression "*(undefined8 *)(param_2 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10)" (* "*") (cast_expression "(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + (long)iVar6 * 0x20 + 0x10)" (( "(") (binary_expression "puVar2 + (long)iVar6 * 0x20 + 0x10" (binary_expression "puVar2 + (long)iVar6 * 0x20" (identifier "puVar2") (+ "+") (binary_expression "(long)iVar6 * 0x20" (cast_expression "(long)iVar6" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar6")) (* "*") (number_literal "0x20"))) (+ "+") (number_literal "0x10")) () ")")))) (, ",") (number_literal "0x10") () ")")))) (, ",") (binary_expression "(int)uVar5 != 0\n      || (uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)" (binary_expression "(int)uVar5 != 0" (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5")) (!= "!=") (number_literal "0")) (|| "||") (parenthesized_expression "(uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0)" (( "(") (comma_expression "uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),\n         (int)uVar5 != 0" (assignment_expression "uVar5 = (**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10)" (identifier "uVar5") (= "=") (call_expression "(**(code **)(puVar3 + 0x80))\n                            (*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10)" (parenthesized_expression "(**(code **)(puVar3 + 0x80))" (( "(") (pointer_expression "**(code **)(puVar3 + 0x80)" (* "*") (pointer_expression "*(code **)(puVar3 + 0x80)" (* "*") (cast_expression "(code **)(puVar3 + 0x80)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 0x80)" (( "(") (binary_expression "puVar3 + 0x80" (identifier "puVar3") (+ "+") (number_literal "0x80")) () ")"))))) () ")")) (argument_list "(*(undefined8 *)(param_2 + 0x20),\n                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10)" (( "(") (pointer_expression "*(undefined8 *)(param_2 + 0x20)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18)" (* "*") (cast_expression "(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + (long)iVar6 * 0x20 + 0x18)" (( "(") (binary_expression "puVar2 + (long)iVar6 * 0x20 + 0x18" (binary_expression "puVar2 + (long)iVar6 * 0x20" (identifier "puVar2") (+ "+") (binary_expression "(long)iVar6 * 0x20" (cast_expression "(long)iVar6" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar6")) (* "*") (number_literal "0x20"))) (+ "+") (number_literal "0x18")) () ")")))) (, ",") (number_literal "0x10") () ")")))) (, ",") (binary_expression "(int)uVar5 != 0" (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5")) (!= "!=") (number_literal "0"))) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n    dh_free(param_2);\n    return uVar5 & 0xffffffff;\n  }" ({ "{") (expression_statement "dh_free(param_2);" (call_expression "dh_free(param_2)" (identifier "dh_free") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (return_statement "return uVar5 & 0xffffffff;" (return "return") (binary_expression "uVar5 & 0xffffffff" (identifier "uVar5") (& "&") (number_literal "0xffffffff")) (; ";")) (} "}"))) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}")))

int function_1(int var_3,type_1 *var_1)

{
  type_2 *var_9;
  type_2 *var_8;
  int var_4;
  int *var_5;
  int var_6;
  
  var_8 = PTR_ltc_mp_001ecec8;
  var_9 = PTR_ltc_dh_sets_001ece68;
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("key != NULL","src/pk/dh/dh_set.c",0x3c);
  }
  if (*(long *)PTR_ltc_mp_001ecec8 == 0) {
                    /* WARNING: Subroutine does not return */
    var_2("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);
  }
  if (var_3 < 1) {
                    /* WARNING: Subroutine does not return */
    var_2("groupsize > 0","src/pk/dh/dh_set.c",0x3e);
  }
  var_4 = *(int *)PTR_ltc_dh_sets_001ece68;
  if (var_4 < var_3) {
    var_6 = 0;
    var_5 = (int *)PTR_ltc_dh_sets_001ece68;
    do {
      if (var_4 == 0) {
        return 3;
      }
      var_5 = var_5 + 8;
      var_4 = *var_5;
      var_6 = var_6 + 1;
    } while (var_4 < var_3);
  }
  else {
    var_6 = 0;
  }
  var_4 = var_7(&var_1->x,&var_1->y,&var_1->base,&var_1->prime,0);
  if ((var_4 == 0) &&
     ((var_4 = (**(type_3 **)(var_8 + 0x80))
                         (var_1->base,*(type_4 *)(var_9 + (long)var_6 * 0x20 + 0x10),0x10),
      var_4 != 0 ||
      (var_4 = (**(type_3 **)(var_8 + 0x80))
                         (var_1->prime,*(type_4 *)(var_9 + (long)var_6 * 0x20 + 0x18),0x10),
      var_4 != 0)))) {
    var_10(var_1);
    return var_4;
  }
  return var_4;
}


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

ulong MASKED(int param_1,long param_2)

{
  int iVar1;
  undefined *puVar2;
  undefined *puVar3;
  int *piVar4;
  ulong uVar5;
  int iVar6;
  
  puVar3 = PTR_ltc_mp_001ecec8;
  puVar2 = PTR_ltc_dh_sets_001ece68;
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("key != NULL","src/pk/dh/dh_set.c",0x3c);
  }
  if (*(long *)PTR_ltc_mp_001ecec8 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("ltc_mp.name != NULL","src/pk/dh/dh_set.c",0x3d);
  }
  if (param_1 < 1) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("groupsize > 0","src/pk/dh/dh_set.c",0x3e);
  }
  iVar1 = *(int *)PTR_ltc_dh_sets_001ece68;
  if (iVar1 < param_1) {
    iVar6 = 0;
    piVar4 = (int *)PTR_ltc_dh_sets_001ece68;
    do {
      if (iVar1 == 0) {
        return 3;
      }
      piVar4 = piVar4 + 8;
      iVar1 = *piVar4;
      iVar6 = iVar6 + 1;
    } while (iVar1 < param_1);
  }
  else {
    iVar6 = 0;
  }
  uVar5 = ltc_init_multi(param_2 + 8,param_2 + 0x10,param_2 + 0x18,param_2 + 0x20,0);
  if (((int)uVar5 == 0) &&
     ((uVar5 = (**(code **)(puVar3 + 0x80))
                         (*(undefined8 *)(param_2 + 0x18),
                          *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x10),0x10), (int)uVar5 != 0
      || (uVar5 = (**(code **)(puVar3 + 0x80))
                            (*(undefined8 *)(param_2 + 0x20),
                             *(undefined8 *)(puVar2 + (long)iVar6 * 0x20 + 0x18),0x10),
         (int)uVar5 != 0)))) {
    dh_free(param_2);
    return uVar5 & 0xffffffff;
  }
  return uVar5;
}

