
void __gmpq_set_num(mpq_ptr dest,mpz_srcptr num)

{
  mp_limb_t *pmVar1;
  mp_limb_t *pmVar2;
  mp_limb_t *pmVar3;
  mp_limb_t mVar4;
  int iVar5;
  int iVar6;
  
  iVar5 = num->_mp_size;
  if (iVar5 < 0) {
    iVar6 = -iVar5;
    if ((dest->_mp_num)._mp_alloc < iVar6) goto LAB_000396d8;
  }
  else {
    iVar6 = iVar5;
    if ((dest->_mp_num)._mp_alloc < iVar5) {
LAB_000396d8:
      pmVar1 = (mp_limb_t *)(*(code *)PTR___gmpz_realloc_000975bc)(dest,iVar6);
      goto LAB_00039660;
    }
  }
  pmVar1 = (dest->_mp_num)._mp_d;
LAB_00039660:
  (dest->_mp_num)._mp_size = iVar5;
  if (iVar5 != 0) {
    pmVar2 = num->_mp_d;
    iVar5 = iVar6 + -1;
    mVar4 = *pmVar2;
    pmVar3 = pmVar1;
    if (iVar5 != 0) {
      do {
        pmVar2 = pmVar2 + 1;
        *pmVar3 = mVar4;
        iVar5 = iVar5 + -1;
        mVar4 = *pmVar2;
        pmVar3 = pmVar3 + 1;
      } while (iVar5 != 0);
      pmVar1 = pmVar1 + iVar6 + -1;
    }
    *pmVar1 = mVar4;
  }
  return;
}



void __gmpq_set_num(int *param_1,int param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  int iVar5;
  int iVar6;
  
  iVar5 = *(int *)(param_2 + 4);
  if (iVar5 < 0) {
    iVar6 = -iVar5;
    if (*param_1 < iVar6) goto LAB_000396d8;
  }
  else {
    iVar6 = iVar5;
    if (*param_1 < iVar5) {
LAB_000396d8:
      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);
      goto LAB_00039660;
    }
  }
  puVar1 = (undefined4 *)param_1[2];
LAB_00039660:
  param_1[1] = iVar5;
  if (iVar5 != 0) {
    puVar2 = *(undefined4 **)(param_2 + 8);
    iVar5 = iVar6 + -1;
    uVar4 = *puVar2;
    puVar3 = puVar1;
    if (iVar5 != 0) {
      do {
        puVar2 = puVar2 + 1;
        *puVar3 = uVar4;
        iVar5 = iVar5 + -1;
        uVar4 = *puVar2;
        puVar3 = puVar3 + 1;
      } while (iVar5 != 0);
      puVar1 = puVar1 + iVar6 + -1;
    }
    *puVar1 = uVar4;
  }
  return;
}


