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

ec_point * ec_public(Bignum privateKey,ec_curve *curve)

{
  undefined4 *puVar1;
  int iVar2;
  ec_point *peVar3;
  undefined4 in_a3;
  ec_curve *curve_00;
  
  if (curve->type != ADDRTYPE_UNSPEC) {
    if (curve->type == ADDRTYPE_IPV6) {
      peVar3 = ec_public(privateKey,curve);
      return peVar3;
    }
    return (ec_point *)0x0;
  }
  peVar3 = &(curve->field_5).w.G;
  curve_00 = peVar3->curve;
  if (curve_00->type != ADDRTYPE_UNSPEC) {
    if (curve_00->type == ADDRTYPE_IPV6) {
      puVar1 = (undefined4 *)
               (**(code **)(PTR_ecp_mul_000b2b34 + 0x4c130))
                         (1,0x14,privateKey,in_a3,PTR_ecp_mul_000b2b34 + 0x54098);
      *puVar1 = curve_00;
      puVar1[1] = 0;
      puVar1[2] = 0;
      puVar1[3] = 0;
                    /* WARNING: Subroutine does not return */
      *(undefined1 *)(puVar1 + 4) = 1;
      bignum_bitcount((Bignum_conflict)privateKey);
    }
    ecp_double(peVar3,0);
    ec_point_copy(peVar3);
                    /* WARNING: Subroutine does not return */
    bignum_bitcount((Bignum_conflict)privateKey);
  }
  iVar2 = ec_aminus3(curve_00);
  peVar3 = ecp_mul_(peVar3,privateKey,iVar2);
  if ((peVar3 == (ec_point *)0x0) ||
     ((peVar3->infinity == '\0' && (iVar2 = ecp_normalise(peVar3), iVar2 == 0)))) {
    ec_point_free(peVar3);
    peVar3 = (ec_point *)0x0;
  }
  return peVar3;
}



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_00067ae8();
  return uVar1;
}


