
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void __gmpz_mul_ui(mpz_ptr prod,mpz_srcptr mult,ulong small_mult)

{
  uint uVar1;
  mp_limb_t mVar2;
  mp_limb_t *pmVar3;
  int iVar4;
  
  uVar1 = mult->_mp_size;
  if ((uVar1 != 0) && (small_mult != 0)) {
    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);
    if (iVar4 < prod->_mp_alloc) {
      pmVar3 = prod->_mp_d;
    }
    else {
      pmVar3 = (mp_limb_t *)__gmpz_realloc(prod,iVar4 + 1);
    }
    mVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))(pmVar3,mult->_mp_d,iVar4,small_mult);
    pmVar3[iVar4] = mVar2;
    iVar4 = iVar4 + (uint)(mVar2 != 0);
    if ((int)uVar1 < 0) {
      iVar4 = -iVar4;
    }
    prod->_mp_size = iVar4;
    return;
  }
  prod->_mp_size = 0;
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void __gmpz_mul_ui(int *param_1,int param_2,int param_3)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  uVar1 = *(uint *)(param_2 + 4);
  if ((uVar1 != 0) && (param_3 != 0)) {
    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);
    if (iVar4 < *param_1) {
      iVar3 = param_1[2];
    }
    else {
      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);
    }
    iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))
                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);
    *(int *)(iVar3 + iVar4 * 4) = iVar2;
    iVar4 = iVar4 + (uint)(iVar2 != 0);
    if ((int)uVar1 < 0) {
      iVar4 = -iVar4;
    }
    param_1[1] = iVar4;
    return;
  }
  param_1[1] = 0;
  return;
}


