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

mp_size_t __gmpn_mulmod_bnm1_next_size(mp_size_t n)

{
  int k;
  mp_size_t mVar1;
  int n_00;
  
  if (0xf < n) {
    if (n < 0x3d) {
      return n + 1U & 0xfffffffe;
    }
    if (n < 0x79) {
      return n + 3U & 0xfffffffc;
    }
    n_00 = n + 1 >> 1;
    n = n + 7U & 0xfffffff8;
    if (399 < n_00) {
      k = __gmpn_fft_best_k(n_00,0);
      mVar1 = __gmpn_fft_next_size(n_00,k);
      n = mVar1 * 2;
    }
  }
  return n;
}



uint __regparm3 __gmpn_mulmod_bnm1_next_size(undefined4 param_1,undefined4 param_2)

{
  undefined4 uVar1;
  int iVar2;
  uint unaff_retaddr;
  
  entry(param_2,0x6a087);
  if (0xf < (int)unaff_retaddr) {
    if ((int)unaff_retaddr < 0x3d) {
      return unaff_retaddr + 1 & 0xfffffffe;
    }
    if ((int)unaff_retaddr < 0x79) {
      return unaff_retaddr + 3 & 0xfffffffc;
    }
    iVar2 = (int)(unaff_retaddr + 1) >> 1;
    unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;
    if (399 < iVar2) {
      uVar1 = __gmpn_fft_best_k(iVar2,0);
      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);
      unaff_retaddr = iVar2 * 2;
    }
  }
  return unaff_retaddr;
}


