
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void initialise_wcurve(ec_curve *curve,int bits,uchar *p,uchar *a,uchar *b,uchar *n,uchar *Gx,
                      uchar *Gy)

{
  Bignum_conflict pBVar1;
  int iVar2;
  
  iVar2 = bits + 7;
  if (-1 < bits) {
    iVar2 = bits;
  }
  iVar2 = ((iVar2 >> 3) + 1) - (uint)((bits & 7U) == 0);
  curve->type = ADDRTYPE_UNSPEC;
  curve->fieldBits = bits;
  pBVar1 = bignum_from_bytes(p,iVar2);
  curve->p = pBVar1;
  pBVar1 = bignum_from_bytes(a,iVar2);
  (curve->field_5).w.a = pBVar1;
  pBVar1 = bignum_from_bytes(b,iVar2);
  (curve->field_5).w.b = pBVar1;
  pBVar1 = bignum_from_bytes(n,iVar2);
  (curve->field_5).w.n = pBVar1;
  pBVar1 = bignum_from_bytes(Gx,iVar2);
  (curve->field_5).w.G.x = pBVar1;
  pBVar1 = bignum_from_bytes(Gy,iVar2);
  (curve->field_5).w.G.y = pBVar1;
  (curve->field_5).w.G.curve = curve;
  *(undefined1 *)((long)&curve->field_5 + 0x38) = 0;
  return;
}



void FUN_00140172(undefined4 *param_1,uint param_2,undefined8 param_3,undefined8 param_4,
                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8)

