
int S_IS_WEAKREFR(symbolS *s)

{
  if (-1 < (short)*(ushort *)&s->sy_flags) {
    return ((uint)*(ushort *)&s->sy_flags << 0x19) >> 0x1f;
  }
  if (s->bsym != *(asymbol **)PTR_reg_section_000b5da4) {
    return 0;
  }
  return ((uint)*(ushort *)&((s->sy_value).X_op_symbol)->sy_flags << 0x19) >> 0x1f;
}



uint S_IS_WEAKREFR(ushort *param_1)

{
  if (-1 < (short)*param_1) {
    return ((uint)*param_1 << 0x19) >> 0x1f;
  }
  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {
    return 0;
  }
  return ((uint)**(ushort **)(param_1 + 6) << 0x19) >> 0x1f;
}


lui gp,0x7
addiu gp,gp,-0x13c
addu gp,gp,t9
lhu v0,0x0(a0)
seh v1,v0
bltz v1,0x0004dde0
_ext v0,v0,0x6,0x1
jr ra
_nop
lw v0,-0x7edc(gp)
lw v1,0x4(a0)
lw v0,0x0(v0)
beq v1,v0,0x0004ddfc
_nop
jr ra
_or v0,zero,zero
lw v0,0xc(a0)
lhu v0,0x0(v0)
jr ra
_ext v0,v0,0x6,0x1
(translation_unit "uint S_IS_WEAKREFR(ushort *param_1)\n\n{\n  if (-1 < (short)*param_1) {\n    return ((uint)*param_1 << 0x19) >> 0x1f;\n  }\n  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    return 0;\n  }\n  return ((uint)**(ushort **)(param_1 + 6) << 0x19) >> 0x1f;\n}\n\n" (function_definition "uint S_IS_WEAKREFR(ushort *param_1)\n\n{\n  if (-1 < (short)*param_1) {\n    return ((uint)*param_1 << 0x19) >> 0x1f;\n  }\n  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    return 0;\n  }\n  return ((uint)**(ushort **)(param_1 + 6) << 0x19) >> 0x1f;\n}" type_identifier (function_declarator "S_IS_WEAKREFR(ushort *param_1)" identifier (parameter_list "(ushort *param_1)" ( (parameter_declaration "ushort *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (-1 < (short)*param_1) {\n    return ((uint)*param_1 << 0x19) >> 0x1f;\n  }\n  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    return 0;\n  }\n  return ((uint)**(ushort **)(param_1 + 6) << 0x19) >> 0x1f;\n}" { (if_statement "if (-1 < (short)*param_1) {\n    return ((uint)*param_1 << 0x19) >> 0x1f;\n  }" if (parenthesized_expression "(-1 < (short)*param_1)" ( (binary_expression "-1 < (short)*param_1" number_literal < (cast_expression "(short)*param_1" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (pointer_expression "*param_1" * identifier))) )) (compound_statement "{\n    return ((uint)*param_1 << 0x19) >> 0x1f;\n  }" { (return_statement "return ((uint)*param_1 << 0x19) >> 0x1f;" return (binary_expression "((uint)*param_1 << 0x19) >> 0x1f" (parenthesized_expression "((uint)*param_1 << 0x19)" ( (binary_expression "(uint)*param_1 << 0x19" (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier) << number_literal) )) >> number_literal) ;) })) (if_statement "if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4)" ( (binary_expression "*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4" (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) != (pointer_expression "*(int *)PTR_reg_section_000b5da4" * (cast_expression "(int *)PTR_reg_section_000b5da4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return ((uint)**(ushort **)(param_1 + 6) << 0x19) >> 0x1f;" return (binary_expression "((uint)**(ushort **)(param_1 + 6) << 0x19) >> 0x1f" (parenthesized_expression "((uint)**(ushort **)(param_1 + 6) << 0x19)" ( (binary_expression "(uint)**(ushort **)(param_1 + 6) << 0x19" (binary_expression "(uint)**(ushort **)(param_1 + 6)" (parenthesized_expression "(uint)" ( identifier )) * (pointer_expression "*(ushort **)(param_1 + 6)" * (cast_expression "(ushort **)(param_1 + 6)" ( (type_descriptor "ushort **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) ))))) << number_literal) )) >> number_literal) ;) })))
(translation_unit "int S_IS_WEAKREFR(symbolS *s)\n\n{\n  if (-1 < (short)*(ushort *)&s->sy_flags) {\n    return ((uint)*(ushort *)&s->sy_flags << 0x19) >> 0x1f;\n  }\n  if (s->bsym != *(asymbol **)PTR_reg_section_000b5da4) {\n    return 0;\n  }\n  return ((uint)*(ushort *)&((s->sy_value).X_op_symbol)->sy_flags << 0x19) >> 0x1f;\n}\n\n" (function_definition "int S_IS_WEAKREFR(symbolS *s)\n\n{\n  if (-1 < (short)*(ushort *)&s->sy_flags) {\n    return ((uint)*(ushort *)&s->sy_flags << 0x19) >> 0x1f;\n  }\n  if (s->bsym != *(asymbol **)PTR_reg_section_000b5da4) {\n    return 0;\n  }\n  return ((uint)*(ushort *)&((s->sy_value).X_op_symbol)->sy_flags << 0x19) >> 0x1f;\n}" primitive_type (function_declarator "S_IS_WEAKREFR(symbolS *s)" identifier (parameter_list "(symbolS *s)" ( (parameter_declaration "symbolS *s" type_identifier (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  if (-1 < (short)*(ushort *)&s->sy_flags) {\n    return ((uint)*(ushort *)&s->sy_flags << 0x19) >> 0x1f;\n  }\n  if (s->bsym != *(asymbol **)PTR_reg_section_000b5da4) {\n    return 0;\n  }\n  return ((uint)*(ushort *)&((s->sy_value).X_op_symbol)->sy_flags << 0x19) >> 0x1f;\n}" { (if_statement "if (-1 < (short)*(ushort *)&s->sy_flags) {\n    return ((uint)*(ushort *)&s->sy_flags << 0x19) >> 0x1f;\n  }" if (parenthesized_expression "(-1 < (short)*(ushort *)&s->sy_flags)" ( (binary_expression "-1 < (short)*(ushort *)&s->sy_flags" number_literal < (cast_expression "(short)*(ushort *)&s->sy_flags" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (pointer_expression "*(ushort *)&s->sy_flags" * (cast_expression "(ushort *)&s->sy_flags" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s->sy_flags" & (field_expression "s->sy_flags" identifier -> field_identifier)))))) )) (compound_statement "{\n    return ((uint)*(ushort *)&s->sy_flags << 0x19) >> 0x1f;\n  }" { (return_statement "return ((uint)*(ushort *)&s->sy_flags << 0x19) >> 0x1f;" return (binary_expression "((uint)*(ushort *)&s->sy_flags << 0x19) >> 0x1f" (parenthesized_expression "((uint)*(ushort *)&s->sy_flags << 0x19)" ( (binary_expression "(uint)*(ushort *)&s->sy_flags << 0x19" (binary_expression "(uint)*(ushort *)&s->sy_flags" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)&s->sy_flags" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s->sy_flags" & (field_expression "s->sy_flags" identifier -> field_identifier)))) << number_literal) )) >> number_literal) ;) })) (if_statement "if (s->bsym != *(asymbol **)PTR_reg_section_000b5da4) {\n    return 0;\n  }" if (parenthesized_expression "(s->bsym != *(asymbol **)PTR_reg_section_000b5da4)" ( (binary_expression "s->bsym != *(asymbol **)PTR_reg_section_000b5da4" (field_expression "s->bsym" identifier -> field_identifier) != (pointer_expression "*(asymbol **)PTR_reg_section_000b5da4" * (cast_expression "(asymbol **)PTR_reg_section_000b5da4" ( (type_descriptor "asymbol **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return ((uint)*(ushort *)&((s->sy_value).X_op_symbol)->sy_flags << 0x19) >> 0x1f;" return (binary_expression "((uint)*(ushort *)&((s->sy_value).X_op_symbol)->sy_flags << 0x19) >> 0x1f" (parenthesized_expression "((uint)*(ushort *)&((s->sy_value).X_op_symbol)->sy_flags << 0x19)" ( (binary_expression "(uint)*(ushort *)&((s->sy_value).X_op_symbol)->sy_flags << 0x19" (binary_expression "(uint)*(ushort *)&((s->sy_value).X_op_symbol)->sy_flags" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)&((s->sy_value).X_op_symbol)->sy_flags" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&((s->sy_value).X_op_symbol)->sy_flags" & (field_expression "((s->sy_value).X_op_symbol)->sy_flags" (parenthesized_expression "((s->sy_value).X_op_symbol)" ( (field_expression "(s->sy_value).X_op_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier)))) << number_literal) )) >> number_literal) ;) })))
(translation_unit "uint S_IS_WEAKREFR(ushort *param_1)\n\n{\n  if (-1 < (short)*param_1) {\n    return ((uint)*param_1 << 0x19) >> 0x1f;\n  }\n  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    return 0;\n  }\n  return ((uint)**(ushort **)(param_1 + 6) << 0x19) >> 0x1f;\n}\n\n" (function_definition "uint S_IS_WEAKREFR(ushort *param_1)\n\n{\n  if (-1 < (short)*param_1) {\n    return ((uint)*param_1 << 0x19) >> 0x1f;\n  }\n  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    return 0;\n  }\n  return ((uint)**(ushort **)(param_1 + 6) << 0x19) >> 0x1f;\n}" type_identifier (function_declarator "S_IS_WEAKREFR(ushort *param_1)" identifier (parameter_list "(ushort *param_1)" ( (parameter_declaration "ushort *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (-1 < (short)*param_1) {\n    return ((uint)*param_1 << 0x19) >> 0x1f;\n  }\n  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    return 0;\n  }\n  return ((uint)**(ushort **)(param_1 + 6) << 0x19) >> 0x1f;\n}" { (if_statement "if (-1 < (short)*param_1) {\n    return ((uint)*param_1 << 0x19) >> 0x1f;\n  }" if (parenthesized_expression "(-1 < (short)*param_1)" ( (binary_expression "-1 < (short)*param_1" number_literal < (cast_expression "(short)*param_1" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (pointer_expression "*param_1" * identifier))) )) (compound_statement "{\n    return ((uint)*param_1 << 0x19) >> 0x1f;\n  }" { (return_statement "return ((uint)*param_1 << 0x19) >> 0x1f;" return (binary_expression "((uint)*param_1 << 0x19) >> 0x1f" (parenthesized_expression "((uint)*param_1 << 0x19)" ( (binary_expression "(uint)*param_1 << 0x19" (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier) << number_literal) )) >> number_literal) ;) })) (if_statement "if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4)" ( (binary_expression "*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4" (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) != (pointer_expression "*(int *)PTR_reg_section_000b5da4" * (cast_expression "(int *)PTR_reg_section_000b5da4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return ((uint)**(ushort **)(param_1 + 6) << 0x19) >> 0x1f;" return (binary_expression "((uint)**(ushort **)(param_1 + 6) << 0x19) >> 0x1f" (parenthesized_expression "((uint)**(ushort **)(param_1 + 6) << 0x19)" ( (binary_expression "(uint)**(ushort **)(param_1 + 6) << 0x19" (binary_expression "(uint)**(ushort **)(param_1 + 6)" (parenthesized_expression "(uint)" ( identifier )) * (pointer_expression "*(ushort **)(param_1 + 6)" * (cast_expression "(ushort **)(param_1 + 6)" ( (type_descriptor "ushort **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) ))))) << number_literal) )) >> number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (pointer_expression * IDENT))) )) (compound_statement { (return_statement return (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) << LIT) )) >> LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return LIT ;) })) (return_statement return (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) << LIT) )) >> LIT) ;) })))
(function_definition "uint S_IS_WEAKREFR(ushort *param_1)\n\n{\n  if (-1 < (short)*param_1) {\n    return ((uint)*param_1 << 0x19) >> 0x1f;\n  }\n  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    return 0;\n  }\n  return ((uint)**(ushort **)(param_1 + 6) << 0x19) >> 0x1f;\n}" (type_identifier "uint") (function_declarator "S_IS_WEAKREFR(ushort *param_1)" (identifier "S_IS_WEAKREFR") (parameter_list "(ushort *param_1)" (( "(") (parameter_declaration "ushort *param_1" (type_identifier "ushort") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if (-1 < (short)*param_1) {\n    return ((uint)*param_1 << 0x19) >> 0x1f;\n  }\n  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    return 0;\n  }\n  return ((uint)**(ushort **)(param_1 + 6) << 0x19) >> 0x1f;\n}" ({ "{") (if_statement "if (-1 < (short)*param_1) {\n    return ((uint)*param_1 << 0x19) >> 0x1f;\n  }" (if "if") (parenthesized_expression "(-1 < (short)*param_1)" (( "(") (binary_expression "-1 < (short)*param_1" (number_literal "-1") (< "<") (cast_expression "(short)*param_1" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) () ")")) (compound_statement "{\n    return ((uint)*param_1 << 0x19) >> 0x1f;\n  }" ({ "{") (return_statement "return ((uint)*param_1 << 0x19) >> 0x1f;" (return "return") (binary_expression "((uint)*param_1 << 0x19) >> 0x1f" (parenthesized_expression "((uint)*param_1 << 0x19)" (( "(") (binary_expression "(uint)*param_1 << 0x19" (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_1")) (<< "<<") (number_literal "0x19")) () ")")) (>> ">>") (number_literal "0x1f")) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4)" (( "(") (binary_expression "*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4" (pointer_expression "*(int *)(param_1 + 2)" (* "*") (cast_expression "(int *)(param_1 + 2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (!= "!=") (pointer_expression "*(int *)PTR_reg_section_000b5da4" (* "*") (cast_expression "(int *)PTR_reg_section_000b5da4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_reg_section_000b5da4")))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return ((uint)**(ushort **)(param_1 + 6) << 0x19) >> 0x1f;" (return "return") (binary_expression "((uint)**(ushort **)(param_1 + 6) << 0x19) >> 0x1f" (parenthesized_expression "((uint)**(ushort **)(param_1 + 6) << 0x19)" (( "(") (binary_expression "(uint)**(ushort **)(param_1 + 6) << 0x19" (binary_expression "(uint)**(ushort **)(param_1 + 6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (pointer_expression "*(ushort **)(param_1 + 6)" (* "*") (cast_expression "(ushort **)(param_1 + 6)" (( "(") (type_descriptor "ushort **" (type_identifier "ushort") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")"))))) (<< "<<") (number_literal "0x19")) () ")")) (>> ">>") (number_literal "0x1f")) (; ";")) (} "}")))

int function_1(type_1 *s)

{
  if (-1 < (short)*(type_2 *)&s->sy_flags) {
    return ((uint)*(type_2 *)&s->sy_flags << 0x19) >> 0x1f;
  }
  if (s->bsym != *(type_3 **)PTR_reg_section_000b5da4) {
    return 0;
  }
  return ((uint)*(type_2 *)&((s->sy_value).X_op_symbol)->sy_flags << 0x19) >> 0x1f;
}


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

uint MASKED(ushort *param_1)

{
  if (-1 < (short)*param_1) {
    return ((uint)*param_1 << 0x19) >> 0x1f;
  }
  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {
    return 0;
  }
  return ((uint)**(ushort **)(param_1 + 6) << 0x19) >> 0x1f;
}

