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

int __regparm3 ec_aminus3(ec_curve *curve)

{
  Bignum_conflict b;
  int iVar1;
  
  b = bignum_add_long((Bignum_conflict)(curve->field_5).w.a,3);
  iVar1 = bignum_cmp((Bignum_conflict)curve->p,b);
  freebn(b);
  return (uint)(iVar1 == 0);
}



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

bool __regparm3 FUN_0005c0f0(int param_1)

{
  undefined4 uVar1;
  int iVar2;
  
  uVar1 = FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3);
  iVar2 = FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1);
  FUN_00053760(uVar1);
  return iVar2 == 0;
}


PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x0001c4f0
ADD EBX,0xb4656
SUB ESP,0x8
PUSH 0x3
PUSH dword ptr [EAX + 0x14]
CALL 0x00054ba0
MOV ESI,EAX
POP EAX
POP EDX
PUSH ESI
PUSH dword ptr [EDI + 0x10]
CALL 0x000540e0
MOV dword ptr [ESP],ESI
MOV EDI,EAX
CALL 0x00053760
ADD ESP,0x10
XOR EAX,EAX
TEST EDI,EDI
POP EBX
SETZ AL
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool __regparm3 FUN_0005c0f0(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3);\n  iVar2 = FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1);\n  FUN_00053760(uVar1);\n  return iVar2 == 0;\n}\n\n" comment (function_definition "bool __regparm3 FUN_0005c0f0(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3);\n  iVar2 = FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1);\n  FUN_00053760(uVar1);\n  return iVar2 == 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005c0f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3);\n  iVar2 = FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1);\n  FUN_00053760(uVar1);\n  return iVar2 == 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3);" (assignment_expression "uVar1 = FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3)" identifier = (call_expression "FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14),3)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "iVar2 = FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1);" (assignment_expression "iVar2 = FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1)" identifier = (call_expression "FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10),uVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "FUN_00053760(uVar1);" (call_expression "FUN_00053760(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return iVar2 == 0;" return (binary_expression "iVar2 == 0" identifier == number_literal) ;) })))
(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\nint __regparm3 ec_aminus3(ec_curve *curve)\n\n{\n  Bignum_conflict b;\n  int iVar1;\n  \n  b = bignum_add_long((Bignum_conflict)(curve->field_5).w.a,3);\n  iVar1 = bignum_cmp((Bignum_conflict)curve->p,b);\n  freebn(b);\n  return (uint)(iVar1 == 0);\n}\n\n" comment comment (function_definition "int __regparm3 ec_aminus3(ec_curve *curve)\n\n{\n  Bignum_conflict b;\n  int iVar1;\n  \n  b = bignum_add_long((Bignum_conflict)(curve->field_5).w.a,3);\n  iVar1 = bignum_cmp((Bignum_conflict)curve->p,b);\n  freebn(b);\n  return (uint)(iVar1 == 0);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "ec_aminus3(ec_curve *curve)" identifier (parameter_list "(ec_curve *curve)" ( (parameter_declaration "ec_curve *curve" type_identifier (pointer_declarator "*curve" * identifier)) ))) (compound_statement "{\n  Bignum_conflict b;\n  int iVar1;\n  \n  b = bignum_add_long((Bignum_conflict)(curve->field_5).w.a,3);\n  iVar1 = bignum_cmp((Bignum_conflict)curve->p,b);\n  freebn(b);\n  return (uint)(iVar1 == 0);\n}" { (declaration "Bignum_conflict b;" type_identifier identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "b = bignum_add_long((Bignum_conflict)(curve->field_5).w.a,3);" (assignment_expression "b = bignum_add_long((Bignum_conflict)(curve->field_5).w.a,3)" identifier = (call_expression "bignum_add_long((Bignum_conflict)(curve->field_5).w.a,3)" identifier (argument_list "((Bignum_conflict)(curve->field_5).w.a,3)" ( (field_expression "(Bignum_conflict)(curve->field_5).w.a" (field_expression "(Bignum_conflict)(curve->field_5).w" (call_expression "(Bignum_conflict)(curve->field_5)" (parenthesized_expression "(Bignum_conflict)" ( identifier )) (argument_list "(curve->field_5)" ( (field_expression "curve->field_5" identifier -> field_identifier) ))) . field_identifier) . field_identifier) , number_literal )))) ;) (expression_statement "iVar1 = bignum_cmp((Bignum_conflict)curve->p,b);" (assignment_expression "iVar1 = bignum_cmp((Bignum_conflict)curve->p,b)" identifier = (call_expression "bignum_cmp((Bignum_conflict)curve->p,b)" identifier (argument_list "((Bignum_conflict)curve->p,b)" ( (cast_expression "(Bignum_conflict)curve->p" ( (type_descriptor "Bignum_conflict" type_identifier) ) (field_expression "curve->p" identifier -> field_identifier)) , identifier )))) ;) (expression_statement "freebn(b);" (call_expression "freebn(b)" identifier (argument_list "(b)" ( identifier ))) ;) (return_statement "return (uint)(iVar1 == 0);" return (call_expression "(uint)(iVar1 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) ;) })))
(translation_unit "bool __regparm3 FUN_0005c0f0(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3);\n  iVar2 = FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1);\n  FUN_00053760(uVar1);\n  return iVar2 == 0;\n}\n\n" (function_definition "bool __regparm3 FUN_0005c0f0(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3);\n  iVar2 = FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1);\n  FUN_00053760(uVar1);\n  return iVar2 == 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005c0f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3);\n  iVar2 = FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1);\n  FUN_00053760(uVar1);\n  return iVar2 == 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3);" (assignment_expression "uVar1 = FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3)" identifier = (call_expression "FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14),3)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) , number_literal )))) ;) (expression_statement "iVar2 = FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1);" (assignment_expression "iVar2 = FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1)" identifier = (call_expression "FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10),uVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "FUN_00053760(uVar1);" (call_expression "FUN_00053760(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return iVar2 == 0;" return (binary_expression "iVar2 == 0" identifier == number_literal) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return (binary_expression IDENT == LIT) ;) })))
(function_definition "bool __regparm3 FUN_0005c0f0(int param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3);\n  iVar2 = FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1);\n  FUN_00053760(uVar1);\n  return iVar2 == 0;\n}" (primitive_type "bool") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0005c0f0(int param_1)" (identifier "FUN_0005c0f0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3);\n  iVar2 = FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1);\n  FUN_00053760(uVar1);\n  return iVar2 == 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "uVar1 = FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3);" (assignment_expression "uVar1 = FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3)" (identifier "uVar1") (= "=") (call_expression "FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3)" (identifier "FUN_00054ba0") (argument_list "(*(undefined4 *)(param_1 + 0x14),3)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (number_literal "3") () ")")))) (; ";")) (expression_statement "iVar2 = FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1);" (assignment_expression "iVar2 = FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1)" (identifier "iVar2") (= "=") (call_expression "FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1)" (identifier "FUN_000540e0") (argument_list "(*(undefined4 *)(param_1 + 0x10),uVar1)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "FUN_00053760(uVar1);" (call_expression "FUN_00053760(uVar1)" (identifier "FUN_00053760") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return iVar2 == 0;" (return "return") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *curve)

{
  type_2 b;
  int var_4;
  
  b = var_1((type_2)(curve->field_5).w.a,3);
  var_4 = var_2((type_2)curve->p,b);
  var_3(b);
  return (uint)(var_4 == 0);
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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))))) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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))))) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))

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

bool __regparm3 MASKED(int param_1)

{
  undefined4 uVar1;
  int iVar2;
  
  uVar1 = FUN_00054ba0(*(undefined4 *)(param_1 + 0x14),3);
  iVar2 = FUN_000540e0(*(undefined4 *)(param_1 + 0x10),uVar1);
  FUN_00053760(uVar1);
  return iVar2 == 0;
}