lui gp,0x5
addiu gp,gp,0x2724
addu gp,gp,t9
lw v0,0x0(a1)
beq v0,zero,0x00067c88
_or a2,a0,zero
li v1,0x2
beq v0,v1,0x00067c78
_or v0,zero,zero
jr ra
_nop
lw t9,-0x78a0(gp)
addiu t9,t9,0x7ae8
b 0x00067ae8
_nop
lw t9,-0x783c(gp)
addiu a0,a1,0x20
b 0x000662d8
_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_00067ae8();\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_00067ae8();\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_00067ae8();\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_00067ae8();" (assignment_expression "uVar1 = FUN_00067ae8()" identifier = (call_expression "FUN_00067ae8()" 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  undefined4 *puVar1;\n  int iVar2;\n  ec_point *peVar3;\n  undefined4 in_a3;\n  ec_curve *curve_00;\n  \n  if (curve->type != ADDRTYPE_UNSPEC) {\n    if (curve->type == ADDRTYPE_IPV6) {\n      peVar3 = ec_public(privateKey,curve);\n      return peVar3;\n    }\n    return (ec_point *)0x0;\n  }\n  peVar3 = &(curve->field_5).w.G;\n  curve_00 = peVar3->curve;\n  if (curve_00->type != ADDRTYPE_UNSPEC) {\n    if (curve_00->type == ADDRTYPE_IPV6) {\n      puVar1 = (undefined4 *)\n               (**(code **)(PTR_ecp_mul_000b2b34 + 0x4c130))\n                         (1,0x14,privateKey,in_a3,PTR_ecp_mul_000b2b34 + 0x54098);\n      *puVar1 = curve_00;\n      puVar1[1] = 0;\n      puVar1[2] = 0;\n      puVar1[3] = 0;\n                    /* WARNING: Subroutine does not return */\n      *(undefined1 *)(puVar1 + 4) = 1;\n      bignum_bitcount((Bignum_conflict)privateKey);\n    }\n    ecp_double(peVar3,0);\n    ec_point_copy(peVar3);\n                    /* WARNING: Subroutine does not return */\n    bignum_bitcount((Bignum_conflict)privateKey);\n  }\n  iVar2 = ec_aminus3(curve_00);\n  peVar3 = ecp_mul_(peVar3,privateKey,iVar2);\n  if ((peVar3 == (ec_point *)0x0) ||\n     ((peVar3->infinity == '\0' && (iVar2 = ecp_normalise(peVar3), iVar2 == 0)))) {\n    ec_point_free(peVar3);\n    peVar3 = (ec_point *)0x0;\n  }\n  return peVar3;\n}\n\n" comment (function_definition "ec_point * ec_public(Bignum privateKey,ec_curve *curve)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  ec_point *peVar3;\n  undefined4 in_a3;\n  ec_curve *curve_00;\n  \n  if (curve->type != ADDRTYPE_UNSPEC) {\n    if (curve->type == ADDRTYPE_IPV6) {\n      peVar3 = ec_public(privateKey,curve);\n      return peVar3;\n    }\n    return (ec_point *)0x0;\n  }\n  peVar3 = &(curve->field_5).w.G;\n  curve_00 = peVar3->curve;\n  if (curve_00->type != ADDRTYPE_UNSPEC) {\n    if (curve_00->type == ADDRTYPE_IPV6) {\n      puVar1 = (undefined4 *)\n               (**(code **)(PTR_ecp_mul_000b2b34 + 0x4c130))\n                         (1,0x14,privateKey,in_a3,PTR_ecp_mul_000b2b34 + 0x54098);\n      *puVar1 = curve_00;\n      puVar1[1] = 0;\n      puVar1[2] = 0;\n      puVar1[3] = 0;\n                    /* WARNING: Subroutine does not return */\n      *(undefined1 *)(puVar1 + 4) = 1;\n      bignum_bitcount((Bignum_conflict)privateKey);\n    }\n    ecp_double(peVar3,0);\n    ec_point_copy(peVar3);\n                    /* WARNING: Subroutine does not return */\n    bignum_bitcount((Bignum_conflict)privateKey);\n  }\n  iVar2 = ec_aminus3(curve_00);\n  peVar3 = ecp_mul_(peVar3,privateKey,iVar2);\n  if ((peVar3 == (ec_point *)0x0) ||\n     ((peVar3->infinity == '\0' && (iVar2 = ecp_normalise(peVar3), iVar2 == 0)))) {\n    ec_point_free(peVar3);\n    peVar3 = (ec_point *)0x0;\n  }\n  return peVar3;\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  undefined4 *puVar1;\n  int iVar2;\n  ec_point *peVar3;\n  undefined4 in_a3;\n  ec_curve *curve_00;\n  \n  if (curve->type != ADDRTYPE_UNSPEC) {\n    if (curve->type == ADDRTYPE_IPV6) {\n      peVar3 = ec_public(privateKey,curve);\n      return peVar3;\n    }\n    return (ec_point *)0x0;\n  }\n  peVar3 = &(curve->field_5).w.G;\n  curve_00 = peVar3->curve;\n  if (curve_00->type != ADDRTYPE_UNSPEC) {\n    if (curve_00->type == ADDRTYPE_IPV6) {\n      puVar1 = (undefined4 *)\n               (**(code **)(PTR_ecp_mul_000b2b34 + 0x4c130))\n                         (1,0x14,privateKey,in_a3,PTR_ecp_mul_000b2b34 + 0x54098);\n      *puVar1 = curve_00;\n      puVar1[1] = 0;\n      puVar1[2] = 0;\n      puVar1[3] = 0;\n                    /* WARNING: Subroutine does not return */\n      *(undefined1 *)(puVar1 + 4) = 1;\n      bignum_bitcount((Bignum_conflict)privateKey);\n    }\n    ecp_double(peVar3,0);\n    ec_point_copy(peVar3);\n                    /* WARNING: Subroutine does not return */\n    bignum_bitcount((Bignum_conflict)privateKey);\n  }\n  iVar2 = ec_aminus3(curve_00);\n  peVar3 = ecp_mul_(peVar3,privateKey,iVar2);\n  if ((peVar3 == (ec_point *)0x0) ||\n     ((peVar3->infinity == '\0' && (iVar2 = ecp_normalise(peVar3), iVar2 == 0)))) {\n    ec_point_free(peVar3);\n    peVar3 = (ec_point *)0x0;\n  }\n  return peVar3;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ec_point *peVar3;" type_identifier (pointer_declarator "*peVar3" * identifier) ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "ec_curve *curve_00;" type_identifier (pointer_declarator "*curve_00" * identifier) ;) (if_statement "if (curve->type != ADDRTYPE_UNSPEC) {\n    if (curve->type == ADDRTYPE_IPV6) {\n      peVar3 = ec_public(privateKey,curve);\n      return peVar3;\n    }\n    return (ec_point *)0x0;\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    if (curve->type == ADDRTYPE_IPV6) {\n      peVar3 = ec_public(privateKey,curve);\n      return peVar3;\n    }\n    return (ec_point *)0x0;\n  }" { (if_statement "if (curve->type == ADDRTYPE_IPV6) {\n      peVar3 = ec_public(privateKey,curve);\n      return peVar3;\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      peVar3 = ec_public(privateKey,curve);\n      return peVar3;\n    }" { (expression_statement "peVar3 = ec_public(privateKey,curve);" (assignment_expression "peVar3 = ec_public(privateKey,curve)" identifier = (call_expression "ec_public(privateKey,curve)" identifier (argument_list "(privateKey,curve)" ( identifier , identifier )))) ;) (return_statement "return peVar3;" return identifier ;) })) (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 "peVar3 = &(curve->field_5).w.G;" (assignment_expression "peVar3 = &(curve->field_5).w.G" identifier = (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))) ;) (expression_statement "curve_00 = peVar3->curve;" (assignment_expression "curve_00 = peVar3->curve" identifier = (field_expression "peVar3->curve" identifier -> field_identifier)) ;) (if_statement "if (curve_00->type != ADDRTYPE_UNSPEC) {\n    if (curve_00->type == ADDRTYPE_IPV6) {\n      puVar1 = (undefined4 *)\n               (**(code **)(PTR_ecp_mul_000b2b34 + 0x4c130))\n                         (1,0x14,privateKey,in_a3,PTR_ecp_mul_000b2b34 + 0x54098);\n      *puVar1 = curve_00;\n      puVar1[1] = 0;\n      puVar1[2] = 0;\n      puVar1[3] = 0;\n                    /* WARNING: Subroutine does not return */\n      *(undefined1 *)(puVar1 + 4) = 1;\n      bignum_bitcount((Bignum_conflict)privateKey);\n    }\n    ecp_double(peVar3,0);\n    ec_point_copy(peVar3);\n                    /* WARNING: Subroutine does not return */\n    bignum_bitcount((Bignum_conflict)privateKey);\n  }" if (parenthesized_expression "(curve_00->type != ADDRTYPE_UNSPEC)" ( (binary_expression "curve_00->type != ADDRTYPE_UNSPEC" (field_expression "curve_00->type" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    if (curve_00->type == ADDRTYPE_IPV6) {\n      puVar1 = (undefined4 *)\n               (**(code **)(PTR_ecp_mul_000b2b34 + 0x4c130))\n                         (1,0x14,privateKey,in_a3,PTR_ecp_mul_000b2b34 + 0x54098);\n      *puVar1 = curve_00;\n      puVar1[1] = 0;\n      puVar1[2] = 0;\n      puVar1[3] = 0;\n                    /* WARNING: Subroutine does not return */\n      *(undefined1 *)(puVar1 + 4) = 1;\n      bignum_bitcount((Bignum_conflict)privateKey);\n    }\n    ecp_double(peVar3,0);\n    ec_point_copy(peVar3);\n                    /* WARNING: Subroutine does not return */\n    bignum_bitcount((Bignum_conflict)privateKey);\n  }" { (if_statement "if (curve_00->type == ADDRTYPE_IPV6) {\n      puVar1 = (undefined4 *)\n               (**(code **)(PTR_ecp_mul_000b2b34 + 0x4c130))\n                         (1,0x14,privateKey,in_a3,PTR_ecp_mul_000b2b34 + 0x54098);\n      *puVar1 = curve_00;\n      puVar1[1] = 0;\n      puVar1[2] = 0;\n      puVar1[3] = 0;\n                    /* WARNING: Subroutine does not return */\n      *(undefined1 *)(puVar1 + 4) = 1;\n      bignum_bitcount((Bignum_conflict)privateKey);\n    }" if (parenthesized_expression "(curve_00->type == ADDRTYPE_IPV6)" ( (binary_expression "curve_00->type == ADDRTYPE_IPV6" (field_expression "curve_00->type" identifier -> field_identifier) == identifier) )) (compound_statement "{\n      puVar1 = (undefined4 *)\n               (**(code **)(PTR_ecp_mul_000b2b34 + 0x4c130))\n                         (1,0x14,privateKey,in_a3,PTR_ecp_mul_000b2b34 + 0x54098);\n      *puVar1 = curve_00;\n      puVar1[1] = 0;\n      puVar1[2] = 0;\n      puVar1[3] = 0;\n                    /* WARNING: Subroutine does not return */\n      *(undefined1 *)(puVar1 + 4) = 1;\n      bignum_bitcount((Bignum_conflict)privateKey);\n    }" { (expression_statement "puVar1 = (undefined4 *)\n               (**(code **)(PTR_ecp_mul_000b2b34 + 0x4c130))\n                         (1,0x14,privateKey,in_a3,PTR_ecp_mul_000b2b34 + 0x54098);" (assignment_expression "puVar1 = (undefined4 *)\n               (**(code **)(PTR_ecp_mul_000b2b34 + 0x4c130))\n                         (1,0x14,privateKey,in_a3,PTR_ecp_mul_000b2b34 + 0x54098)" identifier = (cast_expression "(undefined4 *)\n               (**(code **)(PTR_ecp_mul_000b2b34 + 0x4c130))\n                         (1,0x14,privateKey,in_a3,PTR_ecp_mul_000b2b34 + 0x54098)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(PTR_ecp_mul_000b2b34 + 0x4c130))\n                         (1,0x14,privateKey,in_a3,PTR_ecp_mul_000b2b34 + 0x54098)" (parenthesized_expression "(**(code **)(PTR_ecp_mul_000b2b34 + 0x4c130))" ( (pointer_expression "**(code **)(PTR_ecp_mul_000b2b34 + 0x4c130)" * (pointer_expression "*(code **)(PTR_ecp_mul_000b2b34 + 0x4c130)" * (cast_expression "(code **)(PTR_ecp_mul_000b2b34 + 0x4c130)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_ecp_mul_000b2b34 + 0x4c130)" ( (binary_expression "PTR_ecp_mul_000b2b34 + 0x4c130" identifier + number_literal) ))))) )) (argument_list "(1,0x14,privateKey,in_a3,PTR_ecp_mul_000b2b34 + 0x54098)" ( number_literal , number_literal , identifier , identifier , (binary_expression "PTR_ecp_mul_000b2b34 + 0x54098" identifier + number_literal) ))))) ;) (expression_statement "*puVar1 = curve_00;" (assignment_expression "*puVar1 = curve_00" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[3] = 0;" (assignment_expression "puVar1[3] = 0" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) comment (expression_statement "*(undefined1 *)(puVar1 + 4) = 1;" (assignment_expression "*(undefined1 *)(puVar1 + 4) = 1" (pointer_expression "*(undefined1 *)(puVar1 + 4)" * (cast_expression "(undefined1 *)(puVar1 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 4)" ( (binary_expression "puVar1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "bignum_bitcount((Bignum_conflict)privateKey);" (call_expression "bignum_bitcount((Bignum_conflict)privateKey)" identifier (argument_list "((Bignum_conflict)privateKey)" ( (cast_expression "(Bignum_conflict)privateKey" ( (type_descriptor "Bignum_conflict" type_identifier) ) identifier) ))) ;) })) (expression_statement "ecp_double(peVar3,0);" (call_expression "ecp_double(peVar3,0)" identifier (argument_list "(peVar3,0)" ( identifier , number_literal ))) ;) (expression_statement "ec_point_copy(peVar3);" (call_expression "ec_point_copy(peVar3)" identifier (argument_list "(peVar3)" ( identifier ))) ;) comment (expression_statement "bignum_bitcount((Bignum_conflict)privateKey);" (call_expression "bignum_bitcount((Bignum_conflict)privateKey)" identifier (argument_list "((Bignum_conflict)privateKey)" ( (cast_expression "(Bignum_conflict)privateKey" ( (type_descriptor "Bignum_conflict" type_identifier) ) identifier) ))) ;) })) (expression_statement "iVar2 = ec_aminus3(curve_00);" (assignment_expression "iVar2 = ec_aminus3(curve_00)" identifier = (call_expression "ec_aminus3(curve_00)" identifier (argument_list "(curve_00)" ( identifier )))) ;) (expression_statement "peVar3 = ecp_mul_(peVar3,privateKey,iVar2);" (assignment_expression "peVar3 = ecp_mul_(peVar3,privateKey,iVar2)" identifier = (call_expression "ecp_mul_(peVar3,privateKey,iVar2)" identifier (argument_list "(peVar3,privateKey,iVar2)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((peVar3 == (ec_point *)0x0) ||\n     ((peVar3->infinity == '\0' && (iVar2 = ecp_normalise(peVar3), iVar2 == 0)))) {\n    ec_point_free(peVar3);\n    peVar3 = (ec_point *)0x0;\n  }" if (parenthesized_expression "((peVar3 == (ec_point *)0x0) ||\n     ((peVar3->infinity == '\0' && (iVar2 = ecp_normalise(peVar3), iVar2 == 0))))" ( (binary_expression "(peVar3 == (ec_point *)0x0) ||\n     ((peVar3->infinity == '\0' && (iVar2 = ecp_normalise(peVar3), iVar2 == 0)))" (parenthesized_expression "(peVar3 == (ec_point *)0x0)" ( (binary_expression "peVar3 == (ec_point *)0x0" identifier == (cast_expression "(ec_point *)0x0" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "((peVar3->infinity == '\0' && (iVar2 = ecp_normalise(peVar3), iVar2 == 0)))" ( (parenthesized_expression "(peVar3->infinity == '\0' && (iVar2 = ecp_normalise(peVar3), iVar2 == 0))" ( (binary_expression "peVar3->infinity == '\0' && (iVar2 = ecp_normalise(peVar3), iVar2 == 0)" (binary_expression "peVar3->infinity == '\0'" (field_expression "peVar3->infinity" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) && (parenthesized_expression "(iVar2 = ecp_normalise(peVar3), iVar2 == 0)" ( (comma_expression "iVar2 = ecp_normalise(peVar3), iVar2 == 0" (assignment_expression "iVar2 = ecp_normalise(peVar3)" identifier = (call_expression "ecp_normalise(peVar3)" identifier (argument_list "(peVar3)" ( identifier )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) ))) )) (compound_statement "{\n    ec_point_free(peVar3);\n    peVar3 = (ec_point *)0x0;\n  }" { (expression_statement "ec_point_free(peVar3);" (call_expression "ec_point_free(peVar3)" identifier (argument_list "(peVar3)" ( identifier ))) ;) (expression_statement "peVar3 = (ec_point *)0x0;" (assignment_expression "peVar3 = (ec_point *)0x0" identifier = (cast_expression "(ec_point *)0x0" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return peVar3;" 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_00067ae8();\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_00067ae8();\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_00067ae8();\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_00067ae8();" (assignment_expression "uVar1 = FUN_00067ae8()" identifier = (call_expression "FUN_00067ae8()" 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_00067ae8();\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_00067ae8();\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_00067ae8();" (assignment_expression "uVar1 = FUN_00067ae8()" (identifier "uVar1") (= "=") (call_expression "FUN_00067ae8()" (identifier "FUN_00067ae8") (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_4 *var_4;
  int var_12;
  type_1 *var_10;
  type_4 in_a3;
  type_3 *curve_00;
  
  if (curve->type != var_1) {
    if (curve->type == var_2) {
      var_10 = function_1(privateKey,curve);
      return var_10;
    }
    return (type_1 *)0x0;
  }
  var_10 = &(curve->field_5).w.G;
  curve_00 = var_10->curve;
  if (curve_00->type != var_1) {
    if (curve_00->type == var_2) {
      var_4 = (type_4 *)
               (**(type_5 **)(var_3 + 0x4c130))
                         (1,0x14,privateKey,in_a3,var_3 + 0x54098);
      *var_4 = curve_00;
      var_4[1] = 0;
      var_4[2] = 0;
      var_4[3] = 0;
                    /* WARNING: Subroutine does not return */
      *(type_6 *)(var_4 + 4) = 1;
      var_5((type_7)privateKey);
    }
    var_6(var_10,0);
    var_7(var_10);
                    /* WARNING: Subroutine does not return */
    var_5((type_7)privateKey);
  }
  var_12 = var_8(curve_00);
  var_10 = var_9(var_10,privateKey,var_12);
  if ((var_10 == (type_1 *)0x0) ||
     ((var_10->infinity == '\0' && (var_12 = var_11(var_10), var_12 == 0)))) {
    var_13(var_10);
    var_10 = (type_1 *)0x0;
  }
  return var_10;
}


(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_00067ae8();
  return uVar1;
}

