
mp_limb_t __gmpz_getlimbn(mpz_srcptr __gmp_z,mp_size_t __gmp_n)

{
  int iVar1;
  
  if (__gmp_n < 0) {
    return 0;
  }
  iVar1 = __gmp_z->_mp_size;
  if (iVar1 < 0) {
    iVar1 = -iVar1;
  }
  if (iVar1 <= __gmp_n) {
    return 0;
  }
  return __gmp_z->_mp_d[__gmp_n];
}



undefined4 __gmpz_getlimbn(int param_1,int param_2)

{
  int iVar1;
  
  if (param_2 < 0) {
    return 0;
  }
  iVar1 = *(int *)(param_1 + 4);
  if (iVar1 < 0) {
    iVar1 = -iVar1;
  }
  if (iVar1 <= param_2) {
    return 0;
  }
  return *(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4);
}


bltz a1,0x00029df0
_nop
lw v0,0x4(a0)
bltz v0,0x00029de8
_nop
slt v0,a1,v0
bne v0,zero,0x00029df8
_sll a1,a1,0x2
jr ra
_nop
b 0x00029dd4
_subu v0,zero,v0
jr ra
_or v0,zero,zero
lw v0,0x8(a0)
addu a1,v0,a1
jr ra
_lw v0,0x0(a1)
(translation_unit "undefined4 __gmpz_getlimbn(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 < 0) {\n    return 0;\n  }\n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 < 0) {\n    iVar1 = -iVar1;\n  }\n  if (iVar1 <= param_2) {\n    return 0;\n  }\n  return *(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4);\n}\n\n" (function_definition "undefined4 __gmpz_getlimbn(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 < 0) {\n    return 0;\n  }\n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 < 0) {\n    iVar1 = -iVar1;\n  }\n  if (iVar1 <= param_2) {\n    return 0;\n  }\n  return *(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4);\n}" type_identifier (function_declarator "__gmpz_getlimbn(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_2 < 0) {\n    return 0;\n  }\n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 < 0) {\n    iVar1 = -iVar1;\n  }\n  if (iVar1 <= param_2) {\n    return 0;\n  }\n  return *(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_2 < 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) (if_statement "if (iVar1 < 0) {\n    iVar1 = -iVar1;\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar1 = -iVar1;\n  }" { (expression_statement "iVar1 = -iVar1;" (assignment_expression "iVar1 = -iVar1" identifier = (unary_expression "-iVar1" - identifier)) ;) })) (if_statement "if (iVar1 <= param_2) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 <= param_2)" ( (binary_expression "iVar1 <= param_2" identifier <= identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return *(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4);" return (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 8) + param_2 * 4)" ( (binary_expression "*(int *)(param_1 + 8) + param_2 * 4" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) ;) })))
(translation_unit "mp_limb_t __gmpz_getlimbn(mpz_srcptr __gmp_z,mp_size_t __gmp_n)\n\n{\n  int iVar1;\n  \n  if (__gmp_n < 0) {\n    return 0;\n  }\n  iVar1 = __gmp_z->_mp_size;\n  if (iVar1 < 0) {\n    iVar1 = -iVar1;\n  }\n  if (iVar1 <= __gmp_n) {\n    return 0;\n  }\n  return __gmp_z->_mp_d[__gmp_n];\n}\n\n" (function_definition "mp_limb_t __gmpz_getlimbn(mpz_srcptr __gmp_z,mp_size_t __gmp_n)\n\n{\n  int iVar1;\n  \n  if (__gmp_n < 0) {\n    return 0;\n  }\n  iVar1 = __gmp_z->_mp_size;\n  if (iVar1 < 0) {\n    iVar1 = -iVar1;\n  }\n  if (iVar1 <= __gmp_n) {\n    return 0;\n  }\n  return __gmp_z->_mp_d[__gmp_n];\n}" type_identifier (function_declarator "__gmpz_getlimbn(mpz_srcptr __gmp_z,mp_size_t __gmp_n)" identifier (parameter_list "(mpz_srcptr __gmp_z,mp_size_t __gmp_n)" ( (parameter_declaration "mpz_srcptr __gmp_z" type_identifier identifier) , (parameter_declaration "mp_size_t __gmp_n" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (__gmp_n < 0) {\n    return 0;\n  }\n  iVar1 = __gmp_z->_mp_size;\n  if (iVar1 < 0) {\n    iVar1 = -iVar1;\n  }\n  if (iVar1 <= __gmp_n) {\n    return 0;\n  }\n  return __gmp_z->_mp_d[__gmp_n];\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (__gmp_n < 0) {\n    return 0;\n  }" if (parenthesized_expression "(__gmp_n < 0)" ( (binary_expression "__gmp_n < 0" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = __gmp_z->_mp_size;" (assignment_expression "iVar1 = __gmp_z->_mp_size" identifier = (field_expression "__gmp_z->_mp_size" identifier -> field_identifier)) ;) (if_statement "if (iVar1 < 0) {\n    iVar1 = -iVar1;\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar1 = -iVar1;\n  }" { (expression_statement "iVar1 = -iVar1;" (assignment_expression "iVar1 = -iVar1" identifier = (unary_expression "-iVar1" - identifier)) ;) })) (if_statement "if (iVar1 <= __gmp_n) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 <= __gmp_n)" ( (binary_expression "iVar1 <= __gmp_n" identifier <= identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return __gmp_z->_mp_d[__gmp_n];" return (subscript_expression "__gmp_z->_mp_d[__gmp_n]" (field_expression "__gmp_z->_mp_d" identifier -> field_identifier) [ identifier ]) ;) })))
(translation_unit "undefined4 __gmpz_getlimbn(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 < 0) {\n    return 0;\n  }\n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 < 0) {\n    iVar1 = -iVar1;\n  }\n  if (iVar1 <= param_2) {\n    return 0;\n  }\n  return *(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4);\n}\n\n" (function_definition "undefined4 __gmpz_getlimbn(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 < 0) {\n    return 0;\n  }\n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 < 0) {\n    iVar1 = -iVar1;\n  }\n  if (iVar1 <= param_2) {\n    return 0;\n  }\n  return *(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4);\n}" type_identifier (function_declarator "__gmpz_getlimbn(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_2 < 0) {\n    return 0;\n  }\n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 < 0) {\n    iVar1 = -iVar1;\n  }\n  if (iVar1 <= param_2) {\n    return 0;\n  }\n  return *(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_2 < 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (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) ))))) ;) (if_statement "if (iVar1 < 0) {\n    iVar1 = -iVar1;\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar1 = -iVar1;\n  }" { (expression_statement "iVar1 = -iVar1;" (assignment_expression "iVar1 = -iVar1" identifier = (unary_expression "-iVar1" - identifier)) ;) })) (if_statement "if (iVar1 <= param_2) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 <= param_2)" ( (binary_expression "iVar1 <= param_2" identifier <= identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return *(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4);" return (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 8) + param_2 * 4)" ( (binary_expression "*(int *)(param_1 + 8) + param_2 * 4" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (binary_expression "param_2 * 4" identifier * number_literal)) )))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) ;) })))
(function_definition "undefined4 __gmpz_getlimbn(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (param_2 < 0) {\n    return 0;\n  }\n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 < 0) {\n    iVar1 = -iVar1;\n  }\n  if (iVar1 <= param_2) {\n    return 0;\n  }\n  return *(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4);\n}" (type_identifier "undefined4") (function_declarator "__gmpz_getlimbn(int param_1,int param_2)" (identifier "__gmpz_getlimbn") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_2 < 0) {\n    return 0;\n  }\n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 < 0) {\n    iVar1 = -iVar1;\n  }\n  if (iVar1 <= param_2) {\n    return 0;\n  }\n  return *(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_2 < 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 < 0)" (( "(") (binary_expression "param_2 < 0" (identifier "param_2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" (identifier "iVar1") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (iVar1 < 0) {\n    iVar1 = -iVar1;\n  }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = -iVar1;\n  }" ({ "{") (expression_statement "iVar1 = -iVar1;" (assignment_expression "iVar1 = -iVar1" (identifier "iVar1") (= "=") (unary_expression "-iVar1" (- "-") (identifier "iVar1"))) (; ";")) (} "}"))) (if_statement "if (iVar1 <= param_2) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar1 <= param_2)" (( "(") (binary_expression "iVar1 <= param_2" (identifier "iVar1") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return *(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4);" (return "return") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 8) + param_2 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 8) + param_2 * 4" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")")))) (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (binary_expression left: (identifier) right: (number_literal))))))))))

undefined4 MASKED(int param_1,int param_2)

{
  int iVar1;
  
  if (param_2 < 0) {
    return 0;
  }
  iVar1 = *(int *)(param_1 + 4);
  if (iVar1 < 0) {
    iVar1 = -iVar1;
  }
  if (iVar1 <= param_2) {
    return 0;
  }
  return *(undefined4 *)(*(int *)(param_1 + 8) + param_2 * 4);
}

