
/* 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)

{
  int nbytes;
  
  nbytes = bits >> 3;
  if ((bits & 7U) != 0) {
    nbytes = nbytes + 1;
  }
  curve->fieldBits = bits;
                    /* WARNING: Subroutine does not return */
  curve->type = ADDRTYPE_UNSPEC;
  bignum_from_bytes(p,nbytes);
}



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

{
  undefined4 uVar1;
  int iVar2;
  
  iVar2 = (int)param_2 >> 3;
  if ((param_2 & 7) != 0) {
    iVar2 = iVar2 + 1;
  }
  param_1[3] = param_2;
  *param_1 = 0;
  uVar1 = bignum_from_bytes(param_3,iVar2);
  param_1[4] = uVar1;
  uVar1 = bignum_from_bytes(param_4,iVar2);
  param_1[5] = uVar1;
  uVar1 = bignum_from_bytes(param_5,iVar2);
  param_1[6] = uVar1;
  uVar1 = bignum_from_bytes(param_6,iVar2);
  param_1[7] = uVar1;
  uVar1 = bignum_from_bytes(param_7,iVar2);
  param_1[9] = uVar1;
  uVar1 = bignum_from_bytes(param_8,iVar2);
  param_1[10] = uVar1;
  param_1[8] = param_1;
  *(undefined1 *)(param_1 + 0xc) = 0;
  return;
}


