
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

void __gmpf_set(mpf_ptr r,mpf_srcptr u)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  mp_limb_t *pmVar4;
  
  uVar1 = u->_mp_size;
  iVar3 = r->_mp_prec + 1;
  iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);
  pmVar4 = u->_mp_d;
  if (iVar3 < iVar2) {
    pmVar4 = pmVar4 + (iVar2 - iVar3);
    iVar2 = iVar3;
  }
  r->_mp_exp = u->_mp_exp;
  iVar3 = -iVar2;
  if (-1 < (int)uVar1) {
    iVar3 = iVar2;
  }
  r->_mp_size = iVar3;
  (**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(r->_mp_d,pmVar4,iVar2);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void __gmpf_set(int *param_1,int param_2)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  uVar1 = *(uint *)(param_2 + 4);
  iVar3 = *param_1 + 1;
  iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);
  iVar4 = *(int *)(param_2 + 0xc);
  if (iVar3 < iVar2) {
    iVar4 = iVar4 + (iVar2 - iVar3) * 4;
    iVar2 = iVar3;
  }
  param_1[2] = *(int *)(param_2 + 8);
  iVar3 = -iVar2;
  if (-1 < (int)uVar1) {
    iVar3 = iVar2;
  }
  param_1[1] = iVar3;
  (**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(param_1[3],iVar4,iVar2);
  return;
}


