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

ec_point * __regparm3 ec_public(Bignum privateKey,ec_curve *curve)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  Bignum_conflict b_00;
  ec_point *peVar4;
  uint i;
  uint uVar5;
  int in_GS_OFFSET;
  uchar b;
  SHA512_State s;
  uchar hash [64];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  SHA512_Init((SHA512_CTX *)&s);
  uVar2 = curve->fieldBits >> 3;
  if (uVar2 != 0) {
    i = 0;
    do {
      uVar5 = i + 1;
      iVar3 = bignum_byte((Bignum_conflict)privateKey,i);
      b = (uchar)iVar3;
      SHA512_Bytes(&s,&b,1);
      i = uVar5;
    } while (uVar2 != uVar5);
  }
  SHA512_Final(&s,hash);
  hash[0] = hash[0] & 0xf8;
  hash[0x1f] = hash[0x1f] & 0x7f | 0x40;
  b_00 = bignum_from_bytes_le(hash,0x20);
  peVar4 = ecp_mul(&(curve->field_5).m.G,b_00);
  freebn(b_00);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return peVar4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

undefined4 __regparm3 FUN_0005f720(undefined4 param_1,int param_2)

{
  uint uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  uint uVar4;
  uint uVar5;
  int in_GS_OFFSET;
  undefined1 local_135;
  undefined1 local_134 [212];
  byte local_60 [31];
  byte local_41;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5f72d;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_00069290(local_134);
  uVar1 = *(uint *)(param_2 + 0xc) >> 3;
  if (uVar1 != 0) {
    uVar4 = 0;
    do {
      uVar5 = uVar4 + 1;
      local_135 = FUN_00053ee0(param_1,uVar4);
      FUN_00069370(local_134,&local_135,1);
      uVar4 = uVar5;
    } while (uVar1 != uVar5);
  }
  FUN_0006a6c0(local_134,local_60);
  local_60[0] = local_60[0] & 0xf8;
  local_41 = local_41 & 0x7f | 0x40;
  uVar2 = FUN_00053cc0(local_60,0x20);
  uVar3 = FUN_0005e4a0(param_2 + 0x1c,uVar2);
  FUN_00053760(uVar2);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a39d0();
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x0001c4f0
ADD EBX,0xb1023
SUB ESP,0x148
MOV dword ptr [ESP + 0x18],EDX
LEA ESI,[ESP + 0x24]
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x138],EAX
XOR EAX,EAX
PUSH ESI
CALL 0x00069290
MOV EAX,dword ptr [EBP + 0xc]
MOV dword ptr [ESP + 0x14],EAX
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x4]
SHR EAX,0x3
MOV dword ptr [ESP + 0x4],EAX
JZ 0x0005f7a9
LEA EAX,[ESP + 0x17]
XOR EBP,EBP
MOV dword ptr [ESP + 0x8],EAX
LEA ESI,[ESI]
NOP
SUB ESP,0x8
PUSH EBP
ADD EBP,0x1
PUSH EDI
CALL 0x00053ee0
MOV byte ptr [ESP + 0x27],AL
ADD ESP,0xc
PUSH 0x1
PUSH dword ptr [ESP + 0x10]
PUSH ESI
CALL 0x00069370
ADD ESP,0x10
CMP dword ptr [ESP + 0x4],EBP
JNZ 0x0005f780
SUB ESP,0x8
LEA EDI,[ESP + 0xf4]
PUSH EDI
PUSH ESI
CALL 0x0006a6c0
MOVZX EAX,byte ptr [ESP + 0x11b]
AND byte ptr [ESP + 0xfc],0xf8
AND EAX,0x7f
OR EAX,0x40
MOV byte ptr [ESP + 0x11b],AL
POP EAX
POP EDX
PUSH 0x20
PUSH EDI
CALL 0x00053cc0
POP ECX
POP EDI
MOV ESI,EAX
PUSH EAX
MOV EAX,dword ptr [ESP + 0x18]
ADD EAX,0x1c
PUSH EAX
CALL 0x0005e4a0
MOV dword ptr [ESP],ESI
MOV EDI,EAX
CALL 0x00053760
ADD ESP,0x10
MOV EAX,EDI
MOV ECX,dword ptr [ESP + 0x12c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x0005f81d
ADD ESP,0x13c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x000a39d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_0005f720(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  undefined1 local_135;\n  undefined1 local_134 [212];\n  byte local_60 [31];\n  byte local_41;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f72d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00069290(local_134);\n  uVar1 = *(uint *)(param_2 + 0xc) >> 3;\n  if (uVar1 != 0) {\n    uVar4 = 0;\n    do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);\n  }\n  FUN_0006a6c0(local_134,local_60);\n  local_60[0] = local_60[0] & 0xf8;\n  local_41 = local_41 & 0x7f | 0x40;\n  uVar2 = FUN_00053cc0(local_60,0x20);\n  uVar3 = FUN_0005e4a0(param_2 + 0x1c,uVar2);\n  FUN_00053760(uVar2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a39d0();\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0005f720(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  undefined1 local_135;\n  undefined1 local_134 [212];\n  byte local_60 [31];\n  byte local_41;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f72d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00069290(local_134);\n  uVar1 = *(uint *)(param_2 + 0xc) >> 3;\n  if (uVar1 != 0) {\n    uVar4 = 0;\n    do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);\n  }\n  FUN_0006a6c0(local_134,local_60);\n  local_60[0] = local_60[0] & 0xf8;\n  local_41 = local_41 & 0x7f | 0x40;\n  uVar2 = FUN_00053cc0(local_60,0x20);\n  uVar3 = FUN_0005e4a0(param_2 + 0x1c,uVar2);\n  FUN_00053760(uVar2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a39d0();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0005f720(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  undefined1 local_135;\n  undefined1 local_134 [212];\n  byte local_60 [31];\n  byte local_41;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f72d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00069290(local_134);\n  uVar1 = *(uint *)(param_2 + 0xc) >> 3;\n  if (uVar1 != 0) {\n    uVar4 = 0;\n    do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);\n  }\n  FUN_0006a6c0(local_134,local_60);\n  local_60[0] = local_60[0] & 0xf8;\n  local_41 = local_41 & 0x7f | 0x40;\n  uVar2 = FUN_00053cc0(local_60,0x20);\n  uVar3 = FUN_0005e4a0(param_2 + 0x1c,uVar2);\n  FUN_00053760(uVar2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a39d0();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_135;" type_identifier identifier ;) (declaration "undefined1 local_134 [212];" type_identifier (array_declarator "local_134 [212]" identifier [ number_literal ]) ;) (declaration "byte local_60 [31];" type_identifier (array_declarator "local_60 [31]" identifier [ number_literal ]) ;) (declaration "byte local_41;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5f72d;" (assignment_expression "uStack_14 = 0x5f72d" 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_00069290(local_134);" (call_expression "FUN_00069290(local_134)" identifier (argument_list "(local_134)" ( identifier ))) ;) (expression_statement "uVar1 = *(uint *)(param_2 + 0xc) >> 3;" (assignment_expression "uVar1 = *(uint *)(param_2 + 0xc) >> 3" identifier = (binary_expression "*(uint *)(param_2 + 0xc) >> 3" (pointer_expression "*(uint *)(param_2 + 0xc)" * (cast_expression "(uint *)(param_2 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) >> number_literal)) ;) (if_statement "if (uVar1 != 0) {\n    uVar4 = 0;\n    do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = 0;\n    do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);" do (compound_statement "{\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    }" { (expression_statement "uVar5 = uVar4 + 1;" (assignment_expression "uVar5 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "local_135 = FUN_00053ee0(param_1,uVar4);" (assignment_expression "local_135 = FUN_00053ee0(param_1,uVar4)" identifier = (call_expression "FUN_00053ee0(param_1,uVar4)" identifier (argument_list "(param_1,uVar4)" ( identifier , identifier )))) ;) (expression_statement "FUN_00069370(local_134,&local_135,1);" (call_expression "FUN_00069370(local_134,&local_135,1)" identifier (argument_list "(local_134,&local_135,1)" ( identifier , (pointer_expression "&local_135" & identifier) , number_literal ))) ;) (expression_statement "uVar4 = uVar5;" (assignment_expression "uVar4 = uVar5" identifier = identifier) ;) }) while (parenthesized_expression "(uVar1 != uVar5)" ( (binary_expression "uVar1 != uVar5" identifier != identifier) )) ;) })) (expression_statement "FUN_0006a6c0(local_134,local_60);" (call_expression "FUN_0006a6c0(local_134,local_60)" identifier (argument_list "(local_134,local_60)" ( identifier , identifier ))) ;) (expression_statement "local_60[0] = local_60[0] & 0xf8;" (assignment_expression "local_60[0] = local_60[0] & 0xf8" (subscript_expression "local_60[0]" identifier [ number_literal ]) = (binary_expression "local_60[0] & 0xf8" (subscript_expression "local_60[0]" identifier [ number_literal ]) & number_literal)) ;) (expression_statement "local_41 = local_41 & 0x7f | 0x40;" (assignment_expression "local_41 = local_41 & 0x7f | 0x40" identifier = (binary_expression "local_41 & 0x7f | 0x40" (binary_expression "local_41 & 0x7f" identifier & number_literal) | number_literal)) ;) (expression_statement "uVar2 = FUN_00053cc0(local_60,0x20);" (assignment_expression "uVar2 = FUN_00053cc0(local_60,0x20)" identifier = (call_expression "FUN_00053cc0(local_60,0x20)" identifier (argument_list "(local_60,0x20)" ( identifier , number_literal )))) ;) (expression_statement "uVar3 = FUN_0005e4a0(param_2 + 0x1c,uVar2);" (assignment_expression "uVar3 = FUN_0005e4a0(param_2 + 0x1c,uVar2)" identifier = (call_expression "FUN_0005e4a0(param_2 + 0x1c,uVar2)" identifier (argument_list "(param_2 + 0x1c,uVar2)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) , identifier )))) ;) (expression_statement "FUN_00053760(uVar2);" (call_expression "FUN_00053760(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\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 uVar3;\n  }" { (return_statement "return uVar3;" 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: Enum "anon_enum_32": Some values do not have unique names */\n\nec_point * __regparm3 ec_public(Bignum privateKey,ec_curve *curve)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  Bignum_conflict b_00;\n  ec_point *peVar4;\n  uint i;\n  uint uVar5;\n  int in_GS_OFFSET;\n  uchar b;\n  SHA512_State s;\n  uchar hash [64];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  SHA512_Init((SHA512_CTX *)&s);\n  uVar2 = curve->fieldBits >> 3;\n  if (uVar2 != 0) {\n    i = 0;\n    do {\n      uVar5 = i + 1;\n      iVar3 = bignum_byte((Bignum_conflict)privateKey,i);\n      b = (uchar)iVar3;\n      SHA512_Bytes(&s,&b,1);\n      i = uVar5;\n    } while (uVar2 != uVar5);\n  }\n  SHA512_Final(&s,hash);\n  hash[0] = hash[0] & 0xf8;\n  hash[0x1f] = hash[0x1f] & 0x7f | 0x40;\n  b_00 = bignum_from_bytes_le(hash,0x20);\n  peVar4 = ecp_mul(&(curve->field_5).m.G,b_00);\n  freebn(b_00);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return peVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (ERROR "ec_point * __regparm3 ec_public(Bignum privateKey,ec_curve *curve)" (binary_expression "ec_point * __regparm3 ec_public(Bignum privateKey,ec_curve *curve)" identifier * (ERROR "__regparm3" identifier) (call_expression "ec_public(Bignum privateKey,ec_curve *curve)" identifier (argument_list "(Bignum privateKey,ec_curve *curve)" ( (ERROR "Bignum" identifier) identifier , (binary_expression "ec_curve *curve" identifier * identifier) ))))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  Bignum_conflict b_00;\n  ec_point *peVar4;\n  uint i;\n  uint uVar5;\n  int in_GS_OFFSET;\n  uchar b;\n  SHA512_State s;\n  uchar hash [64];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  SHA512_Init((SHA512_CTX *)&s);\n  uVar2 = curve->fieldBits >> 3;\n  if (uVar2 != 0) {\n    i = 0;\n    do {\n      uVar5 = i + 1;\n      iVar3 = bignum_byte((Bignum_conflict)privateKey,i);\n      b = (uchar)iVar3;\n      SHA512_Bytes(&s,&b,1);\n      i = uVar5;\n    } while (uVar2 != uVar5);\n  }\n  SHA512_Final(&s,hash);\n  hash[0] = hash[0] & 0xf8;\n  hash[0x1f] = hash[0x1f] & 0x7f | 0x40;\n  b_00 = bignum_from_bytes_le(hash,0x20);\n  peVar4 = ecp_mul(&(curve->field_5).m.G,b_00);\n  freebn(b_00);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return peVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "Bignum_conflict b_00;" type_identifier identifier ;) (declaration "ec_point *peVar4;" type_identifier (pointer_declarator "*peVar4" * identifier) ;) (declaration "uint i;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uchar b;" type_identifier identifier ;) (declaration "SHA512_State s;" type_identifier identifier ;) (declaration "uchar hash [64];" type_identifier (array_declarator "hash [64]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(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 "SHA512_Init((SHA512_CTX *)&s);" (call_expression "SHA512_Init((SHA512_CTX *)&s)" identifier (argument_list "((SHA512_CTX *)&s)" ( (cast_expression "(SHA512_CTX *)&s" ( (type_descriptor "SHA512_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s" & identifier)) ))) ;) (expression_statement "uVar2 = curve->fieldBits >> 3;" (assignment_expression "uVar2 = curve->fieldBits >> 3" identifier = (binary_expression "curve->fieldBits >> 3" (field_expression "curve->fieldBits" identifier -> field_identifier) >> number_literal)) ;) (if_statement "if (uVar2 != 0) {\n    i = 0;\n    do {\n      uVar5 = i + 1;\n      iVar3 = bignum_byte((Bignum_conflict)privateKey,i);\n      b = (uchar)iVar3;\n      SHA512_Bytes(&s,&b,1);\n      i = uVar5;\n    } while (uVar2 != uVar5);\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    i = 0;\n    do {\n      uVar5 = i + 1;\n      iVar3 = bignum_byte((Bignum_conflict)privateKey,i);\n      b = (uchar)iVar3;\n      SHA512_Bytes(&s,&b,1);\n      i = uVar5;\n    } while (uVar2 != uVar5);\n  }" { (expression_statement "i = 0;" (assignment_expression "i = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar5 = i + 1;\n      iVar3 = bignum_byte((Bignum_conflict)privateKey,i);\n      b = (uchar)iVar3;\n      SHA512_Bytes(&s,&b,1);\n      i = uVar5;\n    } while (uVar2 != uVar5);" do (compound_statement "{\n      uVar5 = i + 1;\n      iVar3 = bignum_byte((Bignum_conflict)privateKey,i);\n      b = (uchar)iVar3;\n      SHA512_Bytes(&s,&b,1);\n      i = uVar5;\n    }" { (expression_statement "uVar5 = i + 1;" (assignment_expression "uVar5 = i + 1" identifier = (binary_expression "i + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = bignum_byte((Bignum_conflict)privateKey,i);" (assignment_expression "iVar3 = bignum_byte((Bignum_conflict)privateKey,i)" identifier = (call_expression "bignum_byte((Bignum_conflict)privateKey,i)" identifier (argument_list "((Bignum_conflict)privateKey,i)" ( (cast_expression "(Bignum_conflict)privateKey" ( (type_descriptor "Bignum_conflict" type_identifier) ) identifier) , identifier )))) ;) (expression_statement "b = (uchar)iVar3;" (assignment_expression "b = (uchar)iVar3" identifier = (cast_expression "(uchar)iVar3" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "SHA512_Bytes(&s,&b,1);" (call_expression "SHA512_Bytes(&s,&b,1)" identifier (argument_list "(&s,&b,1)" ( (pointer_expression "&s" & identifier) , (pointer_expression "&b" & identifier) , number_literal ))) ;) (expression_statement "i = uVar5;" (assignment_expression "i = uVar5" identifier = identifier) ;) }) while (parenthesized_expression "(uVar2 != uVar5)" ( (binary_expression "uVar2 != uVar5" identifier != identifier) )) ;) })) (expression_statement "SHA512_Final(&s,hash);" (call_expression "SHA512_Final(&s,hash)" identifier (argument_list "(&s,hash)" ( (pointer_expression "&s" & identifier) , identifier ))) ;) (expression_statement "hash[0] = hash[0] & 0xf8;" (assignment_expression "hash[0] = hash[0] & 0xf8" (subscript_expression "hash[0]" identifier [ number_literal ]) = (binary_expression "hash[0] & 0xf8" (subscript_expression "hash[0]" identifier [ number_literal ]) & number_literal)) ;) (expression_statement "hash[0x1f] = hash[0x1f] & 0x7f | 0x40;" (assignment_expression "hash[0x1f] = hash[0x1f] & 0x7f | 0x40" (subscript_expression "hash[0x1f]" identifier [ number_literal ]) = (binary_expression "hash[0x1f] & 0x7f | 0x40" (binary_expression "hash[0x1f] & 0x7f" (subscript_expression "hash[0x1f]" identifier [ number_literal ]) & number_literal) | number_literal)) ;) (expression_statement "b_00 = bignum_from_bytes_le(hash,0x20);" (assignment_expression "b_00 = bignum_from_bytes_le(hash,0x20)" identifier = (call_expression "bignum_from_bytes_le(hash,0x20)" identifier (argument_list "(hash,0x20)" ( identifier , number_literal )))) ;) (expression_statement "peVar4 = ecp_mul(&(curve->field_5).m.G,b_00);" (assignment_expression "peVar4 = ecp_mul(&(curve->field_5).m.G,b_00)" identifier = (call_expression "ecp_mul(&(curve->field_5).m.G,b_00)" identifier (argument_list "(&(curve->field_5).m.G,b_00)" ( (pointer_expression "&(curve->field_5).m.G" & (field_expression "(curve->field_5).m.G" (field_expression "(curve->field_5).m" (parenthesized_expression "(curve->field_5)" ( (field_expression "curve->field_5" identifier -> field_identifier) )) . field_identifier) . field_identifier)) , identifier )))) ;) (expression_statement "freebn(b_00);" (call_expression "freebn(b_00)" identifier (argument_list "(b_00)" ( identifier ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return peVar4;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(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 peVar4;\n  }" { (return_statement "return peVar4;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))
(translation_unit "undefined4 __regparm3 FUN_0005f720(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  undefined1 local_135;\n  undefined1 local_134 [212];\n  byte local_60 [31];\n  byte local_41;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f72d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00069290(local_134);\n  uVar1 = *(uint *)(param_2 + 0xc) >> 3;\n  if (uVar1 != 0) {\n    uVar4 = 0;\n    do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);\n  }\n  FUN_0006a6c0(local_134,local_60);\n  local_60[0] = local_60[0] & 0xf8;\n  local_41 = local_41 & 0x7f | 0x40;\n  uVar2 = FUN_00053cc0(local_60,0x20);\n  uVar3 = FUN_0005e4a0(param_2 + 0x1c,uVar2);\n  FUN_00053760(uVar2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    \n  FUN_000a39d0();\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0005f720(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  undefined1 local_135;\n  undefined1 local_134 [212];\n  byte local_60 [31];\n  byte local_41;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f72d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00069290(local_134);\n  uVar1 = *(uint *)(param_2 + 0xc) >> 3;\n  if (uVar1 != 0) {\n    uVar4 = 0;\n    do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);\n  }\n  FUN_0006a6c0(local_134,local_60);\n  local_60[0] = local_60[0] & 0xf8;\n  local_41 = local_41 & 0x7f | 0x40;\n  uVar2 = FUN_00053cc0(local_60,0x20);\n  uVar3 = FUN_0005e4a0(param_2 + 0x1c,uVar2);\n  FUN_00053760(uVar2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    \n  FUN_000a39d0();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0005f720(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  undefined1 local_135;\n  undefined1 local_134 [212];\n  byte local_60 [31];\n  byte local_41;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f72d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00069290(local_134);\n  uVar1 = *(uint *)(param_2 + 0xc) >> 3;\n  if (uVar1 != 0) {\n    uVar4 = 0;\n    do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);\n  }\n  FUN_0006a6c0(local_134,local_60);\n  local_60[0] = local_60[0] & 0xf8;\n  local_41 = local_41 & 0x7f | 0x40;\n  uVar2 = FUN_00053cc0(local_60,0x20);\n  uVar3 = FUN_0005e4a0(param_2 + 0x1c,uVar2);\n  FUN_00053760(uVar2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    \n  FUN_000a39d0();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_135;" type_identifier identifier ;) (declaration "undefined1 local_134 [212];" type_identifier (array_declarator "local_134 [212]" identifier [ number_literal ]) ;) (declaration "byte local_60 [31];" type_identifier (array_declarator "local_60 [31]" identifier [ number_literal ]) ;) (declaration "byte local_41;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x5f72d;" (assignment_expression "uStack_14 = 0x5f72d" 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_00069290(local_134);" (call_expression "FUN_00069290(local_134)" identifier (argument_list "(local_134)" ( identifier ))) ;) (expression_statement "uVar1 = *(uint *)(param_2 + 0xc) >> 3;" (assignment_expression "uVar1 = *(uint *)(param_2 + 0xc) >> 3" identifier = (binary_expression "*(uint *)(param_2 + 0xc) >> 3" (pointer_expression "*(uint *)(param_2 + 0xc)" * (cast_expression "(uint *)(param_2 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) >> number_literal)) ;) (if_statement "if (uVar1 != 0) {\n    uVar4 = 0;\n    do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);\n  }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = 0;\n    do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);" do (compound_statement "{\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    }" { (expression_statement "uVar5 = uVar4 + 1;" (assignment_expression "uVar5 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "local_135 = FUN_00053ee0(param_1,uVar4);" (assignment_expression "local_135 = FUN_00053ee0(param_1,uVar4)" identifier = (call_expression "FUN_00053ee0(param_1,uVar4)" identifier (argument_list "(param_1,uVar4)" ( identifier , identifier )))) ;) (expression_statement "FUN_00069370(local_134,&local_135,1);" (call_expression "FUN_00069370(local_134,&local_135,1)" identifier (argument_list "(local_134,&local_135,1)" ( identifier , (pointer_expression "&local_135" & identifier) , number_literal ))) ;) (expression_statement "uVar4 = uVar5;" (assignment_expression "uVar4 = uVar5" identifier = identifier) ;) }) while (parenthesized_expression "(uVar1 != uVar5)" ( (binary_expression "uVar1 != uVar5" identifier != identifier) )) ;) })) (expression_statement "FUN_0006a6c0(local_134,local_60);" (call_expression "FUN_0006a6c0(local_134,local_60)" identifier (argument_list "(local_134,local_60)" ( identifier , identifier ))) ;) (expression_statement "local_60[0] = local_60[0] & 0xf8;" (assignment_expression "local_60[0] = local_60[0] & 0xf8" (subscript_expression "local_60[0]" identifier [ number_literal ]) = (binary_expression "local_60[0] & 0xf8" (subscript_expression "local_60[0]" identifier [ number_literal ]) & number_literal)) ;) (expression_statement "local_41 = local_41 & 0x7f | 0x40;" (assignment_expression "local_41 = local_41 & 0x7f | 0x40" identifier = (binary_expression "local_41 & 0x7f | 0x40" (binary_expression "local_41 & 0x7f" identifier & number_literal) | number_literal)) ;) (expression_statement "uVar2 = FUN_00053cc0(local_60,0x20);" (assignment_expression "uVar2 = FUN_00053cc0(local_60,0x20)" identifier = (call_expression "FUN_00053cc0(local_60,0x20)" identifier (argument_list "(local_60,0x20)" ( identifier , number_literal )))) ;) (expression_statement "uVar3 = FUN_0005e4a0(param_2 + 0x1c,uVar2);" (assignment_expression "uVar3 = FUN_0005e4a0(param_2 + 0x1c,uVar2)" identifier = (call_expression "FUN_0005e4a0(param_2 + 0x1c,uVar2)" identifier (argument_list "(param_2 + 0x1c,uVar2)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) , identifier )))) ;) (expression_statement "FUN_00053760(uVar2);" (call_expression "FUN_00053760(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\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 uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) })) (expression_statement "FUN_000a39d0();" (call_expression "FUN_000a39d0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT & LIT) | LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (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 "undefined4 __regparm3 FUN_0005f720(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  undefined1 local_135;\n  undefined1 local_134 [212];\n  byte local_60 [31];\n  byte local_41;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f72d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00069290(local_134);\n  uVar1 = *(uint *)(param_2 + 0xc) >> 3;\n  if (uVar1 != 0) {\n    uVar4 = 0;\n    do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);\n  }\n  FUN_0006a6c0(local_134,local_60);\n  local_60[0] = local_60[0] & 0xf8;\n  local_41 = local_41 & 0x7f | 0x40;\n  uVar2 = FUN_00053cc0(local_60,0x20);\n  uVar3 = FUN_0005e4a0(param_2 + 0x1c,uVar2);\n  FUN_00053760(uVar2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    \n  FUN_000a39d0();\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0005f720(undefined4 param_1,int param_2)" (identifier "FUN_0005f720") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  uint uVar5;\n  int in_GS_OFFSET;\n  undefined1 local_135;\n  undefined1 local_134 [212];\n  byte local_60 [31];\n  byte local_41;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x5f72d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00069290(local_134);\n  uVar1 = *(uint *)(param_2 + 0xc) >> 3;\n  if (uVar1 != 0) {\n    uVar4 = 0;\n    do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);\n  }\n  FUN_0006a6c0(local_134,local_60);\n  local_60[0] = local_60[0] & 0xf8;\n  local_41 = local_41 & 0x7f | 0x40;\n  uVar2 = FUN_00053cc0(local_60,0x20);\n  uVar3 = FUN_0005e4a0(param_2 + 0x1c,uVar2);\n  FUN_00053760(uVar2);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    \n  FUN_000a39d0();\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_135;" (type_identifier "undefined1") (identifier "local_135") (; ";")) (declaration "undefined1 local_134 [212];" (type_identifier "undefined1") (array_declarator "local_134 [212]" (identifier "local_134") ([ "[") (number_literal "212") (] "]")) (; ";")) (declaration "byte local_60 [31];" (type_identifier "byte") (array_declarator "local_60 [31]" (identifier "local_60") ([ "[") (number_literal "31") (] "]")) (; ";")) (declaration "byte local_41;" (type_identifier "byte") (identifier "local_41") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x5f72d;" (assignment_expression "uStack_14 = 0x5f72d" (identifier "uStack_14") (= "=") (number_literal "0x5f72d")) (; ";")) (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_00069290(local_134);" (call_expression "FUN_00069290(local_134)" (identifier "FUN_00069290") (argument_list "(local_134)" (( "(") (identifier "local_134") () ")"))) (; ";")) (expression_statement "uVar1 = *(uint *)(param_2 + 0xc) >> 3;" (assignment_expression "uVar1 = *(uint *)(param_2 + 0xc) >> 3" (identifier "uVar1") (= "=") (binary_expression "*(uint *)(param_2 + 0xc) >> 3" (pointer_expression "*(uint *)(param_2 + 0xc)" (* "*") (cast_expression "(uint *)(param_2 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (>> ">>") (number_literal "3"))) (; ";")) (if_statement "if (uVar1 != 0) {\n    uVar4 = 0;\n    do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);\n  }" (if "if") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = 0;\n    do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);\n  }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    } while (uVar1 != uVar5);" (do "do") (compound_statement "{\n      uVar5 = uVar4 + 1;\n      local_135 = FUN_00053ee0(param_1,uVar4);\n      FUN_00069370(local_134,&local_135,1);\n      uVar4 = uVar5;\n    }" ({ "{") (expression_statement "uVar5 = uVar4 + 1;" (assignment_expression "uVar5 = uVar4 + 1" (identifier "uVar5") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_135 = FUN_00053ee0(param_1,uVar4);" (assignment_expression "local_135 = FUN_00053ee0(param_1,uVar4)" (identifier "local_135") (= "=") (call_expression "FUN_00053ee0(param_1,uVar4)" (identifier "FUN_00053ee0") (argument_list "(param_1,uVar4)" (( "(") (identifier "param_1") (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "FUN_00069370(local_134,&local_135,1);" (call_expression "FUN_00069370(local_134,&local_135,1)" (identifier "FUN_00069370") (argument_list "(local_134,&local_135,1)" (( "(") (identifier "local_134") (, ",") (pointer_expression "&local_135" (& "&") (identifier "local_135")) (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "uVar4 = uVar5;" (assignment_expression "uVar4 = uVar5" (identifier "uVar4") (= "=") (identifier "uVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar1 != uVar5)" (( "(") (binary_expression "uVar1 != uVar5" (identifier "uVar1") (!= "!=") (identifier "uVar5")) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_0006a6c0(local_134,local_60);" (call_expression "FUN_0006a6c0(local_134,local_60)" (identifier "FUN_0006a6c0") (argument_list "(local_134,local_60)" (( "(") (identifier "local_134") (, ",") (identifier "local_60") () ")"))) (; ";")) (expression_statement "local_60[0] = local_60[0] & 0xf8;" (assignment_expression "local_60[0] = local_60[0] & 0xf8" (subscript_expression "local_60[0]" (identifier "local_60") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "local_60[0] & 0xf8" (subscript_expression "local_60[0]" (identifier "local_60") ([ "[") (number_literal "0") (] "]")) (& "&") (number_literal "0xf8"))) (; ";")) (expression_statement "local_41 = local_41 & 0x7f | 0x40;" (assignment_expression "local_41 = local_41 & 0x7f | 0x40" (identifier "local_41") (= "=") (binary_expression "local_41 & 0x7f | 0x40" (binary_expression "local_41 & 0x7f" (identifier "local_41") (& "&") (number_literal "0x7f")) (| "|") (number_literal "0x40"))) (; ";")) (expression_statement "uVar2 = FUN_00053cc0(local_60,0x20);" (assignment_expression "uVar2 = FUN_00053cc0(local_60,0x20)" (identifier "uVar2") (= "=") (call_expression "FUN_00053cc0(local_60,0x20)" (identifier "FUN_00053cc0") (argument_list "(local_60,0x20)" (( "(") (identifier "local_60") (, ",") (number_literal "0x20") () ")")))) (; ";")) (expression_statement "uVar3 = FUN_0005e4a0(param_2 + 0x1c,uVar2);" (assignment_expression "uVar3 = FUN_0005e4a0(param_2 + 0x1c,uVar2)" (identifier "uVar3") (= "=") (call_expression "FUN_0005e4a0(param_2 + 0x1c,uVar2)" (identifier "FUN_0005e4a0") (argument_list "(param_2 + 0x1c,uVar2)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) (, ",") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "FUN_00053760(uVar2);" (call_expression "FUN_00053760(uVar2)" (identifier "FUN_00053760") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\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 uVar3;\n  }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (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: Enum "anon_enum_32": Some values do not have unique names */

type_3 * __regparm3 ec_public(Bignum privateKey,ec_curve *curve)

{
  int var_12;
  type_1 var_3;
  int iVar3;
  type_2 b_00;
  type_3 *peVar4;
  type_1 var_4;
  type_1 var_7;
  int var_1;
  type_4 b;
  type_5 s;
  type_4 hash [64];
  
  var_12 = *(int *)(var_1 + 0x14);
  var_2((type_6 *)&s);
  var_3 = curve->fieldBits >> 3;
  if (var_3 != 0) {
    var_4 = 0;
    do {
      var_7 = var_4 + 1;
      iVar3 = var_5((type_2)privateKey,var_4);
      b = (type_4)iVar3;
      var_6(&s,&b,1);
      var_4 = var_7;
    } while (var_3 != var_7);
  }
  var_8(&s,hash);
  hash[0] = hash[0] & 0xf8;
  hash[0x1f] = hash[0x1f] & 0x7f | 0x40;
  b_00 = var_9(hash,0x20);
  peVar4 = var_10(&(curve->field_5).m.G,b_00);
  var_11(b_00);
  if (var_12 == *(int *)(var_1 + 0x14)) {
    return peVar4;
  }
                    /* WARNING: Subroutine does not return */
  var_13();
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (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: (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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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 */

undefined4 __regparm3 MASKED(undefined4 param_1,int param_2)

{
  uint uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  uint uVar4;
  uint uVar5;
  int in_GS_OFFSET;
  undefined1 local_135;
  undefined1 local_134 [212];
  byte local_60 [31];
  byte local_41;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x5f72d;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_00069290(local_134);
  uVar1 = *(uint *)(param_2 + 0xc) >> 3;
  if (uVar1 != 0) {
    uVar4 = 0;
    do {
      uVar5 = uVar4 + 1;
      local_135 = FUN_00053ee0(param_1,uVar4);
      FUN_00069370(local_134,&local_135,1);
      uVar4 = uVar5;
    } while (uVar1 != uVar5);
  }
  FUN_0006a6c0(local_134,local_60);
  local_60[0] = local_60[0] & 0xf8;
  local_41 = local_41 & 0x7f | 0x40;
  uVar2 = FUN_00053cc0(local_60,0x20);
  uVar3 = FUN_0005e4a0(param_2 + 0x1c,uVar2);
  FUN_00053760(uVar2);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a39d0();
}

