
int ecc_ansi_x963_export(ecc_key *key,uchar *out,ulong *outlen)

{
  ulong uVar1;
  long lVar2;
  undefined *puVar3;
  int iVar4;
  ulong uVar5;
  ulong uVar6;
  ulong __n;
  long in_FS_OFFSET;
  uchar buf [256];
  
  lVar2 = *(long *)(in_FS_OFFSET + 0x28);
  if (key == (ecc_key *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);
  }
  if (outlen == (ulong *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);
  }
  iVar4 = ltc_ecc_is_valid_idx(key->idx);
  puVar3 = PTR_ltc_mp_001dfed8;
  if (iVar4 == 0) {
    iVar4 = 0x10;
  }
  else {
    __n = (ulong)key->dp->size;
    uVar5 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))((key->pubkey).x);
    uVar6 = (**(code **)(puVar3 + 0x90))((key->pubkey).y);
    if ((__n < uVar5 || __n < uVar6) || (0x100 < __n)) {
      iVar4 = 6;
    }
    else {
      uVar1 = __n * 2 + 1;
      if (*outlen < uVar1) {
        *outlen = uVar1;
        iVar4 = 6;
      }
      else {
        if (out == (uchar *)0x0) {
                    /* WARNING: Subroutine does not return */
          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);
        }
        *out = '\x04';
        zeromem(buf,0x100);
        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).x,buf + (__n - uVar5));
        memcpy(out + 1,buf,__n);
        zeromem(buf,0x100);
        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).y,buf + (__n - uVar6));
        memcpy(out + __n + 1,buf,__n);
        *outlen = uVar1;
        iVar4 = 0;
      }
    }
  }
  if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



undefined8 ecc_ansi_x963_export(long param_1,undefined1 *param_2,ulong *param_3)