CALL 0x00021679
ADD ECX,0x6b7bb
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EDX,dword ptr [ESP + 0x34]
MOV EBP,dword ptr [ESP + 0x30]
MOV EDI,dword ptr [EDX + 0x4]
TEST EDI,EDI
JZ 0x0002d8b8
MOV EAX,dword ptr [ESP + 0x38]
TEST EAX,EAX
JZ 0x0002d8b8
MOV EAX,EDI
SAR EAX,0x1f
MOV ESI,EAX
XOR ESI,EDI
SUB ESI,EAX
CMP dword ptr [EBP],ESI
JLE 0x0002d8d0
MOV EBX,dword ptr [EBP + 0x8]
PUSH dword ptr [ESP + 0x38]
MOV EAX,dword ptr [ECX + 0xfffffd94]
PUSH ESI
PUSH dword ptr [EDX + 0x8]
PUSH EBX
CALL dword ptr [EAX + 0x64]
MOV dword ptr [EBX + ESI*0x4],EAX
ADD ESP,0x10
TEST EAX,EAX
SETNZ AL
MOVZX EAX,AL
ADD ESI,EAX
MOV EAX,ESI
NEG EAX
TEST EDI,EDI
CMOVS ESI,EAX
MOV dword ptr [EBP + 0x4],ESI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EBP + 0x4],0x0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x34],EDX
LEA EAX,[ESI + 0x1]
SUB ESP,0x8
MOV EBX,ECX
PUSH EAX
PUSH EBP
MOV dword ptr [ESP + 0x1c],ECX
CALL 0x0001b190
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x34]
MOV EBX,EAX
JMP 0x0002d87c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nvoid __gmpz_mul_ui(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  uVar1 = *(uint *)(param_2 + 4);\n  if ((uVar1 != 0) && (param_3 != 0)) {\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }\n    iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);\n    *(int *)(iVar3 + iVar4 * 4) = iVar2;\n    iVar4 = iVar4 + (uint)(iVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    param_1[1] = iVar4;\n    return;\n  }\n  param_1[1] = 0;\n  return;\n}\n\n" comment (function_definition "void __gmpz_mul_ui(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  uVar1 = *(uint *)(param_2 + 4);\n  if ((uVar1 != 0) && (param_3 != 0)) {\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }\n    iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);\n    *(int *)(iVar3 + iVar4 * 4) = iVar2;\n    iVar4 = iVar4 + (uint)(iVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    param_1[1] = iVar4;\n    return;\n  }\n  param_1[1] = 0;\n  return;\n}" primitive_type (function_declarator "__gmpz_mul_ui(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  uVar1 = *(uint *)(param_2 + 4);\n  if ((uVar1 != 0) && (param_3 != 0)) {\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }\n    iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);\n    *(int *)(iVar3 + iVar4 * 4) = iVar2;\n    iVar4 = iVar4 + (uint)(iVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    param_1[1] = iVar4;\n    return;\n  }\n  param_1[1] = 0;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "uVar1 = *(uint *)(param_2 + 4);" (assignment_expression "uVar1 = *(uint *)(param_2 + 4)" identifier = (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 != 0) && (param_3 != 0)) {\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }\n    iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);\n    *(int *)(iVar3 + iVar4 * 4) = iVar2;\n    iVar4 = iVar4 + (uint)(iVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    param_1[1] = iVar4;\n    return;\n  }" if (parenthesized_expression "((uVar1 != 0) && (param_3 != 0))" ( (binary_expression "(uVar1 != 0) && (param_3 != 0)" (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }\n    iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);\n    *(int *)(iVar3 + iVar4 * 4) = iVar2;\n    iVar4 = iVar4 + (uint)(iVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    param_1[1] = iVar4;\n    return;\n  }" { (expression_statement "iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);" (assignment_expression "iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f)" identifier = (binary_expression "((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f)" (parenthesized_expression "((int)uVar1 >> 0x1f ^ uVar1)" ( (binary_expression "(int)uVar1 >> 0x1f ^ uVar1" (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ^ identifier) )) - (parenthesized_expression "((int)uVar1 >> 0x1f)" ( (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (if_statement "if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }" if (parenthesized_expression "(iVar4 < *param_1)" ( (binary_expression "iVar4 < *param_1" identifier < (pointer_expression "*param_1" * identifier)) )) (compound_statement "{\n      iVar3 = param_1[2];\n    }" { (expression_statement "iVar3 = param_1[2];" (assignment_expression "iVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }" else (compound_statement "{\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }" { (expression_statement "iVar3 = __gmpz_realloc(param_1,iVar4 + 1);" (assignment_expression "iVar3 = __gmpz_realloc(param_1,iVar4 + 1)" identifier = (call_expression "__gmpz_realloc(param_1,iVar4 + 1)" identifier (argument_list "(param_1,iVar4 + 1)" ( identifier , (binary_expression "iVar4 + 1" identifier + number_literal) )))) ;) }))) (expression_statement "iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);" (assignment_expression "iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3)" identifier = (call_expression "(**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3)" (parenthesized_expression "(**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))" ( (pointer_expression "**(code **)(PTR___gmpn_cpuvec_00098d94 + 100)" * (pointer_expression "*(code **)(PTR___gmpn_cpuvec_00098d94 + 100)" * (cast_expression "(code **)(PTR___gmpn_cpuvec_00098d94 + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR___gmpn_cpuvec_00098d94 + 100)" ( (binary_expression "PTR___gmpn_cpuvec_00098d94 + 100" identifier + number_literal) ))))) )) (argument_list "(iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3)" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) , identifier , identifier )))) ;) (expression_statement "*(int *)(iVar3 + iVar4 * 4) = iVar2;" (assignment_expression "*(int *)(iVar3 + iVar4 * 4) = iVar2" (pointer_expression "*(int *)(iVar3 + iVar4 * 4)" * (cast_expression "(int *)(iVar3 + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar4 * 4)" ( (binary_expression "iVar3 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar4 = iVar4 + (uint)(iVar2 != 0);" (assignment_expression "iVar4 = iVar4 + (uint)(iVar2 != 0)" identifier = (binary_expression "iVar4 + (uint)(iVar2 != 0)" identifier + (call_expression "(uint)(iVar2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) ))))) ;) (if_statement "if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }" if (parenthesized_expression "((int)uVar1 < 0)" ( (binary_expression "(int)uVar1 < 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      iVar4 = -iVar4;\n    }" { (expression_statement "iVar4 = -iVar4;" (assignment_expression "iVar4 = -iVar4" identifier = (unary_expression "-iVar4" - identifier)) ;) })) (expression_statement "param_1[1] = iVar4;" (assignment_expression "param_1[1] = iVar4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nvoid __gmpz_mul_ui(mpz_ptr prod,mpz_srcptr mult,ulong small_mult)\n\n{\n  uint uVar1;\n  mp_limb_t mVar2;\n  mp_limb_t *pmVar3;\n  int iVar4;\n  \n  uVar1 = mult->_mp_size;\n  if ((uVar1 != 0) && (small_mult != 0)) {\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < prod->_mp_alloc) {\n      pmVar3 = prod->_mp_d;\n    }\n    else {\n      pmVar3 = (mp_limb_t *)__gmpz_realloc(prod,iVar4 + 1);\n    }\n    mVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))(pmVar3,mult->_mp_d,iVar4,small_mult);\n    pmVar3[iVar4] = mVar2;\n    iVar4 = iVar4 + (uint)(mVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    prod->_mp_size = iVar4;\n    return;\n  }\n  prod->_mp_size = 0;\n  return;\n}\n\n" comment (function_definition "void __gmpz_mul_ui(mpz_ptr prod,mpz_srcptr mult,ulong small_mult)\n\n{\n  uint uVar1;\n  mp_limb_t mVar2;\n  mp_limb_t *pmVar3;\n  int iVar4;\n  \n  uVar1 = mult->_mp_size;\n  if ((uVar1 != 0) && (small_mult != 0)) {\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < prod->_mp_alloc) {\n      pmVar3 = prod->_mp_d;\n    }\n    else {\n      pmVar3 = (mp_limb_t *)__gmpz_realloc(prod,iVar4 + 1);\n    }\n    mVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))(pmVar3,mult->_mp_d,iVar4,small_mult);\n    pmVar3[iVar4] = mVar2;\n    iVar4 = iVar4 + (uint)(mVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    prod->_mp_size = iVar4;\n    return;\n  }\n  prod->_mp_size = 0;\n  return;\n}" primitive_type (function_declarator "__gmpz_mul_ui(mpz_ptr prod,mpz_srcptr mult,ulong small_mult)" identifier (parameter_list "(mpz_ptr prod,mpz_srcptr mult,ulong small_mult)" ( (parameter_declaration "mpz_ptr prod" type_identifier identifier) , (parameter_declaration "mpz_srcptr mult" type_identifier identifier) , (parameter_declaration "ulong small_mult" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  mp_limb_t mVar2;\n  mp_limb_t *pmVar3;\n  int iVar4;\n  \n  uVar1 = mult->_mp_size;\n  if ((uVar1 != 0) && (small_mult != 0)) {\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < prod->_mp_alloc) {\n      pmVar3 = prod->_mp_d;\n    }\n    else {\n      pmVar3 = (mp_limb_t *)__gmpz_realloc(prod,iVar4 + 1);\n    }\n    mVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))(pmVar3,mult->_mp_d,iVar4,small_mult);\n    pmVar3[iVar4] = mVar2;\n    iVar4 = iVar4 + (uint)(mVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    prod->_mp_size = iVar4;\n    return;\n  }\n  prod->_mp_size = 0;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "mp_limb_t mVar2;" type_identifier identifier ;) (declaration "mp_limb_t *pmVar3;" type_identifier (pointer_declarator "*pmVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "uVar1 = mult->_mp_size;" (assignment_expression "uVar1 = mult->_mp_size" identifier = (field_expression "mult->_mp_size" identifier -> field_identifier)) ;) (if_statement "if ((uVar1 != 0) && (small_mult != 0)) {\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < prod->_mp_alloc) {\n      pmVar3 = prod->_mp_d;\n    }\n    else {\n      pmVar3 = (mp_limb_t *)__gmpz_realloc(prod,iVar4 + 1);\n    }\n    mVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))(pmVar3,mult->_mp_d,iVar4,small_mult);\n    pmVar3[iVar4] = mVar2;\n    iVar4 = iVar4 + (uint)(mVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    prod->_mp_size = iVar4;\n    return;\n  }" if (parenthesized_expression "((uVar1 != 0) && (small_mult != 0))" ( (binary_expression "(uVar1 != 0) && (small_mult != 0)" (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(small_mult != 0)" ( (binary_expression "small_mult != 0" identifier != number_literal) ))) )) (compound_statement "{\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < prod->_mp_alloc) {\n      pmVar3 = prod->_mp_d;\n    }\n    else {\n      pmVar3 = (mp_limb_t *)__gmpz_realloc(prod,iVar4 + 1);\n    }\n    mVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))(pmVar3,mult->_mp_d,iVar4,small_mult);\n    pmVar3[iVar4] = mVar2;\n    iVar4 = iVar4 + (uint)(mVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    prod->_mp_size = iVar4;\n    return;\n  }" { (expression_statement "iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);" (assignment_expression "iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f)" identifier = (binary_expression "((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f)" (parenthesized_expression "((int)uVar1 >> 0x1f ^ uVar1)" ( (binary_expression "(int)uVar1 >> 0x1f ^ uVar1" (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ^ identifier) )) - (parenthesized_expression "((int)uVar1 >> 0x1f)" ( (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (if_statement "if (iVar4 < prod->_mp_alloc) {\n      pmVar3 = prod->_mp_d;\n    }\n    else {\n      pmVar3 = (mp_limb_t *)__gmpz_realloc(prod,iVar4 + 1);\n    }" if (parenthesized_expression "(iVar4 < prod->_mp_alloc)" ( (binary_expression "iVar4 < prod->_mp_alloc" identifier < (field_expression "prod->_mp_alloc" identifier -> field_identifier)) )) (compound_statement "{\n      pmVar3 = prod->_mp_d;\n    }" { (expression_statement "pmVar3 = prod->_mp_d;" (assignment_expression "pmVar3 = prod->_mp_d" identifier = (field_expression "prod->_mp_d" identifier -> field_identifier)) ;) }) (else_clause "else {\n      pmVar3 = (mp_limb_t *)__gmpz_realloc(prod,iVar4 + 1);\n    }" else (compound_statement "{\n      pmVar3 = (mp_limb_t *)__gmpz_realloc(prod,iVar4 + 1);\n    }" { (expression_statement "pmVar3 = (mp_limb_t *)__gmpz_realloc(prod,iVar4 + 1);" (assignment_expression "pmVar3 = (mp_limb_t *)__gmpz_realloc(prod,iVar4 + 1)" identifier = (cast_expression "(mp_limb_t *)__gmpz_realloc(prod,iVar4 + 1)" ( (type_descriptor "mp_limb_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__gmpz_realloc(prod,iVar4 + 1)" identifier (argument_list "(prod,iVar4 + 1)" ( identifier , (binary_expression "iVar4 + 1" identifier + number_literal) ))))) ;) }))) (expression_statement "mVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))(pmVar3,mult->_mp_d,iVar4,small_mult);" (assignment_expression "mVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))(pmVar3,mult->_mp_d,iVar4,small_mult)" identifier = (call_expression "(**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))(pmVar3,mult->_mp_d,iVar4,small_mult)" (parenthesized_expression "(**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))" ( (pointer_expression "**(code **)(PTR___gmpn_cpuvec_00098d94 + 100)" * (pointer_expression "*(code **)(PTR___gmpn_cpuvec_00098d94 + 100)" * (cast_expression "(code **)(PTR___gmpn_cpuvec_00098d94 + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR___gmpn_cpuvec_00098d94 + 100)" ( (binary_expression "PTR___gmpn_cpuvec_00098d94 + 100" identifier + number_literal) ))))) )) (argument_list "(pmVar3,mult->_mp_d,iVar4,small_mult)" ( identifier , (field_expression "mult->_mp_d" identifier -> field_identifier) , identifier , identifier )))) ;) (expression_statement "pmVar3[iVar4] = mVar2;" (assignment_expression "pmVar3[iVar4] = mVar2" (subscript_expression "pmVar3[iVar4]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar4 = iVar4 + (uint)(mVar2 != 0);" (assignment_expression "iVar4 = iVar4 + (uint)(mVar2 != 0)" identifier = (binary_expression "iVar4 + (uint)(mVar2 != 0)" identifier + (call_expression "(uint)(mVar2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(mVar2 != 0)" ( (binary_expression "mVar2 != 0" identifier != number_literal) ))))) ;) (if_statement "if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }" if (parenthesized_expression "((int)uVar1 < 0)" ( (binary_expression "(int)uVar1 < 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      iVar4 = -iVar4;\n    }" { (expression_statement "iVar4 = -iVar4;" (assignment_expression "iVar4 = -iVar4" identifier = (unary_expression "-iVar4" - identifier)) ;) })) (expression_statement "prod->_mp_size = iVar4;" (assignment_expression "prod->_mp_size = iVar4" (field_expression "prod->_mp_size" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "prod->_mp_size = 0;" (assignment_expression "prod->_mp_size = 0" (field_expression "prod->_mp_size" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __gmpz_mul_ui(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  uVar1 = *(uint *)(param_2 + 4);\n  if ((uVar1 != 0) && (param_3 != 0)) {\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }\n    iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);\n    *(int *)(iVar3 + iVar4 * 4) = iVar2;\n    iVar4 = iVar4 + (uint)(iVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    param_1[1] = iVar4;\n    return;\n  }\n  param_1[1] = 0;\n  return;\n}\n\n" (function_definition "void __gmpz_mul_ui(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  uVar1 = *(uint *)(param_2 + 4);\n  if ((uVar1 != 0) && (param_3 != 0)) {\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }\n    iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);\n    *(int *)(iVar3 + iVar4 * 4) = iVar2;\n    iVar4 = iVar4 + (uint)(iVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    param_1[1] = iVar4;\n    return;\n  }\n  param_1[1] = 0;\n  return;\n}" primitive_type (function_declarator "__gmpz_mul_ui(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  uVar1 = *(uint *)(param_2 + 4);\n  if ((uVar1 != 0) && (param_3 != 0)) {\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }\n    iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);\n    *(int *)(iVar3 + iVar4 * 4) = iVar2;\n    iVar4 = iVar4 + (uint)(iVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    param_1[1] = iVar4;\n    return;\n  }\n  param_1[1] = 0;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "uVar1 = *(uint *)(param_2 + 4);" (assignment_expression "uVar1 = *(uint *)(param_2 + 4)" identifier = (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 != 0) && (param_3 != 0)) {\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }\n    iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);\n    *(int *)(iVar3 + iVar4 * 4) = iVar2;\n    iVar4 = iVar4 + (uint)(iVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    param_1[1] = iVar4;\n    return;\n  }" if (parenthesized_expression "((uVar1 != 0) && (param_3 != 0))" ( (binary_expression "(uVar1 != 0) && (param_3 != 0)" (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }\n    iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);\n    *(int *)(iVar3 + iVar4 * 4) = iVar2;\n    iVar4 = iVar4 + (uint)(iVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    param_1[1] = iVar4;\n    return;\n  }" { (expression_statement "iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);" (assignment_expression "iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f)" identifier = (binary_expression "((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f)" (parenthesized_expression "((int)uVar1 >> 0x1f ^ uVar1)" ( (binary_expression "(int)uVar1 >> 0x1f ^ uVar1" (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ^ identifier) )) - (parenthesized_expression "((int)uVar1 >> 0x1f)" ( (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (if_statement "if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }" if (parenthesized_expression "(iVar4 < *param_1)" ( (binary_expression "iVar4 < *param_1" identifier < (pointer_expression "*param_1" * identifier)) )) (compound_statement "{\n      iVar3 = param_1[2];\n    }" { (expression_statement "iVar3 = param_1[2];" (assignment_expression "iVar3 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }" else (compound_statement "{\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }" { (expression_statement "iVar3 = __gmpz_realloc(param_1,iVar4 + 1);" (assignment_expression "iVar3 = __gmpz_realloc(param_1,iVar4 + 1)" identifier = (call_expression "__gmpz_realloc(param_1,iVar4 + 1)" identifier (argument_list "(param_1,iVar4 + 1)" ( identifier , (binary_expression "iVar4 + 1" identifier + number_literal) )))) ;) }))) (expression_statement "iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);" (assignment_expression "iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3)" identifier = (call_expression "(**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3)" (parenthesized_expression "(**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))" ( (pointer_expression "**(code **)(PTR___gmpn_cpuvec_00098d94 + 100)" * (pointer_expression "*(code **)(PTR___gmpn_cpuvec_00098d94 + 100)" * (cast_expression "(code **)(PTR___gmpn_cpuvec_00098d94 + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR___gmpn_cpuvec_00098d94 + 100)" ( (binary_expression "PTR___gmpn_cpuvec_00098d94 + 100" identifier + number_literal) ))))) )) (argument_list "(iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3)" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) , identifier , identifier )))) ;) (expression_statement "*(int *)(iVar3 + iVar4 * 4) = iVar2;" (assignment_expression "*(int *)(iVar3 + iVar4 * 4) = iVar2" (pointer_expression "*(int *)(iVar3 + iVar4 * 4)" * (cast_expression "(int *)(iVar3 + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar4 * 4)" ( (binary_expression "iVar3 + iVar4 * 4" identifier + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar4 = iVar4 + (uint)(iVar2 != 0);" (assignment_expression "iVar4 = iVar4 + (uint)(iVar2 != 0)" identifier = (binary_expression "iVar4 + (uint)(iVar2 != 0)" identifier + (call_expression "(uint)(iVar2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) ))))) ;) (if_statement "if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }" if (parenthesized_expression "((int)uVar1 < 0)" ( (binary_expression "(int)uVar1 < 0" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      iVar4 = -iVar4;\n    }" { (expression_statement "iVar4 = -iVar4;" (assignment_expression "iVar4 = -iVar4" identifier = (unary_expression "-iVar4" - identifier)) ;) })) (expression_statement "param_1[1] = iVar4;" (assignment_expression "param_1[1] = iVar4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ^ IDENT) )) - (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void __gmpz_mul_ui(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  uVar1 = *(uint *)(param_2 + 4);\n  if ((uVar1 != 0) && (param_3 != 0)) {\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }\n    iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);\n    *(int *)(iVar3 + iVar4 * 4) = iVar2;\n    iVar4 = iVar4 + (uint)(iVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    param_1[1] = iVar4;\n    return;\n  }\n  param_1[1] = 0;\n  return;\n}" (primitive_type "void") (function_declarator "__gmpz_mul_ui(int *param_1,int param_2,int param_3)" (identifier "__gmpz_mul_ui") (parameter_list "(int *param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  uVar1 = *(uint *)(param_2 + 4);\n  if ((uVar1 != 0) && (param_3 != 0)) {\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }\n    iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);\n    *(int *)(iVar3 + iVar4 * 4) = iVar2;\n    iVar4 = iVar4 + (uint)(iVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    param_1[1] = iVar4;\n    return;\n  }\n  param_1[1] = 0;\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "uVar1 = *(uint *)(param_2 + 4);" (assignment_expression "uVar1 = *(uint *)(param_2 + 4)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if ((uVar1 != 0) && (param_3 != 0)) {\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }\n    iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);\n    *(int *)(iVar3 + iVar4 * 4) = iVar2;\n    iVar4 = iVar4 + (uint)(iVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    param_1[1] = iVar4;\n    return;\n  }" (if "if") (parenthesized_expression "((uVar1 != 0) && (param_3 != 0))" (( "(") (binary_expression "(uVar1 != 0) && (param_3 != 0)" (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n    if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }\n    iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);\n    *(int *)(iVar3 + iVar4 * 4) = iVar2;\n    iVar4 = iVar4 + (uint)(iVar2 != 0);\n    if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }\n    param_1[1] = iVar4;\n    return;\n  }" ({ "{") (expression_statement "iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);" (assignment_expression "iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f)" (identifier "iVar4") (= "=") (binary_expression "((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f)" (parenthesized_expression "((int)uVar1 >> 0x1f ^ uVar1)" (( "(") (binary_expression "(int)uVar1 >> 0x1f ^ uVar1" (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (>> ">>") (number_literal "0x1f")) (^ "^") (identifier "uVar1")) () ")")) (- "-") (parenthesized_expression "((int)uVar1 >> 0x1f)" (( "(") (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (>> ">>") (number_literal "0x1f")) () ")")))) (; ";")) (if_statement "if (iVar4 < *param_1) {\n      iVar3 = param_1[2];\n    }\n    else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }" (if "if") (parenthesized_expression "(iVar4 < *param_1)" (( "(") (binary_expression "iVar4 < *param_1" (identifier "iVar4") (< "<") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")) (compound_statement "{\n      iVar3 = param_1[2];\n    }" ({ "{") (expression_statement "iVar3 = param_1[2];" (assignment_expression "iVar3 = param_1[2]" (identifier "iVar3") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }" (else "else") (compound_statement "{\n      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);\n    }" ({ "{") (expression_statement "iVar3 = __gmpz_realloc(param_1,iVar4 + 1);" (assignment_expression "iVar3 = __gmpz_realloc(param_1,iVar4 + 1)" (identifier "iVar3") (= "=") (call_expression "__gmpz_realloc(param_1,iVar4 + 1)" (identifier "__gmpz_realloc") (argument_list "(param_1,iVar4 + 1)" (( "(") (identifier "param_1") (, ",") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")))) (expression_statement "iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);" (assignment_expression "iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))\n                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3)" (parenthesized_expression "(**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))" (( "(") (pointer_expression "**(code **)(PTR___gmpn_cpuvec_00098d94 + 100)" (* "*") (pointer_expression "*(code **)(PTR___gmpn_cpuvec_00098d94 + 100)" (* "*") (cast_expression "(code **)(PTR___gmpn_cpuvec_00098d94 + 100)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR___gmpn_cpuvec_00098d94 + 100)" (( "(") (binary_expression "PTR___gmpn_cpuvec_00098d94 + 100" (identifier "PTR___gmpn_cpuvec_00098d94") (+ "+") (number_literal "100")) () ")"))))) () ")")) (argument_list "(iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3)" (( "(") (identifier "iVar3") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (, ",") (identifier "iVar4") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "*(int *)(iVar3 + iVar4 * 4) = iVar2;" (assignment_expression "*(int *)(iVar3 + iVar4 * 4) = iVar2" (pointer_expression "*(int *)(iVar3 + iVar4 * 4)" (* "*") (cast_expression "(int *)(iVar3 + iVar4 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar4 * 4)" (( "(") (binary_expression "iVar3 + iVar4 * 4" (identifier "iVar3") (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar4 = iVar4 + (uint)(iVar2 != 0);" (assignment_expression "iVar4 = iVar4 + (uint)(iVar2 != 0)" (identifier "iVar4") (= "=") (binary_expression "iVar4 + (uint)(iVar2 != 0)" (identifier "iVar4") (+ "+") (call_expression "(uint)(iVar2 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")"))))) (; ";")) (if_statement "if ((int)uVar1 < 0) {\n      iVar4 = -iVar4;\n    }" (if "if") (parenthesized_expression "((int)uVar1 < 0)" (( "(") (binary_expression "(int)uVar1 < 0" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = -iVar4;\n    }" ({ "{") (expression_statement "iVar4 = -iVar4;" (assignment_expression "iVar4 = -iVar4" (identifier "iVar4") (= "=") (unary_expression "-iVar4" (- "-") (identifier "iVar4"))) (; ";")) (} "}"))) (expression_statement "param_1[1] = iVar4;" (assignment_expression "param_1[1] = iVar4" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void function_1(type_1 prod,type_2 mult,type_3 var_2)

{
  type_4 var_1;
  type_5 var_6;
  type_5 *pmVar3;
  int var_3;
  
  var_1 = mult->_mp_size;
  if ((var_1 != 0) && (var_2 != 0)) {
    var_3 = ((int)var_1 >> 0x1f ^ var_1) - ((int)var_1 >> 0x1f);
    if (var_3 < prod->_mp_alloc) {
      pmVar3 = prod->_mp_d;
    }
    else {
      pmVar3 = (type_5 *)var_4(prod,var_3 + 1);
    }
    var_6 = (**(type_6 **)(var_5 + 100))(pmVar3,mult->_mp_d,var_3,var_2);
    pmVar3[var_3] = var_6;
    var_3 = var_3 + (type_4)(var_6 != 0);
    if ((int)var_1 < 0) {
      var_3 = -var_3;
    }
    prod->_mp_size = var_3;
    return;
  }
  prod->_mp_size = 0;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)) right: (identifier))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (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) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) 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 (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void MASKED(int *param_1,int param_2,int param_3)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  uVar1 = *(uint *)(param_2 + 4);
  if ((uVar1 != 0) && (param_3 != 0)) {
    iVar4 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);
    if (iVar4 < *param_1) {
      iVar3 = param_1[2];
    }
    else {
      iVar3 = __gmpz_realloc(param_1,iVar4 + 1);
    }
    iVar2 = (**(code **)(PTR___gmpn_cpuvec_00098d94 + 100))
                      (iVar3,*(undefined4 *)(param_2 + 8),iVar4,param_3);
    *(int *)(iVar3 + iVar4 * 4) = iVar2;
    iVar4 = iVar4 + (uint)(iVar2 != 0);
    if ((int)uVar1 < 0) {
      iVar4 = -iVar4;
    }
    param_1[1] = iVar4;
    return;
  }
  param_1[1] = 0;
  return;
}

