
int dh_shared_secret(dh_key *private_key,dh_key *public_key,uchar *out,ulong *outlen)

{
  undefined *puVar1;
  int iVar2;
  ulong uVar3;
  long in_FS_OFFSET;
  void *tmp;
  long local_30;
  
  puVar1 = PTR_ltc_mp_001ecec8;
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  if (private_key == (dh_key *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);
  }
  if (public_key == (dh_key *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);
  }
  if (out == (uchar *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);
  }
  if (outlen == (ulong *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);
  }
  iVar2 = 0xf;
  if (private_key->type == 1) {
    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))(private_key->prime,public_key->prime);
    if (iVar2 == 0) {
      iVar2 = (**(code **)(puVar1 + 0x58))(private_key->base,public_key->base);
      if (iVar2 == 0) {
        iVar2 = (**(code **)(puVar1 + 0x10))(&tmp);
        if (iVar2 == 0) {
          iVar2 = dh_check_pubkey(public_key);
          if (iVar2 == 0) {
            iVar2 = (**(code **)(puVar1 + 0x140))
                              (public_key->y,private_key->x,private_key->prime,tmp);
            if (iVar2 == 0) {
              uVar3 = (**(code **)(puVar1 + 0x90))(tmp);
              if (*outlen < uVar3) {
                *outlen = uVar3;
                iVar2 = 6;
              }
              else {
                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);
                if (iVar2 == 0) {
                  *outlen = uVar3;
                }
              }
            }
          }
          (**(code **)(puVar1 + 0x20))(tmp);
        }
        goto LAB_00185c8d;
      }
    }
    iVar2 = 0xe;
  }
LAB_00185c8d:
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



ulong dh_shared_secret(int *param_1,long param_2,long param_3,ulong *param_4)

{
  undefined *puVar1;
  int iVar2;
  uint uVar3;
  ulong uVar4;
  long in_FS_OFFSET;
  undefined8 local_38;
  long local_30;
  
  puVar1 = PTR_ltc_mp_001ecec8;
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);
  }
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);
  }
  if (param_3 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);
  }
  if (param_4 == (ulong *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);
  }
  uVar4 = 0xf;
  if (*param_1 == 1) {
    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))
                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));
    if (iVar2 == 0) {
      iVar2 = (**(code **)(puVar1 + 0x58))
                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));
      if (iVar2 == 0) {
        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);
        if ((int)uVar4 == 0) {
          uVar3 = dh_check_pubkey(param_2);
          if (uVar3 == 0) {
            uVar3 = (**(code **)(puVar1 + 0x140))
                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),
                               *(undefined8 *)(param_1 + 8),local_38);
            if (uVar3 == 0) {
              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);
              if (*param_4 < uVar4) {
                *param_4 = uVar4;
                uVar3 = 6;
              }
              else {
                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);
                if (uVar3 == 0) {
                  *param_4 = uVar4;
                }
              }
            }
          }
          (**(code **)(puVar1 + 0x20))(local_38);
          uVar4 = (ulong)uVar3;
        }
        goto LAB_00185c8d;
      }
    }
    uVar4 = 0xe;
  }