{
  ulong uVar1;
  undefined *puVar2;
  int iVar3;
  ulong uVar4;
  ulong uVar5;
  undefined8 uVar6;
  ulong __n;
  long in_FS_OFFSET;
  undefined1 local_148 [264];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);
  }
  if (param_3 == (ulong *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);
  }
  iVar3 = ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4));
  puVar2 = PTR_ltc_mp_001dfed8;
  if (iVar3 == 0) {
    uVar6 = 0x10;
  }
  else {
    __n = (ulong)**(int **)(param_1 + 8);
    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));
    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));
    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {
      uVar6 = 6;
    }
    else {
      uVar1 = __n * 2 + 1;
      if (*param_3 < uVar1) {
        *param_3 = uVar1;
        uVar6 = 6;
      }
      else {
        if (param_2 == (undefined1 *)0x0) {
                    /* WARNING: Subroutine does not return */
          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);
        }
        *param_2 = 4;
        zeromem(local_148,0x100);
        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))
                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));
        memcpy(param_2 + 1,local_148,__n);
        zeromem(local_148,0x100);
        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))
                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));
        memcpy(param_2 + __n + 1,local_148,__n);
        *param_3 = uVar1;
        uVar6 = 0;
      }
    }
  }
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar6;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x128
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x118],RAX
XOR EAX,EAX
TEST RDI,RDI
JZ 0x0017de2a
MOV RBX,RDI
MOV R14,RSI
MOV R12,RDX
TEST RDX,RDX
JZ 0x0017de42
MOV EDI,dword ptr [RDI + 0x4]
CALL 0x00113e60
TEST EAX,EAX
JZ 0x0017de7d
MOV RAX,qword ptr [RBX + 0x8]
MOVSXD RBP,dword ptr [RAX]
MOV RDI,qword ptr [RBX + 0x10]
MOV R13,qword ptr [0x001dfed8]
CALL qword ptr [R13 + 0x90]
MOV R15,RAX
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RBX + 0x18]
CALL qword ptr [R13 + 0x90]
MOV qword ptr [RSP + 0x8],RAX
CMP RBP,R15
SETC DL
CMP RBP,RAX
SETC CL
OR DL,CL
JNZ 0x0017de84
CMP RBP,0x100
JA 0x0017de84
LEA R15,[RBP + RBP*0x1 + 0x1]
CMP qword ptr [R12],R15
JC 0x0017de5a
TEST R14,R14
JZ 0x0017de65
MOV byte ptr [R14],0x4
LEA R13,[RSP + 0x10]
MOV ESI,0x100
MOV RDI,R13
CALL 0x00114df0
MOV RSI,RBP
SUB RSI,qword ptr [RSP]
ADD RSI,R13
MOV RDI,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [0x001dfed8]
CALL qword ptr [RAX + 0x98]
LEA RDI,[R14 + 0x1]
MOV RDX,RBP
MOV RSI,R13
CALL 0x00113f60
MOV ESI,0x100
MOV RDI,R13
CALL 0x00114df0
MOV RSI,RBP
SUB RSI,qword ptr [RSP + 0x8]
ADD RSI,R13
MOV RDI,qword ptr [RBX + 0x18]
MOV RBX,qword ptr [0x001dfed8]
CALL qword ptr [RBX + 0x98]
LEA RDI,[R14 + RBP*0x1 + 0x1]
MOV RDX,RBP
MOV RSI,R13
CALL 0x00113f60
MOV qword ptr [R12],R15
MOV EAX,0x0
MOV RCX,qword ptr [RSP + 0x118]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x0017de8e
ADD RSP,0x128
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV EDX,0x23
LEA RSI,[0x1c9c70]
LEA RDI,[0x1c8f9d]
CALL 0x00114260
MOV EDX,0x24
LEA RSI,[0x1c9c70]
LEA RDI,[0x1b1724]
CALL 0x00114260
MOV qword ptr [R12],R15
MOV EAX,0x6
JMP 0x0017de05
MOV EDX,0x36
LEA RSI,[0x1c9c70]
LEA RDI,[0x1ab721]
CALL 0x00114260
MOV EAX,0x10
JMP 0x0017de05
MOV EAX,0x6
JMP 0x0017de05
CALL 0x00113870
(translation_unit "undefined8 ecc_ansi_x963_export(long param_1,undefined1 *param_2,ulong *param_3)\n\n{\n  ulong uVar1;\n  undefined *puVar2;\n  int iVar3;\n  ulong uVar4;\n  ulong uVar5;\n  undefined8 uVar6;\n  ulong __n;\n  long in_FS_OFFSET;\n  undefined1 local_148 [264];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }\n  if (param_3 == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);\n  }\n  iVar3 = ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4));\n  puVar2 = PTR_ltc_mp_001dfed8;\n  if (iVar3 == 0) {\n    uVar6 = 0x10;\n  }\n  else {\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar6;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "undefined8 ecc_ansi_x963_export(long param_1,undefined1 *param_2,ulong *param_3)\n\n{\n  ulong uVar1;\n  undefined *puVar2;\n  int iVar3;\n  ulong uVar4;\n  ulong uVar5;\n  undefined8 uVar6;\n  ulong __n;\n  long in_FS_OFFSET;\n  undefined1 local_148 [264];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }\n  if (param_3 == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);\n  }\n  iVar3 = ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4));\n  puVar2 = PTR_ltc_mp_001dfed8;\n  if (iVar3 == 0) {\n    uVar6 = 0x10;\n  }\n  else {\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar6;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "ecc_ansi_x963_export(long param_1,undefined1 *param_2,ulong *param_3)" identifier (parameter_list "(long param_1,undefined1 *param_2,ulong *param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "ulong *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  ulong uVar1;\n  undefined *puVar2;\n  int iVar3;\n  ulong uVar4;\n  ulong uVar5;\n  undefined8 uVar6;\n  ulong __n;\n  long in_FS_OFFSET;\n  undefined1 local_148 [264];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }\n  if (param_3 == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);\n  }\n  iVar3 = ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4));\n  puVar2 = PTR_ltc_mp_001dfed8;\n  if (iVar3 == 0) {\n    uVar6 = 0x10;\n  }\n  else {\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar6;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "ulong __n;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_148 [264];" type_identifier (array_declarator "local_148 [264]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(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 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }" { comment (expression_statement "crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);" (call_expression "crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23)" identifier (argument_list "("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23)" ( (string_literal ""key != NULL"" " string_content ") , (string_literal ""src/pk/ecc/ecc_ansi_x963_export.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_3 == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);\n  }" if (parenthesized_expression "(param_3 == (ulong *)0x0)" ( (binary_expression "param_3 == (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/ecc/ecc_ansi_x963_export.c",0x24);\n  }" { comment (expression_statement "crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);" (call_expression "crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24)" identifier (argument_list "("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24)" ( (string_literal ""outlen != NULL"" " string_content ") , (string_literal ""src/pk/ecc/ecc_ansi_x963_export.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar3 = ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4));" (assignment_expression "iVar3 = ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "puVar2 = PTR_ltc_mp_001dfed8;" (assignment_expression "puVar2 = PTR_ltc_mp_001dfed8" identifier = identifier) ;) (if_statement "if (iVar3 == 0) {\n    uVar6 = 0x10;\n  }\n  else {\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar6 = 0x10;\n  }" { (expression_statement "uVar6 = 0x10;" (assignment_expression "uVar6 = 0x10" identifier = number_literal) ;) }) (else_clause "else {\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }" else (compound_statement "{\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }" { (expression_statement "__n = (ulong)**(int **)(param_1 + 8);" (assignment_expression "__n = (ulong)**(int **)(param_1 + 8)" identifier = (binary_expression "(ulong)**(int **)(param_1 + 8)" (parenthesized_expression "(ulong)" ( identifier )) * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))))) ;) (expression_statement "uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));" (assignment_expression "uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10))" identifier = (call_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10))" (parenthesized_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x90))" ( (pointer_expression "**(code **)(PTR_ltc_mp_001dfed8 + 0x90)" * (pointer_expression "*(code **)(PTR_ltc_mp_001dfed8 + 0x90)" * (cast_expression "(code **)(PTR_ltc_mp_001dfed8 + 0x90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_ltc_mp_001dfed8 + 0x90)" ( (binary_expression "PTR_ltc_mp_001dfed8 + 0x90" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) )))) ;) (expression_statement "uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));" (assignment_expression "uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18))" identifier = (call_expression "(**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18))" (parenthesized_expression "(**(code **)(puVar2 + 0x90))" ( (pointer_expression "**(code **)(puVar2 + 0x90)" * (pointer_expression "*(code **)(puVar2 + 0x90)" * (cast_expression "(code **)(puVar2 + 0x90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 0x90)" ( (binary_expression "puVar2 + 0x90" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_1 + 0x18))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) )))) ;) (if_statement "if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }" if (parenthesized_expression "((__n < uVar4 || __n < uVar5) || (0x100 < __n))" ( (binary_expression "(__n < uVar4 || __n < uVar5) || (0x100 < __n)" (parenthesized_expression "(__n < uVar4 || __n < uVar5)" ( (binary_expression "__n < uVar4 || __n < uVar5" (binary_expression "__n < uVar4" identifier < identifier) || (binary_expression "__n < uVar5" identifier < identifier)) )) || (parenthesized_expression "(0x100 < __n)" ( (binary_expression "0x100 < __n" number_literal < identifier) ))) )) (compound_statement "{\n      uVar6 = 6;\n    }" { (expression_statement "uVar6 = 6;" (assignment_expression "uVar6 = 6" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }" else (compound_statement "{\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }" { (expression_statement "uVar1 = __n * 2 + 1;" (assignment_expression "uVar1 = __n * 2 + 1" identifier = (binary_expression "__n * 2 + 1" (binary_expression "__n * 2" identifier * number_literal) + number_literal)) ;) (if_statement "if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }" if (parenthesized_expression "(*param_3 < uVar1)" ( (binary_expression "*param_3 < uVar1" (pointer_expression "*param_3" * identifier) < identifier) )) (compound_statement "{\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }" { (expression_statement "*param_3 = uVar1;" (assignment_expression "*param_3 = uVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "uVar6 = 6;" (assignment_expression "uVar6 = 6" identifier = number_literal) ;) }) (else_clause "else {\n        if (param_2 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }" else (compound_statement "{\n        if (param_2 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }" { (if_statement "if (param_2 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }" if (parenthesized_expression "(param_2 == (undefined1 *)0x0)" ( (binary_expression "param_2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }" { comment (expression_statement "crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);" (call_expression "crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36)" identifier (argument_list "("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36)" ( (string_literal ""out != NULL"" " string_content ") , (string_literal ""src/pk/ecc/ecc_ansi_x963_export.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "*param_2 = 4;" (assignment_expression "*param_2 = 4" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "zeromem(local_148,0x100);" (call_expression "zeromem(local_148,0x100)" identifier (argument_list "(local_148,0x100)" ( identifier , number_literal ))) ;) (expression_statement "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));" (call_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4))" (parenthesized_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))" ( (pointer_expression "**(code **)(PTR_ltc_mp_001dfed8 + 0x98)" * (pointer_expression "*(code **)(PTR_ltc_mp_001dfed8 + 0x98)" * (cast_expression "(code **)(PTR_ltc_mp_001dfed8 + 0x98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_ltc_mp_001dfed8 + 0x98)" ( (binary_expression "PTR_ltc_mp_001dfed8 + 0x98" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (binary_expression "local_148 + (__n - uVar4)" identifier + (parenthesized_expression "(__n - uVar4)" ( (binary_expression "__n - uVar4" identifier - identifier) ))) ))) ;) (expression_statement "memcpy(param_2 + 1,local_148,__n);" (call_expression "memcpy(param_2 + 1,local_148,__n)" identifier (argument_list "(param_2 + 1,local_148,__n)" ( (binary_expression "param_2 + 1" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "zeromem(local_148,0x100);" (call_expression "zeromem(local_148,0x100)" identifier (argument_list "(local_148,0x100)" ( identifier , number_literal ))) ;) (expression_statement "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));" (call_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5))" (parenthesized_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))" ( (pointer_expression "**(code **)(PTR_ltc_mp_001dfed8 + 0x98)" * (pointer_expression "*(code **)(PTR_ltc_mp_001dfed8 + 0x98)" * (cast_expression "(code **)(PTR_ltc_mp_001dfed8 + 0x98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_ltc_mp_001dfed8 + 0x98)" ( (binary_expression "PTR_ltc_mp_001dfed8 + 0x98" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , (binary_expression "local_148 + (__n - uVar5)" identifier + (parenthesized_expression "(__n - uVar5)" ( (binary_expression "__n - uVar5" identifier - identifier) ))) ))) ;) (expression_statement "memcpy(param_2 + __n + 1,local_148,__n);" (call_expression "memcpy(param_2 + __n + 1,local_148,__n)" identifier (argument_list "(param_2 + __n + 1,local_148,__n)" ( (binary_expression "param_2 + __n + 1" (binary_expression "param_2 + __n" identifier + identifier) + number_literal) , identifier , identifier ))) ;) (expression_statement "*param_3 = uVar1;" (assignment_expression "*param_3 = uVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) }))) }))) }))) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar6;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(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 uVar6;\n  }" { (return_statement "return uVar6;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int ecc_ansi_x963_export(ecc_key *key,uchar *out,ulong *outlen)\n\n{\n  ulong uVar1;\n  long lVar2;\n  undefined *puVar3;\n  int iVar4;\n  ulong uVar5;\n  ulong uVar6;\n  ulong __n;\n  long in_FS_OFFSET;\n  uchar buf [256];\n  \n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  if (key == (ecc_key *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }\n  if (outlen == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);\n  }\n  iVar4 = ltc_ecc_is_valid_idx(key->idx);\n  puVar3 = PTR_ltc_mp_001dfed8;\n  if (iVar4 == 0) {\n    iVar4 = 0x10;\n  }\n  else {\n    __n = (ulong)key->dp->size;\n    uVar5 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))((key->pubkey).x);\n    uVar6 = (**(code **)(puVar3 + 0x90))((key->pubkey).y);\n    if ((__n < uVar5 || __n < uVar6) || (0x100 < __n)) {\n      iVar4 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*outlen < uVar1) {\n        *outlen = uVar1;\n        iVar4 = 6;\n      }\n      else {\n        if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *out = '\x04';\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).x,buf + (__n - uVar5));\n        memcpy(out + 1,buf,__n);\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).y,buf + (__n - uVar6));\n        memcpy(out + __n + 1,buf,__n);\n        *outlen = uVar1;\n        iVar4 = 0;\n      }\n    }\n  }\n  if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "int ecc_ansi_x963_export(ecc_key *key,uchar *out,ulong *outlen)\n\n{\n  ulong uVar1;\n  long lVar2;\n  undefined *puVar3;\n  int iVar4;\n  ulong uVar5;\n  ulong uVar6;\n  ulong __n;\n  long in_FS_OFFSET;\n  uchar buf [256];\n  \n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  if (key == (ecc_key *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }\n  if (outlen == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);\n  }\n  iVar4 = ltc_ecc_is_valid_idx(key->idx);\n  puVar3 = PTR_ltc_mp_001dfed8;\n  if (iVar4 == 0) {\n    iVar4 = 0x10;\n  }\n  else {\n    __n = (ulong)key->dp->size;\n    uVar5 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))((key->pubkey).x);\n    uVar6 = (**(code **)(puVar3 + 0x90))((key->pubkey).y);\n    if ((__n < uVar5 || __n < uVar6) || (0x100 < __n)) {\n      iVar4 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*outlen < uVar1) {\n        *outlen = uVar1;\n        iVar4 = 6;\n      }\n      else {\n        if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *out = '\x04';\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).x,buf + (__n - uVar5));\n        memcpy(out + 1,buf,__n);\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).y,buf + (__n - uVar6));\n        memcpy(out + __n + 1,buf,__n);\n        *outlen = uVar1;\n        iVar4 = 0;\n      }\n    }\n  }\n  if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "ecc_ansi_x963_export(ecc_key *key,uchar *out,ulong *outlen)" identifier (parameter_list "(ecc_key *key,uchar *out,ulong *outlen)" ( (parameter_declaration "ecc_key *key" type_identifier (pointer_declarator "*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  ulong uVar1;\n  long lVar2;\n  undefined *puVar3;\n  int iVar4;\n  ulong uVar5;\n  ulong uVar6;\n  ulong __n;\n  long in_FS_OFFSET;\n  uchar buf [256];\n  \n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  if (key == (ecc_key *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }\n  if (outlen == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);\n  }\n  iVar4 = ltc_ecc_is_valid_idx(key->idx);\n  puVar3 = PTR_ltc_mp_001dfed8;\n  if (iVar4 == 0) {\n    iVar4 = 0x10;\n  }\n  else {\n    __n = (ulong)key->dp->size;\n    uVar5 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))((key->pubkey).x);\n    uVar6 = (**(code **)(puVar3 + 0x90))((key->pubkey).y);\n    if ((__n < uVar5 || __n < uVar6) || (0x100 < __n)) {\n      iVar4 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*outlen < uVar1) {\n        *outlen = uVar1;\n        iVar4 = 6;\n      }\n      else {\n        if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *out = '\x04';\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).x,buf + (__n - uVar5));\n        memcpy(out + 1,buf,__n);\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).y,buf + (__n - uVar6));\n        memcpy(out + __n + 1,buf,__n);\n        *outlen = uVar1;\n        iVar4 = 0;\n      }\n    }\n  }\n  if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "ulong __n;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "uchar buf [256];" type_identifier (array_declarator "buf [256]" identifier [ number_literal ]) ;) (expression_statement "lVar2 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar2 = *(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 (key == (ecc_key *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }" if (parenthesized_expression "(key == (ecc_key *)0x0)" ( (binary_expression "key == (ecc_key *)0x0" identifier == (cast_expression "(ecc_key *)0x0" ( (type_descriptor "ecc_key *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }" { comment (expression_statement "crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);" (call_expression "crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23)" identifier (argument_list "("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23)" ( (string_literal ""key != NULL"" " string_content ") , (string_literal ""src/pk/ecc/ecc_ansi_x963_export.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (outlen == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);\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/ecc/ecc_ansi_x963_export.c",0x24);\n  }" { comment (expression_statement "crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);" (call_expression "crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24)" identifier (argument_list "("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24)" ( (string_literal ""outlen != NULL"" " string_content ") , (string_literal ""src/pk/ecc/ecc_ansi_x963_export.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar4 = ltc_ecc_is_valid_idx(key->idx);" (assignment_expression "iVar4 = ltc_ecc_is_valid_idx(key->idx)" identifier = (call_expression "ltc_ecc_is_valid_idx(key->idx)" identifier (argument_list "(key->idx)" ( (field_expression "key->idx" identifier -> field_identifier) )))) ;) (expression_statement "puVar3 = PTR_ltc_mp_001dfed8;" (assignment_expression "puVar3 = PTR_ltc_mp_001dfed8" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n    iVar4 = 0x10;\n  }\n  else {\n    __n = (ulong)key->dp->size;\n    uVar5 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))((key->pubkey).x);\n    uVar6 = (**(code **)(puVar3 + 0x90))((key->pubkey).y);\n    if ((__n < uVar5 || __n < uVar6) || (0x100 < __n)) {\n      iVar4 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*outlen < uVar1) {\n        *outlen = uVar1;\n        iVar4 = 6;\n      }\n      else {\n        if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *out = '\x04';\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).x,buf + (__n - uVar5));\n        memcpy(out + 1,buf,__n);\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).y,buf + (__n - uVar6));\n        memcpy(out + __n + 1,buf,__n);\n        *outlen = uVar1;\n        iVar4 = 0;\n      }\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = 0x10;\n  }" { (expression_statement "iVar4 = 0x10;" (assignment_expression "iVar4 = 0x10" identifier = number_literal) ;) }) (else_clause "else {\n    __n = (ulong)key->dp->size;\n    uVar5 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))((key->pubkey).x);\n    uVar6 = (**(code **)(puVar3 + 0x90))((key->pubkey).y);\n    if ((__n < uVar5 || __n < uVar6) || (0x100 < __n)) {\n      iVar4 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*outlen < uVar1) {\n        *outlen = uVar1;\n        iVar4 = 6;\n      }\n      else {\n        if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *out = '\x04';\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).x,buf + (__n - uVar5));\n        memcpy(out + 1,buf,__n);\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).y,buf + (__n - uVar6));\n        memcpy(out + __n + 1,buf,__n);\n        *outlen = uVar1;\n        iVar4 = 0;\n      }\n    }\n  }" else (compound_statement "{\n    __n = (ulong)key->dp->size;\n    uVar5 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))((key->pubkey).x);\n    uVar6 = (**(code **)(puVar3 + 0x90))((key->pubkey).y);\n    if ((__n < uVar5 || __n < uVar6) || (0x100 < __n)) {\n      iVar4 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*outlen < uVar1) {\n        *outlen = uVar1;\n        iVar4 = 6;\n      }\n      else {\n        if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *out = '\x04';\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).x,buf + (__n - uVar5));\n        memcpy(out + 1,buf,__n);\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).y,buf + (__n - uVar6));\n        memcpy(out + __n + 1,buf,__n);\n        *outlen = uVar1;\n        iVar4 = 0;\n      }\n    }\n  }" { (expression_statement "__n = (ulong)key->dp->size;" (assignment_expression "__n = (ulong)key->dp->size" identifier = (cast_expression "(ulong)key->dp->size" ( (type_descriptor "ulong" type_identifier) ) (field_expression "key->dp->size" (field_expression "key->dp" identifier -> field_identifier) -> field_identifier))) ;) (expression_statement "uVar5 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))((key->pubkey).x);" (assignment_expression "uVar5 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))((key->pubkey).x)" identifier = (call_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x90))((key->pubkey).x)" (parenthesized_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x90))" ( (pointer_expression "**(code **)(PTR_ltc_mp_001dfed8 + 0x90)" * (pointer_expression "*(code **)(PTR_ltc_mp_001dfed8 + 0x90)" * (cast_expression "(code **)(PTR_ltc_mp_001dfed8 + 0x90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_ltc_mp_001dfed8 + 0x90)" ( (binary_expression "PTR_ltc_mp_001dfed8 + 0x90" identifier + number_literal) ))))) )) (argument_list "((key->pubkey).x)" ( (field_expression "(key->pubkey).x" (parenthesized_expression "(key->pubkey)" ( (field_expression "key->pubkey" identifier -> field_identifier) )) . field_identifier) )))) ;) (expression_statement "uVar6 = (**(code **)(puVar3 + 0x90))((key->pubkey).y);" (assignment_expression "uVar6 = (**(code **)(puVar3 + 0x90))((key->pubkey).y)" identifier = (call_expression "(**(code **)(puVar3 + 0x90))((key->pubkey).y)" (parenthesized_expression "(**(code **)(puVar3 + 0x90))" ( (pointer_expression "**(code **)(puVar3 + 0x90)" * (pointer_expression "*(code **)(puVar3 + 0x90)" * (cast_expression "(code **)(puVar3 + 0x90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x90)" ( (binary_expression "puVar3 + 0x90" identifier + number_literal) ))))) )) (argument_list "((key->pubkey).y)" ( (field_expression "(key->pubkey).y" (parenthesized_expression "(key->pubkey)" ( (field_expression "key->pubkey" identifier -> field_identifier) )) . field_identifier) )))) ;) (if_statement "if ((__n < uVar5 || __n < uVar6) || (0x100 < __n)) {\n      iVar4 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*outlen < uVar1) {\n        *outlen = uVar1;\n        iVar4 = 6;\n      }\n      else {\n        if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *out = '\x04';\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).x,buf + (__n - uVar5));\n        memcpy(out + 1,buf,__n);\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).y,buf + (__n - uVar6));\n        memcpy(out + __n + 1,buf,__n);\n        *outlen = uVar1;\n        iVar4 = 0;\n      }\n    }" if (parenthesized_expression "((__n < uVar5 || __n < uVar6) || (0x100 < __n))" ( (binary_expression "(__n < uVar5 || __n < uVar6) || (0x100 < __n)" (parenthesized_expression "(__n < uVar5 || __n < uVar6)" ( (binary_expression "__n < uVar5 || __n < uVar6" (binary_expression "__n < uVar5" identifier < identifier) || (binary_expression "__n < uVar6" identifier < identifier)) )) || (parenthesized_expression "(0x100 < __n)" ( (binary_expression "0x100 < __n" number_literal < identifier) ))) )) (compound_statement "{\n      iVar4 = 6;\n    }" { (expression_statement "iVar4 = 6;" (assignment_expression "iVar4 = 6" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = __n * 2 + 1;\n      if (*outlen < uVar1) {\n        *outlen = uVar1;\n        iVar4 = 6;\n      }\n      else {\n        if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *out = '\x04';\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).x,buf + (__n - uVar5));\n        memcpy(out + 1,buf,__n);\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).y,buf + (__n - uVar6));\n        memcpy(out + __n + 1,buf,__n);\n        *outlen = uVar1;\n        iVar4 = 0;\n      }\n    }" else (compound_statement "{\n      uVar1 = __n * 2 + 1;\n      if (*outlen < uVar1) {\n        *outlen = uVar1;\n        iVar4 = 6;\n      }\n      else {\n        if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *out = '\x04';\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).x,buf + (__n - uVar5));\n        memcpy(out + 1,buf,__n);\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).y,buf + (__n - uVar6));\n        memcpy(out + __n + 1,buf,__n);\n        *outlen = uVar1;\n        iVar4 = 0;\n      }\n    }" { (expression_statement "uVar1 = __n * 2 + 1;" (assignment_expression "uVar1 = __n * 2 + 1" identifier = (binary_expression "__n * 2 + 1" (binary_expression "__n * 2" identifier * number_literal) + number_literal)) ;) (if_statement "if (*outlen < uVar1) {\n        *outlen = uVar1;\n        iVar4 = 6;\n      }\n      else {\n        if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *out = '\x04';\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).x,buf + (__n - uVar5));\n        memcpy(out + 1,buf,__n);\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).y,buf + (__n - uVar6));\n        memcpy(out + __n + 1,buf,__n);\n        *outlen = uVar1;\n        iVar4 = 0;\n      }" if (parenthesized_expression "(*outlen < uVar1)" ( (binary_expression "*outlen < uVar1" (pointer_expression "*outlen" * identifier) < identifier) )) (compound_statement "{\n        *outlen = uVar1;\n        iVar4 = 6;\n      }" { (expression_statement "*outlen = uVar1;" (assignment_expression "*outlen = uVar1" (pointer_expression "*outlen" * identifier) = identifier) ;) (expression_statement "iVar4 = 6;" (assignment_expression "iVar4 = 6" identifier = number_literal) ;) }) (else_clause "else {\n        if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *out = '\x04';\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).x,buf + (__n - uVar5));\n        memcpy(out + 1,buf,__n);\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).y,buf + (__n - uVar6));\n        memcpy(out + __n + 1,buf,__n);\n        *outlen = uVar1;\n        iVar4 = 0;\n      }" else (compound_statement "{\n        if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *out = '\x04';\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).x,buf + (__n - uVar5));\n        memcpy(out + 1,buf,__n);\n        zeromem(buf,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).y,buf + (__n - uVar6));\n        memcpy(out + __n + 1,buf,__n);\n        *outlen = uVar1;\n        iVar4 = 0;\n      }" { (if_statement "if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\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/ecc/ecc_ansi_x963_export.c",0x36);\n        }" { comment (expression_statement "crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);" (call_expression "crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36)" identifier (argument_list "("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36)" ( (string_literal ""out != NULL"" " string_content ") , (string_literal ""src/pk/ecc/ecc_ansi_x963_export.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "*out = '\x04';" (assignment_expression "*out = '\x04'" (pointer_expression "*out" * identifier) = (char_literal "'\x04'" ' escape_sequence ')) ;) (expression_statement "zeromem(buf,0x100);" (call_expression "zeromem(buf,0x100)" identifier (argument_list "(buf,0x100)" ( identifier , number_literal ))) ;) (expression_statement "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).x,buf + (__n - uVar5));" (call_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).x,buf + (__n - uVar5))" (parenthesized_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))" ( (pointer_expression "**(code **)(PTR_ltc_mp_001dfed8 + 0x98)" * (pointer_expression "*(code **)(PTR_ltc_mp_001dfed8 + 0x98)" * (cast_expression "(code **)(PTR_ltc_mp_001dfed8 + 0x98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_ltc_mp_001dfed8 + 0x98)" ( (binary_expression "PTR_ltc_mp_001dfed8 + 0x98" identifier + number_literal) ))))) )) (argument_list "((key->pubkey).x,buf + (__n - uVar5))" ( (field_expression "(key->pubkey).x" (parenthesized_expression "(key->pubkey)" ( (field_expression "key->pubkey" identifier -> field_identifier) )) . field_identifier) , (binary_expression "buf + (__n - uVar5)" identifier + (parenthesized_expression "(__n - uVar5)" ( (binary_expression "__n - uVar5" identifier - identifier) ))) ))) ;) (expression_statement "memcpy(out + 1,buf,__n);" (call_expression "memcpy(out + 1,buf,__n)" identifier (argument_list "(out + 1,buf,__n)" ( (binary_expression "out + 1" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "zeromem(buf,0x100);" (call_expression "zeromem(buf,0x100)" identifier (argument_list "(buf,0x100)" ( identifier , number_literal ))) ;) (expression_statement "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).y,buf + (__n - uVar6));" (call_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))((key->pubkey).y,buf + (__n - uVar6))" (parenthesized_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))" ( (pointer_expression "**(code **)(PTR_ltc_mp_001dfed8 + 0x98)" * (pointer_expression "*(code **)(PTR_ltc_mp_001dfed8 + 0x98)" * (cast_expression "(code **)(PTR_ltc_mp_001dfed8 + 0x98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_ltc_mp_001dfed8 + 0x98)" ( (binary_expression "PTR_ltc_mp_001dfed8 + 0x98" identifier + number_literal) ))))) )) (argument_list "((key->pubkey).y,buf + (__n - uVar6))" ( (field_expression "(key->pubkey).y" (parenthesized_expression "(key->pubkey)" ( (field_expression "key->pubkey" identifier -> field_identifier) )) . field_identifier) , (binary_expression "buf + (__n - uVar6)" identifier + (parenthesized_expression "(__n - uVar6)" ( (binary_expression "__n - uVar6" identifier - identifier) ))) ))) ;) (expression_statement "memcpy(out + __n + 1,buf,__n);" (call_expression "memcpy(out + __n + 1,buf,__n)" identifier (argument_list "(out + __n + 1,buf,__n)" ( (binary_expression "out + __n + 1" (binary_expression "out + __n" identifier + identifier) + number_literal) , identifier , identifier ))) ;) (expression_statement "*outlen = uVar1;" (assignment_expression "*outlen = uVar1" (pointer_expression "*outlen" * identifier) = identifier) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) }))) }))) (if_statement "if (lVar2 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\n  }" if (parenthesized_expression "(lVar2 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar2 == *(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 iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined8 ecc_ansi_x963_export(long param_1,undefined1 *param_2,ulong *param_3)\n\n{\n  ulong uVar1;\n  undefined *puVar2;\n  int iVar3;\n  ulong uVar4;\n  ulong uVar5;\n  undefined8 uVar6;\n  ulong __n;\n  long in_FS_OFFSET;\n  undefined1 local_148 [264];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }\n  if (param_3 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);\n  }\n  iVar3 = ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4));\n  puVar2 = PTR_ltc_mp_001dfed8;\n  if (iVar3 == 0) {\n    uVar6 = 0x10;\n  }\n  else {\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar6;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined8 ecc_ansi_x963_export(long param_1,undefined1 *param_2,ulong *param_3)\n\n{\n  ulong uVar1;\n  undefined *puVar2;\n  int iVar3;\n  ulong uVar4;\n  ulong uVar5;\n  undefined8 uVar6;\n  ulong __n;\n  long in_FS_OFFSET;\n  undefined1 local_148 [264];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }\n  if (param_3 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);\n  }\n  iVar3 = ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4));\n  puVar2 = PTR_ltc_mp_001dfed8;\n  if (iVar3 == 0) {\n    uVar6 = 0x10;\n  }\n  else {\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar6;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "ecc_ansi_x963_export(long param_1,undefined1 *param_2,ulong *param_3)" identifier (parameter_list "(long param_1,undefined1 *param_2,ulong *param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "ulong *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  ulong uVar1;\n  undefined *puVar2;\n  int iVar3;\n  ulong uVar4;\n  ulong uVar5;\n  undefined8 uVar6;\n  ulong __n;\n  long in_FS_OFFSET;\n  undefined1 local_148 [264];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }\n  if (param_3 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);\n  }\n  iVar3 = ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4));\n  puVar2 = PTR_ltc_mp_001dfed8;\n  if (iVar3 == 0) {\n    uVar6 = 0x10;\n  }\n  else {\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar6;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "ulong __n;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_148 [264];" type_identifier (array_declarator "local_148 [264]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(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 == 0) {\n                    \n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }" { (expression_statement "crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);" (call_expression "crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23)" identifier (argument_list "("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23)" ( (string_literal ""key != NULL"" " string_content ") , (string_literal ""src/pk/ecc/ecc_ansi_x963_export.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_3 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);\n  }" if (parenthesized_expression "(param_3 == (ulong *)0x0)" ( (binary_expression "param_3 == (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/ecc/ecc_ansi_x963_export.c",0x24);\n  }" { (expression_statement "crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);" (call_expression "crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24)" identifier (argument_list "("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24)" ( (string_literal ""outlen != NULL"" " string_content ") , (string_literal ""src/pk/ecc/ecc_ansi_x963_export.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar3 = ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4));" (assignment_expression "iVar3 = ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "puVar2 = PTR_ltc_mp_001dfed8;" (assignment_expression "puVar2 = PTR_ltc_mp_001dfed8" identifier = identifier) ;) (if_statement "if (iVar3 == 0) {\n    uVar6 = 0x10;\n  }\n  else {\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar6 = 0x10;\n  }" { (expression_statement "uVar6 = 0x10;" (assignment_expression "uVar6 = 0x10" identifier = number_literal) ;) }) (else_clause "else {\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }" else (compound_statement "{\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }" { (expression_statement "__n = (ulong)**(int **)(param_1 + 8);" (assignment_expression "__n = (ulong)**(int **)(param_1 + 8)" identifier = (binary_expression "(ulong)**(int **)(param_1 + 8)" (parenthesized_expression "(ulong)" ( identifier )) * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))))) ;) (expression_statement "uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));" (assignment_expression "uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10))" identifier = (call_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10))" (parenthesized_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x90))" ( (pointer_expression "**(code **)(PTR_ltc_mp_001dfed8 + 0x90)" * (pointer_expression "*(code **)(PTR_ltc_mp_001dfed8 + 0x90)" * (cast_expression "(code **)(PTR_ltc_mp_001dfed8 + 0x90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_ltc_mp_001dfed8 + 0x90)" ( (binary_expression "PTR_ltc_mp_001dfed8 + 0x90" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) )))) ;) (expression_statement "uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));" (assignment_expression "uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18))" identifier = (call_expression "(**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18))" (parenthesized_expression "(**(code **)(puVar2 + 0x90))" ( (pointer_expression "**(code **)(puVar2 + 0x90)" * (pointer_expression "*(code **)(puVar2 + 0x90)" * (cast_expression "(code **)(puVar2 + 0x90)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 0x90)" ( (binary_expression "puVar2 + 0x90" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_1 + 0x18))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) )))) ;) (if_statement "if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }" if (parenthesized_expression "((__n < uVar4 || __n < uVar5) || (0x100 < __n))" ( (binary_expression "(__n < uVar4 || __n < uVar5) || (0x100 < __n)" (parenthesized_expression "(__n < uVar4 || __n < uVar5)" ( (binary_expression "__n < uVar4 || __n < uVar5" (binary_expression "__n < uVar4" identifier < identifier) || (binary_expression "__n < uVar5" identifier < identifier)) )) || (parenthesized_expression "(0x100 < __n)" ( (binary_expression "0x100 < __n" number_literal < identifier) ))) )) (compound_statement "{\n      uVar6 = 6;\n    }" { (expression_statement "uVar6 = 6;" (assignment_expression "uVar6 = 6" identifier = number_literal) ;) }) (else_clause "else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }" else (compound_statement "{\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }" { (expression_statement "uVar1 = __n * 2 + 1;" (assignment_expression "uVar1 = __n * 2 + 1" identifier = (binary_expression "__n * 2 + 1" (binary_expression "__n * 2" identifier * number_literal) + number_literal)) ;) (if_statement "if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }" if (parenthesized_expression "(*param_3 < uVar1)" ( (binary_expression "*param_3 < uVar1" (pointer_expression "*param_3" * identifier) < identifier) )) (compound_statement "{\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }" { (expression_statement "*param_3 = uVar1;" (assignment_expression "*param_3 = uVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "uVar6 = 6;" (assignment_expression "uVar6 = 6" identifier = number_literal) ;) }) (else_clause "else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }" else (compound_statement "{\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }" { (if_statement "if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }" if (parenthesized_expression "(param_2 == (undefined1 *)0x0)" ( (binary_expression "param_2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }" { (expression_statement "crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);" (call_expression "crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36)" identifier (argument_list "("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36)" ( (string_literal ""out != NULL"" " string_content ") , (string_literal ""src/pk/ecc/ecc_ansi_x963_export.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "*param_2 = 4;" (assignment_expression "*param_2 = 4" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "zeromem(local_148,0x100);" (call_expression "zeromem(local_148,0x100)" identifier (argument_list "(local_148,0x100)" ( identifier , number_literal ))) ;) (expression_statement "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));" (call_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4))" (parenthesized_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))" ( (pointer_expression "**(code **)(PTR_ltc_mp_001dfed8 + 0x98)" * (pointer_expression "*(code **)(PTR_ltc_mp_001dfed8 + 0x98)" * (cast_expression "(code **)(PTR_ltc_mp_001dfed8 + 0x98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_ltc_mp_001dfed8 + 0x98)" ( (binary_expression "PTR_ltc_mp_001dfed8 + 0x98" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (binary_expression "local_148 + (__n - uVar4)" identifier + (parenthesized_expression "(__n - uVar4)" ( (binary_expression "__n - uVar4" identifier - identifier) ))) ))) ;) (expression_statement "memcpy(param_2 + 1,local_148,__n);" (call_expression "memcpy(param_2 + 1,local_148,__n)" identifier (argument_list "(param_2 + 1,local_148,__n)" ( (binary_expression "param_2 + 1" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "zeromem(local_148,0x100);" (call_expression "zeromem(local_148,0x100)" identifier (argument_list "(local_148,0x100)" ( identifier , number_literal ))) ;) (expression_statement "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));" (call_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5))" (parenthesized_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))" ( (pointer_expression "**(code **)(PTR_ltc_mp_001dfed8 + 0x98)" * (pointer_expression "*(code **)(PTR_ltc_mp_001dfed8 + 0x98)" * (cast_expression "(code **)(PTR_ltc_mp_001dfed8 + 0x98)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_ltc_mp_001dfed8 + 0x98)" ( (binary_expression "PTR_ltc_mp_001dfed8 + 0x98" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , (binary_expression "local_148 + (__n - uVar5)" identifier + (parenthesized_expression "(__n - uVar5)" ( (binary_expression "__n - uVar5" identifier - identifier) ))) ))) ;) (expression_statement "memcpy(param_2 + __n + 1,local_148,__n);" (call_expression "memcpy(param_2 + __n + 1,local_148,__n)" identifier (argument_list "(param_2 + __n + 1,local_148,__n)" ( (binary_expression "param_2 + __n + 1" (binary_expression "param_2 + __n" identifier + identifier) + number_literal) , identifier , identifier ))) ;) (expression_statement "*param_3 = uVar1;" (assignment_expression "*param_3 = uVar1" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) }))) }))) }))) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar6;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(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 uVar6;\n  }" { (return_statement "return uVar6;" 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 (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) 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 == 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 = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (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) )))) )))) ;) (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) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT < IDENT) || (binary_expression IDENT < IDENT)) )) || (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + LIT)) ;) (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 { (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 (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + IDENT) + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) }))) (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 "undefined8 ecc_ansi_x963_export(long param_1,undefined1 *param_2,ulong *param_3)\n\n{\n  ulong uVar1;\n  undefined *puVar2;\n  int iVar3;\n  ulong uVar4;\n  ulong uVar5;\n  undefined8 uVar6;\n  ulong __n;\n  long in_FS_OFFSET;\n  undefined1 local_148 [264];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }\n  if (param_3 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);\n  }\n  iVar3 = ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4));\n  puVar2 = PTR_ltc_mp_001dfed8;\n  if (iVar3 == 0) {\n    uVar6 = 0x10;\n  }\n  else {\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar6;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined8") (function_declarator "ecc_ansi_x963_export(long param_1,undefined1 *param_2,ulong *param_3)" (identifier "ecc_ansi_x963_export") (parameter_list "(long param_1,undefined1 *param_2,ulong *param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "ulong *param_3" (type_identifier "ulong") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  ulong uVar1;\n  undefined *puVar2;\n  int iVar3;\n  ulong uVar4;\n  ulong uVar5;\n  undefined8 uVar6;\n  ulong __n;\n  long in_FS_OFFSET;\n  undefined1 local_148 [264];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }\n  if (param_3 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);\n  }\n  iVar3 = ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4));\n  puVar2 = PTR_ltc_mp_001dfed8;\n  if (iVar3 == 0) {\n    uVar6 = 0x10;\n  }\n  else {\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar6;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "ulong uVar1;" (type_identifier "ulong") (identifier "uVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "ulong uVar4;" (type_identifier "ulong") (identifier "uVar4") (; ";")) (declaration "ulong uVar5;" (type_identifier "ulong") (identifier "uVar5") (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (declaration "ulong __n;" (type_identifier "ulong") (identifier "__n") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined1 local_148 [264];" (type_identifier "undefined1") (array_declarator "local_148 [264]" (identifier "local_148") ([ "[") (number_literal "264") (] "]")) (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (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 == 0) {\n                    \n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);\n  }" ({ "{") (expression_statement "crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);" (call_expression "crypt_argchk("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23)" (identifier "crypt_argchk") (argument_list "("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23)" (( "(") (string_literal ""key != NULL"" (" """) (string_content "key != NULL") (" """)) (, ",") (string_literal ""src/pk/ecc/ecc_ansi_x963_export.c"" (" """) (string_content "src/pk/ecc/ecc_ansi_x963_export.c") (" """)) (, ",") (number_literal "0x23") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);\n  }" (if "if") (parenthesized_expression "(param_3 == (ulong *)0x0)" (( "(") (binary_expression "param_3 == (ulong *)0x0" (identifier "param_3") (== "==") (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/ecc/ecc_ansi_x963_export.c",0x24);\n  }" ({ "{") (expression_statement "crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);" (call_expression "crypt_argchk("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24)" (identifier "crypt_argchk") (argument_list "("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24)" (( "(") (string_literal ""outlen != NULL"" (" """) (string_content "outlen != NULL") (" """)) (, ",") (string_literal ""src/pk/ecc/ecc_ansi_x963_export.c"" (" """) (string_content "src/pk/ecc/ecc_ansi_x963_export.c") (" """)) (, ",") (number_literal "0x24") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4));" (assignment_expression "iVar3 = ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4))" (identifier "iVar3") (= "=") (call_expression "ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4))" (identifier "ltc_ecc_is_valid_idx") (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (expression_statement "puVar2 = PTR_ltc_mp_001dfed8;" (assignment_expression "puVar2 = PTR_ltc_mp_001dfed8" (identifier "puVar2") (= "=") (identifier "PTR_ltc_mp_001dfed8")) (; ";")) (if_statement "if (iVar3 == 0) {\n    uVar6 = 0x10;\n  }\n  else {\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar6 = 0x10;\n  }" ({ "{") (expression_statement "uVar6 = 0x10;" (assignment_expression "uVar6 = 0x10" (identifier "uVar6") (= "=") (number_literal "0x10")) (; ";")) (} "}")) (else_clause "else {\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    __n = (ulong)**(int **)(param_1 + 8);\n    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));\n    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));\n    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }\n  }" ({ "{") (expression_statement "__n = (ulong)**(int **)(param_1 + 8);" (assignment_expression "__n = (ulong)**(int **)(param_1 + 8)" (identifier "__n") (= "=") (binary_expression "(ulong)**(int **)(param_1 + 8)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))))) (; ";")) (expression_statement "uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));" (assignment_expression "uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10))" (identifier "uVar4") (= "=") (call_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10))" (parenthesized_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x90))" (( "(") (pointer_expression "**(code **)(PTR_ltc_mp_001dfed8 + 0x90)" (* "*") (pointer_expression "*(code **)(PTR_ltc_mp_001dfed8 + 0x90)" (* "*") (cast_expression "(code **)(PTR_ltc_mp_001dfed8 + 0x90)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_ltc_mp_001dfed8 + 0x90)" (( "(") (binary_expression "PTR_ltc_mp_001dfed8 + 0x90" (identifier "PTR_ltc_mp_001dfed8") (+ "+") (number_literal "0x90")) () ")"))))) () ")")) (argument_list "(*(undefined8 *)(param_1 + 0x10))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));" (assignment_expression "uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18))" (identifier "uVar5") (= "=") (call_expression "(**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18))" (parenthesized_expression "(**(code **)(puVar2 + 0x90))" (( "(") (pointer_expression "**(code **)(puVar2 + 0x90)" (* "*") (pointer_expression "*(code **)(puVar2 + 0x90)" (* "*") (cast_expression "(code **)(puVar2 + 0x90)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar2 + 0x90)" (( "(") (binary_expression "puVar2 + 0x90" (identifier "puVar2") (+ "+") (number_literal "0x90")) () ")"))))) () ")")) (argument_list "(*(undefined8 *)(param_1 + 0x18))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) () ")")))) (; ";")) (if_statement "if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {\n      uVar6 = 6;\n    }\n    else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }" (if "if") (parenthesized_expression "((__n < uVar4 || __n < uVar5) || (0x100 < __n))" (( "(") (binary_expression "(__n < uVar4 || __n < uVar5) || (0x100 < __n)" (parenthesized_expression "(__n < uVar4 || __n < uVar5)" (( "(") (binary_expression "__n < uVar4 || __n < uVar5" (binary_expression "__n < uVar4" (identifier "__n") (< "<") (identifier "uVar4")) (|| "||") (binary_expression "__n < uVar5" (identifier "__n") (< "<") (identifier "uVar5"))) () ")")) (|| "||") (parenthesized_expression "(0x100 < __n)" (( "(") (binary_expression "0x100 < __n" (number_literal "0x100") (< "<") (identifier "__n")) () ")"))) () ")")) (compound_statement "{\n      uVar6 = 6;\n    }" ({ "{") (expression_statement "uVar6 = 6;" (assignment_expression "uVar6 = 6" (identifier "uVar6") (= "=") (number_literal "6")) (; ";")) (} "}")) (else_clause "else {\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }" (else "else") (compound_statement "{\n      uVar1 = __n * 2 + 1;\n      if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }\n    }" ({ "{") (expression_statement "uVar1 = __n * 2 + 1;" (assignment_expression "uVar1 = __n * 2 + 1" (identifier "uVar1") (= "=") (binary_expression "__n * 2 + 1" (binary_expression "__n * 2" (identifier "__n") (* "*") (number_literal "2")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*param_3 < uVar1) {\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }\n      else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }" (if "if") (parenthesized_expression "(*param_3 < uVar1)" (( "(") (binary_expression "*param_3 < uVar1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (< "<") (identifier "uVar1")) () ")")) (compound_statement "{\n        *param_3 = uVar1;\n        uVar6 = 6;\n      }" ({ "{") (expression_statement "*param_3 = uVar1;" (assignment_expression "*param_3 = uVar1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar6 = 6;" (assignment_expression "uVar6 = 6" (identifier "uVar6") (= "=") (number_literal "6")) (; ";")) (} "}")) (else_clause "else {\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }" (else "else") (compound_statement "{\n        if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }\n        *param_2 = 4;\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));\n        memcpy(param_2 + 1,local_148,__n);\n        zeromem(local_148,0x100);\n        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));\n        memcpy(param_2 + __n + 1,local_148,__n);\n        *param_3 = uVar1;\n        uVar6 = 0;\n      }" ({ "{") (if_statement "if (param_2 == (undefined1 *)0x0) {\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }" (if "if") (parenthesized_expression "(param_2 == (undefined1 *)0x0)" (( "(") (binary_expression "param_2 == (undefined1 *)0x0" (identifier "param_2") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n          crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);\n        }" ({ "{") (expression_statement "crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);" (call_expression "crypt_argchk("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36)" (identifier "crypt_argchk") (argument_list "("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36)" (( "(") (string_literal ""out != NULL"" (" """) (string_content "out != NULL") (" """)) (, ",") (string_literal ""src/pk/ecc/ecc_ansi_x963_export.c"" (" """) (string_content "src/pk/ecc/ecc_ansi_x963_export.c") (" """)) (, ",") (number_literal "0x36") () ")"))) (; ";")) (} "}"))) (expression_statement "*param_2 = 4;" (assignment_expression "*param_2 = 4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "4")) (; ";")) (expression_statement "zeromem(local_148,0x100);" (call_expression "zeromem(local_148,0x100)" (identifier "zeromem") (argument_list "(local_148,0x100)" (( "(") (identifier "local_148") (, ",") (number_literal "0x100") () ")"))) (; ";")) (expression_statement "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));" (call_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4))" (parenthesized_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))" (( "(") (pointer_expression "**(code **)(PTR_ltc_mp_001dfed8 + 0x98)" (* "*") (pointer_expression "*(code **)(PTR_ltc_mp_001dfed8 + 0x98)" (* "*") (cast_expression "(code **)(PTR_ltc_mp_001dfed8 + 0x98)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_ltc_mp_001dfed8 + 0x98)" (( "(") (binary_expression "PTR_ltc_mp_001dfed8 + 0x98" (identifier "PTR_ltc_mp_001dfed8") (+ "+") (number_literal "0x98")) () ")"))))) () ")")) (argument_list "(*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (binary_expression "local_148 + (__n - uVar4)" (identifier "local_148") (+ "+") (parenthesized_expression "(__n - uVar4)" (( "(") (binary_expression "__n - uVar4" (identifier "__n") (- "-") (identifier "uVar4")) () ")"))) () ")"))) (; ";")) (expression_statement "memcpy(param_2 + 1,local_148,__n);" (call_expression "memcpy(param_2 + 1,local_148,__n)" (identifier "memcpy") (argument_list "(param_2 + 1,local_148,__n)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) (, ",") (identifier "local_148") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "zeromem(local_148,0x100);" (call_expression "zeromem(local_148,0x100)" (identifier "zeromem") (argument_list "(local_148,0x100)" (( "(") (identifier "local_148") (, ",") (number_literal "0x100") () ")"))) (; ";")) (expression_statement "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));" (call_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))\n                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5))" (parenthesized_expression "(**(code **)(PTR_ltc_mp_001dfed8 + 0x98))" (( "(") (pointer_expression "**(code **)(PTR_ltc_mp_001dfed8 + 0x98)" (* "*") (pointer_expression "*(code **)(PTR_ltc_mp_001dfed8 + 0x98)" (* "*") (cast_expression "(code **)(PTR_ltc_mp_001dfed8 + 0x98)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_ltc_mp_001dfed8 + 0x98)" (( "(") (binary_expression "PTR_ltc_mp_001dfed8 + 0x98" (identifier "PTR_ltc_mp_001dfed8") (+ "+") (number_literal "0x98")) () ")"))))) () ")")) (argument_list "(*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (binary_expression "local_148 + (__n - uVar5)" (identifier "local_148") (+ "+") (parenthesized_expression "(__n - uVar5)" (( "(") (binary_expression "__n - uVar5" (identifier "__n") (- "-") (identifier "uVar5")) () ")"))) () ")"))) (; ";")) (expression_statement "memcpy(param_2 + __n + 1,local_148,__n);" (call_expression "memcpy(param_2 + __n + 1,local_148,__n)" (identifier "memcpy") (argument_list "(param_2 + __n + 1,local_148,__n)" (( "(") (binary_expression "param_2 + __n + 1" (binary_expression "param_2 + __n" (identifier "param_2") (+ "+") (identifier "__n")) (+ "+") (number_literal "1")) (, ",") (identifier "local_148") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "*param_3 = uVar1;" (assignment_expression "*param_3 = uVar1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")))) (} "}")))) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar6;\n  }" (if "if") (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (== "==") (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 uVar6;\n  }" ({ "{") (return_statement "return uVar6;" (return "return") (identifier "uVar6") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

int function_1(type_1 *var_2,type_2 *var_13,type_3 *var_4)

{
  type_3 var_12;
  long var_17;
  type_4 *var_8;
  int var_6;
  type_3 var_10;
  type_3 var_11;
  type_3 var_9;
  long var_1;
  type_2 var_15 [256];
  
  var_17 = *(long *)(var_1 + 0x28);
  if (var_2 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("key != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x23);
  }
  if (var_4 == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("outlen != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x24);
  }
  var_6 = var_5(var_2->idx);
  var_8 = var_7;
  if (var_6 == 0) {
    var_6 = 0x10;
  }
  else {
    var_9 = (type_3)var_2->dp->size;
    var_10 = (**(type_5 **)(var_7 + 0x90))((var_2->pubkey).x);
    var_11 = (**(type_5 **)(var_8 + 0x90))((var_2->pubkey).y);
    if ((var_9 < var_10 || var_9 < var_11) || (0x100 < var_9)) {
      var_6 = 6;
    }
    else {
      var_12 = var_9 * 2 + 1;
      if (*var_4 < var_12) {
        *var_4 = var_12;
        var_6 = 6;
      }
      else {
        if (var_13 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
          var_3("out != NULL","src/pk/ecc/ecc_ansi_x963_export.c",0x36);
        }
        *var_13 = '\x04';
        var_14(var_15,0x100);
        (**(type_5 **)(var_7 + 0x98))((var_2->pubkey).x,var_15 + (var_9 - var_10));
        var_16(var_13 + 1,var_15,var_9);
        var_14(var_15,0x100);
        (**(type_5 **)(var_7 + 0x98))((var_2->pubkey).y,var_15 + (var_9 - var_11));
        var_16(var_13 + var_9 + 1,var_15,var_9);
        *var_4 = var_12;
        var_6 = 0;
      }
    }
  }
  if (var_17 == *(long *)(var_1 + 0x28)) {
    return var_6;
  }
                    /* WARNING: Subroutine does not return */
  var_18();
}


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

undefined8 MASKED(long param_1,undefined1 *param_2,ulong *param_3)

{
  ulong uVar1;
  undefined *puVar2;
  int iVar3;
  ulong uVar4;
  ulong uVar5;
  undefined8 uVar6;
  ulong __n;
  long in_FS_OFFSET;
  undefined1 local_148 [264];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("key != NULL","src/pk/ecc/MASKED.c",0x23);
  }
  if (param_3 == (ulong *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("outlen != NULL","src/pk/ecc/MASKED.c",0x24);
  }
  iVar3 = ltc_ecc_is_valid_idx(*(undefined4 *)(param_1 + 4));
  puVar2 = PTR_ltc_mp_001dfed8;
  if (iVar3 == 0) {
    uVar6 = 0x10;
  }
  else {
    __n = (ulong)**(int **)(param_1 + 8);
    uVar4 = (**(code **)(PTR_ltc_mp_001dfed8 + 0x90))(*(undefined8 *)(param_1 + 0x10));
    uVar5 = (**(code **)(puVar2 + 0x90))(*(undefined8 *)(param_1 + 0x18));
    if ((__n < uVar4 || __n < uVar5) || (0x100 < __n)) {
      uVar6 = 6;
    }
    else {
      uVar1 = __n * 2 + 1;
      if (*param_3 < uVar1) {
        *param_3 = uVar1;
        uVar6 = 6;
      }
      else {
        if (param_2 == (undefined1 *)0x0) {
                    /* WARNING: Subroutine does not return */
          crypt_argchk("out != NULL","src/pk/ecc/MASKED.c",0x36);
        }
        *param_2 = 4;
        zeromem(local_148,0x100);
        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))
                  (*(undefined8 *)(param_1 + 0x10),local_148 + (__n - uVar4));
        memcpy(param_2 + 1,local_148,__n);
        zeromem(local_148,0x100);
        (**(code **)(PTR_ltc_mp_001dfed8 + 0x98))
                  (*(undefined8 *)(param_1 + 0x18),local_148 + (__n - uVar5));
        memcpy(param_2 + __n + 1,local_148,__n);
        *param_3 = uVar1;
        uVar6 = 0;
      }
    }
  }
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar6;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

