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

mp_limb_t __gmpn_invertappr(mp_ptr ip,mp_srcptr dp,mp_size_t n,mp_ptr scratch)

{
  mp_limb_t mVar1;
  
  if (199 < n) {
    mVar1 = __gmpn_ni_invertappr(ip,dp,n,scratch);
    return mVar1;
  }
  if (n != 1) {
    mVar1 = mpn_bc_invertappr(ip,dp,n,scratch);
    return mVar1;
  }
  *ip = (mp_limb_t)(((ulonglong)~*dp << 0x20 | 0xffffffff) / (ulonglong)*dp);
  return 0;
}



undefined4 __regparm2
__gmpn_invertappr(undefined4 param_1,undefined4 param_2,uint *param_3,int param_4,undefined4 param_5
                 )

{
  undefined4 uVar1;
  undefined4 *unaff_retaddr;
  
  entry(param_2,0x6d627);
  if (199 < param_4) {
    uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);
    return uVar1;
  }
  if (param_4 != 1) {
    uVar1 = FUN_0006cd00();
    return uVar1;
  }
  *unaff_retaddr = (int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3);
  return 0;
}


PUSH ESI
PUSH EBX
CALL 0x0001c340
ADD EBX,0x309d9
SUB ESP,0x4
MOV ECX,dword ptr [ESP + 0x18]
MOV ESI,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [ESP + 0x1c]
CMP ECX,0xc7
JG 0x0006d680
CMP ECX,0x1
JZ 0x0006d660
MOV dword ptr [ESP + 0x10],EAX
ADD ESP,0x4
MOV EAX,ESI
POP EBX
POP ESI
JMP 0x0006cd00
MOV ECX,dword ptr [EDX]
MOV EAX,0xffffffff
MOV EDX,ECX
NOT EDX
DIV ECX
MOV dword ptr [ESI],EAX
ADD ESP,0x4
XOR EAX,EAX
POP EBX
POP ESI
RET
PUSH EAX
PUSH ECX
PUSH EDX
PUSH ESI
CALL 0x0001c020
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "undefined4 __regparm2\n__gmpn_invertappr(undefined4 param_1,undefined4 param_2,uint *param_3,int param_4,undefined4 param_5\n                 )\n\n{\n  undefined4 uVar1;\n  undefined4 *unaff_retaddr;\n  \n  entry(param_2,0x6d627);\n  if (199 < param_4) {\n    uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);\n    return uVar1;\n  }\n  if (param_4 != 1) {\n    uVar1 = FUN_0006cd00();\n    return uVar1;\n  }\n  *unaff_retaddr = (int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3);\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm2\n__gmpn_invertappr(undefined4 param_1,undefined4 param_2,uint *param_3,int param_4,undefined4 param_5\n                 )\n\n{\n  undefined4 uVar1;\n  undefined4 *unaff_retaddr;\n  \n  entry(param_2,0x6d627);\n  if (199 < param_4) {\n    uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);\n    return uVar1;\n  }\n  if (param_4 != 1) {\n    uVar1 = FUN_0006cd00();\n    return uVar1;\n  }\n  *unaff_retaddr = (int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3);\n  return 0;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "__gmpn_invertappr(undefined4 param_1,undefined4 param_2,uint *param_3,int param_4,undefined4 param_5\n                 )" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,uint *param_3,int param_4,undefined4 param_5\n                 )" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *unaff_retaddr;\n  \n  entry(param_2,0x6d627);\n  if (199 < param_4) {\n    uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);\n    return uVar1;\n  }\n  if (param_4 != 1) {\n    uVar1 = FUN_0006cd00();\n    return uVar1;\n  }\n  *unaff_retaddr = (int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3);\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "entry(param_2,0x6d627);" (call_expression "entry(param_2,0x6d627)" identifier (argument_list "(param_2,0x6d627)" ( identifier , number_literal ))) ;) (if_statement "if (199 < param_4) {\n    uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);\n    return uVar1;\n  }" if (parenthesized_expression "(199 < param_4)" ( (binary_expression "199 < param_4" number_literal < identifier) )) (compound_statement "{\n    uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);\n    return uVar1;\n  }" { (expression_statement "uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);" (assignment_expression "uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5)" identifier = (call_expression "__gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5)" identifier (argument_list "(unaff_retaddr,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (param_4 != 1) {\n    uVar1 = FUN_0006cd00();\n    return uVar1;\n  }" if (parenthesized_expression "(param_4 != 1)" ( (binary_expression "param_4 != 1" identifier != number_literal) )) (compound_statement "{\n    uVar1 = FUN_0006cd00();\n    return uVar1;\n  }" { (expression_statement "uVar1 = FUN_0006cd00();" (assignment_expression "uVar1 = FUN_0006cd00()" identifier = (call_expression "FUN_0006cd00()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "*unaff_retaddr = (int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3);" (assignment_expression "*unaff_retaddr = (int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3)" (pointer_expression "*unaff_retaddr" * identifier) = (cast_expression "(int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3)" ( (binary_expression "((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3" (binary_expression "((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)" (parenthesized_expression "((ulonglong)~*param_3 << 0x20 | 0xffffffff)" ( (binary_expression "(ulonglong)~*param_3 << 0x20 | 0xffffffff" (binary_expression "(ulonglong)~*param_3 << 0x20" (cast_expression "(ulonglong)~*param_3" ( (type_descriptor "ulonglong" type_identifier) ) (unary_expression "~*param_3" ~ (pointer_expression "*param_3" * identifier))) << number_literal) | number_literal) )) / (parenthesized_expression "(ulonglong)" ( identifier ))) * identifier) )))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nmp_limb_t __gmpn_invertappr(mp_ptr ip,mp_srcptr dp,mp_size_t n,mp_ptr scratch)\n\n{\n  mp_limb_t mVar1;\n  \n  if (199 < n) {\n    mVar1 = __gmpn_ni_invertappr(ip,dp,n,scratch);\n    return mVar1;\n  }\n  if (n != 1) {\n    mVar1 = mpn_bc_invertappr(ip,dp,n,scratch);\n    return mVar1;\n  }\n  *ip = (mp_limb_t)(((ulonglong)~*dp << 0x20 | 0xffffffff) / (ulonglong)*dp);\n  return 0;\n}\n\n" comment (function_definition "mp_limb_t __gmpn_invertappr(mp_ptr ip,mp_srcptr dp,mp_size_t n,mp_ptr scratch)\n\n{\n  mp_limb_t mVar1;\n  \n  if (199 < n) {\n    mVar1 = __gmpn_ni_invertappr(ip,dp,n,scratch);\n    return mVar1;\n  }\n  if (n != 1) {\n    mVar1 = mpn_bc_invertappr(ip,dp,n,scratch);\n    return mVar1;\n  }\n  *ip = (mp_limb_t)(((ulonglong)~*dp << 0x20 | 0xffffffff) / (ulonglong)*dp);\n  return 0;\n}" type_identifier (function_declarator "__gmpn_invertappr(mp_ptr ip,mp_srcptr dp,mp_size_t n,mp_ptr scratch)" identifier (parameter_list "(mp_ptr ip,mp_srcptr dp,mp_size_t n,mp_ptr scratch)" ( (parameter_declaration "mp_ptr ip" type_identifier identifier) , (parameter_declaration "mp_srcptr dp" type_identifier identifier) , (parameter_declaration "mp_size_t n" type_identifier identifier) , (parameter_declaration "mp_ptr scratch" type_identifier identifier) ))) (compound_statement "{\n  mp_limb_t mVar1;\n  \n  if (199 < n) {\n    mVar1 = __gmpn_ni_invertappr(ip,dp,n,scratch);\n    return mVar1;\n  }\n  if (n != 1) {\n    mVar1 = mpn_bc_invertappr(ip,dp,n,scratch);\n    return mVar1;\n  }\n  *ip = (mp_limb_t)(((ulonglong)~*dp << 0x20 | 0xffffffff) / (ulonglong)*dp);\n  return 0;\n}" { (declaration "mp_limb_t mVar1;" type_identifier identifier ;) (if_statement "if (199 < n) {\n    mVar1 = __gmpn_ni_invertappr(ip,dp,n,scratch);\n    return mVar1;\n  }" if (parenthesized_expression "(199 < n)" ( (binary_expression "199 < n" number_literal < identifier) )) (compound_statement "{\n    mVar1 = __gmpn_ni_invertappr(ip,dp,n,scratch);\n    return mVar1;\n  }" { (expression_statement "mVar1 = __gmpn_ni_invertappr(ip,dp,n,scratch);" (assignment_expression "mVar1 = __gmpn_ni_invertappr(ip,dp,n,scratch)" identifier = (call_expression "__gmpn_ni_invertappr(ip,dp,n,scratch)" identifier (argument_list "(ip,dp,n,scratch)" ( identifier , identifier , identifier , identifier )))) ;) (return_statement "return mVar1;" return identifier ;) })) (if_statement "if (n != 1) {\n    mVar1 = mpn_bc_invertappr(ip,dp,n,scratch);\n    return mVar1;\n  }" if (parenthesized_expression "(n != 1)" ( (binary_expression "n != 1" identifier != number_literal) )) (compound_statement "{\n    mVar1 = mpn_bc_invertappr(ip,dp,n,scratch);\n    return mVar1;\n  }" { (expression_statement "mVar1 = mpn_bc_invertappr(ip,dp,n,scratch);" (assignment_expression "mVar1 = mpn_bc_invertappr(ip,dp,n,scratch)" identifier = (call_expression "mpn_bc_invertappr(ip,dp,n,scratch)" identifier (argument_list "(ip,dp,n,scratch)" ( identifier , identifier , identifier , identifier )))) ;) (return_statement "return mVar1;" return identifier ;) })) (expression_statement "*ip = (mp_limb_t)(((ulonglong)~*dp << 0x20 | 0xffffffff) / (ulonglong)*dp);" (assignment_expression "*ip = (mp_limb_t)(((ulonglong)~*dp << 0x20 | 0xffffffff) / (ulonglong)*dp)" (pointer_expression "*ip" * identifier) = (call_expression "(mp_limb_t)(((ulonglong)~*dp << 0x20 | 0xffffffff) / (ulonglong)*dp)" (parenthesized_expression "(mp_limb_t)" ( identifier )) (argument_list "(((ulonglong)~*dp << 0x20 | 0xffffffff) / (ulonglong)*dp)" ( (binary_expression "((ulonglong)~*dp << 0x20 | 0xffffffff) / (ulonglong)*dp" (binary_expression "((ulonglong)~*dp << 0x20 | 0xffffffff) / (ulonglong)" (parenthesized_expression "((ulonglong)~*dp << 0x20 | 0xffffffff)" ( (binary_expression "(ulonglong)~*dp << 0x20 | 0xffffffff" (binary_expression "(ulonglong)~*dp << 0x20" (cast_expression "(ulonglong)~*dp" ( (type_descriptor "ulonglong" type_identifier) ) (unary_expression "~*dp" ~ (pointer_expression "*dp" * identifier))) << number_literal) | number_literal) )) / (parenthesized_expression "(ulonglong)" ( identifier ))) * identifier) )))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm2\n__gmpn_invertappr(undefined4 param_1,undefined4 param_2,uint *param_3,int param_4,undefined4 param_5\n                 )\n\n{\n  undefined4 uVar1;\n  undefined4 *unaff_retaddr;\n  \n  entry(param_2,0x6d627);\n  if (199 < param_4) {\n    uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);\n    return uVar1;\n  }\n  if (param_4 != 1) {\n    uVar1 = FUN_0006cd00();\n    return uVar1;\n  }\n  *unaff_retaddr = (int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3);\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm2\n__gmpn_invertappr(undefined4 param_1,undefined4 param_2,uint *param_3,int param_4,undefined4 param_5\n                 )\n\n{\n  undefined4 uVar1;\n  undefined4 *unaff_retaddr;\n  \n  entry(param_2,0x6d627);\n  if (199 < param_4) {\n    uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);\n    return uVar1;\n  }\n  if (param_4 != 1) {\n    uVar1 = FUN_0006cd00();\n    return uVar1;\n  }\n  *unaff_retaddr = (int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3);\n  return 0;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "__gmpn_invertappr(undefined4 param_1,undefined4 param_2,uint *param_3,int param_4,undefined4 param_5\n                 )" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,uint *param_3,int param_4,undefined4 param_5\n                 )" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *unaff_retaddr;\n  \n  entry(param_2,0x6d627);\n  if (199 < param_4) {\n    uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);\n    return uVar1;\n  }\n  if (param_4 != 1) {\n    uVar1 = FUN_0006cd00();\n    return uVar1;\n  }\n  *unaff_retaddr = (int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3);\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "entry(param_2,0x6d627);" (call_expression "entry(param_2,0x6d627)" identifier (argument_list "(param_2,0x6d627)" ( identifier , number_literal ))) ;) (if_statement "if (199 < param_4) {\n    uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);\n    return uVar1;\n  }" if (parenthesized_expression "(199 < param_4)" ( (binary_expression "199 < param_4" number_literal < identifier) )) (compound_statement "{\n    uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);\n    return uVar1;\n  }" { (expression_statement "uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);" (assignment_expression "uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5)" identifier = (call_expression "__gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5)" identifier (argument_list "(unaff_retaddr,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (param_4 != 1) {\n    uVar1 = FUN_0006cd00();\n    return uVar1;\n  }" if (parenthesized_expression "(param_4 != 1)" ( (binary_expression "param_4 != 1" identifier != number_literal) )) (compound_statement "{\n    uVar1 = FUN_0006cd00();\n    return uVar1;\n  }" { (expression_statement "uVar1 = FUN_0006cd00();" (assignment_expression "uVar1 = FUN_0006cd00()" identifier = (call_expression "FUN_0006cd00()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "*unaff_retaddr = (int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3);" (assignment_expression "*unaff_retaddr = (int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3)" (pointer_expression "*unaff_retaddr" * identifier) = (cast_expression "(int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3)" ( (binary_expression "((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3" (binary_expression "((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)" (parenthesized_expression "((ulonglong)~*param_3 << 0x20 | 0xffffffff)" ( (binary_expression "(ulonglong)~*param_3 << 0x20 | 0xffffffff" (binary_expression "(ulonglong)~*param_3 << 0x20" (cast_expression "(ulonglong)~*param_3" ( (type_descriptor "ulonglong" type_identifier) ) (unary_expression "~*param_3" ~ (pointer_expression "*param_3" * identifier))) << number_literal) | number_literal) )) / (parenthesized_expression "(ulonglong)" ( identifier ))) * identifier) )))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (unary_expression ~ (pointer_expression * IDENT))) << LIT) | LIT) )) / (parenthesized_expression ( IDENT ))) * IDENT) )))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm2\n__gmpn_invertappr(undefined4 param_1,undefined4 param_2,uint *param_3,int param_4,undefined4 param_5\n                 )\n\n{\n  undefined4 uVar1;\n  undefined4 *unaff_retaddr;\n  \n  entry(param_2,0x6d627);\n  if (199 < param_4) {\n    uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);\n    return uVar1;\n  }\n  if (param_4 != 1) {\n    uVar1 = FUN_0006cd00();\n    return uVar1;\n  }\n  *unaff_retaddr = (int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3);\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "__gmpn_invertappr(undefined4 param_1,undefined4 param_2,uint *param_3,int param_4,undefined4 param_5\n                 )" (identifier "__gmpn_invertappr") (parameter_list "(undefined4 param_1,undefined4 param_2,uint *param_3,int param_4,undefined4 param_5\n                 )" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *unaff_retaddr;\n  \n  entry(param_2,0x6d627);\n  if (199 < param_4) {\n    uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);\n    return uVar1;\n  }\n  if (param_4 != 1) {\n    uVar1 = FUN_0006cd00();\n    return uVar1;\n  }\n  *unaff_retaddr = (int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3);\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 *unaff_retaddr;" (type_identifier "undefined4") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (expression_statement "entry(param_2,0x6d627);" (call_expression "entry(param_2,0x6d627)" (identifier "entry") (argument_list "(param_2,0x6d627)" (( "(") (identifier "param_2") (, ",") (number_literal "0x6d627") () ")"))) (; ";")) (if_statement "if (199 < param_4) {\n    uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(199 < param_4)" (( "(") (binary_expression "199 < param_4" (number_literal "199") (< "<") (identifier "param_4")) () ")")) (compound_statement "{\n    uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);" (assignment_expression "uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5)" (identifier "uVar1") (= "=") (call_expression "__gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5)" (identifier "__gmpn_ni_invertappr") (argument_list "(unaff_retaddr,param_3,param_4,param_5)" (( "(") (identifier "unaff_retaddr") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (if_statement "if (param_4 != 1) {\n    uVar1 = FUN_0006cd00();\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(param_4 != 1)" (( "(") (binary_expression "param_4 != 1" (identifier "param_4") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n    uVar1 = FUN_0006cd00();\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = FUN_0006cd00();" (assignment_expression "uVar1 = FUN_0006cd00()" (identifier "uVar1") (= "=") (call_expression "FUN_0006cd00()" (identifier "FUN_0006cd00") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "*unaff_retaddr = (int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3);" (assignment_expression "*unaff_retaddr = (int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3)" (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (= "=") (cast_expression "(int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3)" (( "(") (binary_expression "((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3" (binary_expression "((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)" (parenthesized_expression "((ulonglong)~*param_3 << 0x20 | 0xffffffff)" (( "(") (binary_expression "(ulonglong)~*param_3 << 0x20 | 0xffffffff" (binary_expression "(ulonglong)~*param_3 << 0x20" (cast_expression "(ulonglong)~*param_3" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (unary_expression "~*param_3" (~ "~") (pointer_expression "*param_3" (* "*") (identifier "param_3")))) (<< "<<") (number_literal "0x20")) (| "|") (number_literal "0xffffffff")) () ")")) (/ "/") (parenthesized_expression "(ulonglong)" (( "(") (identifier "ulonglong") () ")"))) (* "*") (identifier "param_3")) () ")")))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 function_1(type_2 ip,type_3 var_4,type_4 var_1,type_2 scratch)

{
  type_1 mVar1;
  
  if (199 < var_1) {
    mVar1 = var_2(ip,var_4,var_1,scratch);
    return mVar1;
  }
  if (var_1 != 1) {
    mVar1 = var_3(ip,var_4,var_1,scratch);
    return mVar1;
  }
  *ip = (type_1)(((type_5)~*var_4 << 0x20 | 0xffffffff) / (type_5)*var_4);
  return 0;
}


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

undefined4 __regparm2
MASKED(undefined4 param_1,undefined4 param_2,uint *param_3,int param_4,undefined4 param_5
                 )

{
  undefined4 uVar1;
  undefined4 *unaff_retaddr;
  
  entry(param_2,0x6d627);
  if (199 < param_4) {
    uVar1 = __gmpn_ni_invertappr(unaff_retaddr,param_3,param_4,param_5);
    return uVar1;
  }
  if (param_4 != 1) {
    uVar1 = FUN_0006cd00();
    return uVar1;
  }
  *unaff_retaddr = (int)(((ulonglong)~*param_3 << 0x20 | 0xffffffff) / (ulonglong)*param_3);
  return 0;
}

