
size_t __gmpq_inp_str(mpq_ptr q,FILE *fp,int base)

{
  size_t sVar1;
  int iVar2;
  undefined4 uVar3;
  mp_limb_t *pmVar4;
  int in_t9;
  code *pcVar5;
  
  if (fp == (FILE *)0x0) {
    fp = (FILE *)**(undefined4 **)(in_t9 + 0x5eb64);
  }
  pcVar5 = *(code **)(in_t9 + 0x5e9e8);
  (q->_mp_den)._mp_size = 1;
  *(q->_mp_den)._mp_d = 1;
  sVar1 = (*pcVar5)(q,fp,base);
  if (sVar1 != 0) {
    iVar2 = (**(code **)(in_t9 + 0x5e954))(fp);
    if (iVar2 != 0x2f) {
      (**(code **)(in_t9 + 0x5eb34))(iVar2,fp);
      return sVar1;
    }
    uVar3 = (**(code **)(in_t9 + 0x5e954))(fp);
    sVar1 = (**(code **)(in_t9 + 0x5ebac))(&q->_mp_den,fp,base,uVar3,sVar1 + 2);
    if (sVar1 == 0) {
      pmVar4 = (q->_mp_den)._mp_d;
      (q->_mp_num)._mp_size = 0;
      (q->_mp_den)._mp_size = 1;
      *pmVar4 = 1;
    }
  }
  return sVar1;
}



int __gmpq_inp_str(int param_1,int param_2,undefined4 param_3)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  
  puVar1 = PTR___gmpz_inp_str_00097198;
  if (param_2 == 0) {
    param_2 = *(int *)PTR_stdin_00097314;
  }
  *(undefined4 *)(param_1 + 0x10) = 1;
  **(undefined4 **)(param_1 + 0x14) = 1;
  iVar2 = (*(code *)puVar1)(param_1,param_2,param_3);
  if (iVar2 != 0) {
    iVar3 = (*(code *)PTR_getc_00097104)(param_2);
    if (iVar3 != 0x2f) {
      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);
      return iVar2;
    }
    uVar4 = (*(code *)PTR_getc_00097104)(param_2);
    iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)
                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);
    if (iVar2 == 0) {
      *(undefined4 *)(param_1 + 4) = 0;
      *(undefined4 *)(param_1 + 0x10) = 1;
      **(undefined4 **)(param_1 + 0x14) = 1;
    }
  }
  return iVar2;
}


