
/* WARNING: Unknown calling convention */

void __gmpz_swap(mpz_ptr u,mpz_ptr v)

{
  int iVar1;
  mp_limb_t *pmVar2;
  mp_limb_t *pmVar3;
  
  iVar1 = u->_mp_alloc;
  u->_mp_alloc = v->_mp_alloc;
  v->_mp_alloc = iVar1;
  iVar1 = u->_mp_size;
  u->_mp_size = v->_mp_size;
  pmVar2 = u->_mp_d;
  v->_mp_size = iVar1;
  pmVar3 = v->_mp_d;
  v->_mp_d = pmVar2;
  u->_mp_d = pmVar3;
  return;
}



void __gmpz_swap(undefined4 *param_1,undefined4 *param_2)

{
  undefined4 uVar1;
  undefined4 uVar2;
  
  uVar1 = *param_1;
  *param_1 = *param_2;
  *param_2 = uVar1;
  uVar1 = param_1[1];
  param_1[1] = param_2[1];
  uVar2 = param_1[2];
  param_2[1] = uVar1;
  uVar1 = param_2[2];
  param_2[2] = uVar2;
  param_1[2] = uVar1;
  return;
}


PUSH EBX
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [EAX]
MOV EBX,dword ptr [EDX]
MOV dword ptr [EAX],EBX
MOV EBX,dword ptr [EDX + 0x4]
MOV dword ptr [EDX],ECX
MOV ECX,dword ptr [EAX + 0x4]
MOV dword ptr [EAX + 0x4],EBX
MOV EBX,dword ptr [EAX + 0x8]
MOV dword ptr [EDX + 0x4],ECX
MOV ECX,dword ptr [EDX + 0x8]
MOV dword ptr [EDX + 0x8],EBX
MOV dword ptr [EAX + 0x8],ECX
POP EBX
RET
(translation_unit "void __gmpz_swap(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *param_1;\n  *param_1 = *param_2;\n  *param_2 = uVar1;\n  uVar1 = param_1[1];\n  param_1[1] = param_2[1];\n  uVar2 = param_1[2];\n  param_2[1] = uVar1;\n  uVar1 = param_2[2];\n  param_2[2] = uVar2;\n  param_1[2] = uVar1;\n  return;\n}\n\n" (function_definition "void __gmpz_swap(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *param_1;\n  *param_1 = *param_2;\n  *param_2 = uVar1;\n  uVar1 = param_1[1];\n  param_1[1] = param_2[1];\n  uVar2 = param_1[2];\n  param_2[1] = uVar1;\n  uVar1 = param_2[2];\n  param_2[2] = uVar2;\n  param_1[2] = uVar1;\n  return;\n}" primitive_type (function_declarator "__gmpz_swap(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *param_1;\n  *param_1 = *param_2;\n  *param_2 = uVar1;\n  uVar1 = param_1[1];\n  param_1[1] = param_2[1];\n  uVar2 = param_1[2];\n  param_2[1] = uVar1;\n  uVar1 = param_2[2];\n  param_2[2] = uVar2;\n  param_1[2] = uVar1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = param_2[1];" (assignment_expression "param_1[1] = param_2[1]" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_2[1] = uVar1;" (assignment_expression "param_2[1] = uVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = param_2[2];" (assignment_expression "uVar1 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "param_2[2] = uVar2;" (assignment_expression "param_2[2] = uVar2" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = uVar1;" (assignment_expression "param_1[2] = uVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid __gmpz_swap(mpz_ptr u,mpz_ptr v)\n\n{\n  int iVar1;\n  mp_limb_t *pmVar2;\n  mp_limb_t *pmVar3;\n  \n  iVar1 = u->_mp_alloc;\n  u->_mp_alloc = v->_mp_alloc;\n  v->_mp_alloc = iVar1;\n  iVar1 = u->_mp_size;\n  u->_mp_size = v->_mp_size;\n  pmVar2 = u->_mp_d;\n  v->_mp_size = iVar1;\n  pmVar3 = v->_mp_d;\n  v->_mp_d = pmVar2;\n  u->_mp_d = pmVar3;\n  return;\n}\n\n" comment (function_definition "void __gmpz_swap(mpz_ptr u,mpz_ptr v)\n\n{\n  int iVar1;\n  mp_limb_t *pmVar2;\n  mp_limb_t *pmVar3;\n  \n  iVar1 = u->_mp_alloc;\n  u->_mp_alloc = v->_mp_alloc;\n  v->_mp_alloc = iVar1;\n  iVar1 = u->_mp_size;\n  u->_mp_size = v->_mp_size;\n  pmVar2 = u->_mp_d;\n  v->_mp_size = iVar1;\n  pmVar3 = v->_mp_d;\n  v->_mp_d = pmVar2;\n  u->_mp_d = pmVar3;\n  return;\n}" primitive_type (function_declarator "__gmpz_swap(mpz_ptr u,mpz_ptr v)" identifier (parameter_list "(mpz_ptr u,mpz_ptr v)" ( (parameter_declaration "mpz_ptr u" type_identifier identifier) , (parameter_declaration "mpz_ptr v" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  mp_limb_t *pmVar2;\n  mp_limb_t *pmVar3;\n  \n  iVar1 = u->_mp_alloc;\n  u->_mp_alloc = v->_mp_alloc;\n  v->_mp_alloc = iVar1;\n  iVar1 = u->_mp_size;\n  u->_mp_size = v->_mp_size;\n  pmVar2 = u->_mp_d;\n  v->_mp_size = iVar1;\n  pmVar3 = v->_mp_d;\n  v->_mp_d = pmVar2;\n  u->_mp_d = pmVar3;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "mp_limb_t *pmVar2;" type_identifier (pointer_declarator "*pmVar2" * identifier) ;) (declaration "mp_limb_t *pmVar3;" type_identifier (pointer_declarator "*pmVar3" * identifier) ;) (expression_statement "iVar1 = u->_mp_alloc;" (assignment_expression "iVar1 = u->_mp_alloc" identifier = (field_expression "u->_mp_alloc" identifier -> field_identifier)) ;) (expression_statement "u->_mp_alloc = v->_mp_alloc;" (assignment_expression "u->_mp_alloc = v->_mp_alloc" (field_expression "u->_mp_alloc" identifier -> field_identifier) = (field_expression "v->_mp_alloc" identifier -> field_identifier)) ;) (expression_statement "v->_mp_alloc = iVar1;" (assignment_expression "v->_mp_alloc = iVar1" (field_expression "v->_mp_alloc" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar1 = u->_mp_size;" (assignment_expression "iVar1 = u->_mp_size" identifier = (field_expression "u->_mp_size" identifier -> field_identifier)) ;) (expression_statement "u->_mp_size = v->_mp_size;" (assignment_expression "u->_mp_size = v->_mp_size" (field_expression "u->_mp_size" identifier -> field_identifier) = (field_expression "v->_mp_size" identifier -> field_identifier)) ;) (expression_statement "pmVar2 = u->_mp_d;" (assignment_expression "pmVar2 = u->_mp_d" identifier = (field_expression "u->_mp_d" identifier -> field_identifier)) ;) (expression_statement "v->_mp_size = iVar1;" (assignment_expression "v->_mp_size = iVar1" (field_expression "v->_mp_size" identifier -> field_identifier) = identifier) ;) (expression_statement "pmVar3 = v->_mp_d;" (assignment_expression "pmVar3 = v->_mp_d" identifier = (field_expression "v->_mp_d" identifier -> field_identifier)) ;) (expression_statement "v->_mp_d = pmVar2;" (assignment_expression "v->_mp_d = pmVar2" (field_expression "v->_mp_d" identifier -> field_identifier) = identifier) ;) (expression_statement "u->_mp_d = pmVar3;" (assignment_expression "u->_mp_d = pmVar3" (field_expression "u->_mp_d" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __gmpz_swap(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *param_1;\n  *param_1 = *param_2;\n  *param_2 = uVar1;\n  uVar1 = param_1[1];\n  param_1[1] = param_2[1];\n  uVar2 = param_1[2];\n  param_2[1] = uVar1;\n  uVar1 = param_2[2];\n  param_2[2] = uVar2;\n  param_1[2] = uVar1;\n  return;\n}\n\n" (function_definition "void __gmpz_swap(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *param_1;\n  *param_1 = *param_2;\n  *param_2 = uVar1;\n  uVar1 = param_1[1];\n  param_1[1] = param_2[1];\n  uVar2 = param_1[2];\n  param_2[1] = uVar1;\n  uVar1 = param_2[2];\n  param_2[2] = uVar2;\n  param_1[2] = uVar1;\n  return;\n}" primitive_type (function_declarator "__gmpz_swap(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *param_1;\n  *param_1 = *param_2;\n  *param_2 = uVar1;\n  uVar1 = param_1[1];\n  param_1[1] = param_2[1];\n  uVar2 = param_1[2];\n  param_2[1] = uVar1;\n  uVar1 = param_2[2];\n  param_2[2] = uVar2;\n  param_1[2] = uVar1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = param_2[1];" (assignment_expression "param_1[1] = param_2[1]" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_2[1] = uVar1;" (assignment_expression "param_2[1] = uVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = param_2[2];" (assignment_expression "uVar1 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "param_2[2] = uVar2;" (assignment_expression "param_2[2] = uVar2" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = uVar1;" (assignment_expression "param_1[2] = uVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void __gmpz_swap(undefined4 *param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *param_1;\n  *param_1 = *param_2;\n  *param_2 = uVar1;\n  uVar1 = param_1[1];\n  param_1[1] = param_2[1];\n  uVar2 = param_1[2];\n  param_2[1] = uVar1;\n  uVar1 = param_2[2];\n  param_2[2] = uVar2;\n  param_1[2] = uVar1;\n  return;\n}" (primitive_type "void") (function_declarator "__gmpz_swap(undefined4 *param_1,undefined4 *param_2)" (identifier "__gmpz_swap") (parameter_list "(undefined4 *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *param_1;\n  *param_1 = *param_2;\n  *param_2 = uVar1;\n  uVar1 = param_1[1];\n  param_1[1] = param_2[1];\n  uVar2 = param_1[2];\n  param_2[1] = uVar1;\n  uVar1 = param_2[2];\n  param_2[2] = uVar2;\n  param_1[2] = uVar1;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" (identifier "uVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = param_1[1];" (assignment_expression "uVar1 = param_1[1]" (identifier "uVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_1[1] = param_2[1];" (assignment_expression "param_1[1] = param_2[1]" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" (identifier "uVar2") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_2[1] = uVar1;" (assignment_expression "param_2[1] = uVar1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar1 = param_2[2];" (assignment_expression "uVar1 = param_2[2]" (identifier "uVar1") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_2[2] = uVar2;" (assignment_expression "param_2[2] = uVar2" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "param_1[2] = uVar1;" (assignment_expression "param_1[2] = uVar1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(type_1 u,type_1 v)

{
  int iVar1;
  type_2 *pmVar2;
  type_2 *pmVar3;
  
  iVar1 = u->_mp_alloc;
  u->_mp_alloc = v->_mp_alloc;
  v->_mp_alloc = iVar1;
  iVar1 = u->_mp_size;
  u->_mp_size = v->_mp_size;
  pmVar2 = u->_mp_d;
  v->_mp_size = iVar1;
  pmVar3 = v->_mp_d;
  v->_mp_d = pmVar2;
  u->_mp_d = pmVar3;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement))))

void MASKED(undefined4 *param_1,undefined4 *param_2)

{
  undefined4 uVar1;
  undefined4 uVar2;
  
  uVar1 = *param_1;
  *param_1 = *param_2;
  *param_2 = uVar1;
  uVar1 = param_1[1];
  param_1[1] = param_2[1];
  uVar2 = param_1[2];
  param_2[1] = uVar1;
  uVar1 = param_2[2];
  param_2[2] = uVar2;
  param_1[2] = uVar1;
  return;
}

