
/* WARNING: Unknown calling convention */

ulong __gmpz_get_ui(mpz_srcptr __gmp_z)

{
  ulong uVar1;
  
  uVar1 = *__gmp_z->_mp_d;
  if (__gmp_z->_mp_size == 0) {
    uVar1 = 0;
  }
  return uVar1;
}



undefined4 __gmpz_get_ui(int param_1)

{
  undefined4 uVar1;
  
  uVar1 = **(undefined4 **)(param_1 + 8);
  if (*(int *)(param_1 + 4) == 0) {
    uVar1 = 0;
  }
  return uVar1;
}


lw v0,0x8(a0)
lw v1,0x4(a0)
lw v0,0x0(v0)
jr ra
_movz v0,zero,v1
(translation_unit "undefined4 __gmpz_get_ui(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = **(undefined4 **)(param_1 + 8);\n  if (*(int *)(param_1 + 4) == 0) {\n    uVar1 = 0;\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 __gmpz_get_ui(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = **(undefined4 **)(param_1 + 8);\n  if (*(int *)(param_1 + 4) == 0) {\n    uVar1 = 0;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "__gmpz_get_ui(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = **(undefined4 **)(param_1 + 8);\n  if (*(int *)(param_1 + 4) == 0) {\n    uVar1 = 0;\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = **(undefined4 **)(param_1 + 8);" (assignment_expression "uVar1 = **(undefined4 **)(param_1 + 8)" identifier = (pointer_expression "**(undefined4 **)(param_1 + 8)" * (pointer_expression "*(undefined4 **)(param_1 + 8)" * (cast_expression "(undefined4 **)(param_1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))))) ;) (if_statement "if (*(int *)(param_1 + 4) == 0) {\n    uVar1 = 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" ( (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar1 = 0;\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nulong __gmpz_get_ui(mpz_srcptr __gmp_z)\n\n{\n  ulong uVar1;\n  \n  uVar1 = *__gmp_z->_mp_d;\n  if (__gmp_z->_mp_size == 0) {\n    uVar1 = 0;\n  }\n  return uVar1;\n}\n\n" comment (function_definition "ulong __gmpz_get_ui(mpz_srcptr __gmp_z)\n\n{\n  ulong uVar1;\n  \n  uVar1 = *__gmp_z->_mp_d;\n  if (__gmp_z->_mp_size == 0) {\n    uVar1 = 0;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "__gmpz_get_ui(mpz_srcptr __gmp_z)" identifier (parameter_list "(mpz_srcptr __gmp_z)" ( (parameter_declaration "mpz_srcptr __gmp_z" type_identifier identifier) ))) (compound_statement "{\n  ulong uVar1;\n  \n  uVar1 = *__gmp_z->_mp_d;\n  if (__gmp_z->_mp_size == 0) {\n    uVar1 = 0;\n  }\n  return uVar1;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *__gmp_z->_mp_d;" (assignment_expression "uVar1 = *__gmp_z->_mp_d" identifier = (pointer_expression "*__gmp_z->_mp_d" * (field_expression "__gmp_z->_mp_d" identifier -> field_identifier))) ;) (if_statement "if (__gmp_z->_mp_size == 0) {\n    uVar1 = 0;\n  }" if (parenthesized_expression "(__gmp_z->_mp_size == 0)" ( (binary_expression "__gmp_z->_mp_size == 0" (field_expression "__gmp_z->_mp_size" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    uVar1 = 0;\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "undefined4 __gmpz_get_ui(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = **(undefined4 **)(param_1 + 8);\n  if (*(int *)(param_1 + 4) == 0) {\n    uVar1 = 0;\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 __gmpz_get_ui(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = **(undefined4 **)(param_1 + 8);\n  if (*(int *)(param_1 + 4) == 0) {\n    uVar1 = 0;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "__gmpz_get_ui(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = **(undefined4 **)(param_1 + 8);\n  if (*(int *)(param_1 + 4) == 0) {\n    uVar1 = 0;\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = **(undefined4 **)(param_1 + 8);" (assignment_expression "uVar1 = **(undefined4 **)(param_1 + 8)" identifier = (pointer_expression "**(undefined4 **)(param_1 + 8)" * (pointer_expression "*(undefined4 **)(param_1 + 8)" * (cast_expression "(undefined4 **)(param_1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))))) ;) (if_statement "if (*(int *)(param_1 + 4) == 0) {\n    uVar1 = 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" ( (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar1 = 0;\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 __gmpz_get_ui(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = **(undefined4 **)(param_1 + 8);\n  if (*(int *)(param_1 + 4) == 0) {\n    uVar1 = 0;\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "__gmpz_get_ui(int param_1)" (identifier "__gmpz_get_ui") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = **(undefined4 **)(param_1 + 8);\n  if (*(int *)(param_1 + 4) == 0) {\n    uVar1 = 0;\n  }\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = **(undefined4 **)(param_1 + 8);" (assignment_expression "uVar1 = **(undefined4 **)(param_1 + 8)" (identifier "uVar1") (= "=") (pointer_expression "**(undefined4 **)(param_1 + 8)" (* "*") (pointer_expression "*(undefined4 **)(param_1 + 8)" (* "*") (cast_expression "(undefined4 **)(param_1 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))))) (; ";")) (if_statement "if (*(int *)(param_1 + 4) == 0) {\n    uVar1 = 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = 0;\n  }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 function_1(type_2 __gmp_z)

{
  type_1 uVar1;
  
  uVar1 = *__gmp_z->_mp_d;
  if (__gmp_z->_mp_size == 0) {
    uVar1 = 0;
  }
  return uVar1;
}


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

undefined4 MASKED(int param_1)

{
  undefined4 uVar1;
  
  uVar1 = **(undefined4 **)(param_1 + 8);
  if (*(int *)(param_1 + 4) == 0) {
    uVar1 = 0;
  }
  return uVar1;
}

