
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void * ecdsa_openssh_createkey(ssh_signkey *self,uchar **blob,int *len)

{
  undefined4 *puVar1;
  int *piVar2;
  char *key;
  int iVar3;
  Bignum privateKey;
  ec_point *point;
  char *pcVar4;
  int in_GS_OFFSET;
  char *p;
  int slen;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5fb89;
  puVar1 = (undefined4 *)self->extra;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  getstring((char **)blob,len,&p,&slen);
  pcVar4 = p;
  if (p != (char *)0x0) {
    piVar2 = (int *)(*(code *)*puVar1)();
    if (*piVar2 != 0) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");
    }
    key = (char *)safemalloc(1,0x1c);
    *(ssh_signkey **)key = self;
    *(int **)(key + 4) = piVar2;
    key[0x14] = '\0';
    key[8] = '\0';
    key[9] = '\0';
    key[10] = '\0';
    key[0xb] = '\0';
    key[0xc] = '\0';
    key[0xd] = '\0';
    key[0xe] = '\0';
    key[0xf] = '\0';
    key[0x10] = '\0';
    key[0x11] = '\0';
    key[0x12] = '\0';
    key[0x13] = '\0';
    iVar3 = getmppoint((char **)blob,len,(ec_point *)(key + 4));
    if (iVar3 != 0) {
      key[0x18] = '\0';
      key[0x19] = '\0';
      key[0x1a] = '\0';
      key[0x1b] = '\0';
      if ((*(Bignum_conflict *)(key + 8) != (Bignum_conflict)0x0) && (*(int *)(key + 0xc) != 0)) {
        iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)piVar2[4]);
        if (iVar3 < 0) {
          iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)piVar2[4]);
          if (iVar3 < 0) {
            privateKey = getmp((char **)blob,len);
            *(Bignum *)(key + 0x18) = privateKey;
            if (privateKey != (Bignum)0x0) {
              point = ec_public(privateKey,*(ec_curve **)(key + 4));
              if (point != (ec_point *)0x0) {
                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);
                if (iVar3 == 0) {
                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);
                  if (iVar3 == 0) {
                    ec_point_free(point);
                    pcVar4 = key;
                    goto LAB_0005fce6;
                  }
                }
                pcVar4 = (char *)0x0;
                ecdsa_freekey(key);
                ec_point_free(point);
                goto LAB_0005fce6;
              }
            }
          }
        }
      }
    }
    pcVar4 = (char *)0x0;
    ecdsa_freekey(key);
  }
LAB_0005fce6:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pcVar4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int * FUN_0005fb80(int param_1)

{
  undefined4 *puVar1;
  int *piVar2;
  int *piVar3;
  int iVar4;
  int iVar5;
  int in_GS_OFFSET;
  int *local_28;
  undefined1 local_24 [4];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5fb89;
  puVar1 = *(undefined4 **)(param_1 + 0x38);
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_0005d770(local_24);
  if (local_28 != (int *)0x0) {
    piVar2 = (int *)(*(code *)*puVar1)();
    if (*piVar2 != 0) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");
    }
    piVar3 = (int *)FUN_0002e780(1,0x1c);
    *piVar3 = param_1;
    piVar3[1] = (int)piVar2;
    *(undefined1 *)(piVar3 + 5) = 0;
    piVar3[2] = 0;
    piVar3[3] = 0;
    piVar3[4] = 0;
    iVar4 = FUN_0005df10();
    if (iVar4 != 0) {
      piVar3[6] = 0;
      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {
        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);
        if (iVar4 < 0) {
          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);
          if (iVar4 < 0) {
            iVar4 = FUN_0005d7f0();
            piVar3[6] = iVar4;
            if (iVar4 != 0) {
              iVar4 = FUN_0005f830(iVar4,piVar3[1]);
              if (iVar4 != 0) {
                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));
                if (iVar5 == 0) {
                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));
                  if (iVar5 == 0) {
                    FUN_0005e340(iVar4);
                    local_28 = piVar3;
                    goto LAB_0005fce6;
                  }
                }
                local_28 = (int *)0x0;
                FUN_0005b680(piVar3);
                FUN_0005e340(iVar4);
                goto LAB_0005fce6;
              }
            }
          }
        }
      }
    }
    local_28 = (int *)0x0;
    FUN_0005b680(piVar3);
  }