{
  undefined8 uVar1;
  uint uVar2;
  int iVar3;
  
  uVar2 = param_2 + 7;
  if (-1 < (int)param_2) {
    uVar2 = param_2;
  }
  iVar3 = (((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0);
  *param_1 = 0;
  param_1[6] = param_2;
  uVar1 = FUN_001376a2(param_3,iVar3);
  *(undefined8 *)(param_1 + 8) = uVar1;
  uVar1 = FUN_001376a2(param_4,iVar3);
  *(undefined8 *)(param_1 + 10) = uVar1;
  uVar1 = FUN_001376a2(param_5,iVar3);
  *(undefined8 *)(param_1 + 0xc) = uVar1;
  uVar1 = FUN_001376a2(param_6,iVar3);
  *(undefined8 *)(param_1 + 0xe) = uVar1;
  uVar1 = FUN_001376a2(param_7,iVar3);
  *(undefined8 *)(param_1 + 0x12) = uVar1;
  uVar1 = FUN_001376a2(param_8,iVar3);
  *(undefined8 *)(param_1 + 0x14) = uVar1;
  *(undefined4 **)(param_1 + 0x10) = param_1;
  *(undefined1 *)(param_1 + 0x18) = 0;
  return;
}


PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
MOV RBP,RDI
MOV R14,RCX
MOV R13,R8
MOV R12,R9
LEA EBX,[RSI + 0x7]
TEST ESI,ESI
CMOVNS EBX,ESI
SAR EBX,0x3
MOV EAX,ESI
AND EAX,0x7
CMP EAX,0x1
SBB EBX,-0x1
MOV dword ptr [RDI],0x0
MOV dword ptr [RDI + 0x18],ESI
MOV ESI,EBX
MOV RDI,RDX
CALL 0x001376a2
MOV qword ptr [RBP + 0x20],RAX
MOV ESI,EBX
MOV RDI,R14
CALL 0x001376a2
MOV qword ptr [RBP + 0x28],RAX
MOV ESI,EBX
MOV RDI,R13
CALL 0x001376a2
MOV qword ptr [RBP + 0x30],RAX
MOV ESI,EBX
MOV RDI,R12
CALL 0x001376a2
MOV qword ptr [RBP + 0x38],RAX
MOV ESI,EBX
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x001376a2
MOV qword ptr [RBP + 0x48],RAX
MOV ESI,EBX
MOV RDI,qword ptr [RSP + 0x38]
CALL 0x001376a2
MOV qword ptr [RBP + 0x50],RAX
MOV qword ptr [RBP + 0x40],RBP
MOV byte ptr [RBP + 0x60],0x0
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
(translation_unit "void FUN_00140172(undefined4 *param_1,uint param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8)\n\n{\n  undefined8 uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar2 = param_2 + 7;\n  if (-1 < (int)param_2) {\n    uVar2 = param_2;\n  }\n  iVar3 = (((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0);\n  *param_1 = 0;\n  param_1[6] = param_2;\n  uVar1 = FUN_001376a2(param_3,iVar3);\n  *(undefined8 *)(param_1 + 8) = uVar1;\n  uVar1 = FUN_001376a2(param_4,iVar3);\n  *(undefined8 *)(param_1 + 10) = uVar1;\n  uVar1 = FUN_001376a2(param_5,iVar3);\n  *(undefined8 *)(param_1 + 0xc) = uVar1;\n  uVar1 = FUN_001376a2(param_6,iVar3);\n  *(undefined8 *)(param_1 + 0xe) = uVar1;\n  uVar1 = FUN_001376a2(param_7,iVar3);\n  *(undefined8 *)(param_1 + 0x12) = uVar1;\n  uVar1 = FUN_001376a2(param_8,iVar3);\n  *(undefined8 *)(param_1 + 0x14) = uVar1;\n  *(undefined4 **)(param_1 + 0x10) = param_1;\n  *(undefined1 *)(param_1 + 0x18) = 0;\n  return;\n}\n\n" (function_definition "void FUN_00140172(undefined4 *param_1,uint param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8)\n\n{\n  undefined8 uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar2 = param_2 + 7;\n  if (-1 < (int)param_2) {\n    uVar2 = param_2;\n  }\n  iVar3 = (((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0);\n  *param_1 = 0;\n  param_1[6] = param_2;\n  uVar1 = FUN_001376a2(param_3,iVar3);\n  *(undefined8 *)(param_1 + 8) = uVar1;\n  uVar1 = FUN_001376a2(param_4,iVar3);\n  *(undefined8 *)(param_1 + 10) = uVar1;\n  uVar1 = FUN_001376a2(param_5,iVar3);\n  *(undefined8 *)(param_1 + 0xc) = uVar1;\n  uVar1 = FUN_001376a2(param_6,iVar3);\n  *(undefined8 *)(param_1 + 0xe) = uVar1;\n  uVar1 = FUN_001376a2(param_7,iVar3);\n  *(undefined8 *)(param_1 + 0x12) = uVar1;\n  uVar1 = FUN_001376a2(param_8,iVar3);\n  *(undefined8 *)(param_1 + 0x14) = uVar1;\n  *(undefined4 **)(param_1 + 0x10) = param_1;\n  *(undefined1 *)(param_1 + 0x18) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00140172(undefined4 *param_1,uint param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8)" identifier (parameter_list "(undefined4 *param_1,uint param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "undefined8 param_8" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar2 = param_2 + 7;\n  if (-1 < (int)param_2) {\n    uVar2 = param_2;\n  }\n  iVar3 = (((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0);\n  *param_1 = 0;\n  param_1[6] = param_2;\n  uVar1 = FUN_001376a2(param_3,iVar3);\n  *(undefined8 *)(param_1 + 8) = uVar1;\n  uVar1 = FUN_001376a2(param_4,iVar3);\n  *(undefined8 *)(param_1 + 10) = uVar1;\n  uVar1 = FUN_001376a2(param_5,iVar3);\n  *(undefined8 *)(param_1 + 0xc) = uVar1;\n  uVar1 = FUN_001376a2(param_6,iVar3);\n  *(undefined8 *)(param_1 + 0xe) = uVar1;\n  uVar1 = FUN_001376a2(param_7,iVar3);\n  *(undefined8 *)(param_1 + 0x12) = uVar1;\n  uVar1 = FUN_001376a2(param_8,iVar3);\n  *(undefined8 *)(param_1 + 0x14) = uVar1;\n  *(undefined4 **)(param_1 + 0x10) = param_1;\n  *(undefined1 *)(param_1 + 0x18) = 0;\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "uVar2 = param_2 + 7;" (assignment_expression "uVar2 = param_2 + 7" identifier = (binary_expression "param_2 + 7" identifier + number_literal)) ;) (if_statement "if (-1 < (int)param_2) {\n    uVar2 = param_2;\n  }" if (parenthesized_expression "(-1 < (int)param_2)" ( (binary_expression "-1 < (int)param_2" number_literal < (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar2 = param_2;\n  }" { (expression_statement "uVar2 = param_2;" (assignment_expression "uVar2 = param_2" identifier = identifier) ;) })) (expression_statement "iVar3 = (((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0);" (assignment_expression "iVar3 = (((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0)" identifier = (binary_expression "(((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0)" (parenthesized_expression "(((int)uVar2 >> 3) + 1)" ( (binary_expression "((int)uVar2 >> 3) + 1" (parenthesized_expression "((int)uVar2 >> 3)" ( (binary_expression "(int)uVar2 >> 3" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + number_literal) )) - (call_expression "(uint)((param_2 & 7) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((param_2 & 7) == 0)" ( (binary_expression "(param_2 & 7) == 0" (parenthesized_expression "(param_2 & 7)" ( (binary_expression "param_2 & 7" identifier & number_literal) )) == number_literal) ))))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[6] = param_2;" (assignment_expression "param_1[6] = param_2" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = FUN_001376a2(param_3,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_3,iVar3)" identifier = (call_expression "FUN_001376a2(param_3,iVar3)" identifier (argument_list "(param_3,iVar3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_001376a2(param_4,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_4,iVar3)" identifier = (call_expression "FUN_001376a2(param_4,iVar3)" identifier (argument_list "(param_4,iVar3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 10) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 10) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 10)" * (cast_expression "(undefined8 *)(param_1 + 10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_001376a2(param_5,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_5,iVar3)" identifier = (call_expression "FUN_001376a2(param_5,iVar3)" identifier (argument_list "(param_5,iVar3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0xc) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0xc) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0xc)" * (cast_expression "(undefined8 *)(param_1 + 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_001376a2(param_6,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_6,iVar3)" identifier = (call_expression "FUN_001376a2(param_6,iVar3)" identifier (argument_list "(param_6,iVar3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0xe) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0xe) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0xe)" * (cast_expression "(undefined8 *)(param_1 + 0xe)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe)" ( (binary_expression "param_1 + 0xe" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_001376a2(param_7,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_7,iVar3)" identifier = (call_expression "FUN_001376a2(param_7,iVar3)" identifier (argument_list "(param_7,iVar3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x12) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x12) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x12)" * (cast_expression "(undefined8 *)(param_1 + 0x12)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x12)" ( (binary_expression "param_1 + 0x12" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_001376a2(param_8,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_8,iVar3)" identifier = (call_expression "FUN_001376a2(param_8,iVar3)" identifier (argument_list "(param_8,iVar3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x14) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x14) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x14)" * (cast_expression "(undefined8 *)(param_1 + 0x14)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)(param_1 + 0x10) = param_1;" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = param_1" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x18)" * (cast_expression "(undefined1 *)(param_1 + 0x18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid initialise_wcurve(ec_curve *curve,int bits,uchar *p,uchar *a,uchar *b,uchar *n,uchar *Gx,\n                      uchar *Gy)\n\n{\n  Bignum_conflict pBVar1;\n  int iVar2;\n  \n  iVar2 = bits + 7;\n  if (-1 < bits) {\n    iVar2 = bits;\n  }\n  iVar2 = ((iVar2 >> 3) + 1) - (uint)((bits & 7U) == 0);\n  curve->type = ADDRTYPE_UNSPEC;\n  curve->fieldBits = bits;\n  pBVar1 = bignum_from_bytes(p,iVar2);\n  curve->p = pBVar1;\n  pBVar1 = bignum_from_bytes(a,iVar2);\n  (curve->field_5).w.a = pBVar1;\n  pBVar1 = bignum_from_bytes(b,iVar2);\n  (curve->field_5).w.b = pBVar1;\n  pBVar1 = bignum_from_bytes(n,iVar2);\n  (curve->field_5).w.n = pBVar1;\n  pBVar1 = bignum_from_bytes(Gx,iVar2);\n  (curve->field_5).w.G.x = pBVar1;\n  pBVar1 = bignum_from_bytes(Gy,iVar2);\n  (curve->field_5).w.G.y = pBVar1;\n  (curve->field_5).w.G.curve = curve;\n  *(undefined1 *)((long)&curve->field_5 + 0x38) = 0;\n  return;\n}\n\n" comment (function_definition "void initialise_wcurve(ec_curve *curve,int bits,uchar *p,uchar *a,uchar *b,uchar *n,uchar *Gx,\n                      uchar *Gy)\n\n{\n  Bignum_conflict pBVar1;\n  int iVar2;\n  \n  iVar2 = bits + 7;\n  if (-1 < bits) {\n    iVar2 = bits;\n  }\n  iVar2 = ((iVar2 >> 3) + 1) - (uint)((bits & 7U) == 0);\n  curve->type = ADDRTYPE_UNSPEC;\n  curve->fieldBits = bits;\n  pBVar1 = bignum_from_bytes(p,iVar2);\n  curve->p = pBVar1;\n  pBVar1 = bignum_from_bytes(a,iVar2);\n  (curve->field_5).w.a = pBVar1;\n  pBVar1 = bignum_from_bytes(b,iVar2);\n  (curve->field_5).w.b = pBVar1;\n  pBVar1 = bignum_from_bytes(n,iVar2);\n  (curve->field_5).w.n = pBVar1;\n  pBVar1 = bignum_from_bytes(Gx,iVar2);\n  (curve->field_5).w.G.x = pBVar1;\n  pBVar1 = bignum_from_bytes(Gy,iVar2);\n  (curve->field_5).w.G.y = pBVar1;\n  (curve->field_5).w.G.curve = curve;\n  *(undefined1 *)((long)&curve->field_5 + 0x38) = 0;\n  return;\n}" primitive_type (function_declarator "initialise_wcurve(ec_curve *curve,int bits,uchar *p,uchar *a,uchar *b,uchar *n,uchar *Gx,\n                      uchar *Gy)" identifier (parameter_list "(ec_curve *curve,int bits,uchar *p,uchar *a,uchar *b,uchar *n,uchar *Gx,\n                      uchar *Gy)" ( (parameter_declaration "ec_curve *curve" type_identifier (pointer_declarator "*curve" * identifier)) , (parameter_declaration "int bits" primitive_type identifier) , (parameter_declaration "uchar *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "uchar *a" type_identifier (pointer_declarator "*a" * identifier)) , (parameter_declaration "uchar *b" type_identifier (pointer_declarator "*b" * identifier)) , (parameter_declaration "uchar *n" type_identifier (pointer_declarator "*n" * identifier)) , (parameter_declaration "uchar *Gx" type_identifier (pointer_declarator "*Gx" * identifier)) , (parameter_declaration "uchar *Gy" type_identifier (pointer_declarator "*Gy" * identifier)) ))) (compound_statement "{\n  Bignum_conflict pBVar1;\n  int iVar2;\n  \n  iVar2 = bits + 7;\n  if (-1 < bits) {\n    iVar2 = bits;\n  }\n  iVar2 = ((iVar2 >> 3) + 1) - (uint)((bits & 7U) == 0);\n  curve->type = ADDRTYPE_UNSPEC;\n  curve->fieldBits = bits;\n  pBVar1 = bignum_from_bytes(p,iVar2);\n  curve->p = pBVar1;\n  pBVar1 = bignum_from_bytes(a,iVar2);\n  (curve->field_5).w.a = pBVar1;\n  pBVar1 = bignum_from_bytes(b,iVar2);\n  (curve->field_5).w.b = pBVar1;\n  pBVar1 = bignum_from_bytes(n,iVar2);\n  (curve->field_5).w.n = pBVar1;\n  pBVar1 = bignum_from_bytes(Gx,iVar2);\n  (curve->field_5).w.G.x = pBVar1;\n  pBVar1 = bignum_from_bytes(Gy,iVar2);\n  (curve->field_5).w.G.y = pBVar1;\n  (curve->field_5).w.G.curve = curve;\n  *(undefined1 *)((long)&curve->field_5 + 0x38) = 0;\n  return;\n}" { (declaration "Bignum_conflict pBVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = bits + 7;" (assignment_expression "iVar2 = bits + 7" identifier = (binary_expression "bits + 7" identifier + number_literal)) ;) (if_statement "if (-1 < bits) {\n    iVar2 = bits;\n  }" if (parenthesized_expression "(-1 < bits)" ( (binary_expression "-1 < bits" number_literal < identifier) )) (compound_statement "{\n    iVar2 = bits;\n  }" { (expression_statement "iVar2 = bits;" (assignment_expression "iVar2 = bits" identifier = identifier) ;) })) (expression_statement "iVar2 = ((iVar2 >> 3) + 1) - (uint)((bits & 7U) == 0);" (assignment_expression "iVar2 = ((iVar2 >> 3) + 1) - (uint)((bits & 7U) == 0)" identifier = (binary_expression "((iVar2 >> 3) + 1) - (uint)((bits & 7U) == 0)" (parenthesized_expression "((iVar2 >> 3) + 1)" ( (binary_expression "(iVar2 >> 3) + 1" (parenthesized_expression "(iVar2 >> 3)" ( (binary_expression "iVar2 >> 3" identifier >> number_literal) )) + number_literal) )) - (call_expression "(uint)((bits & 7U) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((bits & 7U) == 0)" ( (binary_expression "(bits & 7U) == 0" (parenthesized_expression "(bits & 7U)" ( (binary_expression "bits & 7U" identifier & number_literal) )) == number_literal) ))))) ;) (expression_statement "curve->type = ADDRTYPE_UNSPEC;" (assignment_expression "curve->type = ADDRTYPE_UNSPEC" (field_expression "curve->type" identifier -> field_identifier) = identifier) ;) (expression_statement "curve->fieldBits = bits;" (assignment_expression "curve->fieldBits = bits" (field_expression "curve->fieldBits" identifier -> field_identifier) = identifier) ;) (expression_statement "pBVar1 = bignum_from_bytes(p,iVar2);" (assignment_expression "pBVar1 = bignum_from_bytes(p,iVar2)" identifier = (call_expression "bignum_from_bytes(p,iVar2)" identifier (argument_list "(p,iVar2)" ( identifier , identifier )))) ;) (expression_statement "curve->p = pBVar1;" (assignment_expression "curve->p = pBVar1" (field_expression "curve->p" identifier -> field_identifier) = identifier) ;) (expression_statement "pBVar1 = bignum_from_bytes(a,iVar2);" (assignment_expression "pBVar1 = bignum_from_bytes(a,iVar2)" identifier = (call_expression "bignum_from_bytes(a,iVar2)" identifier (argument_list "(a,iVar2)" ( identifier , identifier )))) ;) (expression_statement "(curve->field_5).w.a = pBVar1;" (assignment_expression "(curve->field_5).w.a = pBVar1" (field_expression "(curve->field_5).w.a" (field_expression "(curve->field_5).w" (parenthesized_expression "(curve->field_5)" ( (field_expression "curve->field_5" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "pBVar1 = bignum_from_bytes(b,iVar2);" (assignment_expression "pBVar1 = bignum_from_bytes(b,iVar2)" identifier = (call_expression "bignum_from_bytes(b,iVar2)" identifier (argument_list "(b,iVar2)" ( identifier , identifier )))) ;) (expression_statement "(curve->field_5).w.b = pBVar1;" (assignment_expression "(curve->field_5).w.b = pBVar1" (field_expression "(curve->field_5).w.b" (field_expression "(curve->field_5).w" (parenthesized_expression "(curve->field_5)" ( (field_expression "curve->field_5" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "pBVar1 = bignum_from_bytes(n,iVar2);" (assignment_expression "pBVar1 = bignum_from_bytes(n,iVar2)" identifier = (call_expression "bignum_from_bytes(n,iVar2)" identifier (argument_list "(n,iVar2)" ( identifier , identifier )))) ;) (expression_statement "(curve->field_5).w.n = pBVar1;" (assignment_expression "(curve->field_5).w.n = pBVar1" (field_expression "(curve->field_5).w.n" (field_expression "(curve->field_5).w" (parenthesized_expression "(curve->field_5)" ( (field_expression "curve->field_5" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "pBVar1 = bignum_from_bytes(Gx,iVar2);" (assignment_expression "pBVar1 = bignum_from_bytes(Gx,iVar2)" identifier = (call_expression "bignum_from_bytes(Gx,iVar2)" identifier (argument_list "(Gx,iVar2)" ( identifier , identifier )))) ;) (expression_statement "(curve->field_5).w.G.x = pBVar1;" (assignment_expression "(curve->field_5).w.G.x = pBVar1" (field_expression "(curve->field_5).w.G.x" (field_expression "(curve->field_5).w.G" (field_expression "(curve->field_5).w" (parenthesized_expression "(curve->field_5)" ( (field_expression "curve->field_5" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "pBVar1 = bignum_from_bytes(Gy,iVar2);" (assignment_expression "pBVar1 = bignum_from_bytes(Gy,iVar2)" identifier = (call_expression "bignum_from_bytes(Gy,iVar2)" identifier (argument_list "(Gy,iVar2)" ( identifier , identifier )))) ;) (expression_statement "(curve->field_5).w.G.y = pBVar1;" (assignment_expression "(curve->field_5).w.G.y = pBVar1" (field_expression "(curve->field_5).w.G.y" (field_expression "(curve->field_5).w.G" (field_expression "(curve->field_5).w" (parenthesized_expression "(curve->field_5)" ( (field_expression "curve->field_5" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "(curve->field_5).w.G.curve = curve;" (assignment_expression "(curve->field_5).w.G.curve = curve" (field_expression "(curve->field_5).w.G.curve" (field_expression "(curve->field_5).w.G" (field_expression "(curve->field_5).w" (parenthesized_expression "(curve->field_5)" ( (field_expression "curve->field_5" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "*(undefined1 *)((long)&curve->field_5 + 0x38) = 0;" (assignment_expression "*(undefined1 *)((long)&curve->field_5 + 0x38) = 0" (pointer_expression "*(undefined1 *)((long)&curve->field_5 + 0x38)" * (cast_expression "(undefined1 *)((long)&curve->field_5 + 0x38)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&curve->field_5 + 0x38)" ( (binary_expression "(long)&curve->field_5 + 0x38" (cast_expression "(long)&curve->field_5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&curve->field_5" & (field_expression "curve->field_5" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00140172(undefined4 *param_1,uint param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8)\n\n{\n  undefined8 uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar2 = param_2 + 7;\n  if (-1 < (int)param_2) {\n    uVar2 = param_2;\n  }\n  iVar3 = (((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0);\n  *param_1 = 0;\n  param_1[6] = param_2;\n  uVar1 = FUN_001376a2(param_3,iVar3);\n  *(undefined8 *)(param_1 + 8) = uVar1;\n  uVar1 = FUN_001376a2(param_4,iVar3);\n  *(undefined8 *)(param_1 + 10) = uVar1;\n  uVar1 = FUN_001376a2(param_5,iVar3);\n  *(undefined8 *)(param_1 + 0xc) = uVar1;\n  uVar1 = FUN_001376a2(param_6,iVar3);\n  *(undefined8 *)(param_1 + 0xe) = uVar1;\n  uVar1 = FUN_001376a2(param_7,iVar3);\n  *(undefined8 *)(param_1 + 0x12) = uVar1;\n  uVar1 = FUN_001376a2(param_8,iVar3);\n  *(undefined8 *)(param_1 + 0x14) = uVar1;\n  *(undefined4 **)(param_1 + 0x10) = param_1;\n  *(undefined1 *)(param_1 + 0x18) = 0;\n  return;\n}\n\n" (function_definition "void FUN_00140172(undefined4 *param_1,uint param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8)\n\n{\n  undefined8 uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar2 = param_2 + 7;\n  if (-1 < (int)param_2) {\n    uVar2 = param_2;\n  }\n  iVar3 = (((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0);\n  *param_1 = 0;\n  param_1[6] = param_2;\n  uVar1 = FUN_001376a2(param_3,iVar3);\n  *(undefined8 *)(param_1 + 8) = uVar1;\n  uVar1 = FUN_001376a2(param_4,iVar3);\n  *(undefined8 *)(param_1 + 10) = uVar1;\n  uVar1 = FUN_001376a2(param_5,iVar3);\n  *(undefined8 *)(param_1 + 0xc) = uVar1;\n  uVar1 = FUN_001376a2(param_6,iVar3);\n  *(undefined8 *)(param_1 + 0xe) = uVar1;\n  uVar1 = FUN_001376a2(param_7,iVar3);\n  *(undefined8 *)(param_1 + 0x12) = uVar1;\n  uVar1 = FUN_001376a2(param_8,iVar3);\n  *(undefined8 *)(param_1 + 0x14) = uVar1;\n  *(undefined4 **)(param_1 + 0x10) = param_1;\n  *(undefined1 *)(param_1 + 0x18) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00140172(undefined4 *param_1,uint param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8)" identifier (parameter_list "(undefined4 *param_1,uint param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "undefined8 param_8" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar2 = param_2 + 7;\n  if (-1 < (int)param_2) {\n    uVar2 = param_2;\n  }\n  iVar3 = (((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0);\n  *param_1 = 0;\n  param_1[6] = param_2;\n  uVar1 = FUN_001376a2(param_3,iVar3);\n  *(undefined8 *)(param_1 + 8) = uVar1;\n  uVar1 = FUN_001376a2(param_4,iVar3);\n  *(undefined8 *)(param_1 + 10) = uVar1;\n  uVar1 = FUN_001376a2(param_5,iVar3);\n  *(undefined8 *)(param_1 + 0xc) = uVar1;\n  uVar1 = FUN_001376a2(param_6,iVar3);\n  *(undefined8 *)(param_1 + 0xe) = uVar1;\n  uVar1 = FUN_001376a2(param_7,iVar3);\n  *(undefined8 *)(param_1 + 0x12) = uVar1;\n  uVar1 = FUN_001376a2(param_8,iVar3);\n  *(undefined8 *)(param_1 + 0x14) = uVar1;\n  *(undefined4 **)(param_1 + 0x10) = param_1;\n  *(undefined1 *)(param_1 + 0x18) = 0;\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "uVar2 = param_2 + 7;" (assignment_expression "uVar2 = param_2 + 7" identifier = (binary_expression "param_2 + 7" identifier + number_literal)) ;) (if_statement "if (-1 < (int)param_2) {\n    uVar2 = param_2;\n  }" if (parenthesized_expression "(-1 < (int)param_2)" ( (binary_expression "-1 < (int)param_2" number_literal < (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    uVar2 = param_2;\n  }" { (expression_statement "uVar2 = param_2;" (assignment_expression "uVar2 = param_2" identifier = identifier) ;) })) (expression_statement "iVar3 = (((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0);" (assignment_expression "iVar3 = (((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0)" identifier = (binary_expression "(((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0)" (parenthesized_expression "(((int)uVar2 >> 3) + 1)" ( (binary_expression "((int)uVar2 >> 3) + 1" (parenthesized_expression "((int)uVar2 >> 3)" ( (binary_expression "(int)uVar2 >> 3" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + number_literal) )) - (call_expression "(uint)((param_2 & 7) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((param_2 & 7) == 0)" ( (binary_expression "(param_2 & 7) == 0" (parenthesized_expression "(param_2 & 7)" ( (binary_expression "param_2 & 7" identifier & number_literal) )) == number_literal) ))))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[6] = param_2;" (assignment_expression "param_1[6] = param_2" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = FUN_001376a2(param_3,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_3,iVar3)" identifier = (call_expression "FUN_001376a2(param_3,iVar3)" identifier (argument_list "(param_3,iVar3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_001376a2(param_4,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_4,iVar3)" identifier = (call_expression "FUN_001376a2(param_4,iVar3)" identifier (argument_list "(param_4,iVar3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 10) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 10) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 10)" * (cast_expression "(undefined8 *)(param_1 + 10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_001376a2(param_5,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_5,iVar3)" identifier = (call_expression "FUN_001376a2(param_5,iVar3)" identifier (argument_list "(param_5,iVar3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0xc) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0xc) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0xc)" * (cast_expression "(undefined8 *)(param_1 + 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_001376a2(param_6,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_6,iVar3)" identifier = (call_expression "FUN_001376a2(param_6,iVar3)" identifier (argument_list "(param_6,iVar3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0xe) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0xe) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0xe)" * (cast_expression "(undefined8 *)(param_1 + 0xe)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe)" ( (binary_expression "param_1 + 0xe" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_001376a2(param_7,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_7,iVar3)" identifier = (call_expression "FUN_001376a2(param_7,iVar3)" identifier (argument_list "(param_7,iVar3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x12) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x12) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x12)" * (cast_expression "(undefined8 *)(param_1 + 0x12)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x12)" ( (binary_expression "param_1 + 0x12" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = FUN_001376a2(param_8,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_8,iVar3)" identifier = (call_expression "FUN_001376a2(param_8,iVar3)" identifier (argument_list "(param_8,iVar3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x14) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x14) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x14)" * (cast_expression "(undefined8 *)(param_1 + 0x14)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)(param_1 + 0x10) = param_1;" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = param_1" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x18)" * (cast_expression "(undefined1 *)(param_1 + 0x18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )) + LIT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00140172(undefined4 *param_1,uint param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8)\n\n{\n  undefined8 uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar2 = param_2 + 7;\n  if (-1 < (int)param_2) {\n    uVar2 = param_2;\n  }\n  iVar3 = (((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0);\n  *param_1 = 0;\n  param_1[6] = param_2;\n  uVar1 = FUN_001376a2(param_3,iVar3);\n  *(undefined8 *)(param_1 + 8) = uVar1;\n  uVar1 = FUN_001376a2(param_4,iVar3);\n  *(undefined8 *)(param_1 + 10) = uVar1;\n  uVar1 = FUN_001376a2(param_5,iVar3);\n  *(undefined8 *)(param_1 + 0xc) = uVar1;\n  uVar1 = FUN_001376a2(param_6,iVar3);\n  *(undefined8 *)(param_1 + 0xe) = uVar1;\n  uVar1 = FUN_001376a2(param_7,iVar3);\n  *(undefined8 *)(param_1 + 0x12) = uVar1;\n  uVar1 = FUN_001376a2(param_8,iVar3);\n  *(undefined8 *)(param_1 + 0x14) = uVar1;\n  *(undefined4 **)(param_1 + 0x10) = param_1;\n  *(undefined1 *)(param_1 + 0x18) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00140172(undefined4 *param_1,uint param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8)" (identifier "FUN_00140172") (parameter_list "(undefined4 *param_1,uint param_2,undefined8 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) (, ",") (parameter_declaration "undefined8 param_6" (type_identifier "undefined8") (identifier "param_6")) (, ",") (parameter_declaration "undefined8 param_7" (type_identifier "undefined8") (identifier "param_7")) (, ",") (parameter_declaration "undefined8 param_8" (type_identifier "undefined8") (identifier "param_8")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  uint uVar2;\n  int iVar3;\n  \n  uVar2 = param_2 + 7;\n  if (-1 < (int)param_2) {\n    uVar2 = param_2;\n  }\n  iVar3 = (((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0);\n  *param_1 = 0;\n  param_1[6] = param_2;\n  uVar1 = FUN_001376a2(param_3,iVar3);\n  *(undefined8 *)(param_1 + 8) = uVar1;\n  uVar1 = FUN_001376a2(param_4,iVar3);\n  *(undefined8 *)(param_1 + 10) = uVar1;\n  uVar1 = FUN_001376a2(param_5,iVar3);\n  *(undefined8 *)(param_1 + 0xc) = uVar1;\n  uVar1 = FUN_001376a2(param_6,iVar3);\n  *(undefined8 *)(param_1 + 0xe) = uVar1;\n  uVar1 = FUN_001376a2(param_7,iVar3);\n  *(undefined8 *)(param_1 + 0x12) = uVar1;\n  uVar1 = FUN_001376a2(param_8,iVar3);\n  *(undefined8 *)(param_1 + 0x14) = uVar1;\n  *(undefined4 **)(param_1 + 0x10) = param_1;\n  *(undefined1 *)(param_1 + 0x18) = 0;\n  return;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "uVar2 = param_2 + 7;" (assignment_expression "uVar2 = param_2 + 7" (identifier "uVar2") (= "=") (binary_expression "param_2 + 7" (identifier "param_2") (+ "+") (number_literal "7"))) (; ";")) (if_statement "if (-1 < (int)param_2) {\n    uVar2 = param_2;\n  }" (if "if") (parenthesized_expression "(-1 < (int)param_2)" (( "(") (binary_expression "-1 < (int)param_2" (number_literal "-1") (< "<") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) () ")")) (compound_statement "{\n    uVar2 = param_2;\n  }" ({ "{") (expression_statement "uVar2 = param_2;" (assignment_expression "uVar2 = param_2" (identifier "uVar2") (= "=") (identifier "param_2")) (; ";")) (} "}"))) (expression_statement "iVar3 = (((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0);" (assignment_expression "iVar3 = (((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0)" (identifier "iVar3") (= "=") (binary_expression "(((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0)" (parenthesized_expression "(((int)uVar2 >> 3) + 1)" (( "(") (binary_expression "((int)uVar2 >> 3) + 1" (parenthesized_expression "((int)uVar2 >> 3)" (( "(") (binary_expression "(int)uVar2 >> 3" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (>> ">>") (number_literal "3")) () ")")) (+ "+") (number_literal "1")) () ")")) (- "-") (call_expression "(uint)((param_2 & 7) == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((param_2 & 7) == 0)" (( "(") (binary_expression "(param_2 & 7) == 0" (parenthesized_expression "(param_2 & 7)" (( "(") (binary_expression "param_2 & 7" (identifier "param_2") (& "&") (number_literal "7")) () ")")) (== "==") (number_literal "0")) () ")"))))) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[6] = param_2;" (assignment_expression "param_1[6] = param_2" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "uVar1 = FUN_001376a2(param_3,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_3,iVar3)" (identifier "uVar1") (= "=") (call_expression "FUN_001376a2(param_3,iVar3)" (identifier "FUN_001376a2") (argument_list "(param_3,iVar3)" (( "(") (identifier "param_3") (, ",") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = FUN_001376a2(param_4,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_4,iVar3)" (identifier "uVar1") (= "=") (call_expression "FUN_001376a2(param_4,iVar3)" (identifier "FUN_001376a2") (argument_list "(param_4,iVar3)" (( "(") (identifier "param_4") (, ",") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 10) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 10) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 10)" (( "(") (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = FUN_001376a2(param_5,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_5,iVar3)" (identifier "uVar1") (= "=") (call_expression "FUN_001376a2(param_5,iVar3)" (identifier "FUN_001376a2") (argument_list "(param_5,iVar3)" (( "(") (identifier "param_5") (, ",") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0xc) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0xc) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = FUN_001376a2(param_6,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_6,iVar3)" (identifier "uVar1") (= "=") (call_expression "FUN_001376a2(param_6,iVar3)" (identifier "FUN_001376a2") (argument_list "(param_6,iVar3)" (( "(") (identifier "param_6") (, ",") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0xe) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0xe) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0xe)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xe)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe)" (( "(") (binary_expression "param_1 + 0xe" (identifier "param_1") (+ "+") (number_literal "0xe")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = FUN_001376a2(param_7,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_7,iVar3)" (identifier "uVar1") (= "=") (call_expression "FUN_001376a2(param_7,iVar3)" (identifier "FUN_001376a2") (argument_list "(param_7,iVar3)" (( "(") (identifier "param_7") (, ",") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x12) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x12) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x12)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x12)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x12)" (( "(") (binary_expression "param_1 + 0x12" (identifier "param_1") (+ "+") (number_literal "0x12")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = FUN_001376a2(param_8,iVar3);" (assignment_expression "uVar1 = FUN_001376a2(param_8,iVar3)" (identifier "uVar1") (= "=") (call_expression "FUN_001376a2(param_8,iVar3)" (identifier "FUN_001376a2") (argument_list "(param_8,iVar3)" (( "(") (identifier "param_8") (, ",") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x14) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x14) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 0x10) = param_1;" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = param_1" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void function_1(type_1 *curve,int var_1,type_2 *p,type_2 *a,type_2 *b,type_2 *n,type_2 *Gx,
                      type_2 *Gy)

{
  type_3 pBVar1;
  int var_2;
  
  var_2 = var_1 + 7;
  if (-1 < var_1) {
    var_2 = var_1;
  }
  var_2 = ((var_2 >> 3) + 1) - (uint)((var_1 & 7U) == 0);
  curve->type = ADDRTYPE_UNSPEC;
  curve->fieldBits = var_1;
  pBVar1 = var_3(p,var_2);
  curve->p = pBVar1;
  pBVar1 = var_3(a,var_2);
  (curve->field_5).w.a = pBVar1;
  pBVar1 = var_3(b,var_2);
  (curve->field_5).w.b = pBVar1;
  pBVar1 = var_3(n,var_2);
  (curve->field_5).w.n = pBVar1;
  pBVar1 = var_3(Gx,var_2);
  (curve->field_5).w.G.x = pBVar1;
  pBVar1 = var_3(Gy,var_2);
  (curve->field_5).w.G.y = pBVar1;
  (curve->field_5).w.G.curve = curve;
  *(type_4 *)((long)&curve->field_5 + 0x38) = 0;
  return;
}


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

void MASKED(undefined4 *param_1,uint param_2,undefined8 param_3,undefined8 param_4,
                 undefined8 param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8)

{
  undefined8 uVar1;
  uint uVar2;
  int iVar3;
  
  uVar2 = param_2 + 7;
  if (-1 < (int)param_2) {
    uVar2 = param_2;
  }
  iVar3 = (((int)uVar2 >> 3) + 1) - (uint)((param_2 & 7) == 0);
  *param_1 = 0;
  param_1[6] = param_2;
  uVar1 = FUN_001376a2(param_3,iVar3);
  *(undefined8 *)(param_1 + 8) = uVar1;
  uVar1 = FUN_001376a2(param_4,iVar3);
  *(undefined8 *)(param_1 + 10) = uVar1;
  uVar1 = FUN_001376a2(param_5,iVar3);
  *(undefined8 *)(param_1 + 0xc) = uVar1;
  uVar1 = FUN_001376a2(param_6,iVar3);
  *(undefined8 *)(param_1 + 0xe) = uVar1;
  uVar1 = FUN_001376a2(param_7,iVar3);
  *(undefined8 *)(param_1 + 0x12) = uVar1;
  uVar1 = FUN_001376a2(param_8,iVar3);
  *(undefined8 *)(param_1 + 0x14) = uVar1;
  *(undefined4 **)(param_1 + 0x10) = param_1;
  *(undefined1 *)(param_1 + 0x18) = 0;
  return;
}