CALL 0x0001c5b1
ADD EAX,0x80ebb
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x34]
MOV EDX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0xc],EAX
MOV EBX,dword ptr [ESI + 0x4]
MOV EAX,dword ptr [EDX]
MOV EBP,dword ptr [EDX + 0xc]
MOV EDI,EBX
LEA ECX,[EAX + 0x1]
SAR EDI,0x1f
MOV EAX,EDI
XOR EAX,EBX
SUB EAX,EDI
MOV EDI,dword ptr [ESI + 0xc]
CMP ECX,EAX
JGE 0x0001d181
SUB EAX,ECX
LEA EDI,[EDI + EAX*0x4]
MOV EAX,ECX
MOV ECX,dword ptr [ESI + 0x8]
MOV dword ptr [EDX + 0x8],ECX
MOV ECX,EAX
NEG ECX
TEST EBX,EBX
CMOVNS ECX,EAX
SUB ESP,0x4
MOV dword ptr [EDX + 0x4],ECX
PUSH EAX
PUSH EDI
PUSH EBP
MOV EAX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [EAX + 0xfffffd94]
CALL dword ptr [EAX + 0x28]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid __gmpf_set(int *param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  uVar1 = *(uint *)(param_2 + 4);\n  iVar3 = *param_1 + 1;\n  iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n  iVar4 = *(int *)(param_2 + 0xc);\n  if (iVar3 < iVar2) {\n    iVar4 = iVar4 + (iVar2 - iVar3) * 4;\n    iVar2 = iVar3;\n  }\n  param_1[2] = *(int *)(param_2 + 8);\n  iVar3 = -iVar2;\n  if (-1 < (int)uVar1) {\n    iVar3 = iVar2;\n  }\n  param_1[1] = iVar3;\n  (**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(param_1[3],iVar4,iVar2);\n  return;\n}\n\n" comment (function_definition "void __gmpf_set(int *param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  uVar1 = *(uint *)(param_2 + 4);\n  iVar3 = *param_1 + 1;\n  iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n  iVar4 = *(int *)(param_2 + 0xc);\n  if (iVar3 < iVar2) {\n    iVar4 = iVar4 + (iVar2 - iVar3) * 4;\n    iVar2 = iVar3;\n  }\n  param_1[2] = *(int *)(param_2 + 8);\n  iVar3 = -iVar2;\n  if (-1 < (int)uVar1) {\n    iVar3 = iVar2;\n  }\n  param_1[1] = iVar3;\n  (**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(param_1[3],iVar4,iVar2);\n  return;\n}" primitive_type (function_declarator "__gmpf_set(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" 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  iVar3 = *param_1 + 1;\n  iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n  iVar4 = *(int *)(param_2 + 0xc);\n  if (iVar3 < iVar2) {\n    iVar4 = iVar4 + (iVar2 - iVar3) * 4;\n    iVar2 = iVar3;\n  }\n  param_1[2] = *(int *)(param_2 + 8);\n  iVar3 = -iVar2;\n  if (-1 < (int)uVar1) {\n    iVar3 = iVar2;\n  }\n  param_1[1] = iVar3;\n  (**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(param_1[3],iVar4,iVar2);\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) ))))) ;) (expression_statement "iVar3 = *param_1 + 1;" (assignment_expression "iVar3 = *param_1 + 1" identifier = (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal)) ;) (expression_statement "iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);" (assignment_expression "iVar2 = ((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) )))) ;) (expression_statement "iVar4 = *(int *)(param_2 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_2 + 0xc)" identifier = (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 < iVar2) {\n    iVar4 = iVar4 + (iVar2 - iVar3) * 4;\n    iVar2 = iVar3;\n  }" if (parenthesized_expression "(iVar3 < iVar2)" ( (binary_expression "iVar3 < iVar2" identifier < identifier) )) (compound_statement "{\n    iVar4 = iVar4 + (iVar2 - iVar3) * 4;\n    iVar2 = iVar3;\n  }" { (expression_statement "iVar4 = iVar4 + (iVar2 - iVar3) * 4;" (assignment_expression "iVar4 = iVar4 + (iVar2 - iVar3) * 4" identifier = (binary_expression "iVar4 + (iVar2 - iVar3) * 4" identifier + (binary_expression "(iVar2 - iVar3) * 4" (parenthesized_expression "(iVar2 - iVar3)" ( (binary_expression "iVar2 - iVar3" identifier - identifier) )) * number_literal))) ;) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) })) (expression_statement "param_1[2] = *(int *)(param_2 + 8);" (assignment_expression "param_1[2] = *(int *)(param_2 + 8)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = -iVar2;" (assignment_expression "iVar3 = -iVar2" identifier = (unary_expression "-iVar2" - identifier)) ;) (if_statement "if (-1 < (int)uVar1) {\n    iVar3 = iVar2;\n  }" if (parenthesized_expression "(-1 < (int)uVar1)" ( (binary_expression "-1 < (int)uVar1" number_literal < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    iVar3 = iVar2;\n  }" { (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" identifier = identifier) ;) })) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(param_1[3],iVar4,iVar2);" (call_expression "(**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(param_1[3],iVar4,iVar2)" (parenthesized_expression "(**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))" ( (pointer_expression "**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28)" * (pointer_expression "*(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28)" * (cast_expression "(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR___gmpn_cpuvec_0009dd94 + 0x28)" ( (binary_expression "PTR___gmpn_cpuvec_0009dd94 + 0x28" identifier + number_literal) ))))) )) (argument_list "(param_1[3],iVar4,iVar2)" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention */\n\nvoid __gmpf_set(mpf_ptr r,mpf_srcptr u)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  mp_limb_t *pmVar4;\n  \n  uVar1 = u->_mp_size;\n  iVar3 = r->_mp_prec + 1;\n  iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n  pmVar4 = u->_mp_d;\n  if (iVar3 < iVar2) {\n    pmVar4 = pmVar4 + (iVar2 - iVar3);\n    iVar2 = iVar3;\n  }\n  r->_mp_exp = u->_mp_exp;\n  iVar3 = -iVar2;\n  if (-1 < (int)uVar1) {\n    iVar3 = iVar2;\n  }\n  r->_mp_size = iVar3;\n  (**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(r->_mp_d,pmVar4,iVar2);\n  return;\n}\n\n" comment comment (function_definition "void __gmpf_set(mpf_ptr r,mpf_srcptr u)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  mp_limb_t *pmVar4;\n  \n  uVar1 = u->_mp_size;\n  iVar3 = r->_mp_prec + 1;\n  iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n  pmVar4 = u->_mp_d;\n  if (iVar3 < iVar2) {\n    pmVar4 = pmVar4 + (iVar2 - iVar3);\n    iVar2 = iVar3;\n  }\n  r->_mp_exp = u->_mp_exp;\n  iVar3 = -iVar2;\n  if (-1 < (int)uVar1) {\n    iVar3 = iVar2;\n  }\n  r->_mp_size = iVar3;\n  (**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(r->_mp_d,pmVar4,iVar2);\n  return;\n}" primitive_type (function_declarator "__gmpf_set(mpf_ptr r,mpf_srcptr u)" identifier (parameter_list "(mpf_ptr r,mpf_srcptr u)" ( (parameter_declaration "mpf_ptr r" type_identifier identifier) , (parameter_declaration "mpf_srcptr u" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  mp_limb_t *pmVar4;\n  \n  uVar1 = u->_mp_size;\n  iVar3 = r->_mp_prec + 1;\n  iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n  pmVar4 = u->_mp_d;\n  if (iVar3 < iVar2) {\n    pmVar4 = pmVar4 + (iVar2 - iVar3);\n    iVar2 = iVar3;\n  }\n  r->_mp_exp = u->_mp_exp;\n  iVar3 = -iVar2;\n  if (-1 < (int)uVar1) {\n    iVar3 = iVar2;\n  }\n  r->_mp_size = iVar3;\n  (**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(r->_mp_d,pmVar4,iVar2);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "mp_limb_t *pmVar4;" type_identifier (pointer_declarator "*pmVar4" * identifier) ;) (expression_statement "uVar1 = u->_mp_size;" (assignment_expression "uVar1 = u->_mp_size" identifier = (field_expression "u->_mp_size" identifier -> field_identifier)) ;) (expression_statement "iVar3 = r->_mp_prec + 1;" (assignment_expression "iVar3 = r->_mp_prec + 1" identifier = (binary_expression "r->_mp_prec + 1" (field_expression "r->_mp_prec" identifier -> field_identifier) + number_literal)) ;) (expression_statement "iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);" (assignment_expression "iVar2 = ((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) )))) ;) (expression_statement "pmVar4 = u->_mp_d;" (assignment_expression "pmVar4 = u->_mp_d" identifier = (field_expression "u->_mp_d" identifier -> field_identifier)) ;) (if_statement "if (iVar3 < iVar2) {\n    pmVar4 = pmVar4 + (iVar2 - iVar3);\n    iVar2 = iVar3;\n  }" if (parenthesized_expression "(iVar3 < iVar2)" ( (binary_expression "iVar3 < iVar2" identifier < identifier) )) (compound_statement "{\n    pmVar4 = pmVar4 + (iVar2 - iVar3);\n    iVar2 = iVar3;\n  }" { (expression_statement "pmVar4 = pmVar4 + (iVar2 - iVar3);" (assignment_expression "pmVar4 = pmVar4 + (iVar2 - iVar3)" identifier = (binary_expression "pmVar4 + (iVar2 - iVar3)" identifier + (parenthesized_expression "(iVar2 - iVar3)" ( (binary_expression "iVar2 - iVar3" identifier - identifier) )))) ;) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) })) (expression_statement "r->_mp_exp = u->_mp_exp;" (assignment_expression "r->_mp_exp = u->_mp_exp" (field_expression "r->_mp_exp" identifier -> field_identifier) = (field_expression "u->_mp_exp" identifier -> field_identifier)) ;) (expression_statement "iVar3 = -iVar2;" (assignment_expression "iVar3 = -iVar2" identifier = (unary_expression "-iVar2" - identifier)) ;) (if_statement "if (-1 < (int)uVar1) {\n    iVar3 = iVar2;\n  }" if (parenthesized_expression "(-1 < (int)uVar1)" ( (binary_expression "-1 < (int)uVar1" number_literal < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    iVar3 = iVar2;\n  }" { (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" identifier = identifier) ;) })) (expression_statement "r->_mp_size = iVar3;" (assignment_expression "r->_mp_size = iVar3" (field_expression "r->_mp_size" identifier -> field_identifier) = identifier) ;) (expression_statement "(**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(r->_mp_d,pmVar4,iVar2);" (call_expression "(**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(r->_mp_d,pmVar4,iVar2)" (parenthesized_expression "(**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))" ( (pointer_expression "**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28)" * (pointer_expression "*(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28)" * (cast_expression "(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR___gmpn_cpuvec_0009dd94 + 0x28)" ( (binary_expression "PTR___gmpn_cpuvec_0009dd94 + 0x28" identifier + number_literal) ))))) )) (argument_list "(r->_mp_d,pmVar4,iVar2)" ( (field_expression "r->_mp_d" identifier -> field_identifier) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __gmpf_set(int *param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  uVar1 = *(uint *)(param_2 + 4);\n  iVar3 = *param_1 + 1;\n  iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n  iVar4 = *(int *)(param_2 + 0xc);\n  if (iVar3 < iVar2) {\n    iVar4 = iVar4 + (iVar2 - iVar3) * 4;\n    iVar2 = iVar3;\n  }\n  param_1[2] = *(int *)(param_2 + 8);\n  iVar3 = -iVar2;\n  if (-1 < (int)uVar1) {\n    iVar3 = iVar2;\n  }\n  param_1[1] = iVar3;\n  (**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(param_1[3],iVar4,iVar2);\n  return;\n}\n\n" (function_definition "void __gmpf_set(int *param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  uVar1 = *(uint *)(param_2 + 4);\n  iVar3 = *param_1 + 1;\n  iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n  iVar4 = *(int *)(param_2 + 0xc);\n  if (iVar3 < iVar2) {\n    iVar4 = iVar4 + (iVar2 - iVar3) * 4;\n    iVar2 = iVar3;\n  }\n  param_1[2] = *(int *)(param_2 + 8);\n  iVar3 = -iVar2;\n  if (-1 < (int)uVar1) {\n    iVar3 = iVar2;\n  }\n  param_1[1] = iVar3;\n  (**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(param_1[3],iVar4,iVar2);\n  return;\n}" primitive_type (function_declarator "__gmpf_set(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" 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  iVar3 = *param_1 + 1;\n  iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n  iVar4 = *(int *)(param_2 + 0xc);\n  if (iVar3 < iVar2) {\n    iVar4 = iVar4 + (iVar2 - iVar3) * 4;\n    iVar2 = iVar3;\n  }\n  param_1[2] = *(int *)(param_2 + 8);\n  iVar3 = -iVar2;\n  if (-1 < (int)uVar1) {\n    iVar3 = iVar2;\n  }\n  param_1[1] = iVar3;\n  (**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(param_1[3],iVar4,iVar2);\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) ))))) ;) (expression_statement "iVar3 = *param_1 + 1;" (assignment_expression "iVar3 = *param_1 + 1" identifier = (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal)) ;) (expression_statement "iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);" (assignment_expression "iVar2 = ((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) )))) ;) (expression_statement "iVar4 = *(int *)(param_2 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_2 + 0xc)" identifier = (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 < iVar2) {\n    iVar4 = iVar4 + (iVar2 - iVar3) * 4;\n    iVar2 = iVar3;\n  }" if (parenthesized_expression "(iVar3 < iVar2)" ( (binary_expression "iVar3 < iVar2" identifier < identifier) )) (compound_statement "{\n    iVar4 = iVar4 + (iVar2 - iVar3) * 4;\n    iVar2 = iVar3;\n  }" { (expression_statement "iVar4 = iVar4 + (iVar2 - iVar3) * 4;" (assignment_expression "iVar4 = iVar4 + (iVar2 - iVar3) * 4" identifier = (binary_expression "iVar4 + (iVar2 - iVar3) * 4" identifier + (binary_expression "(iVar2 - iVar3) * 4" (parenthesized_expression "(iVar2 - iVar3)" ( (binary_expression "iVar2 - iVar3" identifier - identifier) )) * number_literal))) ;) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) })) (expression_statement "param_1[2] = *(int *)(param_2 + 8);" (assignment_expression "param_1[2] = *(int *)(param_2 + 8)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = -iVar2;" (assignment_expression "iVar3 = -iVar2" identifier = (unary_expression "-iVar2" - identifier)) ;) (if_statement "if (-1 < (int)uVar1) {\n    iVar3 = iVar2;\n  }" if (parenthesized_expression "(-1 < (int)uVar1)" ( (binary_expression "-1 < (int)uVar1" number_literal < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    iVar3 = iVar2;\n  }" { (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" identifier = identifier) ;) })) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(param_1[3],iVar4,iVar2);" (call_expression "(**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(param_1[3],iVar4,iVar2)" (parenthesized_expression "(**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))" ( (pointer_expression "**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28)" * (pointer_expression "*(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28)" * (cast_expression "(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR___gmpn_cpuvec_0009dd94 + 0x28)" ( (binary_expression "PTR___gmpn_cpuvec_0009dd94 + 0x28" identifier + number_literal) ))))) )) (argument_list "(param_1[3],iVar4,iVar2)" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * 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) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (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) )))) ;) (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 IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) * LIT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (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 ( (subscript_expression IDENT [ LIT ]) , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __gmpf_set(int *param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  uVar1 = *(uint *)(param_2 + 4);\n  iVar3 = *param_1 + 1;\n  iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n  iVar4 = *(int *)(param_2 + 0xc);\n  if (iVar3 < iVar2) {\n    iVar4 = iVar4 + (iVar2 - iVar3) * 4;\n    iVar2 = iVar3;\n  }\n  param_1[2] = *(int *)(param_2 + 8);\n  iVar3 = -iVar2;\n  if (-1 < (int)uVar1) {\n    iVar3 = iVar2;\n  }\n  param_1[1] = iVar3;\n  (**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(param_1[3],iVar4,iVar2);\n  return;\n}" (primitive_type "void") (function_declarator "__gmpf_set(int *param_1,int param_2)" (identifier "__gmpf_set") (parameter_list "(int *param_1,int param_2)" (( "(") (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")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  uVar1 = *(uint *)(param_2 + 4);\n  iVar3 = *param_1 + 1;\n  iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);\n  iVar4 = *(int *)(param_2 + 0xc);\n  if (iVar3 < iVar2) {\n    iVar4 = iVar4 + (iVar2 - iVar3) * 4;\n    iVar2 = iVar3;\n  }\n  param_1[2] = *(int *)(param_2 + 8);\n  iVar3 = -iVar2;\n  if (-1 < (int)uVar1) {\n    iVar3 = iVar2;\n  }\n  param_1[1] = iVar3;\n  (**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(param_1[3],iVar4,iVar2);\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")) () ")"))))) (; ";")) (expression_statement "iVar3 = *param_1 + 1;" (assignment_expression "iVar3 = *param_1 + 1" (identifier "iVar3") (= "=") (binary_expression "*param_1 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);" (assignment_expression "iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f)" (identifier "iVar2") (= "=") (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")) () ")")))) (; ";")) (expression_statement "iVar4 = *(int *)(param_2 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_2 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_2 + 0xc)" (* "*") (cast_expression "(int *)(param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (iVar3 < iVar2) {\n    iVar4 = iVar4 + (iVar2 - iVar3) * 4;\n    iVar2 = iVar3;\n  }" (if "if") (parenthesized_expression "(iVar3 < iVar2)" (( "(") (binary_expression "iVar3 < iVar2" (identifier "iVar3") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    iVar4 = iVar4 + (iVar2 - iVar3) * 4;\n    iVar2 = iVar3;\n  }" ({ "{") (expression_statement "iVar4 = iVar4 + (iVar2 - iVar3) * 4;" (assignment_expression "iVar4 = iVar4 + (iVar2 - iVar3) * 4" (identifier "iVar4") (= "=") (binary_expression "iVar4 + (iVar2 - iVar3) * 4" (identifier "iVar4") (+ "+") (binary_expression "(iVar2 - iVar3) * 4" (parenthesized_expression "(iVar2 - iVar3)" (( "(") (binary_expression "iVar2 - iVar3" (identifier "iVar2") (- "-") (identifier "iVar3")) () ")")) (* "*") (number_literal "4")))) (; ";")) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" (identifier "iVar2") (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (expression_statement "param_1[2] = *(int *)(param_2 + 8);" (assignment_expression "param_1[2] = *(int *)(param_2 + 8)" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "iVar3 = -iVar2;" (assignment_expression "iVar3 = -iVar2" (identifier "iVar3") (= "=") (unary_expression "-iVar2" (- "-") (identifier "iVar2"))) (; ";")) (if_statement "if (-1 < (int)uVar1) {\n    iVar3 = iVar2;\n  }" (if "if") (parenthesized_expression "(-1 < (int)uVar1)" (( "(") (binary_expression "-1 < (int)uVar1" (number_literal "-1") (< "<") (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1"))) () ")")) (compound_statement "{\n    iVar3 = iVar2;\n  }" ({ "{") (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" (identifier "iVar3") (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (expression_statement "param_1[1] = iVar3;" (assignment_expression "param_1[1] = iVar3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "(**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(param_1[3],iVar4,iVar2);" (call_expression "(**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(param_1[3],iVar4,iVar2)" (parenthesized_expression "(**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))" (( "(") (pointer_expression "**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28)" (* "*") (pointer_expression "*(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28)" (* "*") (cast_expression "(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR___gmpn_cpuvec_0009dd94 + 0x28)" (( "(") (binary_expression "PTR___gmpn_cpuvec_0009dd94 + 0x28" (identifier "PTR___gmpn_cpuvec_0009dd94") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(param_1[3],iVar4,iVar2)" (( "(") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (, ",") (identifier "iVar4") (, ",") (identifier "iVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

void function_1(type_1 r,type_2 u)

{
  type_3 var_1;
  int var_3;
  int var_2;
  type_4 *var_4;
  
  var_1 = u->_mp_size;
  var_2 = r->_mp_prec + 1;
  var_3 = ((int)var_1 >> 0x1f ^ var_1) - ((int)var_1 >> 0x1f);
  var_4 = u->_mp_d;
  if (var_2 < var_3) {
    var_4 = var_4 + (var_3 - var_2);
    var_3 = var_2;
  }
  r->_mp_exp = u->_mp_exp;
  var_2 = -var_3;
  if (-1 < (int)var_1) {
    var_2 = var_3;
  }
  r->_mp_size = var_2;
  (**(type_5 **)(var_5 + 0x28))(r->_mp_d,var_4,var_3);
  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)))) 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))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (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)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (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 (subscript_expression argument: (identifier) index: (number_literal)) (identifier) (identifier)))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(int *param_1,int param_2)

{
  uint uVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  uVar1 = *(uint *)(param_2 + 4);
  iVar3 = *param_1 + 1;
  iVar2 = ((int)uVar1 >> 0x1f ^ uVar1) - ((int)uVar1 >> 0x1f);
  iVar4 = *(int *)(param_2 + 0xc);
  if (iVar3 < iVar2) {
    iVar4 = iVar4 + (iVar2 - iVar3) * 4;
    iVar2 = iVar3;
  }
  param_1[2] = *(int *)(param_2 + 8);
  iVar3 = -iVar2;
  if (-1 < (int)uVar1) {
    iVar3 = iVar2;
  }
  param_1[1] = iVar3;
  (**(code **)(PTR___gmpn_cpuvec_0009dd94 + 0x28))(param_1[3],iVar4,iVar2);
  return;
}

