
mp_limb_t __gmpn_neg(mp_ptr __gmp_rp,mp_srcptr __gmp_up,mp_size_t __gmp_n)

{
  mp_limb_t mVar1;
  int iVar2;
  
  mVar1 = *__gmp_up;
  iVar2 = __gmp_n + -1;
  if (mVar1 == 0) {
    *__gmp_rp = 0;
    while( true ) {
      if (iVar2 == 0) {
        return 0;
      }
      __gmp_up = __gmp_up + 1;
      mVar1 = *__gmp_up;
      __gmp_rp = __gmp_rp + 1;
      iVar2 = iVar2 + -1;
      if (mVar1 != 0) break;
      *__gmp_rp = 0;
    }
  }
  *__gmp_rp = -mVar1;
  if (iVar2 == 0) {
    return 1;
  }
  (*(code *)PTR___gmpn_com_0009d524)(__gmp_rp + 1,__gmp_up + 1);
  return 1;
}



undefined4 __gmpn_neg(int *param_1,int *param_2,int param_3)

{
  int iVar1;
  
  iVar1 = *param_2;
  param_3 = param_3 + -1;
  if (iVar1 == 0) {
    *param_1 = 0;
    while( true ) {
      if (param_3 == 0) {
        return 0;
      }
      param_2 = param_2 + 1;
      iVar1 = *param_2;
      param_1 = param_1 + 1;
      param_3 = param_3 + -1;
      if (iVar1 != 0) break;
      *param_1 = 0;
    }
  }
  *param_1 = -iVar1;
  if (param_3 == 0) {
    return 1;
  }
  (*(code *)PTR___gmpn_com_0009d524)(param_1 + 1,param_2 + 1);
  return 1;
}