LAB_0005fce6:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_28;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a39d0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001c4f0
ADD EBX,0xb0bc7
SUB ESP,0x2c
MOV ESI,dword ptr [ESP + 0x44]
MOV EDX,dword ptr [ESP + 0x48]
LEA ECX,[ESP + 0x14]
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x4c]
MOV dword ptr [ESP + 0x14],ESI
MOV dword ptr [ESP + 0x18],EDX
MOV EDI,dword ptr [EBP + 0x38]
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x28],EAX
XOR EAX,EAX
LEA EAX,[ESP + 0x24]
PUSH EAX
MOV EAX,ESI
CALL 0x0005d770
MOV ESI,dword ptr [ESP + 0x24]
ADD ESP,0x10
TEST ESI,ESI
JZ 0x0005fce6
CALL dword ptr [EDI]
MOV ECX,dword ptr [EAX]
MOV EDI,EAX
TEST ECX,ECX
JNZ 0x0005fd1d
SUB ESP,0x8
PUSH 0x1c
PUSH 0x1
CALL 0x0002e780
MOV EDX,dword ptr [ESP + 0x1c]
MOV dword ptr [EAX],EBP
LEA ECX,[EAX + 0x4]
MOV ESI,EAX
MOV dword ptr [EAX + 0x4],EDI
MOV byte ptr [EAX + 0x14],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
MOV dword ptr [EAX + 0x10],0x0
MOV EAX,dword ptr [ESP + 0x18]
CALL 0x0005df10
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0005fcd8
MOV EAX,dword ptr [ESI + 0x8]
MOV dword ptr [ESI + 0x18],0x0
TEST EAX,EAX
JZ 0x0005fcd8
MOV EDX,dword ptr [ESI + 0xc]
TEST EDX,EDX
JZ 0x0005fcd8
SUB ESP,0x8
PUSH dword ptr [EDI + 0x10]
PUSH EAX
CALL 0x000540e0
ADD ESP,0x10
TEST EAX,EAX
JNS 0x0005fcd8
SUB ESP,0x8
PUSH dword ptr [EDI + 0x10]
PUSH dword ptr [ESI + 0xc]
CALL 0x000540e0
ADD ESP,0x10
TEST EAX,EAX
JNS 0x0005fcd8
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [ESP + 0x8]
CALL 0x0005d7f0
MOV dword ptr [ESI + 0x18],EAX
TEST EAX,EAX
JZ 0x0005fcd8
SUB ESP,0x8
PUSH dword ptr [ESI + 0x4]
PUSH EAX
CALL 0x0005f830
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x0005fcd8
SUB ESP,0x8
PUSH dword ptr [EAX + 0x4]
PUSH dword ptr [ESI + 0x8]
CALL 0x000540e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0005fd00
SUB ESP,0x8
PUSH dword ptr [EDI + 0x8]
PUSH dword ptr [ESI + 0xc]
CALL 0x000540e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0005fd00
SUB ESP,0xc
PUSH EDI
CALL 0x0005e340
ADD ESP,0x10
JMP 0x0005fce6
SUB ESP,0xc
PUSH ESI
XOR ESI,ESI
CALL 0x0005b680
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x1c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x0005fd18
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH ESI
XOR ESI,ESI
CALL 0x0005b680
MOV dword ptr [ESP],EDI
CALL 0x0005e340
ADD ESP,0x10
JMP 0x0005fce6
CALL 0x000a39d0
LEA EAX,[EBX + 0xfffb6d60]
PUSH EAX
LEA EAX,[EBX + 0xfffb67b9]
PUSH 0x854
PUSH EAX
LEA EAX,[EBX + 0xfffb6807]
PUSH EAX
CALL 0x0001c000
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_0005fb80(int param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int *local_28;\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5fb89;\n  puVar1 = *(undefined4 **)(param_1 + 0x38);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005d770(local_24);\n  if (local_28 != (int *)0x0) {\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    piVar3 = (int *)FUN_0002e780(1,0x1c);\n    *piVar3 = param_1;\n    piVar3[1] = (int)piVar2;\n    *(undefined1 *)(piVar3 + 5) = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    iVar4 = FUN_0005df10();\n    if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    local_28 = (int *)0x0;\n    FUN_0005b680(piVar3);\n  }\nLAB_0005fce6:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_28;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a39d0();\n}\n\n" comment (function_definition "int * FUN_0005fb80(int param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int *local_28;\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5fb89;\n  puVar1 = *(undefined4 **)(param_1 + 0x38);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005d770(local_24);\n  if (local_28 != (int *)0x0) {\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    piVar3 = (int *)FUN_0002e780(1,0x1c);\n    *piVar3 = param_1;\n    piVar3[1] = (int)piVar2;\n    *(undefined1 *)(piVar3 + 5) = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    iVar4 = FUN_0005df10();\n    if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    local_28 = (int *)0x0;\n    FUN_0005b680(piVar3);\n  }\nLAB_0005fce6:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_28;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a39d0();\n}" primitive_type (pointer_declarator "* FUN_0005fb80(int param_1)" * (function_declarator "FUN_0005fb80(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int *local_28;\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5fb89;\n  puVar1 = *(undefined4 **)(param_1 + 0x38);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005d770(local_24);\n  if (local_28 != (int *)0x0) {\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    piVar3 = (int *)FUN_0002e780(1,0x1c);\n    *piVar3 = param_1;\n    piVar3[1] = (int)piVar2;\n    *(undefined1 *)(piVar3 + 5) = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    iVar4 = FUN_0005df10();\n    if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    local_28 = (int *)0x0;\n    FUN_0005b680(piVar3);\n  }\nLAB_0005fce6:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_28;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a39d0();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "undefined1 local_24 [4];" type_identifier (array_declarator "local_24 [4]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5fb89;" (assignment_expression "uStack_14 = 0x5fb89" identifier = number_literal) ;) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x38);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x38)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x38)" * (cast_expression "(undefined4 **)(param_1 + 0x38)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "FUN_0005d770(local_24);" (call_expression "FUN_0005d770(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (if_statement "if (local_28 != (int *)0x0) {\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    piVar3 = (int *)FUN_0002e780(1,0x1c);\n    *piVar3 = param_1;\n    piVar3[1] = (int)piVar2;\n    *(undefined1 *)(piVar3 + 5) = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    iVar4 = FUN_0005df10();\n    if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    local_28 = (int *)0x0;\n    FUN_0005b680(piVar3);\n  }" if (parenthesized_expression "(local_28 != (int *)0x0)" ( (binary_expression "local_28 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    piVar3 = (int *)FUN_0002e780(1,0x1c);\n    *piVar3 = param_1;\n    piVar3[1] = (int)piVar2;\n    *(undefined1 *)(piVar3 + 5) = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    iVar4 = FUN_0005df10();\n    if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    local_28 = (int *)0x0;\n    FUN_0005b680(piVar3);\n  }" { (expression_statement "piVar2 = (int *)(*(code *)*puVar1)();" (assignment_expression "piVar2 = (int *)(*(code *)*puVar1)()" identifier = (cast_expression "(int *)(*(code *)*puVar1)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)*puVar1)()" (parenthesized_expression "(*(code *)*puVar1)" ( (pointer_expression "*(code *)*puVar1" * (cast_expression "(code *)*puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar2 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }" if (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }" { comment (expression_statement "__assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");" (call_expression "__assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey")" identifier (argument_list "("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey")" ( (string_literal ""curve->type == EC_WEIERSTRASS"" " string_content ") , (string_literal ""sshecc.c"" " string_content ") , number_literal , (string_literal ""ecdsa_openssh_createkey"" " string_content ") ))) ;) })) (expression_statement "piVar3 = (int *)FUN_0002e780(1,0x1c);" (assignment_expression "piVar3 = (int *)FUN_0002e780(1,0x1c)" identifier = (cast_expression "(int *)FUN_0002e780(1,0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002e780(1,0x1c)" identifier (argument_list "(1,0x1c)" ( number_literal , number_literal ))))) ;) (expression_statement "*piVar3 = param_1;" (assignment_expression "*piVar3 = param_1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "piVar3[1] = (int)piVar2;" (assignment_expression "piVar3[1] = (int)piVar2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(undefined1 *)(piVar3 + 5) = 0;" (assignment_expression "*(undefined1 *)(piVar3 + 5) = 0" (pointer_expression "*(undefined1 *)(piVar3 + 5)" * (cast_expression "(undefined1 *)(piVar3 + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 5)" ( (binary_expression "piVar3 + 5" identifier + number_literal) )))) = number_literal) ;) (expression_statement "piVar3[2] = 0;" (assignment_expression "piVar3[2] = 0" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[3] = 0;" (assignment_expression "piVar3[3] = 0" (subscript_expression "piVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[4] = 0;" (assignment_expression "piVar3[4] = 0" (subscript_expression "piVar3[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar4 = FUN_0005df10();" (assignment_expression "iVar4 = FUN_0005df10()" identifier = (call_expression "FUN_0005df10()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }" { (expression_statement "piVar3[6] = 0;" (assignment_expression "piVar3[6] = 0" (subscript_expression "piVar3[6]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }" if (parenthesized_expression "((piVar3[2] != 0) && (piVar3[3] != 0))" ( (binary_expression "(piVar3[2] != 0) && (piVar3[3] != 0)" (parenthesized_expression "(piVar3[2] != 0)" ( (binary_expression "piVar3[2] != 0" (subscript_expression "piVar3[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(piVar3[3] != 0)" ( (binary_expression "piVar3[3] != 0" (subscript_expression "piVar3[3]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }" { (expression_statement "iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);" (assignment_expression "iVar4 = FUN_000540e0(piVar3[2],piVar2[4])" identifier = (call_expression "FUN_000540e0(piVar3[2],piVar2[4])" identifier (argument_list "(piVar3[2],piVar2[4])" ( (subscript_expression "piVar3[2]" identifier [ number_literal ]) , (subscript_expression "piVar2[4]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }" { (expression_statement "iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);" (assignment_expression "iVar4 = FUN_000540e0(piVar3[3],piVar2[4])" identifier = (call_expression "FUN_000540e0(piVar3[3],piVar2[4])" identifier (argument_list "(piVar3[3],piVar2[4])" ( (subscript_expression "piVar3[3]" identifier [ number_literal ]) , (subscript_expression "piVar2[4]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }" { (expression_statement "iVar4 = FUN_0005d7f0();" (assignment_expression "iVar4 = FUN_0005d7f0()" identifier = (call_expression "FUN_0005d7f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar3[6] = iVar4;" (assignment_expression "piVar3[6] = iVar4" (subscript_expression "piVar3[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }" { (expression_statement "iVar4 = FUN_0005f830(iVar4,piVar3[1]);" (assignment_expression "iVar4 = FUN_0005f830(iVar4,piVar3[1])" identifier = (call_expression "FUN_0005f830(iVar4,piVar3[1])" identifier (argument_list "(iVar4,piVar3[1])" ( identifier , (subscript_expression "piVar3[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }" { (expression_statement "iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));" (assignment_expression "iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4))" identifier = (call_expression "FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4))" identifier (argument_list "(piVar3[2],*(undefined4 *)(iVar4 + 4))" ( (subscript_expression "piVar3[2]" identifier [ number_literal ]) , (pointer_expression "*(undefined4 *)(iVar4 + 4)" * (cast_expression "(undefined4 *)(iVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }" { (expression_statement "iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));" (assignment_expression "iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8))" identifier = (call_expression "FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8))" identifier (argument_list "(piVar3[3],*(undefined4 *)(iVar4 + 8))" ( (subscript_expression "piVar3[3]" identifier [ number_literal ]) , (pointer_expression "*(undefined4 *)(iVar4 + 8)" * (cast_expression "(undefined4 *)(iVar4 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }" { (expression_statement "FUN_0005e340(iVar4);" (call_expression "FUN_0005e340(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "local_28 = piVar3;" (assignment_expression "local_28 = piVar3" identifier = identifier) ;) (goto_statement "goto LAB_0005fce6;" goto statement_identifier ;) })) })) (expression_statement "local_28 = (int *)0x0;" (assignment_expression "local_28 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_0005b680(piVar3);" (call_expression "FUN_0005b680(piVar3)" identifier (argument_list "(piVar3)" ( identifier ))) ;) (expression_statement "FUN_0005e340(iVar4);" (call_expression "FUN_0005e340(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (goto_statement "goto LAB_0005fce6;" goto statement_identifier ;) })) })) })) })) })) })) (expression_statement "local_28 = (int *)0x0;" (assignment_expression "local_28 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_0005b680(piVar3);" (call_expression "FUN_0005b680(piVar3)" identifier (argument_list "(piVar3)" ( identifier ))) ;) })) (labeled_statement "LAB_0005fce6:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_28;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_28;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return local_28;\n  }" { (return_statement "return local_28;" return identifier ;) }))) comment (expression_statement "FUN_000a39d0();" (call_expression "FUN_000a39d0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid * ecdsa_openssh_createkey(ssh_signkey *self,uchar **blob,int *len)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  char *key;\n  int iVar3;\n  Bignum privateKey;\n  ec_point *point;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  char *p;\n  int slen;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5fb89;\n  puVar1 = (undefined4 *)self->extra;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  getstring((char **)blob,len,&p,&slen);\n  pcVar4 = p;\n  if (p != (char *)0x0) {\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    key = (char *)safemalloc(1,0x1c);\n    *(ssh_signkey **)key = self;\n    *(int **)(key + 4) = piVar2;\n    key[0x14] = '\0';\n    key[8] = '\0';\n    key[9] = '\0';\n    key[10] = '\0';\n    key[0xb] = '\0';\n    key[0xc] = '\0';\n    key[0xd] = '\0';\n    key[0xe] = '\0';\n    key[0xf] = '\0';\n    key[0x10] = '\0';\n    key[0x11] = '\0';\n    key[0x12] = '\0';\n    key[0x13] = '\0';\n    iVar3 = getmppoint((char **)blob,len,(ec_point *)(key + 4));\n    if (iVar3 != 0) {\n      key[0x18] = '\0';\n      key[0x19] = '\0';\n      key[0x1a] = '\0';\n      key[0x1b] = '\0';\n      if ((*(Bignum_conflict *)(key + 8) != (Bignum_conflict)0x0) && (*(int *)(key + 0xc) != 0)) {\n        iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)piVar2[4]);\n        if (iVar3 < 0) {\n          iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)piVar2[4]);\n          if (iVar3 < 0) {\n            privateKey = getmp((char **)blob,len);\n            *(Bignum *)(key + 0x18) = privateKey;\n            if (privateKey != (Bignum)0x0) {\n              point = ec_public(privateKey,*(ec_curve **)(key + 4));\n              if (point != (ec_point *)0x0) {\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    pcVar4 = (char *)0x0;\n    ecdsa_freekey(key);\n  }\nLAB_0005fce6:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment comment (function_definition "void * ecdsa_openssh_createkey(ssh_signkey *self,uchar **blob,int *len)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  char *key;\n  int iVar3;\n  Bignum privateKey;\n  ec_point *point;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  char *p;\n  int slen;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5fb89;\n  puVar1 = (undefined4 *)self->extra;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  getstring((char **)blob,len,&p,&slen);\n  pcVar4 = p;\n  if (p != (char *)0x0) {\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    key = (char *)safemalloc(1,0x1c);\n    *(ssh_signkey **)key = self;\n    *(int **)(key + 4) = piVar2;\n    key[0x14] = '\0';\n    key[8] = '\0';\n    key[9] = '\0';\n    key[10] = '\0';\n    key[0xb] = '\0';\n    key[0xc] = '\0';\n    key[0xd] = '\0';\n    key[0xe] = '\0';\n    key[0xf] = '\0';\n    key[0x10] = '\0';\n    key[0x11] = '\0';\n    key[0x12] = '\0';\n    key[0x13] = '\0';\n    iVar3 = getmppoint((char **)blob,len,(ec_point *)(key + 4));\n    if (iVar3 != 0) {\n      key[0x18] = '\0';\n      key[0x19] = '\0';\n      key[0x1a] = '\0';\n      key[0x1b] = '\0';\n      if ((*(Bignum_conflict *)(key + 8) != (Bignum_conflict)0x0) && (*(int *)(key + 0xc) != 0)) {\n        iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)piVar2[4]);\n        if (iVar3 < 0) {\n          iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)piVar2[4]);\n          if (iVar3 < 0) {\n            privateKey = getmp((char **)blob,len);\n            *(Bignum *)(key + 0x18) = privateKey;\n            if (privateKey != (Bignum)0x0) {\n              point = ec_public(privateKey,*(ec_curve **)(key + 4));\n              if (point != (ec_point *)0x0) {\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    pcVar4 = (char *)0x0;\n    ecdsa_freekey(key);\n  }\nLAB_0005fce6:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (pointer_declarator "* ecdsa_openssh_createkey(ssh_signkey *self,uchar **blob,int *len)" * (function_declarator "ecdsa_openssh_createkey(ssh_signkey *self,uchar **blob,int *len)" identifier (parameter_list "(ssh_signkey *self,uchar **blob,int *len)" ( (parameter_declaration "ssh_signkey *self" type_identifier (pointer_declarator "*self" * identifier)) , (parameter_declaration "uchar **blob" type_identifier (pointer_declarator "**blob" * (pointer_declarator "*blob" * identifier))) , (parameter_declaration "int *len" primitive_type (pointer_declarator "*len" * identifier)) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  char *key;\n  int iVar3;\n  Bignum privateKey;\n  ec_point *point;\n  char *pcVar4;\n  int in_GS_OFFSET;\n  char *p;\n  int slen;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5fb89;\n  puVar1 = (undefined4 *)self->extra;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  getstring((char **)blob,len,&p,&slen);\n  pcVar4 = p;\n  if (p != (char *)0x0) {\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    key = (char *)safemalloc(1,0x1c);\n    *(ssh_signkey **)key = self;\n    *(int **)(key + 4) = piVar2;\n    key[0x14] = '\0';\n    key[8] = '\0';\n    key[9] = '\0';\n    key[10] = '\0';\n    key[0xb] = '\0';\n    key[0xc] = '\0';\n    key[0xd] = '\0';\n    key[0xe] = '\0';\n    key[0xf] = '\0';\n    key[0x10] = '\0';\n    key[0x11] = '\0';\n    key[0x12] = '\0';\n    key[0x13] = '\0';\n    iVar3 = getmppoint((char **)blob,len,(ec_point *)(key + 4));\n    if (iVar3 != 0) {\n      key[0x18] = '\0';\n      key[0x19] = '\0';\n      key[0x1a] = '\0';\n      key[0x1b] = '\0';\n      if ((*(Bignum_conflict *)(key + 8) != (Bignum_conflict)0x0) && (*(int *)(key + 0xc) != 0)) {\n        iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)piVar2[4]);\n        if (iVar3 < 0) {\n          iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)piVar2[4]);\n          if (iVar3 < 0) {\n            privateKey = getmp((char **)blob,len);\n            *(Bignum *)(key + 0x18) = privateKey;\n            if (privateKey != (Bignum)0x0) {\n              point = ec_public(privateKey,*(ec_curve **)(key + 4));\n              if (point != (ec_point *)0x0) {\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    pcVar4 = (char *)0x0;\n    ecdsa_freekey(key);\n  }\nLAB_0005fce6:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *key;" primitive_type (pointer_declarator "*key" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "Bignum privateKey;" type_identifier identifier ;) (declaration "ec_point *point;" type_identifier (pointer_declarator "*point" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *p;" primitive_type (pointer_declarator "*p" * identifier) ;) (declaration "int slen;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5fb89;" (assignment_expression "uStack_14 = 0x5fb89" identifier = number_literal) ;) (expression_statement "puVar1 = (undefined4 *)self->extra;" (assignment_expression "puVar1 = (undefined4 *)self->extra" identifier = (cast_expression "(undefined4 *)self->extra" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "self->extra" identifier -> field_identifier))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "getstring((char **)blob,len,&p,&slen);" (call_expression "getstring((char **)blob,len,&p,&slen)" identifier (argument_list "((char **)blob,len,&p,&slen)" ( (cast_expression "(char **)blob" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , identifier , (pointer_expression "&p" & identifier) , (pointer_expression "&slen" & identifier) ))) ;) (expression_statement "pcVar4 = p;" (assignment_expression "pcVar4 = p" identifier = identifier) ;) (if_statement "if (p != (char *)0x0) {\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    key = (char *)safemalloc(1,0x1c);\n    *(ssh_signkey **)key = self;\n    *(int **)(key + 4) = piVar2;\n    key[0x14] = '\0';\n    key[8] = '\0';\n    key[9] = '\0';\n    key[10] = '\0';\n    key[0xb] = '\0';\n    key[0xc] = '\0';\n    key[0xd] = '\0';\n    key[0xe] = '\0';\n    key[0xf] = '\0';\n    key[0x10] = '\0';\n    key[0x11] = '\0';\n    key[0x12] = '\0';\n    key[0x13] = '\0';\n    iVar3 = getmppoint((char **)blob,len,(ec_point *)(key + 4));\n    if (iVar3 != 0) {\n      key[0x18] = '\0';\n      key[0x19] = '\0';\n      key[0x1a] = '\0';\n      key[0x1b] = '\0';\n      if ((*(Bignum_conflict *)(key + 8) != (Bignum_conflict)0x0) && (*(int *)(key + 0xc) != 0)) {\n        iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)piVar2[4]);\n        if (iVar3 < 0) {\n          iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)piVar2[4]);\n          if (iVar3 < 0) {\n            privateKey = getmp((char **)blob,len);\n            *(Bignum *)(key + 0x18) = privateKey;\n            if (privateKey != (Bignum)0x0) {\n              point = ec_public(privateKey,*(ec_curve **)(key + 4));\n              if (point != (ec_point *)0x0) {\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    pcVar4 = (char *)0x0;\n    ecdsa_freekey(key);\n  }" if (parenthesized_expression "(p != (char *)0x0)" ( (binary_expression "p != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    key = (char *)safemalloc(1,0x1c);\n    *(ssh_signkey **)key = self;\n    *(int **)(key + 4) = piVar2;\n    key[0x14] = '\0';\n    key[8] = '\0';\n    key[9] = '\0';\n    key[10] = '\0';\n    key[0xb] = '\0';\n    key[0xc] = '\0';\n    key[0xd] = '\0';\n    key[0xe] = '\0';\n    key[0xf] = '\0';\n    key[0x10] = '\0';\n    key[0x11] = '\0';\n    key[0x12] = '\0';\n    key[0x13] = '\0';\n    iVar3 = getmppoint((char **)blob,len,(ec_point *)(key + 4));\n    if (iVar3 != 0) {\n      key[0x18] = '\0';\n      key[0x19] = '\0';\n      key[0x1a] = '\0';\n      key[0x1b] = '\0';\n      if ((*(Bignum_conflict *)(key + 8) != (Bignum_conflict)0x0) && (*(int *)(key + 0xc) != 0)) {\n        iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)piVar2[4]);\n        if (iVar3 < 0) {\n          iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)piVar2[4]);\n          if (iVar3 < 0) {\n            privateKey = getmp((char **)blob,len);\n            *(Bignum *)(key + 0x18) = privateKey;\n            if (privateKey != (Bignum)0x0) {\n              point = ec_public(privateKey,*(ec_curve **)(key + 4));\n              if (point != (ec_point *)0x0) {\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    pcVar4 = (char *)0x0;\n    ecdsa_freekey(key);\n  }" { (expression_statement "piVar2 = (int *)(*(code *)*puVar1)();" (assignment_expression "piVar2 = (int *)(*(code *)*puVar1)()" identifier = (cast_expression "(int *)(*(code *)*puVar1)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)*puVar1)()" (parenthesized_expression "(*(code *)*puVar1)" ( (pointer_expression "*(code *)*puVar1" * (cast_expression "(code *)*puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar2 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }" if (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }" { comment (expression_statement "__assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");" (call_expression "__assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey")" identifier (argument_list "("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey")" ( (string_literal ""curve->type == EC_WEIERSTRASS"" " string_content ") , (string_literal ""sshecc.c"" " string_content ") , number_literal , (string_literal ""ecdsa_openssh_createkey"" " string_content ") ))) ;) })) (expression_statement "key = (char *)safemalloc(1,0x1c);" (assignment_expression "key = (char *)safemalloc(1,0x1c)" identifier = (cast_expression "(char *)safemalloc(1,0x1c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x1c)" identifier (argument_list "(1,0x1c)" ( number_literal , number_literal ))))) ;) (expression_statement "*(ssh_signkey **)key = self;" (assignment_expression "*(ssh_signkey **)key = self" (pointer_expression "*(ssh_signkey **)key" * (cast_expression "(ssh_signkey **)key" ( (type_descriptor "ssh_signkey **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "*(int **)(key + 4) = piVar2;" (assignment_expression "*(int **)(key + 4) = piVar2" (pointer_expression "*(int **)(key + 4)" * (cast_expression "(int **)(key + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(key + 4)" ( (binary_expression "key + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "key[0x14] = '\0';" (assignment_expression "key[0x14] = '\0'" (subscript_expression "key[0x14]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "key[8] = '\0';" (assignment_expression "key[8] = '\0'" (subscript_expression "key[8]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "key[9] = '\0';" (assignment_expression "key[9] = '\0'" (subscript_expression "key[9]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "key[10] = '\0';" (assignment_expression "key[10] = '\0'" (subscript_expression "key[10]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "key[0xb] = '\0';" (assignment_expression "key[0xb] = '\0'" (subscript_expression "key[0xb]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "key[0xc] = '\0';" (assignment_expression "key[0xc] = '\0'" (subscript_expression "key[0xc]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "key[0xd] = '\0';" (assignment_expression "key[0xd] = '\0'" (subscript_expression "key[0xd]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "key[0xe] = '\0';" (assignment_expression "key[0xe] = '\0'" (subscript_expression "key[0xe]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "key[0xf] = '\0';" (assignment_expression "key[0xf] = '\0'" (subscript_expression "key[0xf]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "key[0x10] = '\0';" (assignment_expression "key[0x10] = '\0'" (subscript_expression "key[0x10]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "key[0x11] = '\0';" (assignment_expression "key[0x11] = '\0'" (subscript_expression "key[0x11]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "key[0x12] = '\0';" (assignment_expression "key[0x12] = '\0'" (subscript_expression "key[0x12]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "key[0x13] = '\0';" (assignment_expression "key[0x13] = '\0'" (subscript_expression "key[0x13]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar3 = getmppoint((char **)blob,len,(ec_point *)(key + 4));" (assignment_expression "iVar3 = getmppoint((char **)blob,len,(ec_point *)(key + 4))" identifier = (call_expression "getmppoint((char **)blob,len,(ec_point *)(key + 4))" identifier (argument_list "((char **)blob,len,(ec_point *)(key + 4))" ( (cast_expression "(char **)blob" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , identifier , (cast_expression "(ec_point *)(key + 4)" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(key + 4)" ( (binary_expression "key + 4" identifier + number_literal) ))) )))) ;) (if_statement "if (iVar3 != 0) {\n      key[0x18] = '\0';\n      key[0x19] = '\0';\n      key[0x1a] = '\0';\n      key[0x1b] = '\0';\n      if ((*(Bignum_conflict *)(key + 8) != (Bignum_conflict)0x0) && (*(int *)(key + 0xc) != 0)) {\n        iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)piVar2[4]);\n        if (iVar3 < 0) {\n          iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)piVar2[4]);\n          if (iVar3 < 0) {\n            privateKey = getmp((char **)blob,len);\n            *(Bignum *)(key + 0x18) = privateKey;\n            if (privateKey != (Bignum)0x0) {\n              point = ec_public(privateKey,*(ec_curve **)(key + 4));\n              if (point != (ec_point *)0x0) {\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      key[0x18] = '\0';\n      key[0x19] = '\0';\n      key[0x1a] = '\0';\n      key[0x1b] = '\0';\n      if ((*(Bignum_conflict *)(key + 8) != (Bignum_conflict)0x0) && (*(int *)(key + 0xc) != 0)) {\n        iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)piVar2[4]);\n        if (iVar3 < 0) {\n          iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)piVar2[4]);\n          if (iVar3 < 0) {\n            privateKey = getmp((char **)blob,len);\n            *(Bignum *)(key + 0x18) = privateKey;\n            if (privateKey != (Bignum)0x0) {\n              point = ec_public(privateKey,*(ec_curve **)(key + 4));\n              if (point != (ec_point *)0x0) {\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }" { (expression_statement "key[0x18] = '\0';" (assignment_expression "key[0x18] = '\0'" (subscript_expression "key[0x18]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "key[0x19] = '\0';" (assignment_expression "key[0x19] = '\0'" (subscript_expression "key[0x19]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "key[0x1a] = '\0';" (assignment_expression "key[0x1a] = '\0'" (subscript_expression "key[0x1a]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "key[0x1b] = '\0';" (assignment_expression "key[0x1b] = '\0'" (subscript_expression "key[0x1b]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if ((*(Bignum_conflict *)(key + 8) != (Bignum_conflict)0x0) && (*(int *)(key + 0xc) != 0)) {\n        iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)piVar2[4]);\n        if (iVar3 < 0) {\n          iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)piVar2[4]);\n          if (iVar3 < 0) {\n            privateKey = getmp((char **)blob,len);\n            *(Bignum *)(key + 0x18) = privateKey;\n            if (privateKey != (Bignum)0x0) {\n              point = ec_public(privateKey,*(ec_curve **)(key + 4));\n              if (point != (ec_point *)0x0) {\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }" if (parenthesized_expression "((*(Bignum_conflict *)(key + 8) != (Bignum_conflict)0x0) && (*(int *)(key + 0xc) != 0))" ( (binary_expression "(*(Bignum_conflict *)(key + 8) != (Bignum_conflict)0x0) && (*(int *)(key + 0xc) != 0)" (parenthesized_expression "(*(Bignum_conflict *)(key + 8) != (Bignum_conflict)0x0)" ( (binary_expression "*(Bignum_conflict *)(key + 8) != (Bignum_conflict)0x0" (pointer_expression "*(Bignum_conflict *)(key + 8)" * (cast_expression "(Bignum_conflict *)(key + 8)" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(key + 8)" ( (binary_expression "key + 8" identifier + number_literal) )))) != (cast_expression "(Bignum_conflict)0x0" ( (type_descriptor "Bignum_conflict" type_identifier) ) number_literal)) )) && (parenthesized_expression "(*(int *)(key + 0xc) != 0)" ( (binary_expression "*(int *)(key + 0xc) != 0" (pointer_expression "*(int *)(key + 0xc)" * (cast_expression "(int *)(key + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(key + 0xc)" ( (binary_expression "key + 0xc" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n        iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)piVar2[4]);\n        if (iVar3 < 0) {\n          iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)piVar2[4]);\n          if (iVar3 < 0) {\n            privateKey = getmp((char **)blob,len);\n            *(Bignum *)(key + 0x18) = privateKey;\n            if (privateKey != (Bignum)0x0) {\n              point = ec_public(privateKey,*(ec_curve **)(key + 4));\n              if (point != (ec_point *)0x0) {\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }" { (expression_statement "iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)piVar2[4]);" (assignment_expression "iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)piVar2[4])" identifier = (call_expression "bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)piVar2[4])" identifier (argument_list "(*(Bignum_conflict *)(key + 8),(Bignum_conflict)piVar2[4])" ( (pointer_expression "*(Bignum_conflict *)(key + 8)" * (cast_expression "(Bignum_conflict *)(key + 8)" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(key + 8)" ( (binary_expression "key + 8" identifier + number_literal) )))) , (cast_expression "(Bignum_conflict)piVar2[4]" ( (type_descriptor "Bignum_conflict" type_identifier) ) (subscript_expression "piVar2[4]" identifier [ number_literal ])) )))) ;) (if_statement "if (iVar3 < 0) {\n          iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)piVar2[4]);\n          if (iVar3 < 0) {\n            privateKey = getmp((char **)blob,len);\n            *(Bignum *)(key + 0x18) = privateKey;\n            if (privateKey != (Bignum)0x0) {\n              point = ec_public(privateKey,*(ec_curve **)(key + 4));\n              if (point != (ec_point *)0x0) {\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n          iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)piVar2[4]);\n          if (iVar3 < 0) {\n            privateKey = getmp((char **)blob,len);\n            *(Bignum *)(key + 0x18) = privateKey;\n            if (privateKey != (Bignum)0x0) {\n              point = ec_public(privateKey,*(ec_curve **)(key + 4));\n              if (point != (ec_point *)0x0) {\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }" { (expression_statement "iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)piVar2[4]);" (assignment_expression "iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)piVar2[4])" identifier = (call_expression "bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)piVar2[4])" identifier (argument_list "(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)piVar2[4])" ( (pointer_expression "*(Bignum_conflict *)(key + 0xc)" * (cast_expression "(Bignum_conflict *)(key + 0xc)" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(key + 0xc)" ( (binary_expression "key + 0xc" identifier + number_literal) )))) , (cast_expression "(Bignum_conflict)piVar2[4]" ( (type_descriptor "Bignum_conflict" type_identifier) ) (subscript_expression "piVar2[4]" identifier [ number_literal ])) )))) ;) (if_statement "if (iVar3 < 0) {\n            privateKey = getmp((char **)blob,len);\n            *(Bignum *)(key + 0x18) = privateKey;\n            if (privateKey != (Bignum)0x0) {\n              point = ec_public(privateKey,*(ec_curve **)(key + 4));\n              if (point != (ec_point *)0x0) {\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }\n            }\n          }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n            privateKey = getmp((char **)blob,len);\n            *(Bignum *)(key + 0x18) = privateKey;\n            if (privateKey != (Bignum)0x0) {\n              point = ec_public(privateKey,*(ec_curve **)(key + 4));\n              if (point != (ec_point *)0x0) {\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }\n            }\n          }" { (expression_statement "privateKey = getmp((char **)blob,len);" (assignment_expression "privateKey = getmp((char **)blob,len)" identifier = (call_expression "getmp((char **)blob,len)" identifier (argument_list "((char **)blob,len)" ( (cast_expression "(char **)blob" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , identifier )))) ;) (expression_statement "*(Bignum *)(key + 0x18) = privateKey;" (assignment_expression "*(Bignum *)(key + 0x18) = privateKey" (pointer_expression "*(Bignum *)(key + 0x18)" * (cast_expression "(Bignum *)(key + 0x18)" ( (type_descriptor "Bignum *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(key + 0x18)" ( (binary_expression "key + 0x18" identifier + number_literal) )))) = identifier) ;) (if_statement "if (privateKey != (Bignum)0x0) {\n              point = ec_public(privateKey,*(ec_curve **)(key + 4));\n              if (point != (ec_point *)0x0) {\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }\n            }" if (parenthesized_expression "(privateKey != (Bignum)0x0)" ( (binary_expression "privateKey != (Bignum)0x0" identifier != (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) )) (compound_statement "{\n              point = ec_public(privateKey,*(ec_curve **)(key + 4));\n              if (point != (ec_point *)0x0) {\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }\n            }" { (expression_statement "point = ec_public(privateKey,*(ec_curve **)(key + 4));" (assignment_expression "point = ec_public(privateKey,*(ec_curve **)(key + 4))" identifier = (call_expression "ec_public(privateKey,*(ec_curve **)(key + 4))" identifier (argument_list "(privateKey,*(ec_curve **)(key + 4))" ( identifier , (pointer_expression "*(ec_curve **)(key + 4)" * (cast_expression "(ec_curve **)(key + 4)" ( (type_descriptor "ec_curve **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(key + 4)" ( (binary_expression "key + 4" identifier + number_literal) )))) )))) ;) (if_statement "if (point != (ec_point *)0x0) {\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }" if (parenthesized_expression "(point != (ec_point *)0x0)" ( (binary_expression "point != (ec_point *)0x0" identifier != (cast_expression "(ec_point *)0x0" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);\n                if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }\n                pcVar4 = (char *)0x0;\n                ecdsa_freekey(key);\n                ec_point_free(point);\n                goto LAB_0005fce6;\n              }" { (expression_statement "iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x);" (assignment_expression "iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x)" identifier = (call_expression "bignum_cmp(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x)" identifier (argument_list "(*(Bignum_conflict *)(key + 8),(Bignum_conflict)point->x)" ( (pointer_expression "*(Bignum_conflict *)(key + 8)" * (cast_expression "(Bignum_conflict *)(key + 8)" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(key + 8)" ( (binary_expression "key + 8" identifier + number_literal) )))) , (cast_expression "(Bignum_conflict)point->x" ( (type_descriptor "Bignum_conflict" type_identifier) ) (field_expression "point->x" identifier -> field_identifier)) )))) ;) (if_statement "if (iVar3 == 0) {\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n                  iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);\n                  if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }\n                }" { (expression_statement "iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y);" (assignment_expression "iVar3 = bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y)" identifier = (call_expression "bignum_cmp(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y)" identifier (argument_list "(*(Bignum_conflict *)(key + 0xc),(Bignum_conflict)point->y)" ( (pointer_expression "*(Bignum_conflict *)(key + 0xc)" * (cast_expression "(Bignum_conflict *)(key + 0xc)" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(key + 0xc)" ( (binary_expression "key + 0xc" identifier + number_literal) )))) , (cast_expression "(Bignum_conflict)point->y" ( (type_descriptor "Bignum_conflict" type_identifier) ) (field_expression "point->y" identifier -> field_identifier)) )))) ;) (if_statement "if (iVar3 == 0) {\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n                    ec_point_free(point);\n                    pcVar4 = key;\n                    goto LAB_0005fce6;\n                  }" { (expression_statement "ec_point_free(point);" (call_expression "ec_point_free(point)" identifier (argument_list "(point)" ( identifier ))) ;) (expression_statement "pcVar4 = key;" (assignment_expression "pcVar4 = key" identifier = identifier) ;) (goto_statement "goto LAB_0005fce6;" goto statement_identifier ;) })) })) (expression_statement "pcVar4 = (char *)0x0;" (assignment_expression "pcVar4 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ecdsa_freekey(key);" (call_expression "ecdsa_freekey(key)" identifier (argument_list "(key)" ( identifier ))) ;) (expression_statement "ec_point_free(point);" (call_expression "ec_point_free(point)" identifier (argument_list "(point)" ( identifier ))) ;) (goto_statement "goto LAB_0005fce6;" goto statement_identifier ;) })) })) })) })) })) })) (expression_statement "pcVar4 = (char *)0x0;" (assignment_expression "pcVar4 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ecdsa_freekey(key);" (call_expression "ecdsa_freekey(key)" identifier (argument_list "(key)" ( identifier ))) ;) })) (labeled_statement "LAB_0005fce6:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar4;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar4;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return pcVar4;\n  }" { (return_statement "return pcVar4;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int * FUN_0005fb80(int param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int *local_28;\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5fb89;\n  puVar1 = *(undefined4 **)(param_1 + 0x38);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005d770(local_24);\n  if (local_28 != (int *)0x0) {\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    \n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    piVar3 = (int *)FUN_0002e780(1,0x1c);\n    *piVar3 = param_1;\n    piVar3[1] = (int)piVar2;\n    *(undefined1 *)(piVar3 + 5) = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    iVar4 = FUN_0005df10();\n    if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    local_28 = (int *)0x0;\n    FUN_0005b680(piVar3);\n  }\nLAB_0005fce6:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_28;\n  }\n                    \n  FUN_000a39d0();\n}\n\n" (function_definition "int * FUN_0005fb80(int param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int *local_28;\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5fb89;\n  puVar1 = *(undefined4 **)(param_1 + 0x38);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005d770(local_24);\n  if (local_28 != (int *)0x0) {\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    \n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    piVar3 = (int *)FUN_0002e780(1,0x1c);\n    *piVar3 = param_1;\n    piVar3[1] = (int)piVar2;\n    *(undefined1 *)(piVar3 + 5) = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    iVar4 = FUN_0005df10();\n    if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    local_28 = (int *)0x0;\n    FUN_0005b680(piVar3);\n  }\nLAB_0005fce6:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_28;\n  }\n                    \n  FUN_000a39d0();\n}" primitive_type (pointer_declarator "* FUN_0005fb80(int param_1)" * (function_declarator "FUN_0005fb80(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int *local_28;\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5fb89;\n  puVar1 = *(undefined4 **)(param_1 + 0x38);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005d770(local_24);\n  if (local_28 != (int *)0x0) {\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    \n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    piVar3 = (int *)FUN_0002e780(1,0x1c);\n    *piVar3 = param_1;\n    piVar3[1] = (int)piVar2;\n    *(undefined1 *)(piVar3 + 5) = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    iVar4 = FUN_0005df10();\n    if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    local_28 = (int *)0x0;\n    FUN_0005b680(piVar3);\n  }\nLAB_0005fce6:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_28;\n  }\n                    \n  FUN_000a39d0();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "undefined1 local_24 [4];" type_identifier (array_declarator "local_24 [4]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5fb89;" (assignment_expression "uStack_14 = 0x5fb89" identifier = number_literal) ;) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x38);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x38)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x38)" * (cast_expression "(undefined4 **)(param_1 + 0x38)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "FUN_0005d770(local_24);" (call_expression "FUN_0005d770(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (if_statement "if (local_28 != (int *)0x0) {\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    \n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    piVar3 = (int *)FUN_0002e780(1,0x1c);\n    *piVar3 = param_1;\n    piVar3[1] = (int)piVar2;\n    *(undefined1 *)(piVar3 + 5) = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    iVar4 = FUN_0005df10();\n    if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    local_28 = (int *)0x0;\n    FUN_0005b680(piVar3);\n  }" if (parenthesized_expression "(local_28 != (int *)0x0)" ( (binary_expression "local_28 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    \n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    piVar3 = (int *)FUN_0002e780(1,0x1c);\n    *piVar3 = param_1;\n    piVar3[1] = (int)piVar2;\n    *(undefined1 *)(piVar3 + 5) = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    iVar4 = FUN_0005df10();\n    if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    local_28 = (int *)0x0;\n    FUN_0005b680(piVar3);\n  }" { (expression_statement "piVar2 = (int *)(*(code *)*puVar1)();" (assignment_expression "piVar2 = (int *)(*(code *)*puVar1)()" identifier = (cast_expression "(int *)(*(code *)*puVar1)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)*puVar1)()" (parenthesized_expression "(*(code *)*puVar1)" ( (pointer_expression "*(code *)*puVar1" * (cast_expression "(code *)*puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar2 != 0) {\n                    \n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }" if (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n                    \n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }" { (expression_statement "__assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");" (call_expression "__assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey")" identifier (argument_list "("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey")" ( (string_literal ""curve->type == EC_WEIERSTRASS"" " string_content ") , (string_literal ""sshecc.c"" " string_content ") , number_literal , (string_literal ""ecdsa_openssh_createkey"" " string_content ") ))) ;) })) (expression_statement "piVar3 = (int *)FUN_0002e780(1,0x1c);" (assignment_expression "piVar3 = (int *)FUN_0002e780(1,0x1c)" identifier = (cast_expression "(int *)FUN_0002e780(1,0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002e780(1,0x1c)" identifier (argument_list "(1,0x1c)" ( number_literal , number_literal ))))) ;) (expression_statement "*piVar3 = param_1;" (assignment_expression "*piVar3 = param_1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "piVar3[1] = (int)piVar2;" (assignment_expression "piVar3[1] = (int)piVar2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(undefined1 *)(piVar3 + 5) = 0;" (assignment_expression "*(undefined1 *)(piVar3 + 5) = 0" (pointer_expression "*(undefined1 *)(piVar3 + 5)" * (cast_expression "(undefined1 *)(piVar3 + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 5)" ( (binary_expression "piVar3 + 5" identifier + number_literal) )))) = number_literal) ;) (expression_statement "piVar3[2] = 0;" (assignment_expression "piVar3[2] = 0" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[3] = 0;" (assignment_expression "piVar3[3] = 0" (subscript_expression "piVar3[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3[4] = 0;" (assignment_expression "piVar3[4] = 0" (subscript_expression "piVar3[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar4 = FUN_0005df10();" (assignment_expression "iVar4 = FUN_0005df10()" identifier = (call_expression "FUN_0005df10()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }" { (expression_statement "piVar3[6] = 0;" (assignment_expression "piVar3[6] = 0" (subscript_expression "piVar3[6]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }" if (parenthesized_expression "((piVar3[2] != 0) && (piVar3[3] != 0))" ( (binary_expression "(piVar3[2] != 0) && (piVar3[3] != 0)" (parenthesized_expression "(piVar3[2] != 0)" ( (binary_expression "piVar3[2] != 0" (subscript_expression "piVar3[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(piVar3[3] != 0)" ( (binary_expression "piVar3[3] != 0" (subscript_expression "piVar3[3]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }" { (expression_statement "iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);" (assignment_expression "iVar4 = FUN_000540e0(piVar3[2],piVar2[4])" identifier = (call_expression "FUN_000540e0(piVar3[2],piVar2[4])" identifier (argument_list "(piVar3[2],piVar2[4])" ( (subscript_expression "piVar3[2]" identifier [ number_literal ]) , (subscript_expression "piVar2[4]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }" { (expression_statement "iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);" (assignment_expression "iVar4 = FUN_000540e0(piVar3[3],piVar2[4])" identifier = (call_expression "FUN_000540e0(piVar3[3],piVar2[4])" identifier (argument_list "(piVar3[3],piVar2[4])" ( (subscript_expression "piVar3[3]" identifier [ number_literal ]) , (subscript_expression "piVar2[4]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }" { (expression_statement "iVar4 = FUN_0005d7f0();" (assignment_expression "iVar4 = FUN_0005d7f0()" identifier = (call_expression "FUN_0005d7f0()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar3[6] = iVar4;" (assignment_expression "piVar3[6] = iVar4" (subscript_expression "piVar3[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }" { (expression_statement "iVar4 = FUN_0005f830(iVar4,piVar3[1]);" (assignment_expression "iVar4 = FUN_0005f830(iVar4,piVar3[1])" identifier = (call_expression "FUN_0005f830(iVar4,piVar3[1])" identifier (argument_list "(iVar4,piVar3[1])" ( identifier , (subscript_expression "piVar3[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }" { (expression_statement "iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));" (assignment_expression "iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4))" identifier = (call_expression "FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4))" identifier (argument_list "(piVar3[2],*(undefined4 *)(iVar4 + 4))" ( (subscript_expression "piVar3[2]" identifier [ number_literal ]) , (pointer_expression "*(undefined4 *)(iVar4 + 4)" * (cast_expression "(undefined4 *)(iVar4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }" { (expression_statement "iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));" (assignment_expression "iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8))" identifier = (call_expression "FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8))" identifier (argument_list "(piVar3[3],*(undefined4 *)(iVar4 + 8))" ( (subscript_expression "piVar3[3]" identifier [ number_literal ]) , (pointer_expression "*(undefined4 *)(iVar4 + 8)" * (cast_expression "(undefined4 *)(iVar4 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }" { (expression_statement "FUN_0005e340(iVar4);" (call_expression "FUN_0005e340(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "local_28 = piVar3;" (assignment_expression "local_28 = piVar3" identifier = identifier) ;) (goto_statement "goto LAB_0005fce6;" goto statement_identifier ;) })) })) (expression_statement "local_28 = (int *)0x0;" (assignment_expression "local_28 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_0005b680(piVar3);" (call_expression "FUN_0005b680(piVar3)" identifier (argument_list "(piVar3)" ( identifier ))) ;) (expression_statement "FUN_0005e340(iVar4);" (call_expression "FUN_0005e340(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (goto_statement "goto LAB_0005fce6;" goto statement_identifier ;) })) })) })) })) })) })) (expression_statement "local_28 = (int *)0x0;" (assignment_expression "local_28 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_0005b680(piVar3);" (call_expression "FUN_0005b680(piVar3)" identifier (argument_list "(piVar3)" ( identifier ))) ;) })) (labeled_statement "LAB_0005fce6:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_28;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_28;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return local_28;\n  }" { (return_statement "return local_28;" return identifier ;) }))) (expression_statement "FUN_000a39d0();" (call_expression "FUN_000a39d0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) })) })) })) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int * FUN_0005fb80(int param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int *local_28;\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5fb89;\n  puVar1 = *(undefined4 **)(param_1 + 0x38);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005d770(local_24);\n  if (local_28 != (int *)0x0) {\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    \n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    piVar3 = (int *)FUN_0002e780(1,0x1c);\n    *piVar3 = param_1;\n    piVar3[1] = (int)piVar2;\n    *(undefined1 *)(piVar3 + 5) = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    iVar4 = FUN_0005df10();\n    if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    local_28 = (int *)0x0;\n    FUN_0005b680(piVar3);\n  }\nLAB_0005fce6:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_28;\n  }\n                    \n  FUN_000a39d0();\n}" (primitive_type "int") (pointer_declarator "* FUN_0005fb80(int param_1)" (* "*") (function_declarator "FUN_0005fb80(int param_1)" (identifier "FUN_0005fb80") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int in_GS_OFFSET;\n  int *local_28;\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5fb89;\n  puVar1 = *(undefined4 **)(param_1 + 0x38);\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_0005d770(local_24);\n  if (local_28 != (int *)0x0) {\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    \n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    piVar3 = (int *)FUN_0002e780(1,0x1c);\n    *piVar3 = param_1;\n    piVar3[1] = (int)piVar2;\n    *(undefined1 *)(piVar3 + 5) = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    iVar4 = FUN_0005df10();\n    if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    local_28 = (int *)0x0;\n    FUN_0005b680(piVar3);\n  }\nLAB_0005fce6:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_28;\n  }\n                    \n  FUN_000a39d0();\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int *local_28;" (primitive_type "int") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (declaration "undefined1 local_24 [4];" (type_identifier "undefined1") (array_declarator "local_24 [4]" (identifier "local_24") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x5fb89;" (assignment_expression "uStack_14 = 0x5fb89" (identifier "uStack_14") (= "=") (number_literal "0x5fb89")) (; ";")) (expression_statement "puVar1 = *(undefined4 **)(param_1 + 0x38);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x38)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x38)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x38)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "FUN_0005d770(local_24);" (call_expression "FUN_0005d770(local_24)" (identifier "FUN_0005d770") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (if_statement "if (local_28 != (int *)0x0) {\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    \n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    piVar3 = (int *)FUN_0002e780(1,0x1c);\n    *piVar3 = param_1;\n    piVar3[1] = (int)piVar2;\n    *(undefined1 *)(piVar3 + 5) = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    iVar4 = FUN_0005df10();\n    if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    local_28 = (int *)0x0;\n    FUN_0005b680(piVar3);\n  }" (if "if") (parenthesized_expression "(local_28 != (int *)0x0)" (( "(") (binary_expression "local_28 != (int *)0x0" (identifier "local_28") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar2 = (int *)(*(code *)*puVar1)();\n    if (*piVar2 != 0) {\n                    \n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }\n    piVar3 = (int *)FUN_0002e780(1,0x1c);\n    *piVar3 = param_1;\n    piVar3[1] = (int)piVar2;\n    *(undefined1 *)(piVar3 + 5) = 0;\n    piVar3[2] = 0;\n    piVar3[3] = 0;\n    piVar3[4] = 0;\n    iVar4 = FUN_0005df10();\n    if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }\n    local_28 = (int *)0x0;\n    FUN_0005b680(piVar3);\n  }" ({ "{") (expression_statement "piVar2 = (int *)(*(code *)*puVar1)();" (assignment_expression "piVar2 = (int *)(*(code *)*puVar1)()" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)*puVar1)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)*puVar1)()" (parenthesized_expression "(*(code *)*puVar1)" (( "(") (pointer_expression "*(code *)*puVar1" (* "*") (cast_expression "(code *)*puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (*piVar2 != 0) {\n                    \n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }" (if "if") (parenthesized_expression "(*piVar2 != 0)" (( "(") (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");\n    }" ({ "{") (expression_statement "__assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");" (call_expression "__assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey")" (identifier "__assert_fail") (argument_list "("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey")" (( "(") (string_literal ""curve->type == EC_WEIERSTRASS"" (" """) (string_content "curve->type == EC_WEIERSTRASS") (" """)) (, ",") (string_literal ""sshecc.c"" (" """) (string_content "sshecc.c") (" """)) (, ",") (number_literal "0x854") (, ",") (string_literal ""ecdsa_openssh_createkey"" (" """) (string_content "ecdsa_openssh_createkey") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)FUN_0002e780(1,0x1c);" (assignment_expression "piVar3 = (int *)FUN_0002e780(1,0x1c)" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_0002e780(1,0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0002e780(1,0x1c)" (identifier "FUN_0002e780") (argument_list "(1,0x1c)" (( "(") (number_literal "1") (, ",") (number_literal "0x1c") () ")"))))) (; ";")) (expression_statement "*piVar3 = param_1;" (assignment_expression "*piVar3 = param_1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "piVar3[1] = (int)piVar2;" (assignment_expression "piVar3[1] = (int)piVar2" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)piVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar2"))) (; ";")) (expression_statement "*(undefined1 *)(piVar3 + 5) = 0;" (assignment_expression "*(undefined1 *)(piVar3 + 5) = 0" (pointer_expression "*(undefined1 *)(piVar3 + 5)" (* "*") (cast_expression "(undefined1 *)(piVar3 + 5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar3 + 5)" (( "(") (binary_expression "piVar3 + 5" (identifier "piVar3") (+ "+") (number_literal "5")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[2] = 0;" (assignment_expression "piVar3[2] = 0" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[3] = 0;" (assignment_expression "piVar3[3] = 0" (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[4] = 0;" (assignment_expression "piVar3[4] = 0" (subscript_expression "piVar3[4]" (identifier "piVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = FUN_0005df10();" (assignment_expression "iVar4 = FUN_0005df10()" (identifier "iVar4") (= "=") (call_expression "FUN_0005df10()" (identifier "FUN_0005df10") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      piVar3[6] = 0;\n      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }\n    }" ({ "{") (expression_statement "piVar3[6] = 0;" (assignment_expression "piVar3[6] = 0" (subscript_expression "piVar3[6]" (identifier "piVar3") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((piVar3[2] != 0) && (piVar3[3] != 0)) {\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }" (if "if") (parenthesized_expression "((piVar3[2] != 0) && (piVar3[3] != 0))" (( "(") (binary_expression "(piVar3[2] != 0) && (piVar3[3] != 0)" (parenthesized_expression "(piVar3[2] != 0)" (( "(") (binary_expression "piVar3[2] != 0" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(piVar3[3] != 0)" (( "(") (binary_expression "piVar3[3] != 0" (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);\n        if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }\n      }" ({ "{") (expression_statement "iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);" (assignment_expression "iVar4 = FUN_000540e0(piVar3[2],piVar2[4])" (identifier "iVar4") (= "=") (call_expression "FUN_000540e0(piVar3[2],piVar2[4])" (identifier "FUN_000540e0") (argument_list "(piVar3[2],piVar2[4])" (( "(") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (, ",") (subscript_expression "piVar2[4]" (identifier "piVar2") ([ "[") (number_literal "4") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar4 < 0) {\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);\n          if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }\n        }" ({ "{") (expression_statement "iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);" (assignment_expression "iVar4 = FUN_000540e0(piVar3[3],piVar2[4])" (identifier "iVar4") (= "=") (call_expression "FUN_000540e0(piVar3[3],piVar2[4])" (identifier "FUN_000540e0") (argument_list "(piVar3[3],piVar2[4])" (( "(") (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")) (, ",") (subscript_expression "piVar2[4]" (identifier "piVar2") ([ "[") (number_literal "4") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar4 < 0) {\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n            iVar4 = FUN_0005d7f0();\n            piVar3[6] = iVar4;\n            if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }\n          }" ({ "{") (expression_statement "iVar4 = FUN_0005d7f0();" (assignment_expression "iVar4 = FUN_0005d7f0()" (identifier "iVar4") (= "=") (call_expression "FUN_0005d7f0()" (identifier "FUN_0005d7f0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar3[6] = iVar4;" (assignment_expression "piVar3[6] = iVar4" (subscript_expression "piVar3[6]" (identifier "piVar3") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (iVar4 != 0) {\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              iVar4 = FUN_0005f830(iVar4,piVar3[1]);\n              if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }\n            }" ({ "{") (expression_statement "iVar4 = FUN_0005f830(iVar4,piVar3[1]);" (assignment_expression "iVar4 = FUN_0005f830(iVar4,piVar3[1])" (identifier "iVar4") (= "=") (call_expression "FUN_0005f830(iVar4,piVar3[1])" (identifier "FUN_0005f830") (argument_list "(iVar4,piVar3[1])" (( "(") (identifier "iVar4") (, ",") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));\n                if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }\n                local_28 = (int *)0x0;\n                FUN_0005b680(piVar3);\n                FUN_0005e340(iVar4);\n                goto LAB_0005fce6;\n              }" ({ "{") (expression_statement "iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));" (assignment_expression "iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4))" (identifier "iVar5") (= "=") (call_expression "FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4))" (identifier "FUN_000540e0") (argument_list "(piVar3[2],*(undefined4 *)(iVar4 + 4))" (( "(") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (, ",") (pointer_expression "*(undefined4 *)(iVar4 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));\n                  if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }\n                }" ({ "{") (expression_statement "iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));" (assignment_expression "iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8))" (identifier "iVar5") (= "=") (call_expression "FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8))" (identifier "FUN_000540e0") (argument_list "(piVar3[3],*(undefined4 *)(iVar4 + 8))" (( "(") (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")) (, ",") (pointer_expression "*(undefined4 *)(iVar4 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar4 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    FUN_0005e340(iVar4);\n                    local_28 = piVar3;\n                    goto LAB_0005fce6;\n                  }" ({ "{") (expression_statement "FUN_0005e340(iVar4);" (call_expression "FUN_0005e340(iVar4)" (identifier "FUN_0005e340") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "local_28 = piVar3;" (assignment_expression "local_28 = piVar3" (identifier "local_28") (= "=") (identifier "piVar3")) (; ";")) (goto_statement "goto LAB_0005fce6;" (goto "goto") (statement_identifier "LAB_0005fce6") (; ";")) (} "}"))) (} "}"))) (expression_statement "local_28 = (int *)0x0;" (assignment_expression "local_28 = (int *)0x0" (identifier "local_28") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "FUN_0005b680(piVar3);" (call_expression "FUN_0005b680(piVar3)" (identifier "FUN_0005b680") (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")"))) (; ";")) (expression_statement "FUN_0005e340(iVar4);" (call_expression "FUN_0005e340(iVar4)" (identifier "FUN_0005e340") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (goto_statement "goto LAB_0005fce6;" (goto "goto") (statement_identifier "LAB_0005fce6") (; ";")) (} "}"))) (} "}"))) (} "}"))) (} "}"))) (} "}"))) (} "}"))) (expression_statement "local_28 = (int *)0x0;" (assignment_expression "local_28 = (int *)0x0" (identifier "local_28") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "FUN_0005b680(piVar3);" (call_expression "FUN_0005b680(piVar3)" (identifier "FUN_0005b680") (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_0005fce6:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_28;\n  }" (statement_identifier "LAB_0005fce6") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_28;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return local_28;\n  }" ({ "{") (return_statement "return local_28;" (return "return") (identifier "local_28") (; ";")) (} "}")))) (expression_statement "FUN_000a39d0();" (call_expression "FUN_000a39d0()" (identifier "FUN_000a39d0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void * function_1(type_1 *self,type_2 **blob,int *len)

{
  type_3 *puVar1;
  int *piVar2;
  char *var_6;
  int var_8;
  type_4 var_11;
  type_5 *var_13;
  char *pcVar4;
  int var_1;
  char *var_3;
  int slen;
  int var_16;
  type_3 uStack_14;
  
  uStack_14 = 0x5fb89;
  puVar1 = (type_3 *)self->extra;
  var_16 = *(int *)(var_1 + 0x14);
  var_2((char **)blob,len,&var_3,&slen);
  pcVar4 = var_3;
  if (var_3 != (char *)0x0) {
    piVar2 = (int *)(*(type_6 *)*puVar1)();
    if (*piVar2 != 0) {
                    /* WARNING: Subroutine does not return */
      var_4("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");
    }
    var_6 = (char *)var_5(1,0x1c);
    *(type_1 **)var_6 = self;
    *(int **)(var_6 + 4) = piVar2;
    var_6[0x14] = '\0';
    var_6[8] = '\0';
    var_6[9] = '\0';
    var_6[10] = '\0';
    var_6[0xb] = '\0';
    var_6[0xc] = '\0';
    var_6[0xd] = '\0';
    var_6[0xe] = '\0';
    var_6[0xf] = '\0';
    var_6[0x10] = '\0';
    var_6[0x11] = '\0';
    var_6[0x12] = '\0';
    var_6[0x13] = '\0';
    var_8 = var_7((char **)blob,len,(type_5 *)(var_6 + 4));
    if (var_8 != 0) {
      var_6[0x18] = '\0';
      var_6[0x19] = '\0';
      var_6[0x1a] = '\0';
      var_6[0x1b] = '\0';
      if ((*(type_7 *)(var_6 + 8) != (type_7)0x0) && (*(int *)(var_6 + 0xc) != 0)) {
        var_8 = var_9(*(type_7 *)(var_6 + 8),(type_7)piVar2[4]);
        if (var_8 < 0) {
          var_8 = var_9(*(type_7 *)(var_6 + 0xc),(type_7)piVar2[4]);
          if (var_8 < 0) {
            var_11 = var_10((char **)blob,len);
            *(type_4 *)(var_6 + 0x18) = var_11;
            if (var_11 != (type_4)0x0) {
              var_13 = var_12(var_11,*(type_8 **)(var_6 + 4));
              if (var_13 != (type_5 *)0x0) {
                var_8 = var_9(*(type_7 *)(var_6 + 8),(type_7)var_13->x);
                if (var_8 == 0) {
                  var_8 = var_9(*(type_7 *)(var_6 + 0xc),(type_7)var_13->y);
                  if (var_8 == 0) {
                    var_14(var_13);
                    pcVar4 = var_6;
                    goto LAB_0005fce6;
                  }
                }
                pcVar4 = (char *)0x0;
                var_15(var_6);
                var_14(var_13);
                goto LAB_0005fce6;
              }
            }
          }
        }
      }
    }
    pcVar4 = (char *)0x0;
    var_15(var_6);
  }
LAB_0005fce6:
  if (var_16 == *(int *)(var_1 + 0x14)) {
    return pcVar4;
  }
                    /* WARNING: Subroutine does not return */
  var_17();
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int * MASKED(int param_1)

{
  undefined4 *puVar1;
  int *piVar2;
  int *piVar3;
  int iVar4;
  int iVar5;
  int in_GS_OFFSET;
  int *local_28;
  undefined1 local_24 [4];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5fb89;
  puVar1 = *(undefined4 **)(param_1 + 0x38);
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_0005d770(local_24);
  if (local_28 != (int *)0x0) {
    piVar2 = (int *)(*(code *)*puVar1)();
    if (*piVar2 != 0) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("curve->type == EC_WEIERSTRASS","sshecc.c",0x854,"ecdsa_openssh_createkey");
    }
    piVar3 = (int *)FUN_0002e780(1,0x1c);
    *piVar3 = param_1;
    piVar3[1] = (int)piVar2;
    *(undefined1 *)(piVar3 + 5) = 0;
    piVar3[2] = 0;
    piVar3[3] = 0;
    piVar3[4] = 0;
    iVar4 = FUN_0005df10();
    if (iVar4 != 0) {
      piVar3[6] = 0;
      if ((piVar3[2] != 0) && (piVar3[3] != 0)) {
        iVar4 = FUN_000540e0(piVar3[2],piVar2[4]);
        if (iVar4 < 0) {
          iVar4 = FUN_000540e0(piVar3[3],piVar2[4]);
          if (iVar4 < 0) {
            iVar4 = FUN_0005d7f0();
            piVar3[6] = iVar4;
            if (iVar4 != 0) {
              iVar4 = FUN_0005f830(iVar4,piVar3[1]);
              if (iVar4 != 0) {
                iVar5 = FUN_000540e0(piVar3[2],*(undefined4 *)(iVar4 + 4));
                if (iVar5 == 0) {
                  iVar5 = FUN_000540e0(piVar3[3],*(undefined4 *)(iVar4 + 8));
                  if (iVar5 == 0) {
                    FUN_0005e340(iVar4);
                    local_28 = piVar3;
                    goto LAB_0005fce6;
                  }
                }
                local_28 = (int *)0x0;
                FUN_0005b680(piVar3);
                FUN_0005e340(iVar4);
                goto LAB_0005fce6;
              }
            }
          }
        }
      }
    }
    local_28 = (int *)0x0;
    FUN_0005b680(piVar3);
  }
LAB_0005fce6:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_28;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a39d0();
}

