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

mp_size_t __gmpn_mu_div_q_itch(mp_size_t nn,mp_size_t dn,int mua_k)

{
  mp_size_t mVar1;
  int dn_00;
  
  if (dn <= nn - dn) {
    mVar1 = __gmpn_mu_divappr_q_itch(nn + 1,dn,mua_k);
    return mVar1;
  }
  dn_00 = (nn - dn) + 1;
  mVar1 = __gmpn_mu_divappr_q_itch(dn_00 * 2,dn_00,mua_k);
  return mVar1;
}



void __regparm2
__gmpn_mu_div_q_itch(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)

{
  int iVar1;
  int unaff_retaddr;
  
  entry(param_2,0x73ba6);
  if (param_3 <= unaff_retaddr - param_3) {
    __gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);
    return;
  }
  iVar1 = (unaff_retaddr - param_3) + 1;
  __gmpn_mu_divappr_q_itch(iVar1 * 2,iVar1,param_4);
  return;
}


PUSH EBX
CALL 0x0001c340
ADD EBX,0x2a45a
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x14]
MOV EAX,EDX
SUB EAX,ECX
CMP ECX,EAX
JG 0x00073be0
SUB ESP,0x4
ADD EDX,0x1
PUSH dword ptr [ESP + 0x1c]
PUSH ECX
PUSH EDX
CALL 0x0001b200
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x4
ADD EAX,0x1
PUSH dword ptr [ESP + 0x1c]
PUSH EAX
ADD EAX,EAX
PUSH EAX
CALL 0x0001b200
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
(translation_unit "void __regparm2\n__gmpn_mu_div_q_itch(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int unaff_retaddr;\n  \n  entry(param_2,0x73ba6);\n  if (param_3 <= unaff_retaddr - param_3) {\n    __gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);\n    return;\n  }\n  iVar1 = (unaff_retaddr - param_3) + 1;\n  __gmpn_mu_divappr_q_itch(iVar1 * 2,iVar1,param_4);\n  return;\n}\n\n" (function_definition "void __regparm2\n__gmpn_mu_div_q_itch(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int unaff_retaddr;\n  \n  entry(param_2,0x73ba6);\n  if (param_3 <= unaff_retaddr - param_3) {\n    __gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);\n    return;\n  }\n  iVar1 = (unaff_retaddr - param_3) + 1;\n  __gmpn_mu_divappr_q_itch(iVar1 * 2,iVar1,param_4);\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "__gmpn_mu_div_q_itch(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int unaff_retaddr;\n  \n  entry(param_2,0x73ba6);\n  if (param_3 <= unaff_retaddr - param_3) {\n    __gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);\n    return;\n  }\n  iVar1 = (unaff_retaddr - param_3) + 1;\n  __gmpn_mu_divappr_q_itch(iVar1 * 2,iVar1,param_4);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x73ba6);" (call_expression "entry(param_2,0x73ba6)" identifier (argument_list "(param_2,0x73ba6)" ( identifier , number_literal ))) ;) (if_statement "if (param_3 <= unaff_retaddr - param_3) {\n    __gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);\n    return;\n  }" if (parenthesized_expression "(param_3 <= unaff_retaddr - param_3)" ( (binary_expression "param_3 <= unaff_retaddr - param_3" identifier <= (binary_expression "unaff_retaddr - param_3" identifier - identifier)) )) (compound_statement "{\n    __gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);\n    return;\n  }" { (expression_statement "__gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);" (call_expression "__gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4)" identifier (argument_list "(unaff_retaddr + 1,param_3,param_4)" ( (binary_expression "unaff_retaddr + 1" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = (unaff_retaddr - param_3) + 1;" (assignment_expression "iVar1 = (unaff_retaddr - param_3) + 1" identifier = (binary_expression "(unaff_retaddr - param_3) + 1" (parenthesized_expression "(unaff_retaddr - param_3)" ( (binary_expression "unaff_retaddr - param_3" identifier - identifier) )) + number_literal)) ;) (expression_statement "__gmpn_mu_divappr_q_itch(iVar1 * 2,iVar1,param_4);" (call_expression "__gmpn_mu_divappr_q_itch(iVar1 * 2,iVar1,param_4)" identifier (argument_list "(iVar1 * 2,iVar1,param_4)" ( (binary_expression "iVar1 * 2" identifier * number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nmp_size_t __gmpn_mu_div_q_itch(mp_size_t nn,mp_size_t dn,int mua_k)\n\n{\n  mp_size_t mVar1;\n  int dn_00;\n  \n  if (dn <= nn - dn) {\n    mVar1 = __gmpn_mu_divappr_q_itch(nn + 1,dn,mua_k);\n    return mVar1;\n  }\n  dn_00 = (nn - dn) + 1;\n  mVar1 = __gmpn_mu_divappr_q_itch(dn_00 * 2,dn_00,mua_k);\n  return mVar1;\n}\n\n" comment comment (function_definition "mp_size_t __gmpn_mu_div_q_itch(mp_size_t nn,mp_size_t dn,int mua_k)\n\n{\n  mp_size_t mVar1;\n  int dn_00;\n  \n  if (dn <= nn - dn) {\n    mVar1 = __gmpn_mu_divappr_q_itch(nn + 1,dn,mua_k);\n    return mVar1;\n  }\n  dn_00 = (nn - dn) + 1;\n  mVar1 = __gmpn_mu_divappr_q_itch(dn_00 * 2,dn_00,mua_k);\n  return mVar1;\n}" type_identifier (function_declarator "__gmpn_mu_div_q_itch(mp_size_t nn,mp_size_t dn,int mua_k)" identifier (parameter_list "(mp_size_t nn,mp_size_t dn,int mua_k)" ( (parameter_declaration "mp_size_t nn" type_identifier identifier) , (parameter_declaration "mp_size_t dn" type_identifier identifier) , (parameter_declaration "int mua_k" primitive_type identifier) ))) (compound_statement "{\n  mp_size_t mVar1;\n  int dn_00;\n  \n  if (dn <= nn - dn) {\n    mVar1 = __gmpn_mu_divappr_q_itch(nn + 1,dn,mua_k);\n    return mVar1;\n  }\n  dn_00 = (nn - dn) + 1;\n  mVar1 = __gmpn_mu_divappr_q_itch(dn_00 * 2,dn_00,mua_k);\n  return mVar1;\n}" { (declaration "mp_size_t mVar1;" type_identifier identifier ;) (declaration "int dn_00;" primitive_type identifier ;) (if_statement "if (dn <= nn - dn) {\n    mVar1 = __gmpn_mu_divappr_q_itch(nn + 1,dn,mua_k);\n    return mVar1;\n  }" if (parenthesized_expression "(dn <= nn - dn)" ( (binary_expression "dn <= nn - dn" identifier <= (binary_expression "nn - dn" identifier - identifier)) )) (compound_statement "{\n    mVar1 = __gmpn_mu_divappr_q_itch(nn + 1,dn,mua_k);\n    return mVar1;\n  }" { (expression_statement "mVar1 = __gmpn_mu_divappr_q_itch(nn + 1,dn,mua_k);" (assignment_expression "mVar1 = __gmpn_mu_divappr_q_itch(nn + 1,dn,mua_k)" identifier = (call_expression "__gmpn_mu_divappr_q_itch(nn + 1,dn,mua_k)" identifier (argument_list "(nn + 1,dn,mua_k)" ( (binary_expression "nn + 1" identifier + number_literal) , identifier , identifier )))) ;) (return_statement "return mVar1;" return identifier ;) })) (expression_statement "dn_00 = (nn - dn) + 1;" (assignment_expression "dn_00 = (nn - dn) + 1" identifier = (binary_expression "(nn - dn) + 1" (parenthesized_expression "(nn - dn)" ( (binary_expression "nn - dn" identifier - identifier) )) + number_literal)) ;) (expression_statement "mVar1 = __gmpn_mu_divappr_q_itch(dn_00 * 2,dn_00,mua_k);" (assignment_expression "mVar1 = __gmpn_mu_divappr_q_itch(dn_00 * 2,dn_00,mua_k)" identifier = (call_expression "__gmpn_mu_divappr_q_itch(dn_00 * 2,dn_00,mua_k)" identifier (argument_list "(dn_00 * 2,dn_00,mua_k)" ( (binary_expression "dn_00 * 2" identifier * number_literal) , identifier , identifier )))) ;) (return_statement "return mVar1;" return identifier ;) })))
(translation_unit "void __regparm2\n__gmpn_mu_div_q_itch(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int unaff_retaddr;\n  \n  entry(param_2,0x73ba6);\n  if (param_3 <= unaff_retaddr - param_3) {\n    __gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);\n    return;\n  }\n  iVar1 = (unaff_retaddr - param_3) + 1;\n  __gmpn_mu_divappr_q_itch(iVar1 * 2,iVar1,param_4);\n  return;\n}\n\n" (function_definition "void __regparm2\n__gmpn_mu_div_q_itch(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int unaff_retaddr;\n  \n  entry(param_2,0x73ba6);\n  if (param_3 <= unaff_retaddr - param_3) {\n    __gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);\n    return;\n  }\n  iVar1 = (unaff_retaddr - param_3) + 1;\n  __gmpn_mu_divappr_q_itch(iVar1 * 2,iVar1,param_4);\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "__gmpn_mu_div_q_itch(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int unaff_retaddr;\n  \n  entry(param_2,0x73ba6);\n  if (param_3 <= unaff_retaddr - param_3) {\n    __gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);\n    return;\n  }\n  iVar1 = (unaff_retaddr - param_3) + 1;\n  __gmpn_mu_divappr_q_itch(iVar1 * 2,iVar1,param_4);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int unaff_retaddr;" primitive_type identifier ;) (expression_statement "entry(param_2,0x73ba6);" (call_expression "entry(param_2,0x73ba6)" identifier (argument_list "(param_2,0x73ba6)" ( identifier , number_literal ))) ;) (if_statement "if (param_3 <= unaff_retaddr - param_3) {\n    __gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);\n    return;\n  }" if (parenthesized_expression "(param_3 <= unaff_retaddr - param_3)" ( (binary_expression "param_3 <= unaff_retaddr - param_3" identifier <= (binary_expression "unaff_retaddr - param_3" identifier - identifier)) )) (compound_statement "{\n    __gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);\n    return;\n  }" { (expression_statement "__gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);" (call_expression "__gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4)" identifier (argument_list "(unaff_retaddr + 1,param_3,param_4)" ( (binary_expression "unaff_retaddr + 1" identifier + number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = (unaff_retaddr - param_3) + 1;" (assignment_expression "iVar1 = (unaff_retaddr - param_3) + 1" identifier = (binary_expression "(unaff_retaddr - param_3) + 1" (parenthesized_expression "(unaff_retaddr - param_3)" ( (binary_expression "unaff_retaddr - param_3" identifier - identifier) )) + number_literal)) ;) (expression_statement "__gmpn_mu_divappr_q_itch(iVar1 * 2,iVar1,param_4);" (call_expression "__gmpn_mu_divappr_q_itch(iVar1 * 2,iVar1,param_4)" identifier (argument_list "(iVar1 * 2,iVar1,param_4)" ( (binary_expression "iVar1 * 2" identifier * number_literal) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression IDENT - IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT * LIT) , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm2\n__gmpn_mu_div_q_itch(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int unaff_retaddr;\n  \n  entry(param_2,0x73ba6);\n  if (param_3 <= unaff_retaddr - param_3) {\n    __gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);\n    return;\n  }\n  iVar1 = (unaff_retaddr - param_3) + 1;\n  __gmpn_mu_divappr_q_itch(iVar1 * 2,iVar1,param_4);\n  return;\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "__gmpn_mu_div_q_itch(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)" (identifier "__gmpn_mu_div_q_itch") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  int unaff_retaddr;\n  \n  entry(param_2,0x73ba6);\n  if (param_3 <= unaff_retaddr - param_3) {\n    __gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);\n    return;\n  }\n  iVar1 = (unaff_retaddr - param_3) + 1;\n  __gmpn_mu_divappr_q_itch(iVar1 * 2,iVar1,param_4);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int unaff_retaddr;" (primitive_type "int") (identifier "unaff_retaddr") (; ";")) (expression_statement "entry(param_2,0x73ba6);" (call_expression "entry(param_2,0x73ba6)" (identifier "entry") (argument_list "(param_2,0x73ba6)" (( "(") (identifier "param_2") (, ",") (number_literal "0x73ba6") () ")"))) (; ";")) (if_statement "if (param_3 <= unaff_retaddr - param_3) {\n    __gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 <= unaff_retaddr - param_3)" (( "(") (binary_expression "param_3 <= unaff_retaddr - param_3" (identifier "param_3") (<= "<=") (binary_expression "unaff_retaddr - param_3" (identifier "unaff_retaddr") (- "-") (identifier "param_3"))) () ")")) (compound_statement "{\n    __gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);\n    return;\n  }" ({ "{") (expression_statement "__gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);" (call_expression "__gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4)" (identifier "__gmpn_mu_divappr_q_itch") (argument_list "(unaff_retaddr + 1,param_3,param_4)" (( "(") (binary_expression "unaff_retaddr + 1" (identifier "unaff_retaddr") (+ "+") (number_literal "1")) (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = (unaff_retaddr - param_3) + 1;" (assignment_expression "iVar1 = (unaff_retaddr - param_3) + 1" (identifier "iVar1") (= "=") (binary_expression "(unaff_retaddr - param_3) + 1" (parenthesized_expression "(unaff_retaddr - param_3)" (( "(") (binary_expression "unaff_retaddr - param_3" (identifier "unaff_retaddr") (- "-") (identifier "param_3")) () ")")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "__gmpn_mu_divappr_q_itch(iVar1 * 2,iVar1,param_4);" (call_expression "__gmpn_mu_divappr_q_itch(iVar1 * 2,iVar1,param_4)" (identifier "__gmpn_mu_divappr_q_itch") (argument_list "(iVar1 * 2,iVar1,param_4)" (( "(") (binary_expression "iVar1 * 2" (identifier "iVar1") (* "*") (number_literal "2")) (, ",") (identifier "iVar1") (, ",") (identifier "param_4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

type_1 function_1(type_1 var_2,type_1 var_1,int mua_k)

{
  type_1 mVar1;
  int var_4;
  
  if (var_1 <= var_2 - var_1) {
    mVar1 = var_3(var_2 + 1,var_1,mua_k);
    return mVar1;
  }
  var_4 = (var_2 - var_1) + 1;
  mVar1 = var_3(var_4 * 2,var_4,mua_k);
  return mVar1;
}


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

void __regparm2
MASKED(undefined4 param_1,undefined4 param_2,int param_3,undefined4 param_4)

{
  int iVar1;
  int unaff_retaddr;
  
  entry(param_2,0x73ba6);
  if (param_3 <= unaff_retaddr - param_3) {
    __gmpn_mu_divappr_q_itch(unaff_retaddr + 1,param_3,param_4);
    return;
  }
  iVar1 = (unaff_retaddr - param_3) + 1;
  __gmpn_mu_divappr_q_itch(iVar1 * 2,iVar1,param_4);
  return;
}