lui gp,0x6
addiu gp,gp,0x6890
addu gp,gp,t9
addiu sp,sp,-0x38
sw gp,0x18(sp)
sw s4,0x30(sp)
or s4,a2,zero
sw s1,0x24(sp)
or s1,a0,zero
sw ra,0x34(sp)
sw s3,0x2c(sp)
sw s2,0x28(sp)
beq a1,zero,0x0003888c
_sw s0,0x20(sp)
or s0,a1,zero
lw v0,0x14(s1)
li s3,0x1
lw t9,-0x7ea8(gp)
or a2,s4,zero
sw s3,0x10(s1)
or a1,s0,zero
or a0,s1,zero
jalr t9
_sw s3,0x0(v0)
lw gp,0x18(sp)
bne v0,zero,0x00038840
_or s2,v0,zero
lw ra,0x34(sp)
or v0,s2,zero
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x7f3c(gp)
jalr t9
_or a0,s0,zero
li v1,0x2f
beq v0,v1,0x00038898
_lw gp,0x18(sp)
lw t9,-0x7d5c(gp)
or a1,s0,zero
jalr t9
_or a0,v0,zero
or v0,s2,zero
lw ra,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x38
lw v0,-0x7d2c(gp)
b 0x000387ec
_lw s0,0x0(v0)
lw t9,-0x7f3c(gp)
or a0,s0,zero
jalr t9
_addiu s2,s2,0x2
addiu a0,s1,0xc
lw gp,0x18(sp)
or a3,v0,zero
sw s2,0x10(sp)
or a2,s4,zero
lw t9,-0x7ce4(gp)
jalr t9
_or a1,s0,zero
bne v0,zero,0x0003881c
_or s2,v0,zero
lw v0,0x14(s1)
sw zero,0x4(s1)
sw s3,0x10(s1)
b 0x0003881c
_sw s3,0x0(v0)
(translation_unit "int __gmpq_inp_str(int param_1,int param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar1 = PTR___gmpz_inp_str_00097198;\n  if (param_2 == 0) {\n    param_2 = *(int *)PTR_stdin_00097314;\n  }\n  *(undefined4 *)(param_1 + 0x10) = 1;\n  **(undefined4 **)(param_1 + 0x14) = 1;\n  iVar2 = (*(code *)puVar1)(param_1,param_2,param_3);\n  if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_getc_00097104)(param_2);\n    if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }\n    uVar4 = (*(code *)PTR_getc_00097104)(param_2);\n    iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);\n    if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }\n  }\n  return iVar2;\n}\n\n" (function_definition "int __gmpq_inp_str(int param_1,int param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar1 = PTR___gmpz_inp_str_00097198;\n  if (param_2 == 0) {\n    param_2 = *(int *)PTR_stdin_00097314;\n  }\n  *(undefined4 *)(param_1 + 0x10) = 1;\n  **(undefined4 **)(param_1 + 0x14) = 1;\n  iVar2 = (*(code *)puVar1)(param_1,param_2,param_3);\n  if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_getc_00097104)(param_2);\n    if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }\n    uVar4 = (*(code *)PTR_getc_00097104)(param_2);\n    iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);\n    if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }\n  }\n  return iVar2;\n}" primitive_type (function_declarator "__gmpq_inp_str(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar1 = PTR___gmpz_inp_str_00097198;\n  if (param_2 == 0) {\n    param_2 = *(int *)PTR_stdin_00097314;\n  }\n  *(undefined4 *)(param_1 + 0x10) = 1;\n  **(undefined4 **)(param_1 + 0x14) = 1;\n  iVar2 = (*(code *)puVar1)(param_1,param_2,param_3);\n  if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_getc_00097104)(param_2);\n    if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }\n    uVar4 = (*(code *)PTR_getc_00097104)(param_2);\n    iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);\n    if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }\n  }\n  return iVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___gmpz_inp_str_00097198;" (assignment_expression "puVar1 = PTR___gmpz_inp_str_00097198" identifier = identifier) ;) (if_statement "if (param_2 == 0) {\n    param_2 = *(int *)PTR_stdin_00097314;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = *(int *)PTR_stdin_00097314;\n  }" { (expression_statement "param_2 = *(int *)PTR_stdin_00097314;" (assignment_expression "param_2 = *(int *)PTR_stdin_00097314" identifier = (pointer_expression "*(int *)PTR_stdin_00097314" * (cast_expression "(int *)PTR_stdin_00097314" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "**(undefined4 **)(param_1 + 0x14) = 1;" (assignment_expression "**(undefined4 **)(param_1 + 0x14) = 1" (pointer_expression "**(undefined4 **)(param_1 + 0x14)" * (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) = number_literal) ;) (expression_statement "iVar2 = (*(code *)puVar1)(param_1,param_2,param_3);" (assignment_expression "iVar2 = (*(code *)puVar1)(param_1,param_2,param_3)" identifier = (call_expression "(*(code *)puVar1)(param_1,param_2,param_3)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_getc_00097104)(param_2);\n    if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }\n    uVar4 = (*(code *)PTR_getc_00097104)(param_2);\n    iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);\n    if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_getc_00097104)(param_2);\n    if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }\n    uVar4 = (*(code *)PTR_getc_00097104)(param_2);\n    iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);\n    if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }\n  }" { (expression_statement "iVar3 = (*(code *)PTR_getc_00097104)(param_2);" (assignment_expression "iVar3 = (*(code *)PTR_getc_00097104)(param_2)" identifier = (call_expression "(*(code *)PTR_getc_00097104)(param_2)" (parenthesized_expression "(*(code *)PTR_getc_00097104)" ( (pointer_expression "*(code *)PTR_getc_00097104" * (cast_expression "(code *)PTR_getc_00097104" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }" if (parenthesized_expression "(iVar3 != 0x2f)" ( (binary_expression "iVar3 != 0x2f" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }" { (expression_statement "(*(code *)PTR_ungetc_000972e4)(iVar3,param_2);" (call_expression "(*(code *)PTR_ungetc_000972e4)(iVar3,param_2)" (parenthesized_expression "(*(code *)PTR_ungetc_000972e4)" ( (pointer_expression "*(code *)PTR_ungetc_000972e4" * (cast_expression "(code *)PTR_ungetc_000972e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,param_2)" ( identifier , identifier ))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "uVar4 = (*(code *)PTR_getc_00097104)(param_2);" (assignment_expression "uVar4 = (*(code *)PTR_getc_00097104)(param_2)" identifier = (call_expression "(*(code *)PTR_getc_00097104)(param_2)" (parenthesized_expression "(*(code *)PTR_getc_00097104)" ( (pointer_expression "*(code *)PTR_getc_00097104" * (cast_expression "(code *)PTR_getc_00097104" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);" (assignment_expression "iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2)" identifier = (call_expression "(*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2)" (parenthesized_expression "(*(code *)PTR___gmpz_inp_str_nowhite_0009735c)" ( (pointer_expression "*(code *)PTR___gmpz_inp_str_nowhite_0009735c" * (cast_expression "(code *)PTR___gmpz_inp_str_nowhite_0009735c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) , identifier , identifier , identifier , (binary_expression "iVar2 + 2" identifier + number_literal) )))) ;) (if_statement "if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "**(undefined4 **)(param_1 + 0x14) = 1;" (assignment_expression "**(undefined4 **)(param_1 + 0x14) = 1" (pointer_expression "**(undefined4 **)(param_1 + 0x14)" * (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) = number_literal) ;) })) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "size_t __gmpq_inp_str(mpq_ptr q,FILE *fp,int base)\n\n{\n  size_t sVar1;\n  int iVar2;\n  undefined4 uVar3;\n  mp_limb_t *pmVar4;\n  int in_t9;\n  code *pcVar5;\n  \n  if (fp == (FILE *)0x0) {\n    fp = (FILE *)**(undefined4 **)(in_t9 + 0x5eb64);\n  }\n  pcVar5 = *(code **)(in_t9 + 0x5e9e8);\n  (q->_mp_den)._mp_size = 1;\n  *(q->_mp_den)._mp_d = 1;\n  sVar1 = (*pcVar5)(q,fp,base);\n  if (sVar1 != 0) {\n    iVar2 = (**(code **)(in_t9 + 0x5e954))(fp);\n    if (iVar2 != 0x2f) {\n      (**(code **)(in_t9 + 0x5eb34))(iVar2,fp);\n      return sVar1;\n    }\n    uVar3 = (**(code **)(in_t9 + 0x5e954))(fp);\n    sVar1 = (**(code **)(in_t9 + 0x5ebac))(&q->_mp_den,fp,base,uVar3,sVar1 + 2);\n    if (sVar1 == 0) {\n      pmVar4 = (q->_mp_den)._mp_d;\n      (q->_mp_num)._mp_size = 0;\n      (q->_mp_den)._mp_size = 1;\n      *pmVar4 = 1;\n    }\n  }\n  return sVar1;\n}\n\n" (function_definition "size_t __gmpq_inp_str(mpq_ptr q,FILE *fp,int base)\n\n{\n  size_t sVar1;\n  int iVar2;\n  undefined4 uVar3;\n  mp_limb_t *pmVar4;\n  int in_t9;\n  code *pcVar5;\n  \n  if (fp == (FILE *)0x0) {\n    fp = (FILE *)**(undefined4 **)(in_t9 + 0x5eb64);\n  }\n  pcVar5 = *(code **)(in_t9 + 0x5e9e8);\n  (q->_mp_den)._mp_size = 1;\n  *(q->_mp_den)._mp_d = 1;\n  sVar1 = (*pcVar5)(q,fp,base);\n  if (sVar1 != 0) {\n    iVar2 = (**(code **)(in_t9 + 0x5e954))(fp);\n    if (iVar2 != 0x2f) {\n      (**(code **)(in_t9 + 0x5eb34))(iVar2,fp);\n      return sVar1;\n    }\n    uVar3 = (**(code **)(in_t9 + 0x5e954))(fp);\n    sVar1 = (**(code **)(in_t9 + 0x5ebac))(&q->_mp_den,fp,base,uVar3,sVar1 + 2);\n    if (sVar1 == 0) {\n      pmVar4 = (q->_mp_den)._mp_d;\n      (q->_mp_num)._mp_size = 0;\n      (q->_mp_den)._mp_size = 1;\n      *pmVar4 = 1;\n    }\n  }\n  return sVar1;\n}" primitive_type (function_declarator "__gmpq_inp_str(mpq_ptr q,FILE *fp,int base)" identifier (parameter_list "(mpq_ptr q,FILE *fp,int base)" ( (parameter_declaration "mpq_ptr q" type_identifier identifier) , (parameter_declaration "FILE *fp" type_identifier (pointer_declarator "*fp" * identifier)) , (parameter_declaration "int base" primitive_type identifier) ))) (compound_statement "{\n  size_t sVar1;\n  int iVar2;\n  undefined4 uVar3;\n  mp_limb_t *pmVar4;\n  int in_t9;\n  code *pcVar5;\n  \n  if (fp == (FILE *)0x0) {\n    fp = (FILE *)**(undefined4 **)(in_t9 + 0x5eb64);\n  }\n  pcVar5 = *(code **)(in_t9 + 0x5e9e8);\n  (q->_mp_den)._mp_size = 1;\n  *(q->_mp_den)._mp_d = 1;\n  sVar1 = (*pcVar5)(q,fp,base);\n  if (sVar1 != 0) {\n    iVar2 = (**(code **)(in_t9 + 0x5e954))(fp);\n    if (iVar2 != 0x2f) {\n      (**(code **)(in_t9 + 0x5eb34))(iVar2,fp);\n      return sVar1;\n    }\n    uVar3 = (**(code **)(in_t9 + 0x5e954))(fp);\n    sVar1 = (**(code **)(in_t9 + 0x5ebac))(&q->_mp_den,fp,base,uVar3,sVar1 + 2);\n    if (sVar1 == 0) {\n      pmVar4 = (q->_mp_den)._mp_d;\n      (q->_mp_num)._mp_size = 0;\n      (q->_mp_den)._mp_size = 1;\n      *pmVar4 = 1;\n    }\n  }\n  return sVar1;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "mp_limb_t *pmVar4;" type_identifier (pointer_declarator "*pmVar4" * identifier) ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (if_statement "if (fp == (FILE *)0x0) {\n    fp = (FILE *)**(undefined4 **)(in_t9 + 0x5eb64);\n  }" if (parenthesized_expression "(fp == (FILE *)0x0)" ( (binary_expression "fp == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fp = (FILE *)**(undefined4 **)(in_t9 + 0x5eb64);\n  }" { (expression_statement "fp = (FILE *)**(undefined4 **)(in_t9 + 0x5eb64);" (assignment_expression "fp = (FILE *)**(undefined4 **)(in_t9 + 0x5eb64)" identifier = (cast_expression "(FILE *)**(undefined4 **)(in_t9 + 0x5eb64)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(in_t9 + 0x5eb64)" * (pointer_expression "*(undefined4 **)(in_t9 + 0x5eb64)" * (cast_expression "(undefined4 **)(in_t9 + 0x5eb64)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x5eb64)" ( (binary_expression "in_t9 + 0x5eb64" identifier + number_literal) ))))))) ;) })) (expression_statement "pcVar5 = *(code **)(in_t9 + 0x5e9e8);" (assignment_expression "pcVar5 = *(code **)(in_t9 + 0x5e9e8)" identifier = (pointer_expression "*(code **)(in_t9 + 0x5e9e8)" * (cast_expression "(code **)(in_t9 + 0x5e9e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x5e9e8)" ( (binary_expression "in_t9 + 0x5e9e8" identifier + number_literal) ))))) ;) (expression_statement "(q->_mp_den)._mp_size = 1;" (assignment_expression "(q->_mp_den)._mp_size = 1" (field_expression "(q->_mp_den)._mp_size" (parenthesized_expression "(q->_mp_den)" ( (field_expression "q->_mp_den" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "*(q->_mp_den)._mp_d = 1;" (assignment_expression "*(q->_mp_den)._mp_d = 1" (pointer_expression "*(q->_mp_den)._mp_d" * (field_expression "(q->_mp_den)._mp_d" (parenthesized_expression "(q->_mp_den)" ( (field_expression "q->_mp_den" identifier -> field_identifier) )) . field_identifier)) = number_literal) ;) (expression_statement "sVar1 = (*pcVar5)(q,fp,base);" (assignment_expression "sVar1 = (*pcVar5)(q,fp,base)" identifier = (call_expression "(*pcVar5)(q,fp,base)" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "(q,fp,base)" ( identifier , identifier , identifier )))) ;) (if_statement "if (sVar1 != 0) {\n    iVar2 = (**(code **)(in_t9 + 0x5e954))(fp);\n    if (iVar2 != 0x2f) {\n      (**(code **)(in_t9 + 0x5eb34))(iVar2,fp);\n      return sVar1;\n    }\n    uVar3 = (**(code **)(in_t9 + 0x5e954))(fp);\n    sVar1 = (**(code **)(in_t9 + 0x5ebac))(&q->_mp_den,fp,base,uVar3,sVar1 + 2);\n    if (sVar1 == 0) {\n      pmVar4 = (q->_mp_den)._mp_d;\n      (q->_mp_num)._mp_size = 0;\n      (q->_mp_den)._mp_size = 1;\n      *pmVar4 = 1;\n    }\n  }" if (parenthesized_expression "(sVar1 != 0)" ( (binary_expression "sVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = (**(code **)(in_t9 + 0x5e954))(fp);\n    if (iVar2 != 0x2f) {\n      (**(code **)(in_t9 + 0x5eb34))(iVar2,fp);\n      return sVar1;\n    }\n    uVar3 = (**(code **)(in_t9 + 0x5e954))(fp);\n    sVar1 = (**(code **)(in_t9 + 0x5ebac))(&q->_mp_den,fp,base,uVar3,sVar1 + 2);\n    if (sVar1 == 0) {\n      pmVar4 = (q->_mp_den)._mp_d;\n      (q->_mp_num)._mp_size = 0;\n      (q->_mp_den)._mp_size = 1;\n      *pmVar4 = 1;\n    }\n  }" { (expression_statement "iVar2 = (**(code **)(in_t9 + 0x5e954))(fp);" (assignment_expression "iVar2 = (**(code **)(in_t9 + 0x5e954))(fp)" identifier = (call_expression "(**(code **)(in_t9 + 0x5e954))(fp)" (parenthesized_expression "(**(code **)(in_t9 + 0x5e954))" ( (pointer_expression "**(code **)(in_t9 + 0x5e954)" * (pointer_expression "*(code **)(in_t9 + 0x5e954)" * (cast_expression "(code **)(in_t9 + 0x5e954)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x5e954)" ( (binary_expression "in_t9 + 0x5e954" identifier + number_literal) ))))) )) (argument_list "(fp)" ( identifier )))) ;) (if_statement "if (iVar2 != 0x2f) {\n      (**(code **)(in_t9 + 0x5eb34))(iVar2,fp);\n      return sVar1;\n    }" if (parenthesized_expression "(iVar2 != 0x2f)" ( (binary_expression "iVar2 != 0x2f" identifier != number_literal) )) (compound_statement "{\n      (**(code **)(in_t9 + 0x5eb34))(iVar2,fp);\n      return sVar1;\n    }" { (expression_statement "(**(code **)(in_t9 + 0x5eb34))(iVar2,fp);" (call_expression "(**(code **)(in_t9 + 0x5eb34))(iVar2,fp)" (parenthesized_expression "(**(code **)(in_t9 + 0x5eb34))" ( (pointer_expression "**(code **)(in_t9 + 0x5eb34)" * (pointer_expression "*(code **)(in_t9 + 0x5eb34)" * (cast_expression "(code **)(in_t9 + 0x5eb34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x5eb34)" ( (binary_expression "in_t9 + 0x5eb34" identifier + number_literal) ))))) )) (argument_list "(iVar2,fp)" ( identifier , identifier ))) ;) (return_statement "return sVar1;" return identifier ;) })) (expression_statement "uVar3 = (**(code **)(in_t9 + 0x5e954))(fp);" (assignment_expression "uVar3 = (**(code **)(in_t9 + 0x5e954))(fp)" identifier = (call_expression "(**(code **)(in_t9 + 0x5e954))(fp)" (parenthesized_expression "(**(code **)(in_t9 + 0x5e954))" ( (pointer_expression "**(code **)(in_t9 + 0x5e954)" * (pointer_expression "*(code **)(in_t9 + 0x5e954)" * (cast_expression "(code **)(in_t9 + 0x5e954)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x5e954)" ( (binary_expression "in_t9 + 0x5e954" identifier + number_literal) ))))) )) (argument_list "(fp)" ( identifier )))) ;) (expression_statement "sVar1 = (**(code **)(in_t9 + 0x5ebac))(&q->_mp_den,fp,base,uVar3,sVar1 + 2);" (assignment_expression "sVar1 = (**(code **)(in_t9 + 0x5ebac))(&q->_mp_den,fp,base,uVar3,sVar1 + 2)" identifier = (call_expression "(**(code **)(in_t9 + 0x5ebac))(&q->_mp_den,fp,base,uVar3,sVar1 + 2)" (parenthesized_expression "(**(code **)(in_t9 + 0x5ebac))" ( (pointer_expression "**(code **)(in_t9 + 0x5ebac)" * (pointer_expression "*(code **)(in_t9 + 0x5ebac)" * (cast_expression "(code **)(in_t9 + 0x5ebac)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x5ebac)" ( (binary_expression "in_t9 + 0x5ebac" identifier + number_literal) ))))) )) (argument_list "(&q->_mp_den,fp,base,uVar3,sVar1 + 2)" ( (pointer_expression "&q->_mp_den" & (field_expression "q->_mp_den" identifier -> field_identifier)) , identifier , identifier , identifier , (binary_expression "sVar1 + 2" identifier + number_literal) )))) ;) (if_statement "if (sVar1 == 0) {\n      pmVar4 = (q->_mp_den)._mp_d;\n      (q->_mp_num)._mp_size = 0;\n      (q->_mp_den)._mp_size = 1;\n      *pmVar4 = 1;\n    }" if (parenthesized_expression "(sVar1 == 0)" ( (binary_expression "sVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      pmVar4 = (q->_mp_den)._mp_d;\n      (q->_mp_num)._mp_size = 0;\n      (q->_mp_den)._mp_size = 1;\n      *pmVar4 = 1;\n    }" { (expression_statement "pmVar4 = (q->_mp_den)._mp_d;" (assignment_expression "pmVar4 = (q->_mp_den)._mp_d" identifier = (field_expression "(q->_mp_den)._mp_d" (parenthesized_expression "(q->_mp_den)" ( (field_expression "q->_mp_den" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(q->_mp_num)._mp_size = 0;" (assignment_expression "(q->_mp_num)._mp_size = 0" (field_expression "(q->_mp_num)._mp_size" (parenthesized_expression "(q->_mp_num)" ( (field_expression "q->_mp_num" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(q->_mp_den)._mp_size = 1;" (assignment_expression "(q->_mp_den)._mp_size = 1" (field_expression "(q->_mp_den)._mp_size" (parenthesized_expression "(q->_mp_den)" ( (field_expression "q->_mp_den" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "*pmVar4 = 1;" (assignment_expression "*pmVar4 = 1" (pointer_expression "*pmVar4" * identifier) = number_literal) ;) })) })) (return_statement "return sVar1;" return identifier ;) })))
(translation_unit "int __gmpq_inp_str(int param_1,int param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar1 = PTR___gmpz_inp_str_00097198;\n  if (param_2 == 0) {\n    param_2 = *(int *)PTR_stdin_00097314;\n  }\n  *(undefined4 *)(param_1 + 0x10) = 1;\n  **(undefined4 **)(param_1 + 0x14) = 1;\n  iVar2 = (*(code *)puVar1)(param_1,param_2,param_3);\n  if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_getc_00097104)(param_2);\n    if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }\n    uVar4 = (*(code *)PTR_getc_00097104)(param_2);\n    iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);\n    if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }\n  }\n  return iVar2;\n}\n\n" (function_definition "int __gmpq_inp_str(int param_1,int param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar1 = PTR___gmpz_inp_str_00097198;\n  if (param_2 == 0) {\n    param_2 = *(int *)PTR_stdin_00097314;\n  }\n  *(undefined4 *)(param_1 + 0x10) = 1;\n  **(undefined4 **)(param_1 + 0x14) = 1;\n  iVar2 = (*(code *)puVar1)(param_1,param_2,param_3);\n  if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_getc_00097104)(param_2);\n    if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }\n    uVar4 = (*(code *)PTR_getc_00097104)(param_2);\n    iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);\n    if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }\n  }\n  return iVar2;\n}" primitive_type (function_declarator "__gmpq_inp_str(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar1 = PTR___gmpz_inp_str_00097198;\n  if (param_2 == 0) {\n    param_2 = *(int *)PTR_stdin_00097314;\n  }\n  *(undefined4 *)(param_1 + 0x10) = 1;\n  **(undefined4 **)(param_1 + 0x14) = 1;\n  iVar2 = (*(code *)puVar1)(param_1,param_2,param_3);\n  if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_getc_00097104)(param_2);\n    if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }\n    uVar4 = (*(code *)PTR_getc_00097104)(param_2);\n    iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);\n    if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }\n  }\n  return iVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___gmpz_inp_str_00097198;" (assignment_expression "puVar1 = PTR___gmpz_inp_str_00097198" identifier = identifier) ;) (if_statement "if (param_2 == 0) {\n    param_2 = *(int *)PTR_stdin_00097314;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = *(int *)PTR_stdin_00097314;\n  }" { (expression_statement "param_2 = *(int *)PTR_stdin_00097314;" (assignment_expression "param_2 = *(int *)PTR_stdin_00097314" identifier = (pointer_expression "*(int *)PTR_stdin_00097314" * (cast_expression "(int *)PTR_stdin_00097314" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "**(undefined4 **)(param_1 + 0x14) = 1;" (assignment_expression "**(undefined4 **)(param_1 + 0x14) = 1" (pointer_expression "**(undefined4 **)(param_1 + 0x14)" * (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) = number_literal) ;) (expression_statement "iVar2 = (*(code *)puVar1)(param_1,param_2,param_3);" (assignment_expression "iVar2 = (*(code *)puVar1)(param_1,param_2,param_3)" identifier = (call_expression "(*(code *)puVar1)(param_1,param_2,param_3)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_getc_00097104)(param_2);\n    if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }\n    uVar4 = (*(code *)PTR_getc_00097104)(param_2);\n    iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);\n    if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_getc_00097104)(param_2);\n    if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }\n    uVar4 = (*(code *)PTR_getc_00097104)(param_2);\n    iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);\n    if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }\n  }" { (expression_statement "iVar3 = (*(code *)PTR_getc_00097104)(param_2);" (assignment_expression "iVar3 = (*(code *)PTR_getc_00097104)(param_2)" identifier = (call_expression "(*(code *)PTR_getc_00097104)(param_2)" (parenthesized_expression "(*(code *)PTR_getc_00097104)" ( (pointer_expression "*(code *)PTR_getc_00097104" * (cast_expression "(code *)PTR_getc_00097104" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }" if (parenthesized_expression "(iVar3 != 0x2f)" ( (binary_expression "iVar3 != 0x2f" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }" { (expression_statement "(*(code *)PTR_ungetc_000972e4)(iVar3,param_2);" (call_expression "(*(code *)PTR_ungetc_000972e4)(iVar3,param_2)" (parenthesized_expression "(*(code *)PTR_ungetc_000972e4)" ( (pointer_expression "*(code *)PTR_ungetc_000972e4" * (cast_expression "(code *)PTR_ungetc_000972e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,param_2)" ( identifier , identifier ))) ;) (return_statement "return iVar2;" return identifier ;) })) (expression_statement "uVar4 = (*(code *)PTR_getc_00097104)(param_2);" (assignment_expression "uVar4 = (*(code *)PTR_getc_00097104)(param_2)" identifier = (call_expression "(*(code *)PTR_getc_00097104)(param_2)" (parenthesized_expression "(*(code *)PTR_getc_00097104)" ( (pointer_expression "*(code *)PTR_getc_00097104" * (cast_expression "(code *)PTR_getc_00097104" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);" (assignment_expression "iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2)" identifier = (call_expression "(*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2)" (parenthesized_expression "(*(code *)PTR___gmpz_inp_str_nowhite_0009735c)" ( (pointer_expression "*(code *)PTR___gmpz_inp_str_nowhite_0009735c" * (cast_expression "(code *)PTR___gmpz_inp_str_nowhite_0009735c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) , identifier , identifier , identifier , (binary_expression "iVar2 + 2" identifier + number_literal) )))) ;) (if_statement "if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "**(undefined4 **)(param_1 + 0x14) = 1;" (assignment_expression "**(undefined4 **)(param_1 + 0x14) = 1" (pointer_expression "**(undefined4 **)(param_1 + 0x14)" * (pointer_expression "*(undefined4 **)(param_1 + 0x14)" * (cast_expression "(undefined4 **)(param_1 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) = number_literal) ;) })) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = 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 *)) ) IDENT))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = LIT) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "int __gmpq_inp_str(int param_1,int param_2,undefined4 param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar1 = PTR___gmpz_inp_str_00097198;\n  if (param_2 == 0) {\n    param_2 = *(int *)PTR_stdin_00097314;\n  }\n  *(undefined4 *)(param_1 + 0x10) = 1;\n  **(undefined4 **)(param_1 + 0x14) = 1;\n  iVar2 = (*(code *)puVar1)(param_1,param_2,param_3);\n  if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_getc_00097104)(param_2);\n    if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }\n    uVar4 = (*(code *)PTR_getc_00097104)(param_2);\n    iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);\n    if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "__gmpq_inp_str(int param_1,int param_2,undefined4 param_3)" (identifier "__gmpq_inp_str") (parameter_list "(int param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  puVar1 = PTR___gmpz_inp_str_00097198;\n  if (param_2 == 0) {\n    param_2 = *(int *)PTR_stdin_00097314;\n  }\n  *(undefined4 *)(param_1 + 0x10) = 1;\n  **(undefined4 **)(param_1 + 0x14) = 1;\n  iVar2 = (*(code *)puVar1)(param_1,param_2,param_3);\n  if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_getc_00097104)(param_2);\n    if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }\n    uVar4 = (*(code *)PTR_getc_00097104)(param_2);\n    iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);\n    if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }\n  }\n  return iVar2;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "puVar1 = PTR___gmpz_inp_str_00097198;" (assignment_expression "puVar1 = PTR___gmpz_inp_str_00097198" (identifier "puVar1") (= "=") (identifier "PTR___gmpz_inp_str_00097198")) (; ";")) (if_statement "if (param_2 == 0) {\n    param_2 = *(int *)PTR_stdin_00097314;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = *(int *)PTR_stdin_00097314;\n  }" ({ "{") (expression_statement "param_2 = *(int *)PTR_stdin_00097314;" (assignment_expression "param_2 = *(int *)PTR_stdin_00097314" (identifier "param_2") (= "=") (pointer_expression "*(int *)PTR_stdin_00097314" (* "*") (cast_expression "(int *)PTR_stdin_00097314" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdin_00097314")))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "**(undefined4 **)(param_1 + 0x14) = 1;" (assignment_expression "**(undefined4 **)(param_1 + 0x14) = 1" (pointer_expression "**(undefined4 **)(param_1 + 0x14)" (* "*") (pointer_expression "*(undefined4 **)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar2 = (*(code *)puVar1)(param_1,param_2,param_3);" (assignment_expression "iVar2 = (*(code *)puVar1)(param_1,param_2,param_3)" (identifier "iVar2") (= "=") (call_expression "(*(code *)puVar1)(param_1,param_2,param_3)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_getc_00097104)(param_2);\n    if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }\n    uVar4 = (*(code *)PTR_getc_00097104)(param_2);\n    iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);\n    if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = (*(code *)PTR_getc_00097104)(param_2);\n    if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }\n    uVar4 = (*(code *)PTR_getc_00097104)(param_2);\n    iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);\n    if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }\n  }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_getc_00097104)(param_2);" (assignment_expression "iVar3 = (*(code *)PTR_getc_00097104)(param_2)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_getc_00097104)(param_2)" (parenthesized_expression "(*(code *)PTR_getc_00097104)" (( "(") (pointer_expression "*(code *)PTR_getc_00097104" (* "*") (cast_expression "(code *)PTR_getc_00097104" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getc_00097104"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar3 != 0x2f) {\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0x2f)" (( "(") (binary_expression "iVar3 != 0x2f" (identifier "iVar3") (!= "!=") (number_literal "0x2f")) () ")")) (compound_statement "{\n      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);\n      return iVar2;\n    }" ({ "{") (expression_statement "(*(code *)PTR_ungetc_000972e4)(iVar3,param_2);" (call_expression "(*(code *)PTR_ungetc_000972e4)(iVar3,param_2)" (parenthesized_expression "(*(code *)PTR_ungetc_000972e4)" (( "(") (pointer_expression "*(code *)PTR_ungetc_000972e4" (* "*") (cast_expression "(code *)PTR_ungetc_000972e4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ungetc_000972e4"))) () ")")) (argument_list "(iVar3,param_2)" (( "(") (identifier "iVar3") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "uVar4 = (*(code *)PTR_getc_00097104)(param_2);" (assignment_expression "uVar4 = (*(code *)PTR_getc_00097104)(param_2)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_getc_00097104)(param_2)" (parenthesized_expression "(*(code *)PTR_getc_00097104)" (( "(") (pointer_expression "*(code *)PTR_getc_00097104" (* "*") (cast_expression "(code *)PTR_getc_00097104" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_getc_00097104"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);" (assignment_expression "iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR___gmpz_inp_str_nowhite_0009735c)\n                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2)" (parenthesized_expression "(*(code *)PTR___gmpz_inp_str_nowhite_0009735c)" (( "(") (pointer_expression "*(code *)PTR___gmpz_inp_str_nowhite_0009735c" (* "*") (cast_expression "(code *)PTR___gmpz_inp_str_nowhite_0009735c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___gmpz_inp_str_nowhite_0009735c"))) () ")")) (argument_list "(param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "uVar4") (, ",") (binary_expression "iVar2 + 2" (identifier "iVar2") (+ "+") (number_literal "2")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 4) = 0;\n      *(undefined4 *)(param_1 + 0x10) = 1;\n      **(undefined4 **)(param_1 + 0x14) = 1;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "**(undefined4 **)(param_1 + 0x14) = 1;" (assignment_expression "**(undefined4 **)(param_1 + 0x14) = 1" (pointer_expression "**(undefined4 **)(param_1 + 0x14)" (* "*") (pointer_expression "*(undefined4 **)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

size_t function_1(type_1 q,type_2 *var_1,int base)

{
  size_t var_3;
  int var_4;
  type_3 uVar3;
  type_4 *pmVar4;
  int var_2;
  type_5 *pcVar5;
  
  if (var_1 == (type_2 *)0x0) {
    var_1 = (type_2 *)**(type_3 **)(var_2 + 0x5eb64);
  }
  pcVar5 = *(type_5 **)(var_2 + 0x5e9e8);
  (q->_mp_den)._mp_size = 1;
  *(q->_mp_den)._mp_d = 1;
  var_3 = (*pcVar5)(q,var_1,base);
  if (var_3 != 0) {
    var_4 = (**(type_5 **)(var_2 + 0x5e954))(var_1);
    if (var_4 != 0x2f) {
      (**(type_5 **)(var_2 + 0x5eb34))(var_4,var_1);
      return var_3;
    }
    uVar3 = (**(type_5 **)(var_2 + 0x5e954))(var_1);
    var_3 = (**(type_5 **)(var_2 + 0x5ebac))(&q->_mp_den,var_1,base,uVar3,var_3 + 2);
    if (var_3 == 0) {
      pmVar4 = (q->_mp_den)._mp_d;
      (q->_mp_num)._mp_size = 0;
      (q->_mp_den)._mp_size = 1;
      *pmVar4 = 1;
    }
  }
  return var_3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) 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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (assignment_expression left: (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)))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (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)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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))))) (expression_statement (assignment_expression left: (identifier) right: (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 (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (identifier) (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: (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))))) right: (number_literal))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (assignment_expression left: (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)))))) right: (number_literal))))))) (return_statement (identifier)))))

int MASKED(int param_1,int param_2,undefined4 param_3)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  
  puVar1 = PTR___gmpz_inp_str_00097198;
  if (param_2 == 0) {
    param_2 = *(int *)PTR_stdin_00097314;
  }
  *(undefined4 *)(param_1 + 0x10) = 1;
  **(undefined4 **)(param_1 + 0x14) = 1;
  iVar2 = (*(code *)puVar1)(param_1,param_2,param_3);
  if (iVar2 != 0) {
    iVar3 = (*(code *)PTR_getc_00097104)(param_2);
    if (iVar3 != 0x2f) {
      (*(code *)PTR_ungetc_000972e4)(iVar3,param_2);
      return iVar2;
    }
    uVar4 = (*(code *)PTR_getc_00097104)(param_2);
    iVar2 = (*(code *)PTR___gmpz_inp_str_nowhite_0009735c)
                      (param_1 + 0xc,param_2,param_3,uVar4,iVar2 + 2);
    if (iVar2 == 0) {
      *(undefined4 *)(param_1 + 4) = 0;
      *(undefined4 *)(param_1 + 0x10) = 1;
      **(undefined4 **)(param_1 + 0x14) = 1;
    }
  }
  return iVar2;
}