lui gp,0x7
addiu gp,gp,-0x6b50
addu gp,gp,t9
lw v0,0x0(a1)
bne v0,zero,0x0003bc14
_addiu a2,a2,-0x1
bne a2,zero,0x0003bbc0
_sw zero,0x0(a0)
b 0x0003bc1c
_nop
beq a2,zero,0x0003bc1c
_sw zero,0x0(a0)
addiu a1,a1,0x4
lw v1,0x0(a1)
addiu a0,a0,0x4
beq v1,zero,0x0003bbb8
_addiu a2,a2,-0x1
subu v1,zero,v1
bne a2,zero,0x0003bbe8
_sw v1,0x0(a0)
jr ra
_li v0,0x1
addiu sp,sp,-0x20
lw t9,-0x7b1c(gp)
addiu a1,a1,0x4
sw ra,0x1c(sp)
sw gp,0x10(sp)
jalr t9
_addiu a0,a0,0x4
li v0,0x1
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
b 0x0003bbd4
_or v1,v0,zero
jr ra
_nop
(translation_unit "undefined4 __gmpn_neg(int *param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  param_3 = param_3 + -1;\n  if (iVar1 == 0) {\n    *param_1 = 0;\n    while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }\n  }\n  *param_1 = -iVar1;\n  if (param_3 == 0) {\n    return 1;\n  }\n  (*(code *)PTR___gmpn_com_0009d524)(param_1 + 1,param_2 + 1);\n  return 1;\n}\n\n" (function_definition "undefined4 __gmpn_neg(int *param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  param_3 = param_3 + -1;\n  if (iVar1 == 0) {\n    *param_1 = 0;\n    while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }\n  }\n  *param_1 = -iVar1;\n  if (param_3 == 0) {\n    return 1;\n  }\n  (*(code *)PTR___gmpn_com_0009d524)(param_1 + 1,param_2 + 1);\n  return 1;\n}" type_identifier (function_declarator "__gmpn_neg(int *param_1,int *param_2,int param_3)" identifier (parameter_list "(int *param_1,int *param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  param_3 = param_3 + -1;\n  if (iVar1 == 0) {\n    *param_1 = 0;\n    while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }\n  }\n  *param_1 = -iVar1;\n  if (param_3 == 0) {\n    return 1;\n  }\n  (*(code *)PTR___gmpn_com_0009d524)(param_1 + 1,param_2 + 1);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (if_statement "if (iVar1 == 0) {\n    *param_1 = 0;\n    while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_1 = 0;\n    while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }\n  }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (while_statement "while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }" { (if_statement "if (param_3 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (if_statement "if (iVar1 != 0) break;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) })) })) (expression_statement "*param_1 = -iVar1;" (assignment_expression "*param_1 = -iVar1" (pointer_expression "*param_1" * identifier) = (unary_expression "-iVar1" - identifier)) ;) (if_statement "if (param_3 == 0) {\n    return 1;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "(*(code *)PTR___gmpn_com_0009d524)(param_1 + 1,param_2 + 1);" (call_expression "(*(code *)PTR___gmpn_com_0009d524)(param_1 + 1,param_2 + 1)" (parenthesized_expression "(*(code *)PTR___gmpn_com_0009d524)" ( (pointer_expression "*(code *)PTR___gmpn_com_0009d524" * (cast_expression "(code *)PTR___gmpn_com_0009d524" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 1,param_2 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) , (binary_expression "param_2 + 1" identifier + number_literal) ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "mp_limb_t __gmpn_neg(mp_ptr __gmp_rp,mp_srcptr __gmp_up,mp_size_t __gmp_n)\n\n{\n  mp_limb_t mVar1;\n  int iVar2;\n  \n  mVar1 = *__gmp_up;\n  iVar2 = __gmp_n + -1;\n  if (mVar1 == 0) {\n    *__gmp_rp = 0;\n    while( true ) {\n      if (iVar2 == 0) {\n        return 0;\n      }\n      __gmp_up = __gmp_up + 1;\n      mVar1 = *__gmp_up;\n      __gmp_rp = __gmp_rp + 1;\n      iVar2 = iVar2 + -1;\n      if (mVar1 != 0) break;\n      *__gmp_rp = 0;\n    }\n  }\n  *__gmp_rp = -mVar1;\n  if (iVar2 == 0) {\n    return 1;\n  }\n  (*(code *)PTR___gmpn_com_0009d524)(__gmp_rp + 1,__gmp_up + 1);\n  return 1;\n}\n\n" (function_definition "mp_limb_t __gmpn_neg(mp_ptr __gmp_rp,mp_srcptr __gmp_up,mp_size_t __gmp_n)\n\n{\n  mp_limb_t mVar1;\n  int iVar2;\n  \n  mVar1 = *__gmp_up;\n  iVar2 = __gmp_n + -1;\n  if (mVar1 == 0) {\n    *__gmp_rp = 0;\n    while( true ) {\n      if (iVar2 == 0) {\n        return 0;\n      }\n      __gmp_up = __gmp_up + 1;\n      mVar1 = *__gmp_up;\n      __gmp_rp = __gmp_rp + 1;\n      iVar2 = iVar2 + -1;\n      if (mVar1 != 0) break;\n      *__gmp_rp = 0;\n    }\n  }\n  *__gmp_rp = -mVar1;\n  if (iVar2 == 0) {\n    return 1;\n  }\n  (*(code *)PTR___gmpn_com_0009d524)(__gmp_rp + 1,__gmp_up + 1);\n  return 1;\n}" type_identifier (function_declarator "__gmpn_neg(mp_ptr __gmp_rp,mp_srcptr __gmp_up,mp_size_t __gmp_n)" identifier (parameter_list "(mp_ptr __gmp_rp,mp_srcptr __gmp_up,mp_size_t __gmp_n)" ( (parameter_declaration "mp_ptr __gmp_rp" type_identifier identifier) , (parameter_declaration "mp_srcptr __gmp_up" type_identifier identifier) , (parameter_declaration "mp_size_t __gmp_n" type_identifier identifier) ))) (compound_statement "{\n  mp_limb_t mVar1;\n  int iVar2;\n  \n  mVar1 = *__gmp_up;\n  iVar2 = __gmp_n + -1;\n  if (mVar1 == 0) {\n    *__gmp_rp = 0;\n    while( true ) {\n      if (iVar2 == 0) {\n        return 0;\n      }\n      __gmp_up = __gmp_up + 1;\n      mVar1 = *__gmp_up;\n      __gmp_rp = __gmp_rp + 1;\n      iVar2 = iVar2 + -1;\n      if (mVar1 != 0) break;\n      *__gmp_rp = 0;\n    }\n  }\n  *__gmp_rp = -mVar1;\n  if (iVar2 == 0) {\n    return 1;\n  }\n  (*(code *)PTR___gmpn_com_0009d524)(__gmp_rp + 1,__gmp_up + 1);\n  return 1;\n}" { (declaration "mp_limb_t mVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "mVar1 = *__gmp_up;" (assignment_expression "mVar1 = *__gmp_up" identifier = (pointer_expression "*__gmp_up" * identifier)) ;) (expression_statement "iVar2 = __gmp_n + -1;" (assignment_expression "iVar2 = __gmp_n + -1" identifier = (binary_expression "__gmp_n + -1" identifier + number_literal)) ;) (if_statement "if (mVar1 == 0) {\n    *__gmp_rp = 0;\n    while( true ) {\n      if (iVar2 == 0) {\n        return 0;\n      }\n      __gmp_up = __gmp_up + 1;\n      mVar1 = *__gmp_up;\n      __gmp_rp = __gmp_rp + 1;\n      iVar2 = iVar2 + -1;\n      if (mVar1 != 0) break;\n      *__gmp_rp = 0;\n    }\n  }" if (parenthesized_expression "(mVar1 == 0)" ( (binary_expression "mVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *__gmp_rp = 0;\n    while( true ) {\n      if (iVar2 == 0) {\n        return 0;\n      }\n      __gmp_up = __gmp_up + 1;\n      mVar1 = *__gmp_up;\n      __gmp_rp = __gmp_rp + 1;\n      iVar2 = iVar2 + -1;\n      if (mVar1 != 0) break;\n      *__gmp_rp = 0;\n    }\n  }" { (expression_statement "*__gmp_rp = 0;" (assignment_expression "*__gmp_rp = 0" (pointer_expression "*__gmp_rp" * identifier) = number_literal) ;) (while_statement "while( true ) {\n      if (iVar2 == 0) {\n        return 0;\n      }\n      __gmp_up = __gmp_up + 1;\n      mVar1 = *__gmp_up;\n      __gmp_rp = __gmp_rp + 1;\n      iVar2 = iVar2 + -1;\n      if (mVar1 != 0) break;\n      *__gmp_rp = 0;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (iVar2 == 0) {\n        return 0;\n      }\n      __gmp_up = __gmp_up + 1;\n      mVar1 = *__gmp_up;\n      __gmp_rp = __gmp_rp + 1;\n      iVar2 = iVar2 + -1;\n      if (mVar1 != 0) break;\n      *__gmp_rp = 0;\n    }" { (if_statement "if (iVar2 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "__gmp_up = __gmp_up + 1;" (assignment_expression "__gmp_up = __gmp_up + 1" identifier = (binary_expression "__gmp_up + 1" identifier + number_literal)) ;) (expression_statement "mVar1 = *__gmp_up;" (assignment_expression "mVar1 = *__gmp_up" identifier = (pointer_expression "*__gmp_up" * identifier)) ;) (expression_statement "__gmp_rp = __gmp_rp + 1;" (assignment_expression "__gmp_rp = __gmp_rp + 1" identifier = (binary_expression "__gmp_rp + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (if_statement "if (mVar1 != 0) break;" if (parenthesized_expression "(mVar1 != 0)" ( (binary_expression "mVar1 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "*__gmp_rp = 0;" (assignment_expression "*__gmp_rp = 0" (pointer_expression "*__gmp_rp" * identifier) = number_literal) ;) })) })) (expression_statement "*__gmp_rp = -mVar1;" (assignment_expression "*__gmp_rp = -mVar1" (pointer_expression "*__gmp_rp" * identifier) = (unary_expression "-mVar1" - identifier)) ;) (if_statement "if (iVar2 == 0) {\n    return 1;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "(*(code *)PTR___gmpn_com_0009d524)(__gmp_rp + 1,__gmp_up + 1);" (call_expression "(*(code *)PTR___gmpn_com_0009d524)(__gmp_rp + 1,__gmp_up + 1)" (parenthesized_expression "(*(code *)PTR___gmpn_com_0009d524)" ( (pointer_expression "*(code *)PTR___gmpn_com_0009d524" * (cast_expression "(code *)PTR___gmpn_com_0009d524" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(__gmp_rp + 1,__gmp_up + 1)" ( (binary_expression "__gmp_rp + 1" identifier + number_literal) , (binary_expression "__gmp_up + 1" identifier + number_literal) ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 __gmpn_neg(int *param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  param_3 = param_3 + -1;\n  if (iVar1 == 0) {\n    *param_1 = 0;\n    while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }\n  }\n  *param_1 = -iVar1;\n  if (param_3 == 0) {\n    return 1;\n  }\n  (*(code *)PTR___gmpn_com_0009d524)(param_1 + 1,param_2 + 1);\n  return 1;\n}\n\n" (function_definition "undefined4 __gmpn_neg(int *param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  param_3 = param_3 + -1;\n  if (iVar1 == 0) {\n    *param_1 = 0;\n    while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }\n  }\n  *param_1 = -iVar1;\n  if (param_3 == 0) {\n    return 1;\n  }\n  (*(code *)PTR___gmpn_com_0009d524)(param_1 + 1,param_2 + 1);\n  return 1;\n}" type_identifier (function_declarator "__gmpn_neg(int *param_1,int *param_2,int param_3)" identifier (parameter_list "(int *param_1,int *param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  param_3 = param_3 + -1;\n  if (iVar1 == 0) {\n    *param_1 = 0;\n    while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }\n  }\n  *param_1 = -iVar1;\n  if (param_3 == 0) {\n    return 1;\n  }\n  (*(code *)PTR___gmpn_com_0009d524)(param_1 + 1,param_2 + 1);\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (if_statement "if (iVar1 == 0) {\n    *param_1 = 0;\n    while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_1 = 0;\n    while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }\n  }" { (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (while_statement "while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }" { (if_statement "if (param_3 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (if_statement "if (iVar1 != 0) break;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) })) })) (expression_statement "*param_1 = -iVar1;" (assignment_expression "*param_1 = -iVar1" (pointer_expression "*param_1" * identifier) = (unary_expression "-iVar1" - identifier)) ;) (if_statement "if (param_3 == 0) {\n    return 1;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "(*(code *)PTR___gmpn_com_0009d524)(param_1 + 1,param_2 + 1);" (call_expression "(*(code *)PTR___gmpn_com_0009d524)(param_1 + 1,param_2 + 1)" (parenthesized_expression "(*(code *)PTR___gmpn_com_0009d524)" ( (pointer_expression "*(code *)PTR___gmpn_com_0009d524" * (cast_expression "(code *)PTR___gmpn_com_0009d524" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 1,param_2 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) , (binary_expression "param_2 + 1" identifier + number_literal) ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (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)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (unary_expression - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __gmpn_neg(int *param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  param_3 = param_3 + -1;\n  if (iVar1 == 0) {\n    *param_1 = 0;\n    while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }\n  }\n  *param_1 = -iVar1;\n  if (param_3 == 0) {\n    return 1;\n  }\n  (*(code *)PTR___gmpn_com_0009d524)(param_1 + 1,param_2 + 1);\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "__gmpn_neg(int *param_1,int *param_2,int param_3)" (identifier "__gmpn_neg") (parameter_list "(int *param_1,int *param_2,int param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *param_2;\n  param_3 = param_3 + -1;\n  if (iVar1 == 0) {\n    *param_1 = 0;\n    while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }\n  }\n  *param_1 = -iVar1;\n  if (param_3 == 0) {\n    return 1;\n  }\n  (*(code *)PTR___gmpn_com_0009d524)(param_1 + 1,param_2 + 1);\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" (identifier "iVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" (identifier "param_3") (= "=") (binary_expression "param_3 + -1" (identifier "param_3") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar1 == 0) {\n    *param_1 = 0;\n    while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *param_1 = 0;\n    while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }\n  }" ({ "{") (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (param_3 == 0) {\n        return 0;\n      }\n      param_2 = param_2 + 1;\n      iVar1 = *param_2;\n      param_1 = param_1 + 1;\n      param_3 = param_3 + -1;\n      if (iVar1 != 0) break;\n      *param_1 = 0;\n    }" ({ "{") (if_statement "if (param_3 == 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" (identifier "iVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" (identifier "param_3") (= "=") (binary_expression "param_3 + -1" (identifier "param_3") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar1 != 0) break;" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (expression_statement "*param_1 = -iVar1;" (assignment_expression "*param_1 = -iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (unary_expression "-iVar1" (- "-") (identifier "iVar1"))) (; ";")) (if_statement "if (param_3 == 0) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___gmpn_com_0009d524)(param_1 + 1,param_2 + 1);" (call_expression "(*(code *)PTR___gmpn_com_0009d524)(param_1 + 1,param_2 + 1)" (parenthesized_expression "(*(code *)PTR___gmpn_com_0009d524)" (( "(") (pointer_expression "*(code *)PTR___gmpn_com_0009d524" (* "*") (cast_expression "(code *)PTR___gmpn_com_0009d524" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___gmpn_com_0009d524"))) () ")")) (argument_list "(param_1 + 1,param_2 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) (, ",") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

type_1 function_1(type_2 var_5,type_3 var_4,type_4 var_1)

{
  type_1 var_2;
  int var_3;
  
  var_2 = *var_4;
  var_3 = var_1 + -1;
  if (var_2 == 0) {
    *var_5 = 0;
    while( true ) {
      if (var_3 == 0) {
        return 0;
      }
      var_4 = var_4 + 1;
      var_2 = *var_4;
      var_5 = var_5 + 1;
      var_3 = var_3 + -1;
      if (var_2 != 0) break;
      *var_5 = 0;
    }
  }
  *var_5 = -var_2;
  if (var_3 == 0) {
    return 1;
  }
  (*(type_5 *)PTR___gmpn_com_0009d524)(var_5 + 1,var_4 + 1);
  return 1;
}


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

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

{
  int iVar1;
  
  iVar1 = *param_2;
  param_3 = param_3 + -1;
  if (iVar1 == 0) {
    *param_1 = 0;
    while( true ) {
      if (param_3 == 0) {
        return 0;
      }
      param_2 = param_2 + 1;
      iVar1 = *param_2;
      param_1 = param_1 + 1;
      param_3 = param_3 + -1;
      if (iVar1 != 0) break;
      *param_1 = 0;
    }
  }
  *param_1 = -iVar1;
  if (param_3 == 0) {
    return 1;
  }
  (*(code *)PTR___gmpn_com_0009d524)(param_1 + 1,param_2 + 1);
  return 1;
}

