
void S_SET_FORWARD_REF(symbolS *s)

{
  symbolS *psVar1;
  
  if (-1 < *(short *)&s->sy_flags) {
    *(ushort *)&s->sy_flags = *(ushort *)&s->sy_flags & 0xfeff | 0x100;
    return;
  }
  if (s->bsym != *(asymbol **)PTR_reg_section_000b5da4) {
    psVar1 = local_symbol_convert((local_symbol *)s);
    *(ushort *)&psVar1->sy_flags = *(ushort *)&psVar1->sy_flags & 0xfeff | 0x100;
    return;
  }
  psVar1 = (s->sy_value).X_op_symbol;
  *(ushort *)&psVar1->sy_flags = *(ushort *)&psVar1->sy_flags & 0xfeff | 0x100;
  return;
}



void S_SET_FORWARD_REF(ushort *param_1)

{
  ushort *puVar1;
  
  if (-1 < (short)*param_1) {
    *param_1 = *param_1 & 0xfeff | 0x100;
    return;
  }
  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {
    puVar1 = (ushort *)FUN_0004e6c0();
    *puVar1 = *puVar1 & 0xfeff | 0x100;
    return;
  }
  **(ushort **)(param_1 + 6) = **(ushort **)(param_1 + 6) & 0xfeff | 0x100;
  return;
}


