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

ec_point * ec_public(Bignum privateKey,ec_curve *curve)

{
  ec_point *peVar1;
  
  if (curve->type == ADDRTYPE_UNSPEC) {
    peVar1 = ecp_mul(&(curve->field_5).w.G,privateKey);
    return peVar1;
  }
  if (curve->type != ADDRTYPE_IPV6) {
    return (ec_point *)0x0;
  }
  peVar1 = ec_public(privateKey,curve);
  return peVar1;
}



undefined4 ec_public(undefined4 param_1,int *param_2)

{
  undefined4 uVar1;
  
  if (*param_2 == 0) {
    uVar1 = ecp_mul(param_2 + 8,param_1);
    return uVar1;
  }
  if (*param_2 != 2) {
    return 0;
  }
  uVar1 = FUN_0003e138();
  return uVar1;
}


lui gp,0x4
addiu gp,gp,0x2dd4
addu gp,gp,t9
lw v0,0x0(a1)
beq v0,zero,0x0003e2d8
_or a2,a0,zero
li v1,0x2
beq v0,v1,0x0003e2c8
_or v0,zero,zero
jr ra
_nop
lw t9,-0x7b8c(gp)
addiu t9,t9,-0x1ec8
b 0x0003e138
_nop
lw t9,-0x7b6c(gp)
addiu a0,a1,0x20
b 0x0003c928
_or a1,a2,zero
(translation_unit "undefined4 ec_public(undefined4 param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*param_2 == 0) {\n    uVar1 = ecp_mul(param_2 + 8,param_1);\n    return uVar1;\n  }\n  if (*param_2 != 2) {\n    return 0;\n  }\n  uVar1 = FUN_0003e138();\n  return uVar1;\n}\n\n" (function_definition "undefined4 ec_public(undefined4 param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*param_2 == 0) {\n    uVar1 = ecp_mul(param_2 + 8,param_1);\n    return uVar1;\n  }\n  if (*param_2 != 2) {\n    return 0;\n  }\n  uVar1 = FUN_0003e138();\n  return uVar1;\n}" type_identifier (function_declarator "ec_public(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*param_2 == 0) {\n    uVar1 = ecp_mul(param_2 + 8,param_1);\n    return uVar1;\n  }\n  if (*param_2 != 2) {\n    return 0;\n  }\n  uVar1 = FUN_0003e138();\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*param_2 == 0) {\n    uVar1 = ecp_mul(param_2 + 8,param_1);\n    return uVar1;\n  }" if (parenthesized_expression "(*param_2 == 0)" ( (binary_expression "*param_2 == 0" (pointer_expression "*param_2" * identifier) == number_literal) )) (compound_statement "{\n    uVar1 = ecp_mul(param_2 + 8,param_1);\n    return uVar1;\n  }" { (expression_statement "uVar1 = ecp_mul(param_2 + 8,param_1);" (assignment_expression "uVar1 = ecp_mul(param_2 + 8,param_1)" identifier = (call_expression "ecp_mul(param_2 + 8,param_1)" identifier (argument_list "(param_2 + 8,param_1)" ( (binary_expression "param_2 + 8" identifier + number_literal) , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (*param_2 != 2) {\n    return 0;\n  }" if (parenthesized_expression "(*param_2 != 2)" ( (binary_expression "*param_2 != 2" (pointer_expression "*param_2" * identifier) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = FUN_0003e138();" (assignment_expression "uVar1 = FUN_0003e138()" identifier = (call_expression "FUN_0003e138()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nec_point * ec_public(Bignum privateKey,ec_curve *curve)\n\n{\n  ec_point *peVar1;\n  \n  if (curve->type == ADDRTYPE_UNSPEC) {\n    peVar1 = ecp_mul(&(curve->field_5).w.G,privateKey);\n    return peVar1;\n  }\n  if (curve->type != ADDRTYPE_IPV6) {\n    return (ec_point *)0x0;\n  }\n  peVar1 = ec_public(privateKey,curve);\n  return peVar1;\n}\n\n" comment (function_definition "ec_point * ec_public(Bignum privateKey,ec_curve *curve)\n\n{\n  ec_point *peVar1;\n  \n  if (curve->type == ADDRTYPE_UNSPEC) {\n    peVar1 = ecp_mul(&(curve->field_5).w.G,privateKey);\n    return peVar1;\n  }\n  if (curve->type != ADDRTYPE_IPV6) {\n    return (ec_point *)0x0;\n  }\n  peVar1 = ec_public(privateKey,curve);\n  return peVar1;\n}" type_identifier (pointer_declarator "* ec_public(Bignum privateKey,ec_curve *curve)" * (function_declarator "ec_public(Bignum privateKey,ec_curve *curve)" identifier (parameter_list "(Bignum privateKey,ec_curve *curve)" ( (parameter_declaration "Bignum privateKey" type_identifier identifier) , (parameter_declaration "ec_curve *curve" type_identifier (pointer_declarator "*curve" * identifier)) )))) (compound_statement "{\n  ec_point *peVar1;\n  \n  if (curve->type == ADDRTYPE_UNSPEC) {\n    peVar1 = ecp_mul(&(curve->field_5).w.G,privateKey);\n    return peVar1;\n  }\n  if (curve->type != ADDRTYPE_IPV6) {\n    return (ec_point *)0x0;\n  }\n  peVar1 = ec_public(privateKey,curve);\n  return peVar1;\n}" { (declaration "ec_point *peVar1;" type_identifier (pointer_declarator "*peVar1" * identifier) ;) (if_statement "if (curve->type == ADDRTYPE_UNSPEC) {\n    peVar1 = ecp_mul(&(curve->field_5).w.G,privateKey);\n    return peVar1;\n  }" if (parenthesized_expression "(curve->type == ADDRTYPE_UNSPEC)" ( (binary_expression "curve->type == ADDRTYPE_UNSPEC" (field_expression "curve->type" identifier -> field_identifier) == identifier) )) (compound_statement "{\n    peVar1 = ecp_mul(&(curve->field_5).w.G,privateKey);\n    return peVar1;\n  }" { (expression_statement "peVar1 = ecp_mul(&(curve->field_5).w.G,privateKey);" (assignment_expression "peVar1 = ecp_mul(&(curve->field_5).w.G,privateKey)" identifier = (call_expression "ecp_mul(&(curve->field_5).w.G,privateKey)" identifier (argument_list "(&(curve->field_5).w.G,privateKey)" ( (pointer_expression "&(curve->field_5).w.G" & (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)) , identifier )))) ;) (return_statement "return peVar1;" return identifier ;) })) (if_statement "if (curve->type != ADDRTYPE_IPV6) {\n    return (ec_point *)0x0;\n  }" if (parenthesized_expression "(curve->type != ADDRTYPE_IPV6)" ( (binary_expression "curve->type != ADDRTYPE_IPV6" (field_expression "curve->type" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    return (ec_point *)0x0;\n  }" { (return_statement "return (ec_point *)0x0;" return (cast_expression "(ec_point *)0x0" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "peVar1 = ec_public(privateKey,curve);" (assignment_expression "peVar1 = ec_public(privateKey,curve)" identifier = (call_expression "ec_public(privateKey,curve)" identifier (argument_list "(privateKey,curve)" ( identifier , identifier )))) ;) (return_statement "return peVar1;" return identifier ;) })))
(translation_unit "undefined4 ec_public(undefined4 param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*param_2 == 0) {\n    uVar1 = ecp_mul(param_2 + 8,param_1);\n    return uVar1;\n  }\n  if (*param_2 != 2) {\n    return 0;\n  }\n  uVar1 = FUN_0003e138();\n  return uVar1;\n}\n\n" (function_definition "undefined4 ec_public(undefined4 param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*param_2 == 0) {\n    uVar1 = ecp_mul(param_2 + 8,param_1);\n    return uVar1;\n  }\n  if (*param_2 != 2) {\n    return 0;\n  }\n  uVar1 = FUN_0003e138();\n  return uVar1;\n}" type_identifier (function_declarator "ec_public(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*param_2 == 0) {\n    uVar1 = ecp_mul(param_2 + 8,param_1);\n    return uVar1;\n  }\n  if (*param_2 != 2) {\n    return 0;\n  }\n  uVar1 = FUN_0003e138();\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*param_2 == 0) {\n    uVar1 = ecp_mul(param_2 + 8,param_1);\n    return uVar1;\n  }" if (parenthesized_expression "(*param_2 == 0)" ( (binary_expression "*param_2 == 0" (pointer_expression "*param_2" * identifier) == number_literal) )) (compound_statement "{\n    uVar1 = ecp_mul(param_2 + 8,param_1);\n    return uVar1;\n  }" { (expression_statement "uVar1 = ecp_mul(param_2 + 8,param_1);" (assignment_expression "uVar1 = ecp_mul(param_2 + 8,param_1)" identifier = (call_expression "ecp_mul(param_2 + 8,param_1)" identifier (argument_list "(param_2 + 8,param_1)" ( (binary_expression "param_2 + 8" identifier + number_literal) , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (*param_2 != 2) {\n    return 0;\n  }" if (parenthesized_expression "(*param_2 != 2)" ( (binary_expression "*param_2 != 2" (pointer_expression "*param_2" * identifier) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = FUN_0003e138();" (assignment_expression "uVar1 = FUN_0003e138()" identifier = (call_expression "FUN_0003e138()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 ec_public(undefined4 param_1,int *param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (*param_2 == 0) {\n    uVar1 = ecp_mul(param_2 + 8,param_1);\n    return uVar1;\n  }\n  if (*param_2 != 2) {\n    return 0;\n  }\n  uVar1 = FUN_0003e138();\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "ec_public(undefined4 param_1,int *param_2)" (identifier "ec_public") (parameter_list "(undefined4 param_1,int *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*param_2 == 0) {\n    uVar1 = ecp_mul(param_2 + 8,param_1);\n    return uVar1;\n  }\n  if (*param_2 != 2) {\n    return 0;\n  }\n  uVar1 = FUN_0003e138();\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (*param_2 == 0) {\n    uVar1 = ecp_mul(param_2 + 8,param_1);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(*param_2 == 0)" (( "(") (binary_expression "*param_2 == 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = ecp_mul(param_2 + 8,param_1);\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = ecp_mul(param_2 + 8,param_1);" (assignment_expression "uVar1 = ecp_mul(param_2 + 8,param_1)" (identifier "uVar1") (= "=") (call_expression "ecp_mul(param_2 + 8,param_1)" (identifier "ecp_mul") (argument_list "(param_2 + 8,param_1)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) (, ",") (identifier "param_1") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (if_statement "if (*param_2 != 2) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(*param_2 != 2)" (( "(") (binary_expression "*param_2 != 2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar1 = FUN_0003e138();" (assignment_expression "uVar1 = FUN_0003e138()" (identifier "uVar1") (= "=") (call_expression "FUN_0003e138()" (identifier "FUN_0003e138") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

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

type_1 * function_1(type_2 privateKey,type_3 *curve)

{
  type_1 *peVar1;
  
  if (curve->type == var_1) {
    peVar1 = var_2(&(curve->field_5).w.G,privateKey);
    return peVar1;
  }
  if (curve->type != var_3) {
    return (type_1 *)0x0;
  }
  peVar1 = function_1(privateKey,curve);
  return peVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))))

undefined4 MASKED(undefined4 param_1,int *param_2)

{
  undefined4 uVar1;
  
  if (*param_2 == 0) {
    uVar1 = ecp_mul(param_2 + 8,param_1);
    return uVar1;
  }
  if (*param_2 != 2) {
    return 0;
  }
  uVar1 = FUN_0003e138();
  return uVar1;
}