lui gp,0x6
addiu gp,gp,0x5a30
addu gp,gp,t9
addiu sp,sp,-0x30
sw s0,0x1c(sp)
sw gp,0x10(sp)
sw s3,0x28(sp)
or s3,a1,zero
sw s2,0x24(sp)
sw ra,0x2c(sp)
sw s1,0x20(sp)
lw s0,0x4(a1)
bltz s0,0x000396c4
_or s2,a0,zero
lw v0,0x0(s2)
or s1,s0,zero
slt v0,v0,s1
bne v0,zero,0x000396d8
_lw t9,-0x7a84(gp)
lw v0,0x8(s2)
beq s0,zero,0x000396a8
_sw s0,0x4(s2)
lw v1,0x8(s3)
addiu a0,s1,-0x1
beq a0,zero,0x000396a4
_lw a2,0x0(v1)
addiu v1,v1,0x4
or a1,v0,zero
addiu a1,a1,0x4
sw a2,-0x4(a1)
addiu v1,v1,0x4
addiu a0,a0,-0x1
bne a0,zero,0x00039680
_lw a2,-0x4(v1)
sll s1,s1,0x2
addiu s1,s1,-0x4
addu v0,v0,s1
sw a2,0x0(v0)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw v0,0x0(s2)
subu s1,zero,s0
slt v0,v0,s1
beq v0,zero,0x0003965c
_lw t9,-0x7a84(gp)
or a1,s1,zero
jalr t9
_or a0,s2,zero
b 0x00039660
_nop
(translation_unit "void __gmpq_set_num(int *param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = *(int *)(param_2 + 4);\n  if (iVar5 < 0) {\n    iVar6 = -iVar5;\n    if (*param_1 < iVar6) goto LAB_000396d8;\n  }\n  else {\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }\n  puVar1 = (undefined4 *)param_1[2];\nLAB_00039660:\n  param_1[1] = iVar5;\n  if (iVar5 != 0) {\n    puVar2 = *(undefined4 **)(param_2 + 8);\n    iVar5 = iVar6 + -1;\n    uVar4 = *puVar2;\n    puVar3 = puVar1;\n    if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }\n    *puVar1 = uVar4;\n  }\n  return;\n}\n\n" (function_definition "void __gmpq_set_num(int *param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = *(int *)(param_2 + 4);\n  if (iVar5 < 0) {\n    iVar6 = -iVar5;\n    if (*param_1 < iVar6) goto LAB_000396d8;\n  }\n  else {\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }\n  puVar1 = (undefined4 *)param_1[2];\nLAB_00039660:\n  param_1[1] = iVar5;\n  if (iVar5 != 0) {\n    puVar2 = *(undefined4 **)(param_2 + 8);\n    iVar5 = iVar6 + -1;\n    uVar4 = *puVar2;\n    puVar3 = puVar1;\n    if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }\n    *puVar1 = uVar4;\n  }\n  return;\n}" primitive_type (function_declarator "__gmpq_set_num(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  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = *(int *)(param_2 + 4);\n  if (iVar5 < 0) {\n    iVar6 = -iVar5;\n    if (*param_1 < iVar6) goto LAB_000396d8;\n  }\n  else {\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }\n  puVar1 = (undefined4 *)param_1[2];\nLAB_00039660:\n  param_1[1] = iVar5;\n  if (iVar5 != 0) {\n    puVar2 = *(undefined4 **)(param_2 + 8);\n    iVar5 = iVar6 + -1;\n    uVar4 = *puVar2;\n    puVar3 = puVar1;\n    if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }\n    *puVar1 = uVar4;\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar5 = *(int *)(param_2 + 4);" (assignment_expression "iVar5 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 < 0) {\n    iVar6 = -iVar5;\n    if (*param_1 < iVar6) goto LAB_000396d8;\n  }\n  else {\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar6 = -iVar5;\n    if (*param_1 < iVar6) goto LAB_000396d8;\n  }" { (expression_statement "iVar6 = -iVar5;" (assignment_expression "iVar6 = -iVar5" identifier = (unary_expression "-iVar5" - identifier)) ;) (if_statement "if (*param_1 < iVar6) goto LAB_000396d8;" if (parenthesized_expression "(*param_1 < iVar6)" ( (binary_expression "*param_1 < iVar6" (pointer_expression "*param_1" * identifier) < identifier) )) (goto_statement "goto LAB_000396d8;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }" else (compound_statement "{\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }" { (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) (if_statement "if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }" if (parenthesized_expression "(*param_1 < iVar5)" ( (binary_expression "*param_1 < iVar5" (pointer_expression "*param_1" * identifier) < identifier) )) (compound_statement "{\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }" { (labeled_statement "LAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);" statement_identifier : (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6)" (parenthesized_expression "(*(code *)PTR___gmpz_realloc_000975bc)" ( (pointer_expression "*(code *)PTR___gmpz_realloc_000975bc" * (cast_expression "(code *)PTR___gmpz_realloc_000975bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar6)" ( identifier , identifier ))))) ;)) (goto_statement "goto LAB_00039660;" goto statement_identifier ;) })) }))) (expression_statement "puVar1 = (undefined4 *)param_1[2];" (assignment_expression "puVar1 = (undefined4 *)param_1[2]" identifier = (cast_expression "(undefined4 *)param_1[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (labeled_statement "LAB_00039660:\n  param_1[1] = iVar5;" statement_identifier : (expression_statement "param_1[1] = iVar5;" (assignment_expression "param_1[1] = iVar5" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;)) (if_statement "if (iVar5 != 0) {\n    puVar2 = *(undefined4 **)(param_2 + 8);\n    iVar5 = iVar6 + -1;\n    uVar4 = *puVar2;\n    puVar3 = puVar1;\n    if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }\n    *puVar1 = uVar4;\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar2 = *(undefined4 **)(param_2 + 8);\n    iVar5 = iVar6 + -1;\n    uVar4 = *puVar2;\n    puVar3 = puVar1;\n    if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }\n    *puVar1 = uVar4;\n  }" { (expression_statement "puVar2 = *(undefined4 **)(param_2 + 8);" (assignment_expression "puVar2 = *(undefined4 **)(param_2 + 8)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 8)" * (cast_expression "(undefined4 **)(param_2 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = iVar6 + -1;" (assignment_expression "iVar5 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "uVar4 = *puVar2;" (assignment_expression "uVar4 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar3 = puVar1;" (assignment_expression "puVar3 = puVar1" identifier = identifier) ;) (if_statement "if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }" { (do_statement "do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);" do (compound_statement "{\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      }" { (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = uVar4;" (assignment_expression "*puVar3 = uVar4" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "uVar4 = *puVar2;" (assignment_expression "uVar4 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) (expression_statement "puVar1 = puVar1 + iVar6 + -1;" (assignment_expression "puVar1 = puVar1 + iVar6 + -1" identifier = (binary_expression "puVar1 + iVar6 + -1" (binary_expression "puVar1 + iVar6" identifier + identifier) + number_literal)) ;) })) (expression_statement "*puVar1 = uVar4;" (assignment_expression "*puVar1 = uVar4" (pointer_expression "*puVar1" * identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __gmpq_set_num(mpq_ptr dest,mpz_srcptr num)\n\n{\n  mp_limb_t *pmVar1;\n  mp_limb_t *pmVar2;\n  mp_limb_t *pmVar3;\n  mp_limb_t mVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = num->_mp_size;\n  if (iVar5 < 0) {\n    iVar6 = -iVar5;\n    if ((dest->_mp_num)._mp_alloc < iVar6) goto LAB_000396d8;\n  }\n  else {\n    iVar6 = iVar5;\n    if ((dest->_mp_num)._mp_alloc < iVar5) {\nLAB_000396d8:\n      pmVar1 = (mp_limb_t *)(*(code *)PTR___gmpz_realloc_000975bc)(dest,iVar6);\n      goto LAB_00039660;\n    }\n  }\n  pmVar1 = (dest->_mp_num)._mp_d;\nLAB_00039660:\n  (dest->_mp_num)._mp_size = iVar5;\n  if (iVar5 != 0) {\n    pmVar2 = num->_mp_d;\n    iVar5 = iVar6 + -1;\n    mVar4 = *pmVar2;\n    pmVar3 = pmVar1;\n    if (iVar5 != 0) {\n      do {\n        pmVar2 = pmVar2 + 1;\n        *pmVar3 = mVar4;\n        iVar5 = iVar5 + -1;\n        mVar4 = *pmVar2;\n        pmVar3 = pmVar3 + 1;\n      } while (iVar5 != 0);\n      pmVar1 = pmVar1 + iVar6 + -1;\n    }\n    *pmVar1 = mVar4;\n  }\n  return;\n}\n\n" (function_definition "void __gmpq_set_num(mpq_ptr dest,mpz_srcptr num)\n\n{\n  mp_limb_t *pmVar1;\n  mp_limb_t *pmVar2;\n  mp_limb_t *pmVar3;\n  mp_limb_t mVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = num->_mp_size;\n  if (iVar5 < 0) {\n    iVar6 = -iVar5;\n    if ((dest->_mp_num)._mp_alloc < iVar6) goto LAB_000396d8;\n  }\n  else {\n    iVar6 = iVar5;\n    if ((dest->_mp_num)._mp_alloc < iVar5) {\nLAB_000396d8:\n      pmVar1 = (mp_limb_t *)(*(code *)PTR___gmpz_realloc_000975bc)(dest,iVar6);\n      goto LAB_00039660;\n    }\n  }\n  pmVar1 = (dest->_mp_num)._mp_d;\nLAB_00039660:\n  (dest->_mp_num)._mp_size = iVar5;\n  if (iVar5 != 0) {\n    pmVar2 = num->_mp_d;\n    iVar5 = iVar6 + -1;\n    mVar4 = *pmVar2;\n    pmVar3 = pmVar1;\n    if (iVar5 != 0) {\n      do {\n        pmVar2 = pmVar2 + 1;\n        *pmVar3 = mVar4;\n        iVar5 = iVar5 + -1;\n        mVar4 = *pmVar2;\n        pmVar3 = pmVar3 + 1;\n      } while (iVar5 != 0);\n      pmVar1 = pmVar1 + iVar6 + -1;\n    }\n    *pmVar1 = mVar4;\n  }\n  return;\n}" primitive_type (function_declarator "__gmpq_set_num(mpq_ptr dest,mpz_srcptr num)" identifier (parameter_list "(mpq_ptr dest,mpz_srcptr num)" ( (parameter_declaration "mpq_ptr dest" type_identifier identifier) , (parameter_declaration "mpz_srcptr num" type_identifier identifier) ))) (compound_statement "{\n  mp_limb_t *pmVar1;\n  mp_limb_t *pmVar2;\n  mp_limb_t *pmVar3;\n  mp_limb_t mVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = num->_mp_size;\n  if (iVar5 < 0) {\n    iVar6 = -iVar5;\n    if ((dest->_mp_num)._mp_alloc < iVar6) goto LAB_000396d8;\n  }\n  else {\n    iVar6 = iVar5;\n    if ((dest->_mp_num)._mp_alloc < iVar5) {\nLAB_000396d8:\n      pmVar1 = (mp_limb_t *)(*(code *)PTR___gmpz_realloc_000975bc)(dest,iVar6);\n      goto LAB_00039660;\n    }\n  }\n  pmVar1 = (dest->_mp_num)._mp_d;\nLAB_00039660:\n  (dest->_mp_num)._mp_size = iVar5;\n  if (iVar5 != 0) {\n    pmVar2 = num->_mp_d;\n    iVar5 = iVar6 + -1;\n    mVar4 = *pmVar2;\n    pmVar3 = pmVar1;\n    if (iVar5 != 0) {\n      do {\n        pmVar2 = pmVar2 + 1;\n        *pmVar3 = mVar4;\n        iVar5 = iVar5 + -1;\n        mVar4 = *pmVar2;\n        pmVar3 = pmVar3 + 1;\n      } while (iVar5 != 0);\n      pmVar1 = pmVar1 + iVar6 + -1;\n    }\n    *pmVar1 = mVar4;\n  }\n  return;\n}" { (declaration "mp_limb_t *pmVar1;" type_identifier (pointer_declarator "*pmVar1" * identifier) ;) (declaration "mp_limb_t *pmVar2;" type_identifier (pointer_declarator "*pmVar2" * identifier) ;) (declaration "mp_limb_t *pmVar3;" type_identifier (pointer_declarator "*pmVar3" * identifier) ;) (declaration "mp_limb_t mVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar5 = num->_mp_size;" (assignment_expression "iVar5 = num->_mp_size" identifier = (field_expression "num->_mp_size" identifier -> field_identifier)) ;) (if_statement "if (iVar5 < 0) {\n    iVar6 = -iVar5;\n    if ((dest->_mp_num)._mp_alloc < iVar6) goto LAB_000396d8;\n  }\n  else {\n    iVar6 = iVar5;\n    if ((dest->_mp_num)._mp_alloc < iVar5) {\nLAB_000396d8:\n      pmVar1 = (mp_limb_t *)(*(code *)PTR___gmpz_realloc_000975bc)(dest,iVar6);\n      goto LAB_00039660;\n    }\n  }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar6 = -iVar5;\n    if ((dest->_mp_num)._mp_alloc < iVar6) goto LAB_000396d8;\n  }" { (expression_statement "iVar6 = -iVar5;" (assignment_expression "iVar6 = -iVar5" identifier = (unary_expression "-iVar5" - identifier)) ;) (if_statement "if ((dest->_mp_num)._mp_alloc < iVar6) goto LAB_000396d8;" if (parenthesized_expression "((dest->_mp_num)._mp_alloc < iVar6)" ( (binary_expression "(dest->_mp_num)._mp_alloc < iVar6" (field_expression "(dest->_mp_num)._mp_alloc" (parenthesized_expression "(dest->_mp_num)" ( (field_expression "dest->_mp_num" identifier -> field_identifier) )) . field_identifier) < identifier) )) (goto_statement "goto LAB_000396d8;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar6 = iVar5;\n    if ((dest->_mp_num)._mp_alloc < iVar5) {\nLAB_000396d8:\n      pmVar1 = (mp_limb_t *)(*(code *)PTR___gmpz_realloc_000975bc)(dest,iVar6);\n      goto LAB_00039660;\n    }\n  }" else (compound_statement "{\n    iVar6 = iVar5;\n    if ((dest->_mp_num)._mp_alloc < iVar5) {\nLAB_000396d8:\n      pmVar1 = (mp_limb_t *)(*(code *)PTR___gmpz_realloc_000975bc)(dest,iVar6);\n      goto LAB_00039660;\n    }\n  }" { (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) (if_statement "if ((dest->_mp_num)._mp_alloc < iVar5) {\nLAB_000396d8:\n      pmVar1 = (mp_limb_t *)(*(code *)PTR___gmpz_realloc_000975bc)(dest,iVar6);\n      goto LAB_00039660;\n    }" if (parenthesized_expression "((dest->_mp_num)._mp_alloc < iVar5)" ( (binary_expression "(dest->_mp_num)._mp_alloc < iVar5" (field_expression "(dest->_mp_num)._mp_alloc" (parenthesized_expression "(dest->_mp_num)" ( (field_expression "dest->_mp_num" identifier -> field_identifier) )) . field_identifier) < identifier) )) (compound_statement "{\nLAB_000396d8:\n      pmVar1 = (mp_limb_t *)(*(code *)PTR___gmpz_realloc_000975bc)(dest,iVar6);\n      goto LAB_00039660;\n    }" { (labeled_statement "LAB_000396d8:\n      pmVar1 = (mp_limb_t *)(*(code *)PTR___gmpz_realloc_000975bc)(dest,iVar6);" statement_identifier : (expression_statement "pmVar1 = (mp_limb_t *)(*(code *)PTR___gmpz_realloc_000975bc)(dest,iVar6);" (assignment_expression "pmVar1 = (mp_limb_t *)(*(code *)PTR___gmpz_realloc_000975bc)(dest,iVar6)" identifier = (cast_expression "(mp_limb_t *)(*(code *)PTR___gmpz_realloc_000975bc)(dest,iVar6)" ( (type_descriptor "mp_limb_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___gmpz_realloc_000975bc)(dest,iVar6)" (parenthesized_expression "(*(code *)PTR___gmpz_realloc_000975bc)" ( (pointer_expression "*(code *)PTR___gmpz_realloc_000975bc" * (cast_expression "(code *)PTR___gmpz_realloc_000975bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dest,iVar6)" ( identifier , identifier ))))) ;)) (goto_statement "goto LAB_00039660;" goto statement_identifier ;) })) }))) (expression_statement "pmVar1 = (dest->_mp_num)._mp_d;" (assignment_expression "pmVar1 = (dest->_mp_num)._mp_d" identifier = (field_expression "(dest->_mp_num)._mp_d" (parenthesized_expression "(dest->_mp_num)" ( (field_expression "dest->_mp_num" identifier -> field_identifier) )) . field_identifier)) ;) (labeled_statement "LAB_00039660:\n  (dest->_mp_num)._mp_size = iVar5;" statement_identifier : (expression_statement "(dest->_mp_num)._mp_size = iVar5;" (assignment_expression "(dest->_mp_num)._mp_size = iVar5" (field_expression "(dest->_mp_num)._mp_size" (parenthesized_expression "(dest->_mp_num)" ( (field_expression "dest->_mp_num" identifier -> field_identifier) )) . field_identifier) = identifier) ;)) (if_statement "if (iVar5 != 0) {\n    pmVar2 = num->_mp_d;\n    iVar5 = iVar6 + -1;\n    mVar4 = *pmVar2;\n    pmVar3 = pmVar1;\n    if (iVar5 != 0) {\n      do {\n        pmVar2 = pmVar2 + 1;\n        *pmVar3 = mVar4;\n        iVar5 = iVar5 + -1;\n        mVar4 = *pmVar2;\n        pmVar3 = pmVar3 + 1;\n      } while (iVar5 != 0);\n      pmVar1 = pmVar1 + iVar6 + -1;\n    }\n    *pmVar1 = mVar4;\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    pmVar2 = num->_mp_d;\n    iVar5 = iVar6 + -1;\n    mVar4 = *pmVar2;\n    pmVar3 = pmVar1;\n    if (iVar5 != 0) {\n      do {\n        pmVar2 = pmVar2 + 1;\n        *pmVar3 = mVar4;\n        iVar5 = iVar5 + -1;\n        mVar4 = *pmVar2;\n        pmVar3 = pmVar3 + 1;\n      } while (iVar5 != 0);\n      pmVar1 = pmVar1 + iVar6 + -1;\n    }\n    *pmVar1 = mVar4;\n  }" { (expression_statement "pmVar2 = num->_mp_d;" (assignment_expression "pmVar2 = num->_mp_d" identifier = (field_expression "num->_mp_d" identifier -> field_identifier)) ;) (expression_statement "iVar5 = iVar6 + -1;" (assignment_expression "iVar5 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "mVar4 = *pmVar2;" (assignment_expression "mVar4 = *pmVar2" identifier = (pointer_expression "*pmVar2" * identifier)) ;) (expression_statement "pmVar3 = pmVar1;" (assignment_expression "pmVar3 = pmVar1" identifier = identifier) ;) (if_statement "if (iVar5 != 0) {\n      do {\n        pmVar2 = pmVar2 + 1;\n        *pmVar3 = mVar4;\n        iVar5 = iVar5 + -1;\n        mVar4 = *pmVar2;\n        pmVar3 = pmVar3 + 1;\n      } while (iVar5 != 0);\n      pmVar1 = pmVar1 + iVar6 + -1;\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        pmVar2 = pmVar2 + 1;\n        *pmVar3 = mVar4;\n        iVar5 = iVar5 + -1;\n        mVar4 = *pmVar2;\n        pmVar3 = pmVar3 + 1;\n      } while (iVar5 != 0);\n      pmVar1 = pmVar1 + iVar6 + -1;\n    }" { (do_statement "do {\n        pmVar2 = pmVar2 + 1;\n        *pmVar3 = mVar4;\n        iVar5 = iVar5 + -1;\n        mVar4 = *pmVar2;\n        pmVar3 = pmVar3 + 1;\n      } while (iVar5 != 0);" do (compound_statement "{\n        pmVar2 = pmVar2 + 1;\n        *pmVar3 = mVar4;\n        iVar5 = iVar5 + -1;\n        mVar4 = *pmVar2;\n        pmVar3 = pmVar3 + 1;\n      }" { (expression_statement "pmVar2 = pmVar2 + 1;" (assignment_expression "pmVar2 = pmVar2 + 1" identifier = (binary_expression "pmVar2 + 1" identifier + number_literal)) ;) (expression_statement "*pmVar3 = mVar4;" (assignment_expression "*pmVar3 = mVar4" (pointer_expression "*pmVar3" * identifier) = identifier) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "mVar4 = *pmVar2;" (assignment_expression "mVar4 = *pmVar2" identifier = (pointer_expression "*pmVar2" * identifier)) ;) (expression_statement "pmVar3 = pmVar3 + 1;" (assignment_expression "pmVar3 = pmVar3 + 1" identifier = (binary_expression "pmVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) (expression_statement "pmVar1 = pmVar1 + iVar6 + -1;" (assignment_expression "pmVar1 = pmVar1 + iVar6 + -1" identifier = (binary_expression "pmVar1 + iVar6 + -1" (binary_expression "pmVar1 + iVar6" identifier + identifier) + number_literal)) ;) })) (expression_statement "*pmVar1 = mVar4;" (assignment_expression "*pmVar1 = mVar4" (pointer_expression "*pmVar1" * identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __gmpq_set_num(int *param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = *(int *)(param_2 + 4);\n  if (iVar5 < 0) {\n    iVar6 = -iVar5;\n    if (*param_1 < iVar6) goto LAB_000396d8;\n  }\n  else {\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }\n  puVar1 = (undefined4 *)param_1[2];\nLAB_00039660:\n  param_1[1] = iVar5;\n  if (iVar5 != 0) {\n    puVar2 = *(undefined4 **)(param_2 + 8);\n    iVar5 = iVar6 + -1;\n    uVar4 = *puVar2;\n    puVar3 = puVar1;\n    if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }\n    *puVar1 = uVar4;\n  }\n  return;\n}\n\n" (function_definition "void __gmpq_set_num(int *param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = *(int *)(param_2 + 4);\n  if (iVar5 < 0) {\n    iVar6 = -iVar5;\n    if (*param_1 < iVar6) goto LAB_000396d8;\n  }\n  else {\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }\n  puVar1 = (undefined4 *)param_1[2];\nLAB_00039660:\n  param_1[1] = iVar5;\n  if (iVar5 != 0) {\n    puVar2 = *(undefined4 **)(param_2 + 8);\n    iVar5 = iVar6 + -1;\n    uVar4 = *puVar2;\n    puVar3 = puVar1;\n    if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }\n    *puVar1 = uVar4;\n  }\n  return;\n}" primitive_type (function_declarator "__gmpq_set_num(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  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = *(int *)(param_2 + 4);\n  if (iVar5 < 0) {\n    iVar6 = -iVar5;\n    if (*param_1 < iVar6) goto LAB_000396d8;\n  }\n  else {\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }\n  puVar1 = (undefined4 *)param_1[2];\nLAB_00039660:\n  param_1[1] = iVar5;\n  if (iVar5 != 0) {\n    puVar2 = *(undefined4 **)(param_2 + 8);\n    iVar5 = iVar6 + -1;\n    uVar4 = *puVar2;\n    puVar3 = puVar1;\n    if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }\n    *puVar1 = uVar4;\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar5 = *(int *)(param_2 + 4);" (assignment_expression "iVar5 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 < 0) {\n    iVar6 = -iVar5;\n    if (*param_1 < iVar6) goto LAB_000396d8;\n  }\n  else {\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar6 = -iVar5;\n    if (*param_1 < iVar6) goto LAB_000396d8;\n  }" { (expression_statement "iVar6 = -iVar5;" (assignment_expression "iVar6 = -iVar5" identifier = (unary_expression "-iVar5" - identifier)) ;) (if_statement "if (*param_1 < iVar6) goto LAB_000396d8;" if (parenthesized_expression "(*param_1 < iVar6)" ( (binary_expression "*param_1 < iVar6" (pointer_expression "*param_1" * identifier) < identifier) )) (goto_statement "goto LAB_000396d8;" goto statement_identifier ;)) }) (else_clause "else {\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }" else (compound_statement "{\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }" { (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) (if_statement "if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }" if (parenthesized_expression "(*param_1 < iVar5)" ( (binary_expression "*param_1 < iVar5" (pointer_expression "*param_1" * identifier) < identifier) )) (compound_statement "{\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }" { (labeled_statement "LAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);" statement_identifier : (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6)" (parenthesized_expression "(*(code *)PTR___gmpz_realloc_000975bc)" ( (pointer_expression "*(code *)PTR___gmpz_realloc_000975bc" * (cast_expression "(code *)PTR___gmpz_realloc_000975bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar6)" ( identifier , identifier ))))) ;)) (goto_statement "goto LAB_00039660;" goto statement_identifier ;) })) }))) (expression_statement "puVar1 = (undefined4 *)param_1[2];" (assignment_expression "puVar1 = (undefined4 *)param_1[2]" identifier = (cast_expression "(undefined4 *)param_1[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (labeled_statement "LAB_00039660:\n  param_1[1] = iVar5;" statement_identifier : (expression_statement "param_1[1] = iVar5;" (assignment_expression "param_1[1] = iVar5" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;)) (if_statement "if (iVar5 != 0) {\n    puVar2 = *(undefined4 **)(param_2 + 8);\n    iVar5 = iVar6 + -1;\n    uVar4 = *puVar2;\n    puVar3 = puVar1;\n    if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }\n    *puVar1 = uVar4;\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar2 = *(undefined4 **)(param_2 + 8);\n    iVar5 = iVar6 + -1;\n    uVar4 = *puVar2;\n    puVar3 = puVar1;\n    if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }\n    *puVar1 = uVar4;\n  }" { (expression_statement "puVar2 = *(undefined4 **)(param_2 + 8);" (assignment_expression "puVar2 = *(undefined4 **)(param_2 + 8)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 8)" * (cast_expression "(undefined4 **)(param_2 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = iVar6 + -1;" (assignment_expression "iVar5 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) (expression_statement "uVar4 = *puVar2;" (assignment_expression "uVar4 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar3 = puVar1;" (assignment_expression "puVar3 = puVar1" identifier = identifier) ;) (if_statement "if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }" { (do_statement "do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);" do (compound_statement "{\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      }" { (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = uVar4;" (assignment_expression "*puVar3 = uVar4" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "uVar4 = *puVar2;" (assignment_expression "uVar4 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) (expression_statement "puVar1 = puVar1 + iVar6 + -1;" (assignment_expression "puVar1 = puVar1 + iVar6 + -1" identifier = (binary_expression "puVar1 + iVar6 + -1" (binary_expression "puVar1 + iVar6" identifier + identifier) + number_literal)) ;) })) (expression_statement "*puVar1 = uVar4;" (assignment_expression "*puVar1 = uVar4" (pointer_expression "*puVar1" * 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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < IDENT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))))) ;)) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void __gmpq_set_num(int *param_1,int param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = *(int *)(param_2 + 4);\n  if (iVar5 < 0) {\n    iVar6 = -iVar5;\n    if (*param_1 < iVar6) goto LAB_000396d8;\n  }\n  else {\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }\n  puVar1 = (undefined4 *)param_1[2];\nLAB_00039660:\n  param_1[1] = iVar5;\n  if (iVar5 != 0) {\n    puVar2 = *(undefined4 **)(param_2 + 8);\n    iVar5 = iVar6 + -1;\n    uVar4 = *puVar2;\n    puVar3 = puVar1;\n    if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }\n    *puVar1 = uVar4;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "__gmpq_set_num(int *param_1,int param_2)" (identifier "__gmpq_set_num") (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  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar5 = *(int *)(param_2 + 4);\n  if (iVar5 < 0) {\n    iVar6 = -iVar5;\n    if (*param_1 < iVar6) goto LAB_000396d8;\n  }\n  else {\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }\n  puVar1 = (undefined4 *)param_1[2];\nLAB_00039660:\n  param_1[1] = iVar5;\n  if (iVar5 != 0) {\n    puVar2 = *(undefined4 **)(param_2 + 8);\n    iVar5 = iVar6 + -1;\n    uVar4 = *puVar2;\n    puVar3 = puVar1;\n    if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }\n    *puVar1 = uVar4;\n  }\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "iVar5 = *(int *)(param_2 + 4);" (assignment_expression "iVar5 = *(int *)(param_2 + 4)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (iVar5 < 0) {\n    iVar6 = -iVar5;\n    if (*param_1 < iVar6) goto LAB_000396d8;\n  }\n  else {\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar6 = -iVar5;\n    if (*param_1 < iVar6) goto LAB_000396d8;\n  }" ({ "{") (expression_statement "iVar6 = -iVar5;" (assignment_expression "iVar6 = -iVar5" (identifier "iVar6") (= "=") (unary_expression "-iVar5" (- "-") (identifier "iVar5"))) (; ";")) (if_statement "if (*param_1 < iVar6) goto LAB_000396d8;" (if "if") (parenthesized_expression "(*param_1 < iVar6)" (( "(") (binary_expression "*param_1 < iVar6" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (< "<") (identifier "iVar6")) () ")")) (goto_statement "goto LAB_000396d8;" (goto "goto") (statement_identifier "LAB_000396d8") (; ";"))) (} "}")) (else_clause "else {\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }" (else "else") (compound_statement "{\n    iVar6 = iVar5;\n    if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }\n  }" ({ "{") (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" (identifier "iVar6") (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (*param_1 < iVar5) {\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }" (if "if") (parenthesized_expression "(*param_1 < iVar5)" (( "(") (binary_expression "*param_1 < iVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\nLAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);\n      goto LAB_00039660;\n    }" ({ "{") (labeled_statement "LAB_000396d8:\n      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);" (statement_identifier "LAB_000396d8") (: ":") (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6)" (parenthesized_expression "(*(code *)PTR___gmpz_realloc_000975bc)" (( "(") (pointer_expression "*(code *)PTR___gmpz_realloc_000975bc" (* "*") (cast_expression "(code *)PTR___gmpz_realloc_000975bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___gmpz_realloc_000975bc"))) () ")")) (argument_list "(param_1,iVar6)" (( "(") (identifier "param_1") (, ",") (identifier "iVar6") () ")"))))) (; ";"))) (goto_statement "goto LAB_00039660;" (goto "goto") (statement_identifier "LAB_00039660") (; ";")) (} "}"))) (} "}")))) (expression_statement "puVar1 = (undefined4 *)param_1[2];" (assignment_expression "puVar1 = (undefined4 *)param_1[2]" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)param_1[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (labeled_statement "LAB_00039660:\n  param_1[1] = iVar5;" (statement_identifier "LAB_00039660") (: ":") (expression_statement "param_1[1] = iVar5;" (assignment_expression "param_1[1] = iVar5" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar5")) (; ";"))) (if_statement "if (iVar5 != 0) {\n    puVar2 = *(undefined4 **)(param_2 + 8);\n    iVar5 = iVar6 + -1;\n    uVar4 = *puVar2;\n    puVar3 = puVar1;\n    if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }\n    *puVar1 = uVar4;\n  }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2 = *(undefined4 **)(param_2 + 8);\n    iVar5 = iVar6 + -1;\n    uVar4 = *puVar2;\n    puVar3 = puVar1;\n    if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }\n    *puVar1 = uVar4;\n  }" ({ "{") (expression_statement "puVar2 = *(undefined4 **)(param_2 + 8);" (assignment_expression "puVar2 = *(undefined4 **)(param_2 + 8)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined4 **)(param_2 + 8)" (* "*") (cast_expression "(undefined4 **)(param_2 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "iVar5 = iVar6 + -1;" (assignment_expression "iVar5 = iVar6 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar6 + -1" (identifier "iVar6") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar4 = *puVar2;" (assignment_expression "uVar4 = *puVar2" (identifier "uVar4") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "puVar3 = puVar1;" (assignment_expression "puVar3 = puVar1" (identifier "puVar3") (= "=") (identifier "puVar1")) (; ";")) (if_statement "if (iVar5 != 0) {\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);\n      puVar1 = puVar1 + iVar6 + -1;\n    }" ({ "{") (do_statement "do {\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      } while (iVar5 != 0);" (do "do") (compound_statement "{\n        puVar2 = puVar2 + 1;\n        *puVar3 = uVar4;\n        iVar5 = iVar5 + -1;\n        uVar4 = *puVar2;\n        puVar3 = puVar3 + 1;\n      }" ({ "{") (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar3 = uVar4;" (assignment_expression "*puVar3 = uVar4" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar4 = *puVar2;" (assignment_expression "uVar4 = *puVar2" (identifier "uVar4") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "puVar1 = puVar1 + iVar6 + -1;" (assignment_expression "puVar1 = puVar1 + iVar6 + -1" (identifier "puVar1") (= "=") (binary_expression "puVar1 + iVar6 + -1" (binary_expression "puVar1 + iVar6" (identifier "puVar1") (+ "+") (identifier "iVar6")) (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (expression_statement "*puVar1 = uVar4;" (assignment_expression "*puVar1 = uVar4" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (return_statement "return;" (return "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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) 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: (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: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier))))))) (goto_statement label: (statement_identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (return_statement))))

void MASKED(int *param_1,int param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  int iVar5;
  int iVar6;
  
  iVar5 = *(int *)(param_2 + 4);
  if (iVar5 < 0) {
    iVar6 = -iVar5;
    if (*param_1 < iVar6) goto LAB_000396d8;
  }
  else {
    iVar6 = iVar5;
    if (*param_1 < iVar5) {
LAB_000396d8:
      puVar1 = (undefined4 *)(*(code *)PTR___gmpz_realloc_000975bc)(param_1,iVar6);
      goto LAB_00039660;
    }
  }
  puVar1 = (undefined4 *)param_1[2];
LAB_00039660:
  param_1[1] = iVar5;
  if (iVar5 != 0) {
    puVar2 = *(undefined4 **)(param_2 + 8);
    iVar5 = iVar6 + -1;
    uVar4 = *puVar2;
    puVar3 = puVar1;
    if (iVar5 != 0) {
      do {
        puVar2 = puVar2 + 1;
        *puVar3 = uVar4;
        iVar5 = iVar5 + -1;
        uVar4 = *puVar2;
        puVar3 = puVar3 + 1;
      } while (iVar5 != 0);
      puVar1 = puVar1 + iVar6 + -1;
    }
    *puVar1 = uVar4;
  }
  return;
}

