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

ec_point * __regparm3 ecp_mul_(ec_point *a,Bignum b,int aminus3)

{
  ec_curve *peVar1;
  ec_point *b_00;
  ec_point *peVar2;
  int iVar3;
  ec_point *peVar4;
  int iVar5;
  ec_point *a_00;
  int i;
  
  b_00 = ec_point_copy(a);
  peVar1 = a->curve;
  peVar2 = (ec_point *)safemalloc(1,0x14);
  peVar2->curve = peVar1;
  peVar2->x = (Bignum)0x0;
  peVar2->y = (Bignum)0x0;
  peVar2->z = (Bignum)0x0;
  peVar2->infinity = '\x01';
  iVar3 = bignum_bitcount((Bignum_conflict)b);
  if (0 < iVar3) {
    i = 0;
    a_00 = peVar2;
    while( true ) {
      iVar5 = bignum_bit((Bignum_conflict)b,i);
      peVar2 = a_00;
      if (iVar5 != 0) {
        peVar2 = ecp_add(a_00,b_00,aminus3);
        ec_point_free(a_00);
      }
      i = i + 1;
      if (i == iVar3) break;
      peVar4 = ecp_double(b_00,aminus3);
      ec_point_free(b_00);
      a_00 = peVar2;
      b_00 = peVar4;
    }
  }
  ec_point_free(b_00);
  return peVar2;
}



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

undefined4 * __regparm3 FUN_0002ace0(undefined4 *param_1,undefined4 param_2)