lui gp,0x7
addiu gp,gp,-0x3950
addu gp,gp,t9
lh v1,0x0(a0)
bltz v1,0x000515fc
_or v0,a0,zero
lhu v1,0x0(a0)
li a0,0x1
ins v1,a0,0x8,0x1
jr ra
_sh v1,0x0(v0)
lw v1,-0x7edc(gp)
addiu sp,sp,-0x20
lw a1,0x4(a0)
sw gp,0x10(sp)
sw ra,0x1c(sp)
lw v1,0x0(v1)
beq a1,v1,0x00051644
_lw t9,-0x79d8(gp)
addiu t9,t9,-0x1940
bal 0x0004e6c0
_nop
li a0,0x1
lhu v1,0x0(v0)
ins v1,a0,0x8,0x1
sh v1,0x0(v0)
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
lw v0,0xc(a0)
li a0,0x1
lhu v1,0x0(v0)
ins v1,a0,0x8,0x1
sh v1,0x0(v0)
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void S_SET_FORWARD_REF(ushort *param_1)\n\n{\n  ushort *puVar1;\n  \n  if (-1 < (short)*param_1) {\n    *param_1 = *param_1 & 0xfeff | 0x100;\n    return;\n  }\n  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    puVar1 = (ushort *)FUN_0004e6c0();\n    *puVar1 = *puVar1 & 0xfeff | 0x100;\n    return;\n  }\n  **(ushort **)(param_1 + 6) = **(ushort **)(param_1 + 6) & 0xfeff | 0x100;\n  return;\n}\n\n" (function_definition "void S_SET_FORWARD_REF(ushort *param_1)\n\n{\n  ushort *puVar1;\n  \n  if (-1 < (short)*param_1) {\n    *param_1 = *param_1 & 0xfeff | 0x100;\n    return;\n  }\n  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    puVar1 = (ushort *)FUN_0004e6c0();\n    *puVar1 = *puVar1 & 0xfeff | 0x100;\n    return;\n  }\n  **(ushort **)(param_1 + 6) = **(ushort **)(param_1 + 6) & 0xfeff | 0x100;\n  return;\n}" primitive_type (function_declarator "S_SET_FORWARD_REF(ushort *param_1)" identifier (parameter_list "(ushort *param_1)" ( (parameter_declaration "ushort *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  ushort *puVar1;\n  \n  if (-1 < (short)*param_1) {\n    *param_1 = *param_1 & 0xfeff | 0x100;\n    return;\n  }\n  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    puVar1 = (ushort *)FUN_0004e6c0();\n    *puVar1 = *puVar1 & 0xfeff | 0x100;\n    return;\n  }\n  **(ushort **)(param_1 + 6) = **(ushort **)(param_1 + 6) & 0xfeff | 0x100;\n  return;\n}" { (declaration "ushort *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (-1 < (short)*param_1) {\n    *param_1 = *param_1 & 0xfeff | 0x100;\n    return;\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    *param_1 = *param_1 & 0xfeff | 0x100;\n    return;\n  }" { (expression_statement "*param_1 = *param_1 & 0xfeff | 0x100;" (assignment_expression "*param_1 = *param_1 & 0xfeff | 0x100" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 & 0xfeff | 0x100" (binary_expression "*param_1 & 0xfeff" (pointer_expression "*param_1" * identifier) & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    puVar1 = (ushort *)FUN_0004e6c0();\n    *puVar1 = *puVar1 & 0xfeff | 0x100;\n    return;\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    puVar1 = (ushort *)FUN_0004e6c0();\n    *puVar1 = *puVar1 & 0xfeff | 0x100;\n    return;\n  }" { (expression_statement "puVar1 = (ushort *)FUN_0004e6c0();" (assignment_expression "puVar1 = (ushort *)FUN_0004e6c0()" identifier = (cast_expression "(ushort *)FUN_0004e6c0()" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004e6c0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*puVar1 = *puVar1 & 0xfeff | 0x100;" (assignment_expression "*puVar1 = *puVar1 & 0xfeff | 0x100" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 & 0xfeff | 0x100" (binary_expression "*puVar1 & 0xfeff" (pointer_expression "*puVar1" * identifier) & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "**(ushort **)(param_1 + 6) = **(ushort **)(param_1 + 6) & 0xfeff | 0x100;" (assignment_expression "**(ushort **)(param_1 + 6) = **(ushort **)(param_1 + 6) & 0xfeff | 0x100" (pointer_expression "**(ushort **)(param_1 + 6)" * (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) ))))) = (binary_expression "**(ushort **)(param_1 + 6) & 0xfeff | 0x100" (binary_expression "**(ushort **)(param_1 + 6) & 0xfeff" (pointer_expression "**(ushort **)(param_1 + 6)" * (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)) ;) (return_statement "return;" return ;) })))
(translation_unit "void S_SET_FORWARD_REF(symbolS *s)\n\n{\n  symbolS *psVar1;\n  \n  if (-1 < *(short *)&s->sy_flags) {\n    *(ushort *)&s->sy_flags = *(ushort *)&s->sy_flags & 0xfeff | 0x100;\n    return;\n  }\n  if (s->bsym != *(asymbol **)PTR_reg_section_000b5da4) {\n    psVar1 = local_symbol_convert((local_symbol *)s);\n    *(ushort *)&psVar1->sy_flags = *(ushort *)&psVar1->sy_flags & 0xfeff | 0x100;\n    return;\n  }\n  psVar1 = (s->sy_value).X_op_symbol;\n  *(ushort *)&psVar1->sy_flags = *(ushort *)&psVar1->sy_flags & 0xfeff | 0x100;\n  return;\n}\n\n" (function_definition "void S_SET_FORWARD_REF(symbolS *s)\n\n{\n  symbolS *psVar1;\n  \n  if (-1 < *(short *)&s->sy_flags) {\n    *(ushort *)&s->sy_flags = *(ushort *)&s->sy_flags & 0xfeff | 0x100;\n    return;\n  }\n  if (s->bsym != *(asymbol **)PTR_reg_section_000b5da4) {\n    psVar1 = local_symbol_convert((local_symbol *)s);\n    *(ushort *)&psVar1->sy_flags = *(ushort *)&psVar1->sy_flags & 0xfeff | 0x100;\n    return;\n  }\n  psVar1 = (s->sy_value).X_op_symbol;\n  *(ushort *)&psVar1->sy_flags = *(ushort *)&psVar1->sy_flags & 0xfeff | 0x100;\n  return;\n}" primitive_type (function_declarator "S_SET_FORWARD_REF(symbolS *s)" identifier (parameter_list "(symbolS *s)" ( (parameter_declaration "symbolS *s" type_identifier (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  symbolS *psVar1;\n  \n  if (-1 < *(short *)&s->sy_flags) {\n    *(ushort *)&s->sy_flags = *(ushort *)&s->sy_flags & 0xfeff | 0x100;\n    return;\n  }\n  if (s->bsym != *(asymbol **)PTR_reg_section_000b5da4) {\n    psVar1 = local_symbol_convert((local_symbol *)s);\n    *(ushort *)&psVar1->sy_flags = *(ushort *)&psVar1->sy_flags & 0xfeff | 0x100;\n    return;\n  }\n  psVar1 = (s->sy_value).X_op_symbol;\n  *(ushort *)&psVar1->sy_flags = *(ushort *)&psVar1->sy_flags & 0xfeff | 0x100;\n  return;\n}" { (declaration "symbolS *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (if_statement "if (-1 < *(short *)&s->sy_flags) {\n    *(ushort *)&s->sy_flags = *(ushort *)&s->sy_flags & 0xfeff | 0x100;\n    return;\n  }" if (parenthesized_expression "(-1 < *(short *)&s->sy_flags)" ( (binary_expression "-1 < *(short *)&s->sy_flags" number_literal < (pointer_expression "*(short *)&s->sy_flags" * (cast_expression "(short *)&s->sy_flags" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s->sy_flags" & (field_expression "s->sy_flags" identifier -> field_identifier))))) )) (compound_statement "{\n    *(ushort *)&s->sy_flags = *(ushort *)&s->sy_flags & 0xfeff | 0x100;\n    return;\n  }" { (expression_statement "*(ushort *)&s->sy_flags = *(ushort *)&s->sy_flags & 0xfeff | 0x100;" (assignment_expression "*(ushort *)&s->sy_flags = *(ushort *)&s->sy_flags & 0xfeff | 0x100" (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)))) = (binary_expression "*(ushort *)&s->sy_flags & 0xfeff | 0x100" (binary_expression "*(ushort *)&s->sy_flags & 0xfeff" (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)))) & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if (s->bsym != *(asymbol **)PTR_reg_section_000b5da4) {\n    psVar1 = local_symbol_convert((local_symbol *)s);\n    *(ushort *)&psVar1->sy_flags = *(ushort *)&psVar1->sy_flags & 0xfeff | 0x100;\n    return;\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    psVar1 = local_symbol_convert((local_symbol *)s);\n    *(ushort *)&psVar1->sy_flags = *(ushort *)&psVar1->sy_flags & 0xfeff | 0x100;\n    return;\n  }" { (expression_statement "psVar1 = local_symbol_convert((local_symbol *)s);" (assignment_expression "psVar1 = local_symbol_convert((local_symbol *)s)" identifier = (call_expression "local_symbol_convert((local_symbol *)s)" identifier (argument_list "((local_symbol *)s)" ( (cast_expression "(local_symbol *)s" ( (type_descriptor "local_symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "*(ushort *)&psVar1->sy_flags = *(ushort *)&psVar1->sy_flags & 0xfeff | 0x100;" (assignment_expression "*(ushort *)&psVar1->sy_flags = *(ushort *)&psVar1->sy_flags & 0xfeff | 0x100" (pointer_expression "*(ushort *)&psVar1->sy_flags" * (cast_expression "(ushort *)&psVar1->sy_flags" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&psVar1->sy_flags" & (field_expression "psVar1->sy_flags" identifier -> field_identifier)))) = (binary_expression "*(ushort *)&psVar1->sy_flags & 0xfeff | 0x100" (binary_expression "*(ushort *)&psVar1->sy_flags & 0xfeff" (pointer_expression "*(ushort *)&psVar1->sy_flags" * (cast_expression "(ushort *)&psVar1->sy_flags" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&psVar1->sy_flags" & (field_expression "psVar1->sy_flags" identifier -> field_identifier)))) & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "psVar1 = (s->sy_value).X_op_symbol;" (assignment_expression "psVar1 = (s->sy_value).X_op_symbol" identifier = (field_expression "(s->sy_value).X_op_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "*(ushort *)&psVar1->sy_flags = *(ushort *)&psVar1->sy_flags & 0xfeff | 0x100;" (assignment_expression "*(ushort *)&psVar1->sy_flags = *(ushort *)&psVar1->sy_flags & 0xfeff | 0x100" (pointer_expression "*(ushort *)&psVar1->sy_flags" * (cast_expression "(ushort *)&psVar1->sy_flags" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&psVar1->sy_flags" & (field_expression "psVar1->sy_flags" identifier -> field_identifier)))) = (binary_expression "*(ushort *)&psVar1->sy_flags & 0xfeff | 0x100" (binary_expression "*(ushort *)&psVar1->sy_flags & 0xfeff" (pointer_expression "*(ushort *)&psVar1->sy_flags" * (cast_expression "(ushort *)&psVar1->sy_flags" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&psVar1->sy_flags" & (field_expression "psVar1->sy_flags" identifier -> field_identifier)))) & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void S_SET_FORWARD_REF(ushort *param_1)\n\n{\n  ushort *puVar1;\n  \n  if (-1 < (short)*param_1) {\n    *param_1 = *param_1 & 0xfeff | 0x100;\n    return;\n  }\n  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    puVar1 = (ushort *)FUN_0004e6c0();\n    *puVar1 = *puVar1 & 0xfeff | 0x100;\n    return;\n  }\n  **(ushort **)(param_1 + 6) = **(ushort **)(param_1 + 6) & 0xfeff | 0x100;\n  return;\n}\n\n" (function_definition "void S_SET_FORWARD_REF(ushort *param_1)\n\n{\n  ushort *puVar1;\n  \n  if (-1 < (short)*param_1) {\n    *param_1 = *param_1 & 0xfeff | 0x100;\n    return;\n  }\n  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    puVar1 = (ushort *)FUN_0004e6c0();\n    *puVar1 = *puVar1 & 0xfeff | 0x100;\n    return;\n  }\n  **(ushort **)(param_1 + 6) = **(ushort **)(param_1 + 6) & 0xfeff | 0x100;\n  return;\n}" primitive_type (function_declarator "S_SET_FORWARD_REF(ushort *param_1)" identifier (parameter_list "(ushort *param_1)" ( (parameter_declaration "ushort *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  ushort *puVar1;\n  \n  if (-1 < (short)*param_1) {\n    *param_1 = *param_1 & 0xfeff | 0x100;\n    return;\n  }\n  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    puVar1 = (ushort *)FUN_0004e6c0();\n    *puVar1 = *puVar1 & 0xfeff | 0x100;\n    return;\n  }\n  **(ushort **)(param_1 + 6) = **(ushort **)(param_1 + 6) & 0xfeff | 0x100;\n  return;\n}" { (declaration "ushort *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (-1 < (short)*param_1) {\n    *param_1 = *param_1 & 0xfeff | 0x100;\n    return;\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    *param_1 = *param_1 & 0xfeff | 0x100;\n    return;\n  }" { (expression_statement "*param_1 = *param_1 & 0xfeff | 0x100;" (assignment_expression "*param_1 = *param_1 & 0xfeff | 0x100" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 & 0xfeff | 0x100" (binary_expression "*param_1 & 0xfeff" (pointer_expression "*param_1" * identifier) & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (if_statement "if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    puVar1 = (ushort *)FUN_0004e6c0();\n    *puVar1 = *puVar1 & 0xfeff | 0x100;\n    return;\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    puVar1 = (ushort *)FUN_0004e6c0();\n    *puVar1 = *puVar1 & 0xfeff | 0x100;\n    return;\n  }" { (expression_statement "puVar1 = (ushort *)FUN_0004e6c0();" (assignment_expression "puVar1 = (ushort *)FUN_0004e6c0()" identifier = (cast_expression "(ushort *)FUN_0004e6c0()" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004e6c0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*puVar1 = *puVar1 & 0xfeff | 0x100;" (assignment_expression "*puVar1 = *puVar1 & 0xfeff | 0x100" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 & 0xfeff | 0x100" (binary_expression "*puVar1 & 0xfeff" (pointer_expression "*puVar1" * identifier) & number_literal) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "**(ushort **)(param_1 + 6) = **(ushort **)(param_1 + 6) & 0xfeff | 0x100;" (assignment_expression "**(ushort **)(param_1 + 6) = **(ushort **)(param_1 + 6) & 0xfeff | 0x100" (pointer_expression "**(ushort **)(param_1 + 6)" * (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) ))))) = (binary_expression "**(ushort **)(param_1 + 6) & 0xfeff | 0x100" (binary_expression "**(ushort **)(param_1 + 6) & 0xfeff" (pointer_expression "**(ushort **)(param_1 + 6)" * (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)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (pointer_expression * IDENT))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (pointer_expression * IDENT) & LIT) | LIT)) ;) (return_statement return ;) })) (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 { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (pointer_expression * IDENT) & LIT) | LIT)) ;) (return_statement return ;) })) (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) ))))) = (binary_expression (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) & LIT) | LIT)) ;) (return_statement return ;) })))
(function_definition "void S_SET_FORWARD_REF(ushort *param_1)\n\n{\n  ushort *puVar1;\n  \n  if (-1 < (short)*param_1) {\n    *param_1 = *param_1 & 0xfeff | 0x100;\n    return;\n  }\n  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    puVar1 = (ushort *)FUN_0004e6c0();\n    *puVar1 = *puVar1 & 0xfeff | 0x100;\n    return;\n  }\n  **(ushort **)(param_1 + 6) = **(ushort **)(param_1 + 6) & 0xfeff | 0x100;\n  return;\n}" (primitive_type "void") (function_declarator "S_SET_FORWARD_REF(ushort *param_1)" (identifier "S_SET_FORWARD_REF") (parameter_list "(ushort *param_1)" (( "(") (parameter_declaration "ushort *param_1" (type_identifier "ushort") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  ushort *puVar1;\n  \n  if (-1 < (short)*param_1) {\n    *param_1 = *param_1 & 0xfeff | 0x100;\n    return;\n  }\n  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    puVar1 = (ushort *)FUN_0004e6c0();\n    *puVar1 = *puVar1 & 0xfeff | 0x100;\n    return;\n  }\n  **(ushort **)(param_1 + 6) = **(ushort **)(param_1 + 6) & 0xfeff | 0x100;\n  return;\n}" ({ "{") (declaration "ushort *puVar1;" (type_identifier "ushort") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (if_statement "if (-1 < (short)*param_1) {\n    *param_1 = *param_1 & 0xfeff | 0x100;\n    return;\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    *param_1 = *param_1 & 0xfeff | 0x100;\n    return;\n  }" ({ "{") (expression_statement "*param_1 = *param_1 & 0xfeff | 0x100;" (assignment_expression "*param_1 = *param_1 & 0xfeff | 0x100" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "*param_1 & 0xfeff | 0x100" (binary_expression "*param_1 & 0xfeff" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "0xfeff")) (| "|") (number_literal "0x100"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {\n    puVar1 = (ushort *)FUN_0004e6c0();\n    *puVar1 = *puVar1 & 0xfeff | 0x100;\n    return;\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    puVar1 = (ushort *)FUN_0004e6c0();\n    *puVar1 = *puVar1 & 0xfeff | 0x100;\n    return;\n  }" ({ "{") (expression_statement "puVar1 = (ushort *)FUN_0004e6c0();" (assignment_expression "puVar1 = (ushort *)FUN_0004e6c0()" (identifier "puVar1") (= "=") (cast_expression "(ushort *)FUN_0004e6c0()" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004e6c0()" (identifier "FUN_0004e6c0") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar1 = *puVar1 & 0xfeff | 0x100;" (assignment_expression "*puVar1 = *puVar1 & 0xfeff | 0x100" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (binary_expression "*puVar1 & 0xfeff | 0x100" (binary_expression "*puVar1 & 0xfeff" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (& "&") (number_literal "0xfeff")) (| "|") (number_literal "0x100"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "**(ushort **)(param_1 + 6) = **(ushort **)(param_1 + 6) & 0xfeff | 0x100;" (assignment_expression "**(ushort **)(param_1 + 6) = **(ushort **)(param_1 + 6) & 0xfeff | 0x100" (pointer_expression "**(ushort **)(param_1 + 6)" (* "*") (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")) () ")"))))) (= "=") (binary_expression "**(ushort **)(param_1 + 6) & 0xfeff | 0x100" (binary_expression "**(ushort **)(param_1 + 6) & 0xfeff" (pointer_expression "**(ushort **)(param_1 + 6)" (* "*") (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 "0xfeff")) (| "|") (number_literal "0x100"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *s)

{
  type_1 *psVar1;
  
  if (-1 < *(short *)&s->sy_flags) {
    *(type_2 *)&s->sy_flags = *(type_2 *)&s->sy_flags & 0xfeff | 0x100;
    return;
  }
  if (s->bsym != *(type_3 **)PTR_reg_section_000b5da4) {
    psVar1 = var_1((type_4 *)s);
    *(type_2 *)&psVar1->sy_flags = *(type_2 *)&psVar1->sy_flags & 0xfeff | 0x100;
    return;
  }
  psVar1 = (s->sy_value).X_op_symbol;
  *(type_2 *)&psVar1->sy_flags = *(type_2 *)&psVar1->sy_flags & 0xfeff | 0x100;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (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 (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) right: (number_literal)))) (return_statement))) (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 (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) right: (number_literal)))) (return_statement))) (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: (binary_expression left: (binary_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)) right: (number_literal)))) (return_statement))))

void MASKED(ushort *param_1)

{
  ushort *puVar1;
  
  if (-1 < (short)*param_1) {
    *param_1 = *param_1 & 0xfeff | 0x100;
    return;
  }
  if (*(int *)(param_1 + 2) != *(int *)PTR_reg_section_000b5da4) {
    puVar1 = (ushort *)FUN_0004e6c0();
    *puVar1 = *puVar1 & 0xfeff | 0x100;
    return;
  }
  **(ushort **)(param_1 + 6) = **(ushort **)(param_1 + 6) & 0xfeff | 0x100;
  return;
}