LAB_00185c8d:
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x20
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x18],RAX
XOR EAX,EAX
TEST RDI,RDI
JZ 0x00185d93
MOV RBP,RSI
TEST RSI,RSI
JZ 0x00185d7b
MOV R14,RDX
TEST RDX,RDX
JZ 0x00185d63
MOV R13,RCX
TEST RCX,RCX
JZ 0x00185d4b
CMP dword ptr [RDI],0x1
MOV RBX,RDI
MOV EAX,0xf
JNZ 0x00185c8d
MOV R12,qword ptr [0x001ecec8]
MOV RSI,qword ptr [RSI + 0x20]
MOV RDI,qword ptr [RDI + 0x20]
CALL qword ptr [R12 + 0x58]
TEST EAX,EAX
JNZ 0x00185cb0
MOV RSI,qword ptr [RBP + 0x18]
MOV RDI,qword ptr [RBX + 0x18]
CALL qword ptr [R12 + 0x58]
TEST EAX,EAX
JNZ 0x00185cb0
LEA RDI,[RSP + 0x10]
CALL qword ptr [R12 + 0x10]
TEST EAX,EAX
JZ 0x00185cc0
MOV RCX,qword ptr [RSP + 0x18]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x00185dab
ADD RSP,0x20
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
MOV EAX,0xe
JMP 0x00185c8d
MOV RDI,RBP
CALL 0x00113320
TEST EAX,EAX
JNZ 0x00185d20
MOV RDX,qword ptr [RBX + 0x20]
MOV RSI,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RBP + 0x10]
MOV RCX,qword ptr [RSP + 0x10]
CALL qword ptr [R12 + 0x140]
TEST EAX,EAX
JNZ 0x00185d20
MOV RDI,qword ptr [RSP + 0x10]
CALL qword ptr [R12 + 0x90]
MOV RBP,RAX
CMP qword ptr [R13],RAX
JC 0x00185d40
MOV RSI,R14
MOV RDI,qword ptr [RSP + 0x10]
CALL qword ptr [R12 + 0x98]
TEST EAX,EAX
JNZ 0x00185d20
MOV qword ptr [R13],RBP
NOP word ptr [RAX + RAX*0x1]
MOV dword ptr [RSP + 0xc],EAX
MOV RDI,qword ptr [RSP + 0x10]
CALL qword ptr [R12 + 0x20]
MOV EAX,dword ptr [RSP + 0xc]
JMP 0x00185c8d
MOV qword ptr [R13],RAX
MOV EAX,0x6
JMP 0x00185d20
MOV EDX,0x20
LEA RSI,[0x1d5445]
LEA RDI,[0x1bd93a]
CALL 0x00114270
MOV EDX,0x1f
LEA RSI,[0x1d5445]
LEA RDI,[0x1b77e1]
CALL 0x00114270
MOV EDX,0x1e
LEA RSI,[0x1d5445]
LEA RDI,[0x1d5476]
CALL 0x00114270
MOV EDX,0x1d
LEA RSI,[0x1d5445]
LEA RDI,[0x1d5462]
CALL 0x00114270
CALL 0x00113880
(translation_unit "ulong dh_shared_secret(int *param_1,long param_2,long param_3,ulong *param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  ulong uVar4;\n  long in_FS_OFFSET;\n  undefined8 local_38;\n  long local_30;\n  \n  puVar1 = PTR_ltc_mp_001ecec8;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }\n  if (param_3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }\n  if (param_4 == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }\n  uVar4 = 0xf;\n  if (*param_1 == 1) {\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    uVar4 = 0xe;\n  }\nLAB_00185c8d:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "ulong dh_shared_secret(int *param_1,long param_2,long param_3,ulong *param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  ulong uVar4;\n  long in_FS_OFFSET;\n  undefined8 local_38;\n  long local_30;\n  \n  puVar1 = PTR_ltc_mp_001ecec8;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }\n  if (param_3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }\n  if (param_4 == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }\n  uVar4 = 0xf;\n  if (*param_1 == 1) {\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    uVar4 = 0xe;\n  }\nLAB_00185c8d:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "dh_shared_secret(int *param_1,long param_2,long param_3,ulong *param_4)" identifier (parameter_list "(int *param_1,long param_2,long param_3,ulong *param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  ulong uVar4;\n  long in_FS_OFFSET;\n  undefined8 local_38;\n  long local_30;\n  \n  puVar1 = PTR_ltc_mp_001ecec8;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }\n  if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }\n  if (param_3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }\n  if (param_4 == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }\n  uVar4 = 0xf;\n  if (*param_1 == 1) {\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    uVar4 = 0xe;\n  }\nLAB_00185c8d:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "puVar1 = PTR_ltc_mp_001ecec8;" (assignment_expression "puVar1 = PTR_ltc_mp_001ecec8" identifier = identifier) ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }" { comment (expression_statement "crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);" (call_expression "crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d)" identifier (argument_list "("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d)" ( (string_literal ""private_key != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_shared_secret.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\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("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }" { comment (expression_statement "crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);" (call_expression "crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e)" identifier (argument_list "("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e)" ( (string_literal ""public_key != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_shared_secret.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }" { comment (expression_statement "crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);" (call_expression "crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f)" identifier (argument_list "("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f)" ( (string_literal ""out != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_shared_secret.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_4 == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }" if (parenthesized_expression "(param_4 == (ulong *)0x0)" ( (binary_expression "param_4 == (ulong *)0x0" identifier == (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }" { comment (expression_statement "crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);" (call_expression "crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20)" identifier (argument_list "("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20)" ( (string_literal ""outlen != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_shared_secret.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "uVar4 = 0xf;" (assignment_expression "uVar4 = 0xf" identifier = number_literal) ;) (if_statement "if (*param_1 == 1) {\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    uVar4 = 0xe;\n  }" if (parenthesized_expression "(*param_1 == 1)" ( (binary_expression "*param_1 == 1" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    uVar4 = 0xe;\n  }" { (expression_statement "iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));" (assignment_expression "iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20))" identifier = (call_expression "(**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20))" (parenthesized_expression "(**(code **)(PTR_ltc_mp_001ecec8 + 0x58))" ( (pointer_expression "**(code **)(PTR_ltc_mp_001ecec8 + 0x58)" * (pointer_expression "*(code **)(PTR_ltc_mp_001ecec8 + 0x58)" * (cast_expression "(code **)(PTR_ltc_mp_001ecec8 + 0x58)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_ltc_mp_001ecec8 + 0x58)" ( (binary_expression "PTR_ltc_mp_001ecec8 + 0x58" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20))" ( (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (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) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }" { (expression_statement "iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));" (assignment_expression "iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18))" identifier = (call_expression "(**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18))" (parenthesized_expression "(**(code **)(puVar1 + 0x58))" ( (pointer_expression "**(code **)(puVar1 + 0x58)" * (pointer_expression "*(code **)(puVar1 + 0x58)" * (cast_expression "(code **)(puVar1 + 0x58)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x58)" ( (binary_expression "puVar1 + 0x58" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18))" ( (pointer_expression "*(undefined8 *)(param_1 + 6)" * (cast_expression "(undefined8 *)(param_1 + 6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) , (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) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }" { (expression_statement "uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);" (assignment_expression "uVar4 = (**(code **)(puVar1 + 0x10))(&local_38)" identifier = (call_expression "(**(code **)(puVar1 + 0x10))(&local_38)" (parenthesized_expression "(**(code **)(puVar1 + 0x10))" ( (pointer_expression "**(code **)(puVar1 + 0x10)" * (pointer_expression "*(code **)(puVar1 + 0x10)" * (cast_expression "(code **)(puVar1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x10)" ( (binary_expression "puVar1 + 0x10" identifier + number_literal) ))))) )) (argument_list "(&local_38)" ( (pointer_expression "&local_38" & identifier) )))) ;) (if_statement "if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }" if (parenthesized_expression "((int)uVar4 == 0)" ( (binary_expression "(int)uVar4 == 0" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }" { (expression_statement "uVar3 = dh_check_pubkey(param_2);" (assignment_expression "uVar3 = dh_check_pubkey(param_2)" identifier = (call_expression "dh_check_pubkey(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }" { (expression_statement "uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);" (assignment_expression "uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38)" identifier = (call_expression "(**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38)" (parenthesized_expression "(**(code **)(puVar1 + 0x140))" ( (pointer_expression "**(code **)(puVar1 + 0x140)" * (pointer_expression "*(code **)(puVar1 + 0x140)" * (cast_expression "(code **)(puVar1 + 0x140)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x140)" ( (binary_expression "puVar1 + 0x140" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38)" ( (pointer_expression "*(undefined8 *)(param_2 + 0x10)" * (cast_expression "(undefined8 *)(param_2 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_1 + 2)" * (cast_expression "(undefined8 *)(param_1 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }" { (expression_statement "uVar4 = (**(code **)(puVar1 + 0x90))(local_38);" (assignment_expression "uVar4 = (**(code **)(puVar1 + 0x90))(local_38)" identifier = (call_expression "(**(code **)(puVar1 + 0x90))(local_38)" (parenthesized_expression "(**(code **)(puVar1 + 0x90))" ( (pointer_expression "**(code **)(puVar1 + 0x90)" * (pointer_expression "*(code **)(puVar1 + 0x90)" * (cast_expression "(code **)(puVar1 + 0x90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x90)" ( (binary_expression "puVar1 + 0x90" identifier + number_literal) ))))) )) (argument_list "(local_38)" ( identifier )))) ;) (if_statement "if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }" if (parenthesized_expression "(*param_4 < uVar4)" ( (binary_expression "*param_4 < uVar4" (pointer_expression "*param_4" * identifier) < identifier) )) (compound_statement "{\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }" { (expression_statement "*param_4 = uVar4;" (assignment_expression "*param_4 = uVar4" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "uVar3 = 6;" (assignment_expression "uVar3 = 6" identifier = number_literal) ;) }) (else_clause "else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }" else (compound_statement "{\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }" { (expression_statement "uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);" (assignment_expression "uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3)" identifier = (call_expression "(**(code **)(puVar1 + 0x98))(local_38,param_3)" (parenthesized_expression "(**(code **)(puVar1 + 0x98))" ( (pointer_expression "**(code **)(puVar1 + 0x98)" * (pointer_expression "*(code **)(puVar1 + 0x98)" * (cast_expression "(code **)(puVar1 + 0x98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x98)" ( (binary_expression "puVar1 + 0x98" identifier + number_literal) ))))) )) (argument_list "(local_38,param_3)" ( identifier , identifier )))) ;) (if_statement "if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n                  *param_4 = uVar4;\n                }" { (expression_statement "*param_4 = uVar4;" (assignment_expression "*param_4 = uVar4" (pointer_expression "*param_4" * identifier) = identifier) ;) })) }))) })) })) (expression_statement "(**(code **)(puVar1 + 0x20))(local_38);" (call_expression "(**(code **)(puVar1 + 0x20))(local_38)" (parenthesized_expression "(**(code **)(puVar1 + 0x20))" ( (pointer_expression "**(code **)(puVar1 + 0x20)" * (pointer_expression "*(code **)(puVar1 + 0x20)" * (cast_expression "(code **)(puVar1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x20)" ( (binary_expression "puVar1 + 0x20" identifier + number_literal) ))))) )) (argument_list "(local_38)" ( identifier ))) ;) (expression_statement "uVar4 = (ulong)uVar3;" (assignment_expression "uVar4 = (ulong)uVar3" identifier = (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) })) (goto_statement "goto LAB_00185c8d;" goto statement_identifier ;) })) })) (expression_statement "uVar4 = 0xe;" (assignment_expression "uVar4 = 0xe" identifier = number_literal) ;) })) (labeled_statement "LAB_00185c8d:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar4;\n  }" statement_identifier : (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar4;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int dh_shared_secret(dh_key *private_key,dh_key *public_key,uchar *out,ulong *outlen)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  ulong uVar3;\n  long in_FS_OFFSET;\n  void *tmp;\n  long local_30;\n  \n  puVar1 = PTR_ltc_mp_001ecec8;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (private_key == (dh_key *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }\n  if (public_key == (dh_key *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }\n  if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }\n  if (outlen == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }\n  iVar2 = 0xf;\n  if (private_key->type == 1) {\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))(private_key->prime,public_key->prime);\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))(private_key->base,public_key->base);\n      if (iVar2 == 0) {\n        iVar2 = (**(code **)(puVar1 + 0x10))(&tmp);\n        if (iVar2 == 0) {\n          iVar2 = dh_check_pubkey(public_key);\n          if (iVar2 == 0) {\n            iVar2 = (**(code **)(puVar1 + 0x140))\n                              (public_key->y,private_key->x,private_key->prime,tmp);\n            if (iVar2 == 0) {\n              uVar3 = (**(code **)(puVar1 + 0x90))(tmp);\n              if (*outlen < uVar3) {\n                *outlen = uVar3;\n                iVar2 = 6;\n              }\n              else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(tmp);\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    iVar2 = 0xe;\n  }\nLAB_00185c8d:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "int dh_shared_secret(dh_key *private_key,dh_key *public_key,uchar *out,ulong *outlen)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  ulong uVar3;\n  long in_FS_OFFSET;\n  void *tmp;\n  long local_30;\n  \n  puVar1 = PTR_ltc_mp_001ecec8;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (private_key == (dh_key *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }\n  if (public_key == (dh_key *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }\n  if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }\n  if (outlen == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }\n  iVar2 = 0xf;\n  if (private_key->type == 1) {\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))(private_key->prime,public_key->prime);\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))(private_key->base,public_key->base);\n      if (iVar2 == 0) {\n        iVar2 = (**(code **)(puVar1 + 0x10))(&tmp);\n        if (iVar2 == 0) {\n          iVar2 = dh_check_pubkey(public_key);\n          if (iVar2 == 0) {\n            iVar2 = (**(code **)(puVar1 + 0x140))\n                              (public_key->y,private_key->x,private_key->prime,tmp);\n            if (iVar2 == 0) {\n              uVar3 = (**(code **)(puVar1 + 0x90))(tmp);\n              if (*outlen < uVar3) {\n                *outlen = uVar3;\n                iVar2 = 6;\n              }\n              else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(tmp);\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    iVar2 = 0xe;\n  }\nLAB_00185c8d:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "dh_shared_secret(dh_key *private_key,dh_key *public_key,uchar *out,ulong *outlen)" identifier (parameter_list "(dh_key *private_key,dh_key *public_key,uchar *out,ulong *outlen)" ( (parameter_declaration "dh_key *private_key" type_identifier (pointer_declarator "*private_key" * identifier)) , (parameter_declaration "dh_key *public_key" type_identifier (pointer_declarator "*public_key" * identifier)) , (parameter_declaration "uchar *out" type_identifier (pointer_declarator "*out" * identifier)) , (parameter_declaration "ulong *outlen" type_identifier (pointer_declarator "*outlen" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  ulong uVar3;\n  long in_FS_OFFSET;\n  void *tmp;\n  long local_30;\n  \n  puVar1 = PTR_ltc_mp_001ecec8;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (private_key == (dh_key *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }\n  if (public_key == (dh_key *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }\n  if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }\n  if (outlen == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }\n  iVar2 = 0xf;\n  if (private_key->type == 1) {\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))(private_key->prime,public_key->prime);\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))(private_key->base,public_key->base);\n      if (iVar2 == 0) {\n        iVar2 = (**(code **)(puVar1 + 0x10))(&tmp);\n        if (iVar2 == 0) {\n          iVar2 = dh_check_pubkey(public_key);\n          if (iVar2 == 0) {\n            iVar2 = (**(code **)(puVar1 + 0x140))\n                              (public_key->y,private_key->x,private_key->prime,tmp);\n            if (iVar2 == 0) {\n              uVar3 = (**(code **)(puVar1 + 0x90))(tmp);\n              if (*outlen < uVar3) {\n                *outlen = uVar3;\n                iVar2 = 6;\n              }\n              else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(tmp);\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    iVar2 = 0xe;\n  }\nLAB_00185c8d:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "void *tmp;" primitive_type (pointer_declarator "*tmp" * identifier) ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "puVar1 = PTR_ltc_mp_001ecec8;" (assignment_expression "puVar1 = PTR_ltc_mp_001ecec8" identifier = identifier) ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (private_key == (dh_key *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }" if (parenthesized_expression "(private_key == (dh_key *)0x0)" ( (binary_expression "private_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("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }" { comment (expression_statement "crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);" (call_expression "crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d)" identifier (argument_list "("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d)" ( (string_literal ""private_key != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_shared_secret.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (public_key == (dh_key *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }" if (parenthesized_expression "(public_key == (dh_key *)0x0)" ( (binary_expression "public_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("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }" { comment (expression_statement "crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);" (call_expression "crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e)" identifier (argument_list "("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e)" ( (string_literal ""public_key != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_shared_secret.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }" if (parenthesized_expression "(out == (uchar *)0x0)" ( (binary_expression "out == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }" { comment (expression_statement "crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);" (call_expression "crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f)" identifier (argument_list "("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f)" ( (string_literal ""out != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_shared_secret.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (outlen == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }" if (parenthesized_expression "(outlen == (ulong *)0x0)" ( (binary_expression "outlen == (ulong *)0x0" identifier == (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }" { comment (expression_statement "crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);" (call_expression "crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20)" identifier (argument_list "("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20)" ( (string_literal ""outlen != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_shared_secret.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar2 = 0xf;" (assignment_expression "iVar2 = 0xf" identifier = number_literal) ;) (if_statement "if (private_key->type == 1) {\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))(private_key->prime,public_key->prime);\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))(private_key->base,public_key->base);\n      if (iVar2 == 0) {\n        iVar2 = (**(code **)(puVar1 + 0x10))(&tmp);\n        if (iVar2 == 0) {\n          iVar2 = dh_check_pubkey(public_key);\n          if (iVar2 == 0) {\n            iVar2 = (**(code **)(puVar1 + 0x140))\n                              (public_key->y,private_key->x,private_key->prime,tmp);\n            if (iVar2 == 0) {\n              uVar3 = (**(code **)(puVar1 + 0x90))(tmp);\n              if (*outlen < uVar3) {\n                *outlen = uVar3;\n                iVar2 = 6;\n              }\n              else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(tmp);\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    iVar2 = 0xe;\n  }" if (parenthesized_expression "(private_key->type == 1)" ( (binary_expression "private_key->type == 1" (field_expression "private_key->type" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))(private_key->prime,public_key->prime);\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))(private_key->base,public_key->base);\n      if (iVar2 == 0) {\n        iVar2 = (**(code **)(puVar1 + 0x10))(&tmp);\n        if (iVar2 == 0) {\n          iVar2 = dh_check_pubkey(public_key);\n          if (iVar2 == 0) {\n            iVar2 = (**(code **)(puVar1 + 0x140))\n                              (public_key->y,private_key->x,private_key->prime,tmp);\n            if (iVar2 == 0) {\n              uVar3 = (**(code **)(puVar1 + 0x90))(tmp);\n              if (*outlen < uVar3) {\n                *outlen = uVar3;\n                iVar2 = 6;\n              }\n              else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(tmp);\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    iVar2 = 0xe;\n  }" { (expression_statement "iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))(private_key->prime,public_key->prime);" (assignment_expression "iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))(private_key->prime,public_key->prime)" identifier = (call_expression "(**(code **)(PTR_ltc_mp_001ecec8 + 0x58))(private_key->prime,public_key->prime)" (parenthesized_expression "(**(code **)(PTR_ltc_mp_001ecec8 + 0x58))" ( (pointer_expression "**(code **)(PTR_ltc_mp_001ecec8 + 0x58)" * (pointer_expression "*(code **)(PTR_ltc_mp_001ecec8 + 0x58)" * (cast_expression "(code **)(PTR_ltc_mp_001ecec8 + 0x58)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_ltc_mp_001ecec8 + 0x58)" ( (binary_expression "PTR_ltc_mp_001ecec8 + 0x58" identifier + number_literal) ))))) )) (argument_list "(private_key->prime,public_key->prime)" ( (field_expression "private_key->prime" identifier -> field_identifier) , (field_expression "public_key->prime" identifier -> field_identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))(private_key->base,public_key->base);\n      if (iVar2 == 0) {\n        iVar2 = (**(code **)(puVar1 + 0x10))(&tmp);\n        if (iVar2 == 0) {\n          iVar2 = dh_check_pubkey(public_key);\n          if (iVar2 == 0) {\n            iVar2 = (**(code **)(puVar1 + 0x140))\n                              (public_key->y,private_key->x,private_key->prime,tmp);\n            if (iVar2 == 0) {\n              uVar3 = (**(code **)(puVar1 + 0x90))(tmp);\n              if (*outlen < uVar3) {\n                *outlen = uVar3;\n                iVar2 = 6;\n              }\n              else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(tmp);\n        }\n        goto LAB_00185c8d;\n      }\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = (**(code **)(puVar1 + 0x58))(private_key->base,public_key->base);\n      if (iVar2 == 0) {\n        iVar2 = (**(code **)(puVar1 + 0x10))(&tmp);\n        if (iVar2 == 0) {\n          iVar2 = dh_check_pubkey(public_key);\n          if (iVar2 == 0) {\n            iVar2 = (**(code **)(puVar1 + 0x140))\n                              (public_key->y,private_key->x,private_key->prime,tmp);\n            if (iVar2 == 0) {\n              uVar3 = (**(code **)(puVar1 + 0x90))(tmp);\n              if (*outlen < uVar3) {\n                *outlen = uVar3;\n                iVar2 = 6;\n              }\n              else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(tmp);\n        }\n        goto LAB_00185c8d;\n      }\n    }" { (expression_statement "iVar2 = (**(code **)(puVar1 + 0x58))(private_key->base,public_key->base);" (assignment_expression "iVar2 = (**(code **)(puVar1 + 0x58))(private_key->base,public_key->base)" identifier = (call_expression "(**(code **)(puVar1 + 0x58))(private_key->base,public_key->base)" (parenthesized_expression "(**(code **)(puVar1 + 0x58))" ( (pointer_expression "**(code **)(puVar1 + 0x58)" * (pointer_expression "*(code **)(puVar1 + 0x58)" * (cast_expression "(code **)(puVar1 + 0x58)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x58)" ( (binary_expression "puVar1 + 0x58" identifier + number_literal) ))))) )) (argument_list "(private_key->base,public_key->base)" ( (field_expression "private_key->base" identifier -> field_identifier) , (field_expression "public_key->base" identifier -> field_identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n        iVar2 = (**(code **)(puVar1 + 0x10))(&tmp);\n        if (iVar2 == 0) {\n          iVar2 = dh_check_pubkey(public_key);\n          if (iVar2 == 0) {\n            iVar2 = (**(code **)(puVar1 + 0x140))\n                              (public_key->y,private_key->x,private_key->prime,tmp);\n            if (iVar2 == 0) {\n              uVar3 = (**(code **)(puVar1 + 0x90))(tmp);\n              if (*outlen < uVar3) {\n                *outlen = uVar3;\n                iVar2 = 6;\n              }\n              else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(tmp);\n        }\n        goto LAB_00185c8d;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar2 = (**(code **)(puVar1 + 0x10))(&tmp);\n        if (iVar2 == 0) {\n          iVar2 = dh_check_pubkey(public_key);\n          if (iVar2 == 0) {\n            iVar2 = (**(code **)(puVar1 + 0x140))\n                              (public_key->y,private_key->x,private_key->prime,tmp);\n            if (iVar2 == 0) {\n              uVar3 = (**(code **)(puVar1 + 0x90))(tmp);\n              if (*outlen < uVar3) {\n                *outlen = uVar3;\n                iVar2 = 6;\n              }\n              else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(tmp);\n        }\n        goto LAB_00185c8d;\n      }" { (expression_statement "iVar2 = (**(code **)(puVar1 + 0x10))(&tmp);" (assignment_expression "iVar2 = (**(code **)(puVar1 + 0x10))(&tmp)" identifier = (call_expression "(**(code **)(puVar1 + 0x10))(&tmp)" (parenthesized_expression "(**(code **)(puVar1 + 0x10))" ( (pointer_expression "**(code **)(puVar1 + 0x10)" * (pointer_expression "*(code **)(puVar1 + 0x10)" * (cast_expression "(code **)(puVar1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x10)" ( (binary_expression "puVar1 + 0x10" identifier + number_literal) ))))) )) (argument_list "(&tmp)" ( (pointer_expression "&tmp" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n          iVar2 = dh_check_pubkey(public_key);\n          if (iVar2 == 0) {\n            iVar2 = (**(code **)(puVar1 + 0x140))\n                              (public_key->y,private_key->x,private_key->prime,tmp);\n            if (iVar2 == 0) {\n              uVar3 = (**(code **)(puVar1 + 0x90))(tmp);\n              if (*outlen < uVar3) {\n                *outlen = uVar3;\n                iVar2 = 6;\n              }\n              else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(tmp);\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar2 = dh_check_pubkey(public_key);\n          if (iVar2 == 0) {\n            iVar2 = (**(code **)(puVar1 + 0x140))\n                              (public_key->y,private_key->x,private_key->prime,tmp);\n            if (iVar2 == 0) {\n              uVar3 = (**(code **)(puVar1 + 0x90))(tmp);\n              if (*outlen < uVar3) {\n                *outlen = uVar3;\n                iVar2 = 6;\n              }\n              else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(tmp);\n        }" { (expression_statement "iVar2 = dh_check_pubkey(public_key);" (assignment_expression "iVar2 = dh_check_pubkey(public_key)" identifier = (call_expression "dh_check_pubkey(public_key)" identifier (argument_list "(public_key)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n            iVar2 = (**(code **)(puVar1 + 0x140))\n                              (public_key->y,private_key->x,private_key->prime,tmp);\n            if (iVar2 == 0) {\n              uVar3 = (**(code **)(puVar1 + 0x90))(tmp);\n              if (*outlen < uVar3) {\n                *outlen = uVar3;\n                iVar2 = 6;\n              }\n              else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }\n            }\n          }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar2 = (**(code **)(puVar1 + 0x140))\n                              (public_key->y,private_key->x,private_key->prime,tmp);\n            if (iVar2 == 0) {\n              uVar3 = (**(code **)(puVar1 + 0x90))(tmp);\n              if (*outlen < uVar3) {\n                *outlen = uVar3;\n                iVar2 = 6;\n              }\n              else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }\n            }\n          }" { (expression_statement "iVar2 = (**(code **)(puVar1 + 0x140))\n                              (public_key->y,private_key->x,private_key->prime,tmp);" (assignment_expression "iVar2 = (**(code **)(puVar1 + 0x140))\n                              (public_key->y,private_key->x,private_key->prime,tmp)" identifier = (call_expression "(**(code **)(puVar1 + 0x140))\n                              (public_key->y,private_key->x,private_key->prime,tmp)" (parenthesized_expression "(**(code **)(puVar1 + 0x140))" ( (pointer_expression "**(code **)(puVar1 + 0x140)" * (pointer_expression "*(code **)(puVar1 + 0x140)" * (cast_expression "(code **)(puVar1 + 0x140)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x140)" ( (binary_expression "puVar1 + 0x140" identifier + number_literal) ))))) )) (argument_list "(public_key->y,private_key->x,private_key->prime,tmp)" ( (field_expression "public_key->y" identifier -> field_identifier) , (field_expression "private_key->x" identifier -> field_identifier) , (field_expression "private_key->prime" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n              uVar3 = (**(code **)(puVar1 + 0x90))(tmp);\n              if (*outlen < uVar3) {\n                *outlen = uVar3;\n                iVar2 = 6;\n              }\n              else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }\n            }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n              uVar3 = (**(code **)(puVar1 + 0x90))(tmp);\n              if (*outlen < uVar3) {\n                *outlen = uVar3;\n                iVar2 = 6;\n              }\n              else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }\n            }" { (expression_statement "uVar3 = (**(code **)(puVar1 + 0x90))(tmp);" (assignment_expression "uVar3 = (**(code **)(puVar1 + 0x90))(tmp)" identifier = (call_expression "(**(code **)(puVar1 + 0x90))(tmp)" (parenthesized_expression "(**(code **)(puVar1 + 0x90))" ( (pointer_expression "**(code **)(puVar1 + 0x90)" * (pointer_expression "*(code **)(puVar1 + 0x90)" * (cast_expression "(code **)(puVar1 + 0x90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x90)" ( (binary_expression "puVar1 + 0x90" identifier + number_literal) ))))) )) (argument_list "(tmp)" ( identifier )))) ;) (if_statement "if (*outlen < uVar3) {\n                *outlen = uVar3;\n                iVar2 = 6;\n              }\n              else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }" if (parenthesized_expression "(*outlen < uVar3)" ( (binary_expression "*outlen < uVar3" (pointer_expression "*outlen" * identifier) < identifier) )) (compound_statement "{\n                *outlen = uVar3;\n                iVar2 = 6;\n              }" { (expression_statement "*outlen = uVar3;" (assignment_expression "*outlen = uVar3" (pointer_expression "*outlen" * identifier) = identifier) ;) (expression_statement "iVar2 = 6;" (assignment_expression "iVar2 = 6" identifier = number_literal) ;) }) (else_clause "else {\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }" else (compound_statement "{\n                iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);\n                if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }\n              }" { (expression_statement "iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out);" (assignment_expression "iVar2 = (**(code **)(puVar1 + 0x98))(tmp,out)" identifier = (call_expression "(**(code **)(puVar1 + 0x98))(tmp,out)" (parenthesized_expression "(**(code **)(puVar1 + 0x98))" ( (pointer_expression "**(code **)(puVar1 + 0x98)" * (pointer_expression "*(code **)(puVar1 + 0x98)" * (cast_expression "(code **)(puVar1 + 0x98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x98)" ( (binary_expression "puVar1 + 0x98" identifier + number_literal) ))))) )) (argument_list "(tmp,out)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n                  *outlen = uVar3;\n                }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                  *outlen = uVar3;\n                }" { (expression_statement "*outlen = uVar3;" (assignment_expression "*outlen = uVar3" (pointer_expression "*outlen" * identifier) = identifier) ;) })) }))) })) })) (expression_statement "(**(code **)(puVar1 + 0x20))(tmp);" (call_expression "(**(code **)(puVar1 + 0x20))(tmp)" (parenthesized_expression "(**(code **)(puVar1 + 0x20))" ( (pointer_expression "**(code **)(puVar1 + 0x20)" * (pointer_expression "*(code **)(puVar1 + 0x20)" * (cast_expression "(code **)(puVar1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x20)" ( (binary_expression "puVar1 + 0x20" identifier + number_literal) ))))) )) (argument_list "(tmp)" ( identifier ))) ;) })) (goto_statement "goto LAB_00185c8d;" goto statement_identifier ;) })) })) (expression_statement "iVar2 = 0xe;" (assignment_expression "iVar2 = 0xe" identifier = number_literal) ;) })) (labeled_statement "LAB_00185c8d:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "ulong dh_shared_secret(int *param_1,long param_2,long param_3,ulong *param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  ulong uVar4;\n  long in_FS_OFFSET;\n  undefined8 local_38;\n  long local_30;\n  \n  puVar1 = PTR_ltc_mp_001ecec8;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == (int *)0x0) {\n                    \n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }\n  if (param_2 == 0) {\n                    \n    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }\n  if (param_3 == 0) {\n                    \n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }\n  if (param_4 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }\n  uVar4 = 0xf;\n  if (*param_1 == 1) {\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    uVar4 = 0xe;\n  }\nLAB_00185c8d:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar4;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "ulong dh_shared_secret(int *param_1,long param_2,long param_3,ulong *param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  ulong uVar4;\n  long in_FS_OFFSET;\n  undefined8 local_38;\n  long local_30;\n  \n  puVar1 = PTR_ltc_mp_001ecec8;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == (int *)0x0) {\n                    \n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }\n  if (param_2 == 0) {\n                    \n    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }\n  if (param_3 == 0) {\n                    \n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }\n  if (param_4 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }\n  uVar4 = 0xf;\n  if (*param_1 == 1) {\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    uVar4 = 0xe;\n  }\nLAB_00185c8d:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar4;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "dh_shared_secret(int *param_1,long param_2,long param_3,ulong *param_4)" identifier (parameter_list "(int *param_1,long param_2,long param_3,ulong *param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  ulong uVar4;\n  long in_FS_OFFSET;\n  undefined8 local_38;\n  long local_30;\n  \n  puVar1 = PTR_ltc_mp_001ecec8;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == (int *)0x0) {\n                    \n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }\n  if (param_2 == 0) {\n                    \n    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }\n  if (param_3 == 0) {\n                    \n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }\n  if (param_4 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }\n  uVar4 = 0xf;\n  if (*param_1 == 1) {\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    uVar4 = 0xe;\n  }\nLAB_00185c8d:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar4;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "puVar1 = PTR_ltc_mp_001ecec8;" (assignment_expression "puVar1 = PTR_ltc_mp_001ecec8" identifier = identifier) ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == (int *)0x0) {\n                    \n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }" { (expression_statement "crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);" (call_expression "crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d)" identifier (argument_list "("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d)" ( (string_literal ""private_key != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_shared_secret.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_2 == 0) {\n                    \n    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }" { (expression_statement "crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);" (call_expression "crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e)" identifier (argument_list "("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e)" ( (string_literal ""public_key != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_shared_secret.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_3 == 0) {\n                    \n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }" { (expression_statement "crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);" (call_expression "crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f)" identifier (argument_list "("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f)" ( (string_literal ""out != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_shared_secret.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_4 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }" if (parenthesized_expression "(param_4 == (ulong *)0x0)" ( (binary_expression "param_4 == (ulong *)0x0" identifier == (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }" { (expression_statement "crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);" (call_expression "crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20)" identifier (argument_list "("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20)" ( (string_literal ""outlen != NULL"" " string_content ") , (string_literal ""src/pk/dh/dh_shared_secret.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "uVar4 = 0xf;" (assignment_expression "uVar4 = 0xf" identifier = number_literal) ;) (if_statement "if (*param_1 == 1) {\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    uVar4 = 0xe;\n  }" if (parenthesized_expression "(*param_1 == 1)" ( (binary_expression "*param_1 == 1" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    uVar4 = 0xe;\n  }" { (expression_statement "iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));" (assignment_expression "iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20))" identifier = (call_expression "(**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20))" (parenthesized_expression "(**(code **)(PTR_ltc_mp_001ecec8 + 0x58))" ( (pointer_expression "**(code **)(PTR_ltc_mp_001ecec8 + 0x58)" * (pointer_expression "*(code **)(PTR_ltc_mp_001ecec8 + 0x58)" * (cast_expression "(code **)(PTR_ltc_mp_001ecec8 + 0x58)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_ltc_mp_001ecec8 + 0x58)" ( (binary_expression "PTR_ltc_mp_001ecec8 + 0x58" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20))" ( (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (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) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }" { (expression_statement "iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));" (assignment_expression "iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18))" identifier = (call_expression "(**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18))" (parenthesized_expression "(**(code **)(puVar1 + 0x58))" ( (pointer_expression "**(code **)(puVar1 + 0x58)" * (pointer_expression "*(code **)(puVar1 + 0x58)" * (cast_expression "(code **)(puVar1 + 0x58)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x58)" ( (binary_expression "puVar1 + 0x58" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18))" ( (pointer_expression "*(undefined8 *)(param_1 + 6)" * (cast_expression "(undefined8 *)(param_1 + 6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) , (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) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }" { (expression_statement "uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);" (assignment_expression "uVar4 = (**(code **)(puVar1 + 0x10))(&local_38)" identifier = (call_expression "(**(code **)(puVar1 + 0x10))(&local_38)" (parenthesized_expression "(**(code **)(puVar1 + 0x10))" ( (pointer_expression "**(code **)(puVar1 + 0x10)" * (pointer_expression "*(code **)(puVar1 + 0x10)" * (cast_expression "(code **)(puVar1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x10)" ( (binary_expression "puVar1 + 0x10" identifier + number_literal) ))))) )) (argument_list "(&local_38)" ( (pointer_expression "&local_38" & identifier) )))) ;) (if_statement "if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }" if (parenthesized_expression "((int)uVar4 == 0)" ( (binary_expression "(int)uVar4 == 0" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }" { (expression_statement "uVar3 = dh_check_pubkey(param_2);" (assignment_expression "uVar3 = dh_check_pubkey(param_2)" identifier = (call_expression "dh_check_pubkey(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }" { (expression_statement "uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);" (assignment_expression "uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38)" identifier = (call_expression "(**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38)" (parenthesized_expression "(**(code **)(puVar1 + 0x140))" ( (pointer_expression "**(code **)(puVar1 + 0x140)" * (pointer_expression "*(code **)(puVar1 + 0x140)" * (cast_expression "(code **)(puVar1 + 0x140)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x140)" ( (binary_expression "puVar1 + 0x140" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38)" ( (pointer_expression "*(undefined8 *)(param_2 + 0x10)" * (cast_expression "(undefined8 *)(param_2 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_1 + 2)" * (cast_expression "(undefined8 *)(param_1 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }" { (expression_statement "uVar4 = (**(code **)(puVar1 + 0x90))(local_38);" (assignment_expression "uVar4 = (**(code **)(puVar1 + 0x90))(local_38)" identifier = (call_expression "(**(code **)(puVar1 + 0x90))(local_38)" (parenthesized_expression "(**(code **)(puVar1 + 0x90))" ( (pointer_expression "**(code **)(puVar1 + 0x90)" * (pointer_expression "*(code **)(puVar1 + 0x90)" * (cast_expression "(code **)(puVar1 + 0x90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x90)" ( (binary_expression "puVar1 + 0x90" identifier + number_literal) ))))) )) (argument_list "(local_38)" ( identifier )))) ;) (if_statement "if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }" if (parenthesized_expression "(*param_4 < uVar4)" ( (binary_expression "*param_4 < uVar4" (pointer_expression "*param_4" * identifier) < identifier) )) (compound_statement "{\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }" { (expression_statement "*param_4 = uVar4;" (assignment_expression "*param_4 = uVar4" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "uVar3 = 6;" (assignment_expression "uVar3 = 6" identifier = number_literal) ;) }) (else_clause "else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }" else (compound_statement "{\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }" { (expression_statement "uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);" (assignment_expression "uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3)" identifier = (call_expression "(**(code **)(puVar1 + 0x98))(local_38,param_3)" (parenthesized_expression "(**(code **)(puVar1 + 0x98))" ( (pointer_expression "**(code **)(puVar1 + 0x98)" * (pointer_expression "*(code **)(puVar1 + 0x98)" * (cast_expression "(code **)(puVar1 + 0x98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x98)" ( (binary_expression "puVar1 + 0x98" identifier + number_literal) ))))) )) (argument_list "(local_38,param_3)" ( identifier , identifier )))) ;) (if_statement "if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n                  *param_4 = uVar4;\n                }" { (expression_statement "*param_4 = uVar4;" (assignment_expression "*param_4 = uVar4" (pointer_expression "*param_4" * identifier) = identifier) ;) })) }))) })) })) (expression_statement "(**(code **)(puVar1 + 0x20))(local_38);" (call_expression "(**(code **)(puVar1 + 0x20))(local_38)" (parenthesized_expression "(**(code **)(puVar1 + 0x20))" ( (pointer_expression "**(code **)(puVar1 + 0x20)" * (pointer_expression "*(code **)(puVar1 + 0x20)" * (cast_expression "(code **)(puVar1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 0x20)" ( (binary_expression "puVar1 + 0x20" identifier + number_literal) ))))) )) (argument_list "(local_38)" ( identifier ))) ;) (expression_statement "uVar4 = (ulong)uVar3;" (assignment_expression "uVar4 = (ulong)uVar3" identifier = (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) })) (goto_statement "goto LAB_00185c8d;" goto statement_identifier ;) })) })) (expression_statement "uVar4 = 0xe;" (assignment_expression "uVar4 = 0xe" identifier = number_literal) ;) })) (labeled_statement "LAB_00185c8d:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar4;\n  }" statement_identifier : (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar4;\n  }" if (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) }))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (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 IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (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 IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (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 & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (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 IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (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 ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (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 ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) }))) })) })) (expression_statement (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 ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "ulong dh_shared_secret(int *param_1,long param_2,long param_3,ulong *param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  ulong uVar4;\n  long in_FS_OFFSET;\n  undefined8 local_38;\n  long local_30;\n  \n  puVar1 = PTR_ltc_mp_001ecec8;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == (int *)0x0) {\n                    \n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }\n  if (param_2 == 0) {\n                    \n    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }\n  if (param_3 == 0) {\n                    \n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }\n  if (param_4 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }\n  uVar4 = 0xf;\n  if (*param_1 == 1) {\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    uVar4 = 0xe;\n  }\nLAB_00185c8d:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar4;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "ulong") (function_declarator "dh_shared_secret(int *param_1,long param_2,long param_3,ulong *param_4)" (identifier "dh_shared_secret") (parameter_list "(int *param_1,long param_2,long param_3,ulong *param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) (, ",") (parameter_declaration "ulong *param_4" (type_identifier "ulong") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  ulong uVar4;\n  long in_FS_OFFSET;\n  undefined8 local_38;\n  long local_30;\n  \n  puVar1 = PTR_ltc_mp_001ecec8;\n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == (int *)0x0) {\n                    \n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }\n  if (param_2 == 0) {\n                    \n    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }\n  if (param_3 == 0) {\n                    \n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }\n  if (param_4 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }\n  uVar4 = 0xf;\n  if (*param_1 == 1) {\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    uVar4 = 0xe;\n  }\nLAB_00185c8d:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar4;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "ulong uVar4;" (type_identifier "ulong") (identifier "uVar4") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined8 local_38;" (type_identifier "undefined8") (identifier "local_38") (; ";")) (declaration "long local_30;" (sized_type_specifier "long" (long "long")) (identifier "local_30") (; ";")) (expression_statement "puVar1 = PTR_ltc_mp_001ecec8;" (assignment_expression "puVar1 = PTR_ltc_mp_001ecec8" (identifier "puVar1") (= "=") (identifier "PTR_ltc_mp_001ecec8")) (; ";")) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (param_1 == (int *)0x0) {\n                    \n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }" (if "if") (parenthesized_expression "(param_1 == (int *)0x0)" (( "(") (binary_expression "param_1 == (int *)0x0" (identifier "param_1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);\n  }" ({ "{") (expression_statement "crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);" (call_expression "crypt_argchk("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d)" (identifier "crypt_argchk") (argument_list "("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d)" (( "(") (string_literal ""private_key != NULL"" (" """) (string_content "private_key != NULL") (" """)) (, ",") (string_literal ""src/pk/dh/dh_shared_secret.c"" (" """) (string_content "src/pk/dh/dh_shared_secret.c") (" """)) (, ",") (number_literal "0x1d") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n                    \n    crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\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("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);\n  }" ({ "{") (expression_statement "crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);" (call_expression "crypt_argchk("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e)" (identifier "crypt_argchk") (argument_list "("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e)" (( "(") (string_literal ""public_key != NULL"" (" """) (string_content "public_key != NULL") (" """)) (, ",") (string_literal ""src/pk/dh/dh_shared_secret.c"" (" """) (string_content "src/pk/dh/dh_shared_secret.c") (" """)) (, ",") (number_literal "0x1e") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 == 0) {\n                    \n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);\n  }" ({ "{") (expression_statement "crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);" (call_expression "crypt_argchk("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f)" (identifier "crypt_argchk") (argument_list "("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f)" (( "(") (string_literal ""out != NULL"" (" """) (string_content "out != NULL") (" """)) (, ",") (string_literal ""src/pk/dh/dh_shared_secret.c"" (" """) (string_content "src/pk/dh/dh_shared_secret.c") (" """)) (, ",") (number_literal "0x1f") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_4 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }" (if "if") (parenthesized_expression "(param_4 == (ulong *)0x0)" (( "(") (binary_expression "param_4 == (ulong *)0x0" (identifier "param_4") (== "==") (cast_expression "(ulong *)0x0" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);\n  }" ({ "{") (expression_statement "crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);" (call_expression "crypt_argchk("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20)" (identifier "crypt_argchk") (argument_list "("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20)" (( "(") (string_literal ""outlen != NULL"" (" """) (string_content "outlen != NULL") (" """)) (, ",") (string_literal ""src/pk/dh/dh_shared_secret.c"" (" """) (string_content "src/pk/dh/dh_shared_secret.c") (" """)) (, ",") (number_literal "0x20") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar4 = 0xf;" (assignment_expression "uVar4 = 0xf" (identifier "uVar4") (= "=") (number_literal "0xf")) (; ";")) (if_statement "if (*param_1 == 1) {\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    uVar4 = 0xe;\n  }" (if "if") (parenthesized_expression "(*param_1 == 1)" (( "(") (binary_expression "*param_1 == 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));\n    if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }\n    uVar4 = 0xe;\n  }" ({ "{") (expression_statement "iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));" (assignment_expression "iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20))" (identifier "iVar2") (= "=") (call_expression "(**(code **)(PTR_ltc_mp_001ecec8 + 0x58))\n                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20))" (parenthesized_expression "(**(code **)(PTR_ltc_mp_001ecec8 + 0x58))" (( "(") (pointer_expression "**(code **)(PTR_ltc_mp_001ecec8 + 0x58)" (* "*") (pointer_expression "*(code **)(PTR_ltc_mp_001ecec8 + 0x58)" (* "*") (cast_expression "(code **)(PTR_ltc_mp_001ecec8 + 0x58)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_ltc_mp_001ecec8 + 0x58)" (( "(") (binary_expression "PTR_ltc_mp_001ecec8 + 0x58" (identifier "PTR_ltc_mp_001ecec8") (+ "+") (number_literal "0x58")) () ")"))))) () ")")) (argument_list "(*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (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")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));\n      if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }\n    }" ({ "{") (expression_statement "iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));" (assignment_expression "iVar2 = (**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18))" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar1 + 0x58))\n                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18))" (parenthesized_expression "(**(code **)(puVar1 + 0x58))" (( "(") (pointer_expression "**(code **)(puVar1 + 0x58)" (* "*") (pointer_expression "*(code **)(puVar1 + 0x58)" (* "*") (cast_expression "(code **)(puVar1 + 0x58)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0x58)" (( "(") (binary_expression "puVar1 + 0x58" (identifier "puVar1") (+ "+") (number_literal "0x58")) () ")"))))) () ")")) (argument_list "(*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 6)" (* "*") (cast_expression "(undefined8 *)(param_1 + 6)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")")))) (, ",") (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")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);\n        if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }\n        goto LAB_00185c8d;\n      }" ({ "{") (expression_statement "uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);" (assignment_expression "uVar4 = (**(code **)(puVar1 + 0x10))(&local_38)" (identifier "uVar4") (= "=") (call_expression "(**(code **)(puVar1 + 0x10))(&local_38)" (parenthesized_expression "(**(code **)(puVar1 + 0x10))" (( "(") (pointer_expression "**(code **)(puVar1 + 0x10)" (* "*") (pointer_expression "*(code **)(puVar1 + 0x10)" (* "*") (cast_expression "(code **)(puVar1 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0x10)" (( "(") (binary_expression "puVar1 + 0x10" (identifier "puVar1") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(&local_38)" (( "(") (pointer_expression "&local_38" (& "&") (identifier "local_38")) () ")")))) (; ";")) (if_statement "if ((int)uVar4 == 0) {\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }" (if "if") (parenthesized_expression "((int)uVar4 == 0)" (( "(") (binary_expression "(int)uVar4 == 0" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          uVar3 = dh_check_pubkey(param_2);\n          if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }\n          (**(code **)(puVar1 + 0x20))(local_38);\n          uVar4 = (ulong)uVar3;\n        }" ({ "{") (expression_statement "uVar3 = dh_check_pubkey(param_2);" (assignment_expression "uVar3 = dh_check_pubkey(param_2)" (identifier "uVar3") (= "=") (call_expression "dh_check_pubkey(param_2)" (identifier "dh_check_pubkey") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (uVar3 == 0) {\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);\n            if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }\n          }" ({ "{") (expression_statement "uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38);" (assignment_expression "uVar3 = (**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38)" (identifier "uVar3") (= "=") (call_expression "(**(code **)(puVar1 + 0x140))\n                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38)" (parenthesized_expression "(**(code **)(puVar1 + 0x140))" (( "(") (pointer_expression "**(code **)(puVar1 + 0x140)" (* "*") (pointer_expression "*(code **)(puVar1 + 0x140)" (* "*") (cast_expression "(code **)(puVar1 + 0x140)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0x140)" (( "(") (binary_expression "puVar1 + 0x140" (identifier "puVar1") (+ "+") (number_literal "0x140")) () ")"))))) () ")")) (argument_list "(*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),\n                               *(undefined8 *)(param_1 + 8),local_38)" (( "(") (pointer_expression "*(undefined8 *)(param_2 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(param_1 + 2)" (* "*") (cast_expression "(undefined8 *)(param_1 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (identifier "local_38") () ")")))) (; ";")) (if_statement "if (uVar3 == 0) {\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);\n              if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }\n            }" ({ "{") (expression_statement "uVar4 = (**(code **)(puVar1 + 0x90))(local_38);" (assignment_expression "uVar4 = (**(code **)(puVar1 + 0x90))(local_38)" (identifier "uVar4") (= "=") (call_expression "(**(code **)(puVar1 + 0x90))(local_38)" (parenthesized_expression "(**(code **)(puVar1 + 0x90))" (( "(") (pointer_expression "**(code **)(puVar1 + 0x90)" (* "*") (pointer_expression "*(code **)(puVar1 + 0x90)" (* "*") (cast_expression "(code **)(puVar1 + 0x90)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0x90)" (( "(") (binary_expression "puVar1 + 0x90" (identifier "puVar1") (+ "+") (number_literal "0x90")) () ")"))))) () ")")) (argument_list "(local_38)" (( "(") (identifier "local_38") () ")")))) (; ";")) (if_statement "if (*param_4 < uVar4) {\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }\n              else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }" (if "if") (parenthesized_expression "(*param_4 < uVar4)" (( "(") (binary_expression "*param_4 < uVar4" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n                *param_4 = uVar4;\n                uVar3 = 6;\n              }" ({ "{") (expression_statement "*param_4 = uVar4;" (assignment_expression "*param_4 = uVar4" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "uVar3 = 6;" (assignment_expression "uVar3 = 6" (identifier "uVar3") (= "=") (number_literal "6")) (; ";")) (} "}")) (else_clause "else {\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }" (else "else") (compound_statement "{\n                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);\n                if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }\n              }" ({ "{") (expression_statement "uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);" (assignment_expression "uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3)" (identifier "uVar3") (= "=") (call_expression "(**(code **)(puVar1 + 0x98))(local_38,param_3)" (parenthesized_expression "(**(code **)(puVar1 + 0x98))" (( "(") (pointer_expression "**(code **)(puVar1 + 0x98)" (* "*") (pointer_expression "*(code **)(puVar1 + 0x98)" (* "*") (cast_expression "(code **)(puVar1 + 0x98)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0x98)" (( "(") (binary_expression "puVar1 + 0x98" (identifier "puVar1") (+ "+") (number_literal "0x98")) () ")"))))) () ")")) (argument_list "(local_38,param_3)" (( "(") (identifier "local_38") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (uVar3 == 0) {\n                  *param_4 = uVar4;\n                }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                  *param_4 = uVar4;\n                }" ({ "{") (expression_statement "*param_4 = uVar4;" (assignment_expression "*param_4 = uVar4" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (} "}")))) (} "}"))) (} "}"))) (expression_statement "(**(code **)(puVar1 + 0x20))(local_38);" (call_expression "(**(code **)(puVar1 + 0x20))(local_38)" (parenthesized_expression "(**(code **)(puVar1 + 0x20))" (( "(") (pointer_expression "**(code **)(puVar1 + 0x20)" (* "*") (pointer_expression "*(code **)(puVar1 + 0x20)" (* "*") (cast_expression "(code **)(puVar1 + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + 0x20)" (( "(") (binary_expression "puVar1 + 0x20" (identifier "puVar1") (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (argument_list "(local_38)" (( "(") (identifier "local_38") () ")"))) (; ";")) (expression_statement "uVar4 = (ulong)uVar3;" (assignment_expression "uVar4 = (ulong)uVar3" (identifier "uVar4") (= "=") (cast_expression "(ulong)uVar3" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar3"))) (; ";")) (} "}"))) (goto_statement "goto LAB_00185c8d;" (goto "goto") (statement_identifier "LAB_00185c8d") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar4 = 0xe;" (assignment_expression "uVar4 = 0xe" (identifier "uVar4") (= "=") (number_literal "0xe")) (; ";")) (} "}"))) (labeled_statement "LAB_00185c8d:\n  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar4;\n  }" (statement_identifier "LAB_00185c8d") (: ":") (if_statement "if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar4;\n  }" (if "if") (parenthesized_expression "(local_30 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_30 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return uVar4;\n  }" ({ "{") (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

int function_1(type_1 *var_2,type_1 *var_4,type_2 *var_5,type_3 *var_6)

{
  type_4 *var_9;
  int var_8;
  type_3 var_11;
  long var_1;
  void *tmp;
  long var_12;
  
  var_9 = var_7;
  var_12 = *(long *)(var_1 + 0x28);
  if (var_2 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("private_key != NULL","src/pk/dh/dh_shared_secret.c",0x1d);
  }
  if (var_4 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("public_key != NULL","src/pk/dh/dh_shared_secret.c",0x1e);
  }
  if (var_5 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("out != NULL","src/pk/dh/dh_shared_secret.c",0x1f);
  }
  if (var_6 == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("outlen != NULL","src/pk/dh/dh_shared_secret.c",0x20);
  }
  var_8 = 0xf;
  if (var_2->type == 1) {
    var_8 = (**(type_5 **)(var_7 + 0x58))(var_2->prime,var_4->prime);
    if (var_8 == 0) {
      var_8 = (**(type_5 **)(var_9 + 0x58))(var_2->base,var_4->base);
      if (var_8 == 0) {
        var_8 = (**(type_5 **)(var_9 + 0x10))(&tmp);
        if (var_8 == 0) {
          var_8 = var_10(var_4);
          if (var_8 == 0) {
            var_8 = (**(type_5 **)(var_9 + 0x140))
                              (var_4->y,var_2->x,var_2->prime,tmp);
            if (var_8 == 0) {
              var_11 = (**(type_5 **)(var_9 + 0x90))(tmp);
              if (*var_6 < var_11) {
                *var_6 = var_11;
                var_8 = 6;
              }
              else {
                var_8 = (**(type_5 **)(var_9 + 0x98))(tmp,var_5);
                if (var_8 == 0) {
                  *var_6 = var_11;
                }
              }
            }
          }
          (**(type_5 **)(var_9 + 0x20))(tmp);
        }
        goto LAB_00185c8d;
      }
    }
    var_8 = 0xe;
  }
LAB_00185c8d:
  if (var_12 == *(long *)(var_1 + 0x28)) {
    return var_8;
  }
                    /* WARNING: Subroutine does not return */
  var_13();
}


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

ulong MASKED(int *param_1,long param_2,long param_3,ulong *param_4)

{
  undefined *puVar1;
  int iVar2;
  uint uVar3;
  ulong uVar4;
  long in_FS_OFFSET;
  undefined8 local_38;
  long local_30;
  
  puVar1 = PTR_ltc_mp_001ecec8;
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("private_key != NULL","src/pk/dh/MASKED.c",0x1d);
  }
  if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("public_key != NULL","src/pk/dh/MASKED.c",0x1e);
  }
  if (param_3 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("out != NULL","src/pk/dh/MASKED.c",0x1f);
  }
  if (param_4 == (ulong *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("outlen != NULL","src/pk/dh/MASKED.c",0x20);
  }
  uVar4 = 0xf;
  if (*param_1 == 1) {
    iVar2 = (**(code **)(PTR_ltc_mp_001ecec8 + 0x58))
                      (*(undefined8 *)(param_1 + 8),*(undefined8 *)(param_2 + 0x20));
    if (iVar2 == 0) {
      iVar2 = (**(code **)(puVar1 + 0x58))
                        (*(undefined8 *)(param_1 + 6),*(undefined8 *)(param_2 + 0x18));
      if (iVar2 == 0) {
        uVar4 = (**(code **)(puVar1 + 0x10))(&local_38);
        if ((int)uVar4 == 0) {
          uVar3 = dh_check_pubkey(param_2);
          if (uVar3 == 0) {
            uVar3 = (**(code **)(puVar1 + 0x140))
                              (*(undefined8 *)(param_2 + 0x10),*(undefined8 *)(param_1 + 2),
                               *(undefined8 *)(param_1 + 8),local_38);
            if (uVar3 == 0) {
              uVar4 = (**(code **)(puVar1 + 0x90))(local_38);
              if (*param_4 < uVar4) {
                *param_4 = uVar4;
                uVar3 = 6;
              }
              else {
                uVar3 = (**(code **)(puVar1 + 0x98))(local_38,param_3);
                if (uVar3 == 0) {
                  *param_4 = uVar4;
                }
              }
            }
          }
          (**(code **)(puVar1 + 0x20))(local_38);
          uVar4 = (ulong)uVar3;
        }
        goto LAB_00185c8d;
      }
    }
    uVar4 = 0xe;
  }
LAB_00185c8d:
  if (local_30 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