PUSH ESI
PUSH EBX
CALL 0x0001c340
ADD EBX,0x2ef79
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x10]
CMP EAX,0xf
JLE 0x0006a0cf
CMP EAX,0x3c
JLE 0x0006a0d8
CMP EAX,0x78
JLE 0x0006a0e8
LEA ESI,[EAX + 0x1]
ADD EAX,0x7
SAR ESI,0x1
AND EAX,0xfffffff8
CMP ESI,0x18f
JLE 0x0006a0cf
SUB ESP,0x8
PUSH 0x0
PUSH ESI
CALL 0x0001ba70
POP EDX
POP ECX
PUSH EAX
PUSH ESI
CALL 0x0001c070
ADD ESP,0x10
ADD EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
ADD ESP,0x4
ADD EAX,0x1
AND EAX,0xfffffffe
POP EBX
POP ESI
RET
ADD ESP,0x4
ADD EAX,0x3
AND EAX,0xfffffffc
POP EBX
POP ESI
RET
(translation_unit "uint __regparm3 __gmpn_mulmod_bnm1_next_size(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint unaff_retaddr;\n  \n  entry(param_2,0x6a087);\n  if (0xf < (int)unaff_retaddr) {\n    if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }\n    if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }\n    iVar2 = (int)(unaff_retaddr + 1) >> 1;\n    unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;\n    if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }\n  }\n  return unaff_retaddr;\n}\n\n" (function_definition "uint __regparm3 __gmpn_mulmod_bnm1_next_size(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint unaff_retaddr;\n  \n  entry(param_2,0x6a087);\n  if (0xf < (int)unaff_retaddr) {\n    if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }\n    if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }\n    iVar2 = (int)(unaff_retaddr + 1) >> 1;\n    unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;\n    if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }\n  }\n  return unaff_retaddr;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "__gmpn_mulmod_bnm1_next_size(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  uint unaff_retaddr;\n  \n  entry(param_2,0x6a087);\n  if (0xf < (int)unaff_retaddr) {\n    if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }\n    if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }\n    iVar2 = (int)(unaff_retaddr + 1) >> 1;\n    unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;\n    if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }\n  }\n  return unaff_retaddr;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint unaff_retaddr;" type_identifier identifier ;) (expression_statement "entry(param_2,0x6a087);" (call_expression "entry(param_2,0x6a087)" identifier (argument_list "(param_2,0x6a087)" ( identifier , number_literal ))) ;) (if_statement "if (0xf < (int)unaff_retaddr) {\n    if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }\n    if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }\n    iVar2 = (int)(unaff_retaddr + 1) >> 1;\n    unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;\n    if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }\n  }" if (parenthesized_expression "(0xf < (int)unaff_retaddr)" ( (binary_expression "0xf < (int)unaff_retaddr" number_literal < (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }\n    if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }\n    iVar2 = (int)(unaff_retaddr + 1) >> 1;\n    unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;\n    if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }\n  }" { (if_statement "if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }" if (parenthesized_expression "((int)unaff_retaddr < 0x3d)" ( (binary_expression "(int)unaff_retaddr < 0x3d" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }" { (return_statement "return unaff_retaddr + 1 & 0xfffffffe;" return (binary_expression "unaff_retaddr + 1 & 0xfffffffe" (binary_expression "unaff_retaddr + 1" identifier + number_literal) & number_literal) ;) })) (if_statement "if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }" if (parenthesized_expression "((int)unaff_retaddr < 0x79)" ( (binary_expression "(int)unaff_retaddr < 0x79" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }" { (return_statement "return unaff_retaddr + 3 & 0xfffffffc;" return (binary_expression "unaff_retaddr + 3 & 0xfffffffc" (binary_expression "unaff_retaddr + 3" identifier + number_literal) & number_literal) ;) })) (expression_statement "iVar2 = (int)(unaff_retaddr + 1) >> 1;" (assignment_expression "iVar2 = (int)(unaff_retaddr + 1) >> 1" identifier = (binary_expression "(int)(unaff_retaddr + 1) >> 1" (cast_expression "(int)(unaff_retaddr + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(unaff_retaddr + 1)" ( (binary_expression "unaff_retaddr + 1" identifier + number_literal) ))) >> number_literal)) ;) (expression_statement "unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;" (assignment_expression "unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8" identifier = (binary_expression "unaff_retaddr + 7 & 0xfffffff8" (binary_expression "unaff_retaddr + 7" identifier + number_literal) & number_literal)) ;) (if_statement "if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }" if (parenthesized_expression "(399 < iVar2)" ( (binary_expression "399 < iVar2" number_literal < identifier) )) (compound_statement "{\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }" { (expression_statement "uVar1 = __gmpn_fft_best_k(iVar2,0);" (assignment_expression "uVar1 = __gmpn_fft_best_k(iVar2,0)" identifier = (call_expression "__gmpn_fft_best_k(iVar2,0)" identifier (argument_list "(iVar2,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar2 = __gmpn_fft_next_size(iVar2,uVar1);" (assignment_expression "iVar2 = __gmpn_fft_next_size(iVar2,uVar1)" identifier = (call_expression "__gmpn_fft_next_size(iVar2,uVar1)" identifier (argument_list "(iVar2,uVar1)" ( identifier , identifier )))) ;) (expression_statement "unaff_retaddr = iVar2 * 2;" (assignment_expression "unaff_retaddr = iVar2 * 2" identifier = (binary_expression "iVar2 * 2" identifier * number_literal)) ;) })) })) (return_statement "return unaff_retaddr;" return identifier ;) })))
(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_mulmod_bnm1_next_size(mp_size_t n)\n\n{\n  int k;\n  mp_size_t mVar1;\n  int n_00;\n  \n  if (0xf < n) {\n    if (n < 0x3d) {\n      return n + 1U & 0xfffffffe;\n    }\n    if (n < 0x79) {\n      return n + 3U & 0xfffffffc;\n    }\n    n_00 = n + 1 >> 1;\n    n = n + 7U & 0xfffffff8;\n    if (399 < n_00) {\n      k = __gmpn_fft_best_k(n_00,0);\n      mVar1 = __gmpn_fft_next_size(n_00,k);\n      n = mVar1 * 2;\n    }\n  }\n  return n;\n}\n\n" comment comment (function_definition "mp_size_t __gmpn_mulmod_bnm1_next_size(mp_size_t n)\n\n{\n  int k;\n  mp_size_t mVar1;\n  int n_00;\n  \n  if (0xf < n) {\n    if (n < 0x3d) {\n      return n + 1U & 0xfffffffe;\n    }\n    if (n < 0x79) {\n      return n + 3U & 0xfffffffc;\n    }\n    n_00 = n + 1 >> 1;\n    n = n + 7U & 0xfffffff8;\n    if (399 < n_00) {\n      k = __gmpn_fft_best_k(n_00,0);\n      mVar1 = __gmpn_fft_next_size(n_00,k);\n      n = mVar1 * 2;\n    }\n  }\n  return n;\n}" type_identifier (function_declarator "__gmpn_mulmod_bnm1_next_size(mp_size_t n)" identifier (parameter_list "(mp_size_t n)" ( (parameter_declaration "mp_size_t n" type_identifier identifier) ))) (compound_statement "{\n  int k;\n  mp_size_t mVar1;\n  int n_00;\n  \n  if (0xf < n) {\n    if (n < 0x3d) {\n      return n + 1U & 0xfffffffe;\n    }\n    if (n < 0x79) {\n      return n + 3U & 0xfffffffc;\n    }\n    n_00 = n + 1 >> 1;\n    n = n + 7U & 0xfffffff8;\n    if (399 < n_00) {\n      k = __gmpn_fft_best_k(n_00,0);\n      mVar1 = __gmpn_fft_next_size(n_00,k);\n      n = mVar1 * 2;\n    }\n  }\n  return n;\n}" { (declaration "int k;" primitive_type identifier ;) (declaration "mp_size_t mVar1;" type_identifier identifier ;) (declaration "int n_00;" primitive_type identifier ;) (if_statement "if (0xf < n) {\n    if (n < 0x3d) {\n      return n + 1U & 0xfffffffe;\n    }\n    if (n < 0x79) {\n      return n + 3U & 0xfffffffc;\n    }\n    n_00 = n + 1 >> 1;\n    n = n + 7U & 0xfffffff8;\n    if (399 < n_00) {\n      k = __gmpn_fft_best_k(n_00,0);\n      mVar1 = __gmpn_fft_next_size(n_00,k);\n      n = mVar1 * 2;\n    }\n  }" if (parenthesized_expression "(0xf < n)" ( (binary_expression "0xf < n" number_literal < identifier) )) (compound_statement "{\n    if (n < 0x3d) {\n      return n + 1U & 0xfffffffe;\n    }\n    if (n < 0x79) {\n      return n + 3U & 0xfffffffc;\n    }\n    n_00 = n + 1 >> 1;\n    n = n + 7U & 0xfffffff8;\n    if (399 < n_00) {\n      k = __gmpn_fft_best_k(n_00,0);\n      mVar1 = __gmpn_fft_next_size(n_00,k);\n      n = mVar1 * 2;\n    }\n  }" { (if_statement "if (n < 0x3d) {\n      return n + 1U & 0xfffffffe;\n    }" if (parenthesized_expression "(n < 0x3d)" ( (binary_expression "n < 0x3d" identifier < number_literal) )) (compound_statement "{\n      return n + 1U & 0xfffffffe;\n    }" { (return_statement "return n + 1U & 0xfffffffe;" return (binary_expression "n + 1U & 0xfffffffe" (binary_expression "n + 1U" identifier + number_literal) & number_literal) ;) })) (if_statement "if (n < 0x79) {\n      return n + 3U & 0xfffffffc;\n    }" if (parenthesized_expression "(n < 0x79)" ( (binary_expression "n < 0x79" identifier < number_literal) )) (compound_statement "{\n      return n + 3U & 0xfffffffc;\n    }" { (return_statement "return n + 3U & 0xfffffffc;" return (binary_expression "n + 3U & 0xfffffffc" (binary_expression "n + 3U" identifier + number_literal) & number_literal) ;) })) (expression_statement "n_00 = n + 1 >> 1;" (assignment_expression "n_00 = n + 1 >> 1" identifier = (binary_expression "n + 1 >> 1" (binary_expression "n + 1" identifier + number_literal) >> number_literal)) ;) (expression_statement "n = n + 7U & 0xfffffff8;" (assignment_expression "n = n + 7U & 0xfffffff8" identifier = (binary_expression "n + 7U & 0xfffffff8" (binary_expression "n + 7U" identifier + number_literal) & number_literal)) ;) (if_statement "if (399 < n_00) {\n      k = __gmpn_fft_best_k(n_00,0);\n      mVar1 = __gmpn_fft_next_size(n_00,k);\n      n = mVar1 * 2;\n    }" if (parenthesized_expression "(399 < n_00)" ( (binary_expression "399 < n_00" number_literal < identifier) )) (compound_statement "{\n      k = __gmpn_fft_best_k(n_00,0);\n      mVar1 = __gmpn_fft_next_size(n_00,k);\n      n = mVar1 * 2;\n    }" { (expression_statement "k = __gmpn_fft_best_k(n_00,0);" (assignment_expression "k = __gmpn_fft_best_k(n_00,0)" identifier = (call_expression "__gmpn_fft_best_k(n_00,0)" identifier (argument_list "(n_00,0)" ( identifier , number_literal )))) ;) (expression_statement "mVar1 = __gmpn_fft_next_size(n_00,k);" (assignment_expression "mVar1 = __gmpn_fft_next_size(n_00,k)" identifier = (call_expression "__gmpn_fft_next_size(n_00,k)" identifier (argument_list "(n_00,k)" ( identifier , identifier )))) ;) (expression_statement "n = mVar1 * 2;" (assignment_expression "n = mVar1 * 2" identifier = (binary_expression "mVar1 * 2" identifier * number_literal)) ;) })) })) (return_statement "return n;" return identifier ;) })))
(translation_unit "uint __regparm3 __gmpn_mulmod_bnm1_next_size(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint unaff_retaddr;\n  \n  entry(param_2,0x6a087);\n  if (0xf < (int)unaff_retaddr) {\n    if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }\n    if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }\n    iVar2 = (int)(unaff_retaddr + 1) >> 1;\n    unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;\n    if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }\n  }\n  return unaff_retaddr;\n}\n\n" (function_definition "uint __regparm3 __gmpn_mulmod_bnm1_next_size(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint unaff_retaddr;\n  \n  entry(param_2,0x6a087);\n  if (0xf < (int)unaff_retaddr) {\n    if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }\n    if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }\n    iVar2 = (int)(unaff_retaddr + 1) >> 1;\n    unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;\n    if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }\n  }\n  return unaff_retaddr;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "__gmpn_mulmod_bnm1_next_size(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  uint unaff_retaddr;\n  \n  entry(param_2,0x6a087);\n  if (0xf < (int)unaff_retaddr) {\n    if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }\n    if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }\n    iVar2 = (int)(unaff_retaddr + 1) >> 1;\n    unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;\n    if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }\n  }\n  return unaff_retaddr;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint unaff_retaddr;" type_identifier identifier ;) (expression_statement "entry(param_2,0x6a087);" (call_expression "entry(param_2,0x6a087)" identifier (argument_list "(param_2,0x6a087)" ( identifier , number_literal ))) ;) (if_statement "if (0xf < (int)unaff_retaddr) {\n    if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }\n    if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }\n    iVar2 = (int)(unaff_retaddr + 1) >> 1;\n    unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;\n    if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }\n  }" if (parenthesized_expression "(0xf < (int)unaff_retaddr)" ( (binary_expression "0xf < (int)unaff_retaddr" number_literal < (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }\n    if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }\n    iVar2 = (int)(unaff_retaddr + 1) >> 1;\n    unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;\n    if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }\n  }" { (if_statement "if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }" if (parenthesized_expression "((int)unaff_retaddr < 0x3d)" ( (binary_expression "(int)unaff_retaddr < 0x3d" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }" { (return_statement "return unaff_retaddr + 1 & 0xfffffffe;" return (binary_expression "unaff_retaddr + 1 & 0xfffffffe" (binary_expression "unaff_retaddr + 1" identifier + number_literal) & number_literal) ;) })) (if_statement "if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }" if (parenthesized_expression "((int)unaff_retaddr < 0x79)" ( (binary_expression "(int)unaff_retaddr < 0x79" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }" { (return_statement "return unaff_retaddr + 3 & 0xfffffffc;" return (binary_expression "unaff_retaddr + 3 & 0xfffffffc" (binary_expression "unaff_retaddr + 3" identifier + number_literal) & number_literal) ;) })) (expression_statement "iVar2 = (int)(unaff_retaddr + 1) >> 1;" (assignment_expression "iVar2 = (int)(unaff_retaddr + 1) >> 1" identifier = (binary_expression "(int)(unaff_retaddr + 1) >> 1" (cast_expression "(int)(unaff_retaddr + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(unaff_retaddr + 1)" ( (binary_expression "unaff_retaddr + 1" identifier + number_literal) ))) >> number_literal)) ;) (expression_statement "unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;" (assignment_expression "unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8" identifier = (binary_expression "unaff_retaddr + 7 & 0xfffffff8" (binary_expression "unaff_retaddr + 7" identifier + number_literal) & number_literal)) ;) (if_statement "if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }" if (parenthesized_expression "(399 < iVar2)" ( (binary_expression "399 < iVar2" number_literal < identifier) )) (compound_statement "{\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }" { (expression_statement "uVar1 = __gmpn_fft_best_k(iVar2,0);" (assignment_expression "uVar1 = __gmpn_fft_best_k(iVar2,0)" identifier = (call_expression "__gmpn_fft_best_k(iVar2,0)" identifier (argument_list "(iVar2,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar2 = __gmpn_fft_next_size(iVar2,uVar1);" (assignment_expression "iVar2 = __gmpn_fft_next_size(iVar2,uVar1)" identifier = (call_expression "__gmpn_fft_next_size(iVar2,uVar1)" identifier (argument_list "(iVar2,uVar1)" ( identifier , identifier )))) ;) (expression_statement "unaff_retaddr = iVar2 * 2;" (assignment_expression "unaff_retaddr = iVar2 * 2" identifier = (binary_expression "iVar2 * 2" identifier * number_literal)) ;) })) })) (return_statement "return unaff_retaddr;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (return_statement return (binary_expression (binary_expression IDENT + LIT) & LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (return_statement return (binary_expression (binary_expression IDENT + LIT) & LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "uint __regparm3 __gmpn_mulmod_bnm1_next_size(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint unaff_retaddr;\n  \n  entry(param_2,0x6a087);\n  if (0xf < (int)unaff_retaddr) {\n    if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }\n    if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }\n    iVar2 = (int)(unaff_retaddr + 1) >> 1;\n    unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;\n    if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }\n  }\n  return unaff_retaddr;\n}" (type_identifier "uint") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "__gmpn_mulmod_bnm1_next_size(undefined4 param_1,undefined4 param_2)" (identifier "__gmpn_mulmod_bnm1_next_size") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  uint unaff_retaddr;\n  \n  entry(param_2,0x6a087);\n  if (0xf < (int)unaff_retaddr) {\n    if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }\n    if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }\n    iVar2 = (int)(unaff_retaddr + 1) >> 1;\n    unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;\n    if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }\n  }\n  return unaff_retaddr;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint unaff_retaddr;" (type_identifier "uint") (identifier "unaff_retaddr") (; ";")) (expression_statement "entry(param_2,0x6a087);" (call_expression "entry(param_2,0x6a087)" (identifier "entry") (argument_list "(param_2,0x6a087)" (( "(") (identifier "param_2") (, ",") (number_literal "0x6a087") () ")"))) (; ";")) (if_statement "if (0xf < (int)unaff_retaddr) {\n    if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }\n    if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }\n    iVar2 = (int)(unaff_retaddr + 1) >> 1;\n    unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;\n    if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }\n  }" (if "if") (parenthesized_expression "(0xf < (int)unaff_retaddr)" (( "(") (binary_expression "0xf < (int)unaff_retaddr" (number_literal "0xf") (< "<") (cast_expression "(int)unaff_retaddr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_retaddr"))) () ")")) (compound_statement "{\n    if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }\n    if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }\n    iVar2 = (int)(unaff_retaddr + 1) >> 1;\n    unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;\n    if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }\n  }" ({ "{") (if_statement "if ((int)unaff_retaddr < 0x3d) {\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }" (if "if") (parenthesized_expression "((int)unaff_retaddr < 0x3d)" (( "(") (binary_expression "(int)unaff_retaddr < 0x3d" (cast_expression "(int)unaff_retaddr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_retaddr")) (< "<") (number_literal "0x3d")) () ")")) (compound_statement "{\n      return unaff_retaddr + 1 & 0xfffffffe;\n    }" ({ "{") (return_statement "return unaff_retaddr + 1 & 0xfffffffe;" (return "return") (binary_expression "unaff_retaddr + 1 & 0xfffffffe" (binary_expression "unaff_retaddr + 1" (identifier "unaff_retaddr") (+ "+") (number_literal "1")) (& "&") (number_literal "0xfffffffe")) (; ";")) (} "}"))) (if_statement "if ((int)unaff_retaddr < 0x79) {\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }" (if "if") (parenthesized_expression "((int)unaff_retaddr < 0x79)" (( "(") (binary_expression "(int)unaff_retaddr < 0x79" (cast_expression "(int)unaff_retaddr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_retaddr")) (< "<") (number_literal "0x79")) () ")")) (compound_statement "{\n      return unaff_retaddr + 3 & 0xfffffffc;\n    }" ({ "{") (return_statement "return unaff_retaddr + 3 & 0xfffffffc;" (return "return") (binary_expression "unaff_retaddr + 3 & 0xfffffffc" (binary_expression "unaff_retaddr + 3" (identifier "unaff_retaddr") (+ "+") (number_literal "3")) (& "&") (number_literal "0xfffffffc")) (; ";")) (} "}"))) (expression_statement "iVar2 = (int)(unaff_retaddr + 1) >> 1;" (assignment_expression "iVar2 = (int)(unaff_retaddr + 1) >> 1" (identifier "iVar2") (= "=") (binary_expression "(int)(unaff_retaddr + 1) >> 1" (cast_expression "(int)(unaff_retaddr + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(unaff_retaddr + 1)" (( "(") (binary_expression "unaff_retaddr + 1" (identifier "unaff_retaddr") (+ "+") (number_literal "1")) () ")"))) (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;" (assignment_expression "unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8" (identifier "unaff_retaddr") (= "=") (binary_expression "unaff_retaddr + 7 & 0xfffffff8" (binary_expression "unaff_retaddr + 7" (identifier "unaff_retaddr") (+ "+") (number_literal "7")) (& "&") (number_literal "0xfffffff8"))) (; ";")) (if_statement "if (399 < iVar2) {\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }" (if "if") (parenthesized_expression "(399 < iVar2)" (( "(") (binary_expression "399 < iVar2" (number_literal "399") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n      uVar1 = __gmpn_fft_best_k(iVar2,0);\n      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);\n      unaff_retaddr = iVar2 * 2;\n    }" ({ "{") (expression_statement "uVar1 = __gmpn_fft_best_k(iVar2,0);" (assignment_expression "uVar1 = __gmpn_fft_best_k(iVar2,0)" (identifier "uVar1") (= "=") (call_expression "__gmpn_fft_best_k(iVar2,0)" (identifier "__gmpn_fft_best_k") (argument_list "(iVar2,0)" (( "(") (identifier "iVar2") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar2 = __gmpn_fft_next_size(iVar2,uVar1);" (assignment_expression "iVar2 = __gmpn_fft_next_size(iVar2,uVar1)" (identifier "iVar2") (= "=") (call_expression "__gmpn_fft_next_size(iVar2,uVar1)" (identifier "__gmpn_fft_next_size") (argument_list "(iVar2,uVar1)" (( "(") (identifier "iVar2") (, ",") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "unaff_retaddr = iVar2 * 2;" (assignment_expression "unaff_retaddr = iVar2 * 2" (identifier "unaff_retaddr") (= "=") (binary_expression "iVar2 * 2" (identifier "iVar2") (* "*") (number_literal "2"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return unaff_retaddr;" (return "return") (identifier "unaff_retaddr") (; ";")) (} "}")))

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

{
  int k;
  type_1 var_5;
  int var_2;
  
  if (0xf < var_1) {
    if (var_1 < 0x3d) {
      return var_1 + 1U & 0xfffffffe;
    }
    if (var_1 < 0x79) {
      return var_1 + 3U & 0xfffffffc;
    }
    var_2 = var_1 + 1 >> 1;
    var_1 = var_1 + 7U & 0xfffffff8;
    if (399 < var_2) {
      k = var_3(var_2,0);
      var_5 = var_4(var_2,k);
      var_1 = var_5 * 2;
    }
  }
  return var_1;
}


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

uint __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  undefined4 uVar1;
  int iVar2;
  uint unaff_retaddr;
  
  entry(param_2,0x6a087);
  if (0xf < (int)unaff_retaddr) {
    if ((int)unaff_retaddr < 0x3d) {
      return unaff_retaddr + 1 & 0xfffffffe;
    }
    if ((int)unaff_retaddr < 0x79) {
      return unaff_retaddr + 3 & 0xfffffffc;
    }
    iVar2 = (int)(unaff_retaddr + 1) >> 1;
    unaff_retaddr = unaff_retaddr + 7 & 0xfffffff8;
    if (399 < iVar2) {
      uVar1 = __gmpn_fft_best_k(iVar2,0);
      iVar2 = __gmpn_fft_next_size(iVar2,uVar1);
      unaff_retaddr = iVar2 * 2;
    }
  }
  return unaff_retaddr;
}