{
  undefined4 uVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  undefined4 *puVar6;
  int iVar7;
  
  uVar1 = FUN_00028030();
  uVar4 = *param_1;
  puVar2 = (undefined4 *)FUN_0001bd60(1,0x14);
  *puVar2 = uVar4;
  puVar2[1] = 0;
  puVar2[2] = 0;
  puVar2[3] = 0;
  *(undefined1 *)(puVar2 + 4) = 1;
  iVar3 = FUN_000221a0(param_2);
  if (0 < iVar3) {
    iVar7 = 0;
    puVar6 = puVar2;
    while( true ) {
      iVar5 = FUN_000222d0(param_2,iVar7);
      puVar2 = puVar6;
      if (iVar5 != 0) {
        puVar2 = (undefined4 *)FUN_00028fa0();
        FUN_0002ac70(puVar6);
      }
      iVar7 = iVar7 + 1;
      if (iVar7 == iVar3) break;
      uVar4 = FUN_000296b0();
      FUN_0002ac70(uVar1);
      puVar6 = puVar2;
      uVar1 = uVar4;
    }
  }
  FUN_0002ac70(uVar1);
  return puVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00014540
ADD EBX,0x32179
SUB ESP,0x1c
MOV dword ptr [ESP + 0x8],EDX
MOV dword ptr [ESP + 0x4],ECX
CALL 0x00028030
SUB ESP,0x8
MOV ESI,dword ptr [ESI]
PUSH 0x14
MOV EDI,EAX
PUSH 0x1
CALL 0x0001bd60
MOV dword ptr [EAX],ESI
MOV EBP,EAX
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
MOV byte ptr [EAX + 0x10],0x1
POP EAX
PUSH dword ptr [ESP + 0x14]
CALL 0x000221a0
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
TEST EAX,EAX
JLE 0x0002ad8e
XOR ESI,ESI
JMP 0x0002ad71
MOV EDX,dword ptr [ESP + 0x4]
MOV EAX,EDI
CALL 0x000296b0
SUB ESP,0xc
MOV dword ptr [ESP + 0xc],EAX
PUSH EDI
CALL 0x0002ac70
MOV EAX,dword ptr [ESP + 0x10]
ADD ESP,0x10
MOV EDI,EAX
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [ESP + 0x14]
CALL 0x000222d0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0002ada8
ADD ESI,0x1
CMP ESI,dword ptr [ESP + 0xc]
JNZ 0x0002ad50
SUB ESP,0xc
PUSH EDI
CALL 0x0002ac70
ADD ESP,0x2c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,dword ptr [ESP + 0x4]
MOV EDX,EDI
MOV EAX,EBP
CALL 0x00028fa0
SUB ESP,0xc
MOV dword ptr [ESP + 0xc],EAX
PUSH EBP
CALL 0x0002ac70
ADD ESP,0x10
MOV EAX,dword ptr [ESP]
MOV EBP,EAX
JMP 0x0002ad85
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * __regparm3 FUN_0002ace0(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  \n  uVar1 = FUN_00028030();\n  uVar4 = *param_1;\n  puVar2 = (undefined4 *)FUN_0001bd60(1,0x14);\n  *puVar2 = uVar4;\n  puVar2[1] = 0;\n  puVar2[2] = 0;\n  puVar2[3] = 0;\n  *(undefined1 *)(puVar2 + 4) = 1;\n  iVar3 = FUN_000221a0(param_2);\n  if (0 < iVar3) {\n    iVar7 = 0;\n    puVar6 = puVar2;\n    while( true ) {\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }\n  }\n  FUN_0002ac70(uVar1);\n  return puVar2;\n}\n\n" comment (ERROR "undefined4 * __regparm3 FUN_0002ace0(undefined4 *param_1,undefined4 param_2)" (binary_expression "undefined4 * __regparm3 FUN_0002ace0(undefined4 *param_1,undefined4 param_2)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_0002ace0(undefined4 *param_1,undefined4 param_2)" identifier (argument_list "(undefined4 *param_1,undefined4 param_2)" ( (binary_expression "undefined4 *param_1" identifier * identifier) , identifier (ERROR "param_2" identifier) ))))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  \n  uVar1 = FUN_00028030();\n  uVar4 = *param_1;\n  puVar2 = (undefined4 *)FUN_0001bd60(1,0x14);\n  *puVar2 = uVar4;\n  puVar2[1] = 0;\n  puVar2[2] = 0;\n  puVar2[3] = 0;\n  *(undefined1 *)(puVar2 + 4) = 1;\n  iVar3 = FUN_000221a0(param_2);\n  if (0 < iVar3) {\n    iVar7 = 0;\n    puVar6 = puVar2;\n    while( true ) {\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }\n  }\n  FUN_0002ac70(uVar1);\n  return puVar2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "uVar1 = FUN_00028030();" (assignment_expression "uVar1 = FUN_00028030()" identifier = (call_expression "FUN_00028030()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = *param_1;" (assignment_expression "uVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "puVar2 = (undefined4 *)FUN_0001bd60(1,0x14);" (assignment_expression "puVar2 = (undefined4 *)FUN_0001bd60(1,0x14)" identifier = (cast_expression "(undefined4 *)FUN_0001bd60(1,0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001bd60(1,0x14)" identifier (argument_list "(1,0x14)" ( number_literal , number_literal ))))) ;) (expression_statement "*puVar2 = uVar4;" (assignment_expression "*puVar2 = uVar4" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(puVar2 + 4) = 1;" (assignment_expression "*(undefined1 *)(puVar2 + 4) = 1" (pointer_expression "*(undefined1 *)(puVar2 + 4)" * (cast_expression "(undefined1 *)(puVar2 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = FUN_000221a0(param_2);" (assignment_expression "iVar3 = FUN_000221a0(param_2)" identifier = (call_expression "FUN_000221a0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (0 < iVar3) {\n    iVar7 = 0;\n    puVar6 = puVar2;\n    while( true ) {\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }\n  }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n    iVar7 = 0;\n    puVar6 = puVar2;\n    while( true ) {\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }\n  }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar6 = puVar2;" (assignment_expression "puVar6 = puVar2" identifier = identifier) ;) (while_statement "while( true ) {\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }" { (expression_statement "iVar5 = FUN_000222d0(param_2,iVar7);" (assignment_expression "iVar5 = FUN_000222d0(param_2,iVar7)" identifier = (call_expression "FUN_000222d0(param_2,iVar7)" identifier (argument_list "(param_2,iVar7)" ( identifier , identifier )))) ;) (expression_statement "puVar2 = puVar6;" (assignment_expression "puVar2 = puVar6" identifier = identifier) ;) (if_statement "if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }" { (expression_statement "puVar2 = (undefined4 *)FUN_00028fa0();" (assignment_expression "puVar2 = (undefined4 *)FUN_00028fa0()" identifier = (cast_expression "(undefined4 *)FUN_00028fa0()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00028fa0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "FUN_0002ac70(puVar6);" (call_expression "FUN_0002ac70(puVar6)" identifier (argument_list "(puVar6)" ( identifier ))) ;) })) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (iVar7 == iVar3) break;" if (parenthesized_expression "(iVar7 == iVar3)" ( (binary_expression "iVar7 == iVar3" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar4 = FUN_000296b0();" (assignment_expression "uVar4 = FUN_000296b0()" identifier = (call_expression "FUN_000296b0()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0002ac70(uVar1);" (call_expression "FUN_0002ac70(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "puVar6 = puVar2;" (assignment_expression "puVar6 = puVar2" identifier = identifier) ;) (expression_statement "uVar1 = uVar4;" (assignment_expression "uVar1 = uVar4" identifier = identifier) ;) })) })) (expression_statement "FUN_0002ac70(uVar1);" (call_expression "FUN_0002ac70(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return puVar2;" return identifier ;) }))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nec_point * __regparm3 ecp_mul_(ec_point *a,Bignum b,int aminus3)\n\n{\n  ec_curve *peVar1;\n  ec_point *b_00;\n  ec_point *peVar2;\n  int iVar3;\n  ec_point *peVar4;\n  int iVar5;\n  ec_point *a_00;\n  int i;\n  \n  b_00 = ec_point_copy(a);\n  peVar1 = a->curve;\n  peVar2 = (ec_point *)safemalloc(1,0x14);\n  peVar2->curve = peVar1;\n  peVar2->x = (Bignum)0x0;\n  peVar2->y = (Bignum)0x0;\n  peVar2->z = (Bignum)0x0;\n  peVar2->infinity = '\x01';\n  iVar3 = bignum_bitcount((Bignum_conflict)b);\n  if (0 < iVar3) {\n    i = 0;\n    a_00 = peVar2;\n    while( true ) {\n      iVar5 = bignum_bit((Bignum_conflict)b,i);\n      peVar2 = a_00;\n      if (iVar5 != 0) {\n        peVar2 = ecp_add(a_00,b_00,aminus3);\n        ec_point_free(a_00);\n      }\n      i = i + 1;\n      if (i == iVar3) break;\n      peVar4 = ecp_double(b_00,aminus3);\n      ec_point_free(b_00);\n      a_00 = peVar2;\n      b_00 = peVar4;\n    }\n  }\n  ec_point_free(b_00);\n  return peVar2;\n}\n\n" comment comment (ERROR "ec_point * __regparm3 ecp_mul_(ec_point *a,Bignum b,int aminus3)" (binary_expression "ec_point * __regparm3 ecp_mul_(ec_point *a,Bignum b,int aminus3)" identifier * (ERROR "__regparm3" identifier) (call_expression "ecp_mul_(ec_point *a,Bignum b,int aminus3)" identifier (argument_list "(ec_point *a,Bignum b,int aminus3)" ( (binary_expression "ec_point *a" identifier * identifier) , identifier (ERROR "b" identifier) , (ERROR "int" identifier) identifier ))))) (compound_statement "{\n  ec_curve *peVar1;\n  ec_point *b_00;\n  ec_point *peVar2;\n  int iVar3;\n  ec_point *peVar4;\n  int iVar5;\n  ec_point *a_00;\n  int i;\n  \n  b_00 = ec_point_copy(a);\n  peVar1 = a->curve;\n  peVar2 = (ec_point *)safemalloc(1,0x14);\n  peVar2->curve = peVar1;\n  peVar2->x = (Bignum)0x0;\n  peVar2->y = (Bignum)0x0;\n  peVar2->z = (Bignum)0x0;\n  peVar2->infinity = '\x01';\n  iVar3 = bignum_bitcount((Bignum_conflict)b);\n  if (0 < iVar3) {\n    i = 0;\n    a_00 = peVar2;\n    while( true ) {\n      iVar5 = bignum_bit((Bignum_conflict)b,i);\n      peVar2 = a_00;\n      if (iVar5 != 0) {\n        peVar2 = ecp_add(a_00,b_00,aminus3);\n        ec_point_free(a_00);\n      }\n      i = i + 1;\n      if (i == iVar3) break;\n      peVar4 = ecp_double(b_00,aminus3);\n      ec_point_free(b_00);\n      a_00 = peVar2;\n      b_00 = peVar4;\n    }\n  }\n  ec_point_free(b_00);\n  return peVar2;\n}" { (declaration "ec_curve *peVar1;" type_identifier (pointer_declarator "*peVar1" * identifier) ;) (declaration "ec_point *b_00;" type_identifier (pointer_declarator "*b_00" * identifier) ;) (declaration "ec_point *peVar2;" type_identifier (pointer_declarator "*peVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "ec_point *peVar4;" type_identifier (pointer_declarator "*peVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "ec_point *a_00;" type_identifier (pointer_declarator "*a_00" * identifier) ;) (declaration "int i;" primitive_type identifier ;) (expression_statement "b_00 = ec_point_copy(a);" (assignment_expression "b_00 = ec_point_copy(a)" identifier = (call_expression "ec_point_copy(a)" identifier (argument_list "(a)" ( identifier )))) ;) (expression_statement "peVar1 = a->curve;" (assignment_expression "peVar1 = a->curve" identifier = (field_expression "a->curve" identifier -> field_identifier)) ;) (expression_statement "peVar2 = (ec_point *)safemalloc(1,0x14);" (assignment_expression "peVar2 = (ec_point *)safemalloc(1,0x14)" identifier = (cast_expression "(ec_point *)safemalloc(1,0x14)" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x14)" identifier (argument_list "(1,0x14)" ( number_literal , number_literal ))))) ;) (expression_statement "peVar2->curve = peVar1;" (assignment_expression "peVar2->curve = peVar1" (field_expression "peVar2->curve" identifier -> field_identifier) = identifier) ;) (expression_statement "peVar2->x = (Bignum)0x0;" (assignment_expression "peVar2->x = (Bignum)0x0" (field_expression "peVar2->x" identifier -> field_identifier) = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) (expression_statement "peVar2->y = (Bignum)0x0;" (assignment_expression "peVar2->y = (Bignum)0x0" (field_expression "peVar2->y" identifier -> field_identifier) = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) (expression_statement "peVar2->z = (Bignum)0x0;" (assignment_expression "peVar2->z = (Bignum)0x0" (field_expression "peVar2->z" identifier -> field_identifier) = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) (expression_statement "peVar2->infinity = '\x01';" (assignment_expression "peVar2->infinity = '\x01'" (field_expression "peVar2->infinity" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "iVar3 = bignum_bitcount((Bignum_conflict)b);" (assignment_expression "iVar3 = bignum_bitcount((Bignum_conflict)b)" identifier = (call_expression "bignum_bitcount((Bignum_conflict)b)" identifier (argument_list "((Bignum_conflict)b)" ( (cast_expression "(Bignum_conflict)b" ( (type_descriptor "Bignum_conflict" type_identifier) ) identifier) )))) ;) (if_statement "if (0 < iVar3) {\n    i = 0;\n    a_00 = peVar2;\n    while( true ) {\n      iVar5 = bignum_bit((Bignum_conflict)b,i);\n      peVar2 = a_00;\n      if (iVar5 != 0) {\n        peVar2 = ecp_add(a_00,b_00,aminus3);\n        ec_point_free(a_00);\n      }\n      i = i + 1;\n      if (i == iVar3) break;\n      peVar4 = ecp_double(b_00,aminus3);\n      ec_point_free(b_00);\n      a_00 = peVar2;\n      b_00 = peVar4;\n    }\n  }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n    i = 0;\n    a_00 = peVar2;\n    while( true ) {\n      iVar5 = bignum_bit((Bignum_conflict)b,i);\n      peVar2 = a_00;\n      if (iVar5 != 0) {\n        peVar2 = ecp_add(a_00,b_00,aminus3);\n        ec_point_free(a_00);\n      }\n      i = i + 1;\n      if (i == iVar3) break;\n      peVar4 = ecp_double(b_00,aminus3);\n      ec_point_free(b_00);\n      a_00 = peVar2;\n      b_00 = peVar4;\n    }\n  }" { (expression_statement "i = 0;" (assignment_expression "i = 0" identifier = number_literal) ;) (expression_statement "a_00 = peVar2;" (assignment_expression "a_00 = peVar2" identifier = identifier) ;) (while_statement "while( true ) {\n      iVar5 = bignum_bit((Bignum_conflict)b,i);\n      peVar2 = a_00;\n      if (iVar5 != 0) {\n        peVar2 = ecp_add(a_00,b_00,aminus3);\n        ec_point_free(a_00);\n      }\n      i = i + 1;\n      if (i == iVar3) break;\n      peVar4 = ecp_double(b_00,aminus3);\n      ec_point_free(b_00);\n      a_00 = peVar2;\n      b_00 = peVar4;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar5 = bignum_bit((Bignum_conflict)b,i);\n      peVar2 = a_00;\n      if (iVar5 != 0) {\n        peVar2 = ecp_add(a_00,b_00,aminus3);\n        ec_point_free(a_00);\n      }\n      i = i + 1;\n      if (i == iVar3) break;\n      peVar4 = ecp_double(b_00,aminus3);\n      ec_point_free(b_00);\n      a_00 = peVar2;\n      b_00 = peVar4;\n    }" { (expression_statement "iVar5 = bignum_bit((Bignum_conflict)b,i);" (assignment_expression "iVar5 = bignum_bit((Bignum_conflict)b,i)" identifier = (call_expression "bignum_bit((Bignum_conflict)b,i)" identifier (argument_list "((Bignum_conflict)b,i)" ( (cast_expression "(Bignum_conflict)b" ( (type_descriptor "Bignum_conflict" type_identifier) ) identifier) , identifier )))) ;) (expression_statement "peVar2 = a_00;" (assignment_expression "peVar2 = a_00" identifier = identifier) ;) (if_statement "if (iVar5 != 0) {\n        peVar2 = ecp_add(a_00,b_00,aminus3);\n        ec_point_free(a_00);\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        peVar2 = ecp_add(a_00,b_00,aminus3);\n        ec_point_free(a_00);\n      }" { (expression_statement "peVar2 = ecp_add(a_00,b_00,aminus3);" (assignment_expression "peVar2 = ecp_add(a_00,b_00,aminus3)" identifier = (call_expression "ecp_add(a_00,b_00,aminus3)" identifier (argument_list "(a_00,b_00,aminus3)" ( identifier , identifier , identifier )))) ;) (expression_statement "ec_point_free(a_00);" (call_expression "ec_point_free(a_00)" identifier (argument_list "(a_00)" ( identifier ))) ;) })) (expression_statement "i = i + 1;" (assignment_expression "i = i + 1" identifier = (binary_expression "i + 1" identifier + number_literal)) ;) (if_statement "if (i == iVar3) break;" if (parenthesized_expression "(i == iVar3)" ( (binary_expression "i == iVar3" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "peVar4 = ecp_double(b_00,aminus3);" (assignment_expression "peVar4 = ecp_double(b_00,aminus3)" identifier = (call_expression "ecp_double(b_00,aminus3)" identifier (argument_list "(b_00,aminus3)" ( identifier , identifier )))) ;) (expression_statement "ec_point_free(b_00);" (call_expression "ec_point_free(b_00)" identifier (argument_list "(b_00)" ( identifier ))) ;) (expression_statement "a_00 = peVar2;" (assignment_expression "a_00 = peVar2" identifier = identifier) ;) (expression_statement "b_00 = peVar4;" (assignment_expression "b_00 = peVar4" identifier = identifier) ;) })) })) (expression_statement "ec_point_free(b_00);" (call_expression "ec_point_free(b_00)" identifier (argument_list "(b_00)" ( identifier ))) ;) (return_statement "return peVar2;" return identifier ;) }))
(translation_unit "undefined4 * __regparm3 FUN_0002ace0(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  \n  uVar1 = FUN_00028030();\n  uVar4 = *param_1;\n  puVar2 = (undefined4 *)FUN_0001bd60(1,0x14);\n  *puVar2 = uVar4;\n  puVar2[1] = 0;\n  puVar2[2] = 0;\n  puVar2[3] = 0;\n  *(undefined1 *)(puVar2 + 4) = 1;\n  iVar3 = FUN_000221a0(param_2);\n  if (0 < iVar3) {\n    iVar7 = 0;\n    puVar6 = puVar2;\n    while( true ) {\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }\n  }\n  FUN_0002ac70(uVar1);\n  return puVar2;\n}\n\n" (ERROR "undefined4 * __regparm3 FUN_0002ace0(undefined4 *param_1,undefined4 param_2)" (binary_expression "undefined4 * __regparm3 FUN_0002ace0(undefined4 *param_1,undefined4 param_2)" identifier * (ERROR "__regparm3" identifier) (call_expression "FUN_0002ace0(undefined4 *param_1,undefined4 param_2)" identifier (argument_list "(undefined4 *param_1,undefined4 param_2)" ( (binary_expression "undefined4 *param_1" identifier * identifier) , identifier (ERROR "param_2" identifier) ))))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  \n  uVar1 = FUN_00028030();\n  uVar4 = *param_1;\n  puVar2 = (undefined4 *)FUN_0001bd60(1,0x14);\n  *puVar2 = uVar4;\n  puVar2[1] = 0;\n  puVar2[2] = 0;\n  puVar2[3] = 0;\n  *(undefined1 *)(puVar2 + 4) = 1;\n  iVar3 = FUN_000221a0(param_2);\n  if (0 < iVar3) {\n    iVar7 = 0;\n    puVar6 = puVar2;\n    while( true ) {\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }\n  }\n  FUN_0002ac70(uVar1);\n  return puVar2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "uVar1 = FUN_00028030();" (assignment_expression "uVar1 = FUN_00028030()" identifier = (call_expression "FUN_00028030()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = *param_1;" (assignment_expression "uVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "puVar2 = (undefined4 *)FUN_0001bd60(1,0x14);" (assignment_expression "puVar2 = (undefined4 *)FUN_0001bd60(1,0x14)" identifier = (cast_expression "(undefined4 *)FUN_0001bd60(1,0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001bd60(1,0x14)" identifier (argument_list "(1,0x14)" ( number_literal , number_literal ))))) ;) (expression_statement "*puVar2 = uVar4;" (assignment_expression "*puVar2 = uVar4" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(puVar2 + 4) = 1;" (assignment_expression "*(undefined1 *)(puVar2 + 4) = 1" (pointer_expression "*(undefined1 *)(puVar2 + 4)" * (cast_expression "(undefined1 *)(puVar2 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = FUN_000221a0(param_2);" (assignment_expression "iVar3 = FUN_000221a0(param_2)" identifier = (call_expression "FUN_000221a0(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (0 < iVar3) {\n    iVar7 = 0;\n    puVar6 = puVar2;\n    while( true ) {\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }\n  }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n    iVar7 = 0;\n    puVar6 = puVar2;\n    while( true ) {\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }\n  }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar6 = puVar2;" (assignment_expression "puVar6 = puVar2" identifier = identifier) ;) (while_statement "while( true ) {\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }" { (expression_statement "iVar5 = FUN_000222d0(param_2,iVar7);" (assignment_expression "iVar5 = FUN_000222d0(param_2,iVar7)" identifier = (call_expression "FUN_000222d0(param_2,iVar7)" identifier (argument_list "(param_2,iVar7)" ( identifier , identifier )))) ;) (expression_statement "puVar2 = puVar6;" (assignment_expression "puVar2 = puVar6" identifier = identifier) ;) (if_statement "if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }" { (expression_statement "puVar2 = (undefined4 *)FUN_00028fa0();" (assignment_expression "puVar2 = (undefined4 *)FUN_00028fa0()" identifier = (cast_expression "(undefined4 *)FUN_00028fa0()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00028fa0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "FUN_0002ac70(puVar6);" (call_expression "FUN_0002ac70(puVar6)" identifier (argument_list "(puVar6)" ( identifier ))) ;) })) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (iVar7 == iVar3) break;" if (parenthesized_expression "(iVar7 == iVar3)" ( (binary_expression "iVar7 == iVar3" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar4 = FUN_000296b0();" (assignment_expression "uVar4 = FUN_000296b0()" identifier = (call_expression "FUN_000296b0()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0002ac70(uVar1);" (call_expression "FUN_0002ac70(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "puVar6 = puVar2;" (assignment_expression "puVar6 = puVar2" identifier = identifier) ;) (expression_statement "uVar1 = uVar4;" (assignment_expression "uVar1 = uVar4" identifier = identifier) ;) })) })) (expression_statement "FUN_0002ac70(uVar1);" (call_expression "FUN_0002ac70(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return puVar2;" return identifier ;) }))
(translation_unit (ERROR (binary_expression IDENT * (ERROR IDENT) (call_expression IDENT (argument_list ( (binary_expression IDENT * IDENT) , IDENT (ERROR IDENT) ))))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) }))
(ERROR "undefined4 * __regparm3 FUN_0002ace0(undefined4 *param_1,undefined4 param_2)" (binary_expression "undefined4 * __regparm3 FUN_0002ace0(undefined4 *param_1,undefined4 param_2)" (identifier "undefined4") (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (call_expression "FUN_0002ace0(undefined4 *param_1,undefined4 param_2)" (identifier "FUN_0002ace0") (argument_list "(undefined4 *param_1,undefined4 param_2)" (( "(") (binary_expression "undefined4 *param_1" (identifier "undefined4") (* "*") (identifier "param_1")) (, ",") (identifier "undefined4") (ERROR "param_2" (identifier "param_2")) () ")"))))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  \n  uVar1 = FUN_00028030();\n  uVar4 = *param_1;\n  puVar2 = (undefined4 *)FUN_0001bd60(1,0x14);\n  *puVar2 = uVar4;\n  puVar2[1] = 0;\n  puVar2[2] = 0;\n  puVar2[3] = 0;\n  *(undefined1 *)(puVar2 + 4) = 1;\n  iVar3 = FUN_000221a0(param_2);\n  if (0 < iVar3) {\n    iVar7 = 0;\n    puVar6 = puVar2;\n    while( true ) {\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }\n  }\n  FUN_0002ac70(uVar1);\n  return puVar2;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (expression_statement "uVar1 = FUN_00028030();" (assignment_expression "uVar1 = FUN_00028030()" (identifier "uVar1") (= "=") (call_expression "FUN_00028030()" (identifier "FUN_00028030") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = *param_1;" (assignment_expression "uVar4 = *param_1" (identifier "uVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "puVar2 = (undefined4 *)FUN_0001bd60(1,0x14);" (assignment_expression "puVar2 = (undefined4 *)FUN_0001bd60(1,0x14)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_0001bd60(1,0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001bd60(1,0x14)" (identifier "FUN_0001bd60") (argument_list "(1,0x14)" (( "(") (number_literal "1") (, ",") (number_literal "0x14") () ")"))))) (; ";")) (expression_statement "*puVar2 = uVar4;" (assignment_expression "*puVar2 = uVar4" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(puVar2 + 4) = 1;" (assignment_expression "*(undefined1 *)(puVar2 + 4) = 1" (pointer_expression "*(undefined1 *)(puVar2 + 4)" (* "*") (cast_expression "(undefined1 *)(puVar2 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 4)" (( "(") (binary_expression "puVar2 + 4" (identifier "puVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar3 = FUN_000221a0(param_2);" (assignment_expression "iVar3 = FUN_000221a0(param_2)" (identifier "iVar3") (= "=") (call_expression "FUN_000221a0(param_2)" (identifier "FUN_000221a0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (0 < iVar3) {\n    iVar7 = 0;\n    puVar6 = puVar2;\n    while( true ) {\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }\n  }" (if "if") (parenthesized_expression "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    iVar7 = 0;\n    puVar6 = puVar2;\n    while( true ) {\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }\n  }" ({ "{") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar6 = puVar2;" (assignment_expression "puVar6 = puVar2" (identifier "puVar6") (= "=") (identifier "puVar2")) (; ";")) (while_statement "while( true ) {\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar5 = FUN_000222d0(param_2,iVar7);\n      puVar2 = puVar6;\n      if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }\n      iVar7 = iVar7 + 1;\n      if (iVar7 == iVar3) break;\n      uVar4 = FUN_000296b0();\n      FUN_0002ac70(uVar1);\n      puVar6 = puVar2;\n      uVar1 = uVar4;\n    }" ({ "{") (expression_statement "iVar5 = FUN_000222d0(param_2,iVar7);" (assignment_expression "iVar5 = FUN_000222d0(param_2,iVar7)" (identifier "iVar5") (= "=") (call_expression "FUN_000222d0(param_2,iVar7)" (identifier "FUN_000222d0") (argument_list "(param_2,iVar7)" (( "(") (identifier "param_2") (, ",") (identifier "iVar7") () ")")))) (; ";")) (expression_statement "puVar2 = puVar6;" (assignment_expression "puVar2 = puVar6" (identifier "puVar2") (= "=") (identifier "puVar6")) (; ";")) (if_statement "if (iVar5 != 0) {\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        puVar2 = (undefined4 *)FUN_00028fa0();\n        FUN_0002ac70(puVar6);\n      }" ({ "{") (expression_statement "puVar2 = (undefined4 *)FUN_00028fa0();" (assignment_expression "puVar2 = (undefined4 *)FUN_00028fa0()" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_00028fa0()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00028fa0()" (identifier "FUN_00028fa0") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "FUN_0002ac70(puVar6);" (call_expression "FUN_0002ac70(puVar6)" (identifier "FUN_0002ac70") (argument_list "(puVar6)" (( "(") (identifier "puVar6") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar7 == iVar3) break;" (if "if") (parenthesized_expression "(iVar7 == iVar3)" (( "(") (binary_expression "iVar7 == iVar3" (identifier "iVar7") (== "==") (identifier "iVar3")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar4 = FUN_000296b0();" (assignment_expression "uVar4 = FUN_000296b0()" (identifier "uVar4") (= "=") (call_expression "FUN_000296b0()" (identifier "FUN_000296b0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_0002ac70(uVar1);" (call_expression "FUN_0002ac70(uVar1)" (identifier "FUN_0002ac70") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "puVar6 = puVar2;" (assignment_expression "puVar6 = puVar2" (identifier "puVar6") (= "=") (identifier "puVar2")) (; ";")) (expression_statement "uVar1 = uVar4;" (assignment_expression "uVar1 = uVar4" (identifier "uVar1") (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_0002ac70(uVar1);" (call_expression "FUN_0002ac70(uVar1)" (identifier "FUN_0002ac70") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))

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

type_2 * __regparm3 ecp_mul_(type_2 *a,type_3 b,int aminus3)

{
  type_1 *peVar1;
  type_2 *b_00;
  type_2 *peVar2;
  int var_4;
  type_2 *peVar4;
  int var_6;
  type_2 *a_00;
  int var_9;
  
  b_00 = var_1(a);
  peVar1 = a->curve;
  peVar2 = (type_2 *)var_2(1,0x14);
  peVar2->curve = peVar1;
  peVar2->x = (type_3)0x0;
  peVar2->y = (type_3)0x0;
  peVar2->z = (type_3)0x0;
  peVar2->infinity = '\x01';
  var_4 = var_3((type_4)b);
  if (0 < var_4) {
    var_9 = 0;
    a_00 = peVar2;
    while( true ) {
      var_6 = var_5((type_4)b,var_9);
      peVar2 = a_00;
      if (var_6 != 0) {
        peVar2 = var_7(a_00,b_00,aminus3);
        var_8(a_00);
      }
      var_9 = var_9 + 1;
      if (var_9 == var_4) break;
      peVar4 = var_10(b_00,aminus3);
      var_8(b_00);
      a_00 = peVar2;
      b_00 = peVar4;
    }
  }
  var_8(b_00);
  return peVar2;
}


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

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

undefined4 * __regparm3 MASKED(undefined4 *param_1,undefined4 param_2)

{
  undefined4 uVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  undefined4 *puVar6;
  int iVar7;
  
  uVar1 = FUN_00028030();
  uVar4 = *param_1;
  puVar2 = (undefined4 *)FUN_0001bd60(1,0x14);
  *puVar2 = uVar4;
  puVar2[1] = 0;
  puVar2[2] = 0;
  puVar2[3] = 0;
  *(undefined1 *)(puVar2 + 4) = 1;
  iVar3 = FUN_000221a0(param_2);
  if (0 < iVar3) {
    iVar7 = 0;
    puVar6 = puVar2;
    while( true ) {
      iVar5 = FUN_000222d0(param_2,iVar7);
      puVar2 = puVar6;
      if (iVar5 != 0) {
        puVar2 = (undefined4 *)FUN_00028fa0();
        FUN_0002ac70(puVar6);
      }
      iVar7 = iVar7 + 1;
      if (iVar7 == iVar3) break;
      uVar4 = FUN_000296b0();
      FUN_0002ac70(uVar1);
      puVar6 = puVar2;
      uVar1 = uVar4;
    }
  }
  FUN_0002ac70(uVar1);
  return puVar2;
}