lui gp,0x5
addiu gp,gp,-0x7b04
addu gp,gp,t9
addiu sp,sp,-0x28
andi v1,a1,0x7
or v0,a1,zero
sw gp,0x10(sp)
sw s2,0x20(sp)
or s2,a3,zero
sw s1,0x1c(sp)
sra s1,a1,0x3
sw s0,0x18(sp)
or s0,a0,zero
sw ra,0x24(sp)
beq v1,zero,0x00038bb8
_or a0,a2,zero
addiu s1,s1,0x1
lw t9,-0x7c00(gp)
or a1,s1,zero
sw v0,0xc(s0)
bal 0x00030420
_sw zero,0x0(s0)
or a1,s1,zero
lw gp,0x10(sp)
or a0,s2,zero
lw t9,-0x7c00(gp)
bal 0x00030420
_sw v0,0x10(s0)
or a1,s1,zero
lw gp,0x10(sp)
lw a0,0x38(sp)
lw t9,-0x7c00(gp)
bal 0x00030420
_sw v0,0x14(s0)
or a1,s1,zero
lw gp,0x10(sp)
lw a0,0x3c(sp)
lw t9,-0x7c00(gp)
bal 0x00030420
_sw v0,0x18(s0)
or a1,s1,zero
lw gp,0x10(sp)
lw a0,0x40(sp)
lw t9,-0x7c00(gp)
bal 0x00030420
_sw v0,0x1c(s0)
or a1,s1,zero
lw gp,0x10(sp)
lw a0,0x44(sp)
lw t9,-0x7c00(gp)
bal 0x00030420
_sw v0,0x24(s0)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
sw v0,0x28(s0)
sw s0,0x20(s0)
sb zero,0x30(s0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_00038b74(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = (int)param_2 >> 3;\n  if ((param_2 & 7) != 0) {\n    iVar2 = iVar2 + 1;\n  }\n  param_1[3] = param_2;\n  *param_1 = 0;\n  uVar1 = bignum_from_bytes(param_3,iVar2);\n  param_1[4] = uVar1;\n  uVar1 = bignum_from_bytes(param_4,iVar2);\n  param_1[5] = uVar1;\n  uVar1 = bignum_from_bytes(param_5,iVar2);\n  param_1[6] = uVar1;\n  uVar1 = bignum_from_bytes(param_6,iVar2);\n  param_1[7] = uVar1;\n  uVar1 = bignum_from_bytes(param_7,iVar2);\n  param_1[9] = uVar1;\n  uVar1 = bignum_from_bytes(param_8,iVar2);\n  param_1[10] = uVar1;\n  param_1[8] = param_1;\n  *(undefined1 *)(param_1 + 0xc) = 0;\n  return;\n}\n\n" (function_definition "void FUN_00038b74(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = (int)param_2 >> 3;\n  if ((param_2 & 7) != 0) {\n    iVar2 = iVar2 + 1;\n  }\n  param_1[3] = param_2;\n  *param_1 = 0;\n  uVar1 = bignum_from_bytes(param_3,iVar2);\n  param_1[4] = uVar1;\n  uVar1 = bignum_from_bytes(param_4,iVar2);\n  param_1[5] = uVar1;\n  uVar1 = bignum_from_bytes(param_5,iVar2);\n  param_1[6] = uVar1;\n  uVar1 = bignum_from_bytes(param_6,iVar2);\n  param_1[7] = uVar1;\n  uVar1 = bignum_from_bytes(param_7,iVar2);\n  param_1[9] = uVar1;\n  uVar1 = bignum_from_bytes(param_8,iVar2);\n  param_1[10] = uVar1;\n  param_1[8] = param_1;\n  *(undefined1 *)(param_1 + 0xc) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00038b74(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)" identifier (parameter_list "(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = (int)param_2 >> 3;\n  if ((param_2 & 7) != 0) {\n    iVar2 = iVar2 + 1;\n  }\n  param_1[3] = param_2;\n  *param_1 = 0;\n  uVar1 = bignum_from_bytes(param_3,iVar2);\n  param_1[4] = uVar1;\n  uVar1 = bignum_from_bytes(param_4,iVar2);\n  param_1[5] = uVar1;\n  uVar1 = bignum_from_bytes(param_5,iVar2);\n  param_1[6] = uVar1;\n  uVar1 = bignum_from_bytes(param_6,iVar2);\n  param_1[7] = uVar1;\n  uVar1 = bignum_from_bytes(param_7,iVar2);\n  param_1[9] = uVar1;\n  uVar1 = bignum_from_bytes(param_8,iVar2);\n  param_1[10] = uVar1;\n  param_1[8] = param_1;\n  *(undefined1 *)(param_1 + 0xc) = 0;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = (int)param_2 >> 3;" (assignment_expression "iVar2 = (int)param_2 >> 3" identifier = (binary_expression "(int)param_2 >> 3" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if ((param_2 & 7) != 0) {\n    iVar2 = iVar2 + 1;\n  }" if (parenthesized_expression "((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) )) (compound_statement "{\n    iVar2 = iVar2 + 1;\n  }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "param_1[3] = param_2;" (assignment_expression "param_1[3] = param_2" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "uVar1 = bignum_from_bytes(param_3,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_3,iVar2)" identifier = (call_expression "bignum_from_bytes(param_3,iVar2)" identifier (argument_list "(param_3,iVar2)" ( identifier , identifier )))) ;) (expression_statement "param_1[4] = uVar1;" (assignment_expression "param_1[4] = uVar1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = bignum_from_bytes(param_4,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_4,iVar2)" identifier = (call_expression "bignum_from_bytes(param_4,iVar2)" identifier (argument_list "(param_4,iVar2)" ( identifier , identifier )))) ;) (expression_statement "param_1[5] = uVar1;" (assignment_expression "param_1[5] = uVar1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = bignum_from_bytes(param_5,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_5,iVar2)" identifier = (call_expression "bignum_from_bytes(param_5,iVar2)" identifier (argument_list "(param_5,iVar2)" ( identifier , identifier )))) ;) (expression_statement "param_1[6] = uVar1;" (assignment_expression "param_1[6] = uVar1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = bignum_from_bytes(param_6,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_6,iVar2)" identifier = (call_expression "bignum_from_bytes(param_6,iVar2)" identifier (argument_list "(param_6,iVar2)" ( identifier , identifier )))) ;) (expression_statement "param_1[7] = uVar1;" (assignment_expression "param_1[7] = uVar1" (subscript_expression "param_1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = bignum_from_bytes(param_7,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_7,iVar2)" identifier = (call_expression "bignum_from_bytes(param_7,iVar2)" identifier (argument_list "(param_7,iVar2)" ( identifier , identifier )))) ;) (expression_statement "param_1[9] = uVar1;" (assignment_expression "param_1[9] = uVar1" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = bignum_from_bytes(param_8,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_8,iVar2)" identifier = (call_expression "bignum_from_bytes(param_8,iVar2)" identifier (argument_list "(param_8,iVar2)" ( identifier , identifier )))) ;) (expression_statement "param_1[10] = uVar1;" (assignment_expression "param_1[10] = uVar1" (subscript_expression "param_1[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[8] = param_1;" (assignment_expression "param_1[8] = param_1" (subscript_expression "param_1[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xc)" * (cast_expression "(undefined1 *)(param_1 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" 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  int nbytes;\n  \n  nbytes = bits >> 3;\n  if ((bits & 7U) != 0) {\n    nbytes = nbytes + 1;\n  }\n  curve->fieldBits = bits;\n                    /* WARNING: Subroutine does not return */\n  curve->type = ADDRTYPE_UNSPEC;\n  bignum_from_bytes(p,nbytes);\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  int nbytes;\n  \n  nbytes = bits >> 3;\n  if ((bits & 7U) != 0) {\n    nbytes = nbytes + 1;\n  }\n  curve->fieldBits = bits;\n                    /* WARNING: Subroutine does not return */\n  curve->type = ADDRTYPE_UNSPEC;\n  bignum_from_bytes(p,nbytes);\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  int nbytes;\n  \n  nbytes = bits >> 3;\n  if ((bits & 7U) != 0) {\n    nbytes = nbytes + 1;\n  }\n  curve->fieldBits = bits;\n                    /* WARNING: Subroutine does not return */\n  curve->type = ADDRTYPE_UNSPEC;\n  bignum_from_bytes(p,nbytes);\n}" { (declaration "int nbytes;" primitive_type identifier ;) (expression_statement "nbytes = bits >> 3;" (assignment_expression "nbytes = bits >> 3" identifier = (binary_expression "bits >> 3" identifier >> number_literal)) ;) (if_statement "if ((bits & 7U) != 0) {\n    nbytes = nbytes + 1;\n  }" if (parenthesized_expression "((bits & 7U) != 0)" ( (binary_expression "(bits & 7U) != 0" (parenthesized_expression "(bits & 7U)" ( (binary_expression "bits & 7U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    nbytes = nbytes + 1;\n  }" { (expression_statement "nbytes = nbytes + 1;" (assignment_expression "nbytes = nbytes + 1" identifier = (binary_expression "nbytes + 1" identifier + number_literal)) ;) })) (expression_statement "curve->fieldBits = bits;" (assignment_expression "curve->fieldBits = bits" (field_expression "curve->fieldBits" identifier -> field_identifier) = identifier) ;) comment (expression_statement "curve->type = ADDRTYPE_UNSPEC;" (assignment_expression "curve->type = ADDRTYPE_UNSPEC" (field_expression "curve->type" identifier -> field_identifier) = identifier) ;) (expression_statement "bignum_from_bytes(p,nbytes);" (call_expression "bignum_from_bytes(p,nbytes)" identifier (argument_list "(p,nbytes)" ( identifier , identifier ))) ;) })))
(translation_unit "void FUN_00038b74(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = (int)param_2 >> 3;\n  if ((param_2 & 7) != 0) {\n    iVar2 = iVar2 + 1;\n  }\n  param_1[3] = param_2;\n  *param_1 = 0;\n  uVar1 = bignum_from_bytes(param_3,iVar2);\n  param_1[4] = uVar1;\n  uVar1 = bignum_from_bytes(param_4,iVar2);\n  param_1[5] = uVar1;\n  uVar1 = bignum_from_bytes(param_5,iVar2);\n  param_1[6] = uVar1;\n  uVar1 = bignum_from_bytes(param_6,iVar2);\n  param_1[7] = uVar1;\n  uVar1 = bignum_from_bytes(param_7,iVar2);\n  param_1[9] = uVar1;\n  uVar1 = bignum_from_bytes(param_8,iVar2);\n  param_1[10] = uVar1;\n  param_1[8] = param_1;\n  *(undefined1 *)(param_1 + 0xc) = 0;\n  return;\n}\n\n" (function_definition "void FUN_00038b74(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = (int)param_2 >> 3;\n  if ((param_2 & 7) != 0) {\n    iVar2 = iVar2 + 1;\n  }\n  param_1[3] = param_2;\n  *param_1 = 0;\n  uVar1 = bignum_from_bytes(param_3,iVar2);\n  param_1[4] = uVar1;\n  uVar1 = bignum_from_bytes(param_4,iVar2);\n  param_1[5] = uVar1;\n  uVar1 = bignum_from_bytes(param_5,iVar2);\n  param_1[6] = uVar1;\n  uVar1 = bignum_from_bytes(param_6,iVar2);\n  param_1[7] = uVar1;\n  uVar1 = bignum_from_bytes(param_7,iVar2);\n  param_1[9] = uVar1;\n  uVar1 = bignum_from_bytes(param_8,iVar2);\n  param_1[10] = uVar1;\n  param_1[8] = param_1;\n  *(undefined1 *)(param_1 + 0xc) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00038b74(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)" identifier (parameter_list "(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = (int)param_2 >> 3;\n  if ((param_2 & 7) != 0) {\n    iVar2 = iVar2 + 1;\n  }\n  param_1[3] = param_2;\n  *param_1 = 0;\n  uVar1 = bignum_from_bytes(param_3,iVar2);\n  param_1[4] = uVar1;\n  uVar1 = bignum_from_bytes(param_4,iVar2);\n  param_1[5] = uVar1;\n  uVar1 = bignum_from_bytes(param_5,iVar2);\n  param_1[6] = uVar1;\n  uVar1 = bignum_from_bytes(param_6,iVar2);\n  param_1[7] = uVar1;\n  uVar1 = bignum_from_bytes(param_7,iVar2);\n  param_1[9] = uVar1;\n  uVar1 = bignum_from_bytes(param_8,iVar2);\n  param_1[10] = uVar1;\n  param_1[8] = param_1;\n  *(undefined1 *)(param_1 + 0xc) = 0;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = (int)param_2 >> 3;" (assignment_expression "iVar2 = (int)param_2 >> 3" identifier = (binary_expression "(int)param_2 >> 3" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (if_statement "if ((param_2 & 7) != 0) {\n    iVar2 = iVar2 + 1;\n  }" if (parenthesized_expression "((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) )) (compound_statement "{\n    iVar2 = iVar2 + 1;\n  }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "param_1[3] = param_2;" (assignment_expression "param_1[3] = param_2" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "uVar1 = bignum_from_bytes(param_3,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_3,iVar2)" identifier = (call_expression "bignum_from_bytes(param_3,iVar2)" identifier (argument_list "(param_3,iVar2)" ( identifier , identifier )))) ;) (expression_statement "param_1[4] = uVar1;" (assignment_expression "param_1[4] = uVar1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = bignum_from_bytes(param_4,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_4,iVar2)" identifier = (call_expression "bignum_from_bytes(param_4,iVar2)" identifier (argument_list "(param_4,iVar2)" ( identifier , identifier )))) ;) (expression_statement "param_1[5] = uVar1;" (assignment_expression "param_1[5] = uVar1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = bignum_from_bytes(param_5,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_5,iVar2)" identifier = (call_expression "bignum_from_bytes(param_5,iVar2)" identifier (argument_list "(param_5,iVar2)" ( identifier , identifier )))) ;) (expression_statement "param_1[6] = uVar1;" (assignment_expression "param_1[6] = uVar1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = bignum_from_bytes(param_6,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_6,iVar2)" identifier = (call_expression "bignum_from_bytes(param_6,iVar2)" identifier (argument_list "(param_6,iVar2)" ( identifier , identifier )))) ;) (expression_statement "param_1[7] = uVar1;" (assignment_expression "param_1[7] = uVar1" (subscript_expression "param_1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = bignum_from_bytes(param_7,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_7,iVar2)" identifier = (call_expression "bignum_from_bytes(param_7,iVar2)" identifier (argument_list "(param_7,iVar2)" ( identifier , identifier )))) ;) (expression_statement "param_1[9] = uVar1;" (assignment_expression "param_1[9] = uVar1" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = bignum_from_bytes(param_8,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_8,iVar2)" identifier = (call_expression "bignum_from_bytes(param_8,iVar2)" identifier (argument_list "(param_8,iVar2)" ( identifier , identifier )))) ;) (expression_statement "param_1[10] = uVar1;" (assignment_expression "param_1[10] = uVar1" (subscript_expression "param_1[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[8] = param_1;" (assignment_expression "param_1[8] = param_1" (subscript_expression "param_1[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xc)" * (cast_expression "(undefined1 *)(param_1 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" 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 ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_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_00038b74(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = (int)param_2 >> 3;\n  if ((param_2 & 7) != 0) {\n    iVar2 = iVar2 + 1;\n  }\n  param_1[3] = param_2;\n  *param_1 = 0;\n  uVar1 = bignum_from_bytes(param_3,iVar2);\n  param_1[4] = uVar1;\n  uVar1 = bignum_from_bytes(param_4,iVar2);\n  param_1[5] = uVar1;\n  uVar1 = bignum_from_bytes(param_5,iVar2);\n  param_1[6] = uVar1;\n  uVar1 = bignum_from_bytes(param_6,iVar2);\n  param_1[7] = uVar1;\n  uVar1 = bignum_from_bytes(param_7,iVar2);\n  param_1[9] = uVar1;\n  uVar1 = bignum_from_bytes(param_8,iVar2);\n  param_1[10] = uVar1;\n  param_1[8] = param_1;\n  *(undefined1 *)(param_1 + 0xc) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00038b74(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)" (identifier "FUN_00038b74") (parameter_list "(undefined4 *param_1,uint param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 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 "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 param_8" (type_identifier "undefined4") (identifier "param_8")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = (int)param_2 >> 3;\n  if ((param_2 & 7) != 0) {\n    iVar2 = iVar2 + 1;\n  }\n  param_1[3] = param_2;\n  *param_1 = 0;\n  uVar1 = bignum_from_bytes(param_3,iVar2);\n  param_1[4] = uVar1;\n  uVar1 = bignum_from_bytes(param_4,iVar2);\n  param_1[5] = uVar1;\n  uVar1 = bignum_from_bytes(param_5,iVar2);\n  param_1[6] = uVar1;\n  uVar1 = bignum_from_bytes(param_6,iVar2);\n  param_1[7] = uVar1;\n  uVar1 = bignum_from_bytes(param_7,iVar2);\n  param_1[9] = uVar1;\n  uVar1 = bignum_from_bytes(param_8,iVar2);\n  param_1[10] = uVar1;\n  param_1[8] = param_1;\n  *(undefined1 *)(param_1 + 0xc) = 0;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = (int)param_2 >> 3;" (assignment_expression "iVar2 = (int)param_2 >> 3" (identifier "iVar2") (= "=") (binary_expression "(int)param_2 >> 3" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (>> ">>") (number_literal "3"))) (; ";")) (if_statement "if ((param_2 & 7) != 0) {\n    iVar2 = iVar2 + 1;\n  }" (if "if") (parenthesized_expression "((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")) () ")")) (compound_statement "{\n    iVar2 = iVar2 + 1;\n  }" ({ "{") (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "param_1[3] = param_2;" (assignment_expression "param_1[3] = param_2" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = bignum_from_bytes(param_3,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_3,iVar2)" (identifier "uVar1") (= "=") (call_expression "bignum_from_bytes(param_3,iVar2)" (identifier "bignum_from_bytes") (argument_list "(param_3,iVar2)" (( "(") (identifier "param_3") (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "param_1[4] = uVar1;" (assignment_expression "param_1[4] = uVar1" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = bignum_from_bytes(param_4,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_4,iVar2)" (identifier "uVar1") (= "=") (call_expression "bignum_from_bytes(param_4,iVar2)" (identifier "bignum_from_bytes") (argument_list "(param_4,iVar2)" (( "(") (identifier "param_4") (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "param_1[5] = uVar1;" (assignment_expression "param_1[5] = uVar1" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = bignum_from_bytes(param_5,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_5,iVar2)" (identifier "uVar1") (= "=") (call_expression "bignum_from_bytes(param_5,iVar2)" (identifier "bignum_from_bytes") (argument_list "(param_5,iVar2)" (( "(") (identifier "param_5") (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "param_1[6] = uVar1;" (assignment_expression "param_1[6] = uVar1" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = bignum_from_bytes(param_6,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_6,iVar2)" (identifier "uVar1") (= "=") (call_expression "bignum_from_bytes(param_6,iVar2)" (identifier "bignum_from_bytes") (argument_list "(param_6,iVar2)" (( "(") (identifier "param_6") (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "param_1[7] = uVar1;" (assignment_expression "param_1[7] = uVar1" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = bignum_from_bytes(param_7,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_7,iVar2)" (identifier "uVar1") (= "=") (call_expression "bignum_from_bytes(param_7,iVar2)" (identifier "bignum_from_bytes") (argument_list "(param_7,iVar2)" (( "(") (identifier "param_7") (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "param_1[9] = uVar1;" (assignment_expression "param_1[9] = uVar1" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = bignum_from_bytes(param_8,iVar2);" (assignment_expression "uVar1 = bignum_from_bytes(param_8,iVar2)" (identifier "uVar1") (= "=") (call_expression "bignum_from_bytes(param_8,iVar2)" (identifier "bignum_from_bytes") (argument_list "(param_8,iVar2)" (( "(") (identifier "param_8") (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "param_1[10] = uVar1;" (assignment_expression "param_1[10] = uVar1" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "param_1[8] = param_1;" (assignment_expression "param_1[8] = param_1" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (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)

{
  int var_2;
  
  var_2 = var_1 >> 3;
  if ((var_1 & 7U) != 0) {
    var_2 = var_2 + 1;
  }
  curve->fieldBits = var_1;
                    /* WARNING: Subroutine does not return */
  curve->type = ADDRTYPE_UNSPEC;
  var_3(p,var_2);
}


(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: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (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: (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: (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: (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: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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,undefined4 param_3,undefined4 param_4,
                 undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8)

{
  undefined4 uVar1;
  int iVar2;
  
  iVar2 = (int)param_2 >> 3;
  if ((param_2 & 7) != 0) {
    iVar2 = iVar2 + 1;
  }
  param_1[3] = param_2;
  *param_1 = 0;
  uVar1 = bignum_from_bytes(param_3,iVar2);
  param_1[4] = uVar1;
  uVar1 = bignum_from_bytes(param_4,iVar2);
  param_1[5] = uVar1;
  uVar1 = bignum_from_bytes(param_5,iVar2);
  param_1[6] = uVar1;
  uVar1 = bignum_from_bytes(param_6,iVar2);
  param_1[7] = uVar1;
  uVar1 = bignum_from_bytes(param_7,iVar2);
  param_1[9] = uVar1;
  uVar1 = bignum_from_bytes(param_8,iVar2);
  param_1[10] = uVar1;
  param_1[8] = param_1;
  *(undefined1 *)(param_1 + 0xc) = 0;
  return;
}

