
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void prepare_for_display(void)

{
  int iVar1;
  
  if (*PTR_inhelp_000779c0 == '\0') {
    (*(code *)PTR_titlebar_00077664)(0);
  }
  iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);
  if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&
     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {
    precalc_multicolorinfo();
  }
  *PTR_have_palette_000779b0 = 0;
  *PTR_refresh_needed_000775a4 = 1;
  return;
}



void prepare_for_display(void)

{
  int iVar1;
  
  if (*PTR_inhelp_000779c0 == '\0') {
    (*(code *)PTR_titlebar_00077664)(0);
  }
  iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);
  if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&
     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {
    precalc_multicolorinfo();
  }
  *PTR_have_palette_000779b0 = 0;
  *PTR_refresh_needed_000775a4 = 1;
  return;
}


lui gp,0x6
addiu gp,gp,-0x254
addu gp,gp,t9
lw v0,-0x7b60(gp)
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
lbu v0,0x0(v0)
beq v0,zero,0x0001f7ec
_lw t9,-0x7ebc(gp)
lw v0,-0x7fb4(gp)
lw v1,0x0(v0)
lw v0,0x54(v1)
beq v0,zero,0x0001f7cc
_nop
lw v0,0x1c(v0)
blez v0,0x0001f7d0
_lw v0,-0x7b70(gp)
lw v0,0x4(v1)
lw v0,0x10(v0)
beq v0,zero,0x0001f7fc
_lw t9,-0x7b04(gp)
lw v0,-0x7b70(gp)
li v1,0x1
lw ra,0x1c(sp)
sb zero,0x0(v0)
lw v0,-0x7f7c(gp)
sb v1,0x0(v0)
jr ra
_addiu sp,sp,0x20
jalr t9
_or a0,zero,zero
b 0x0001f79c
_lw gp,0x10(sp)
bal 0x0001d830
_nop
b 0x0001f7cc
_lw gp,0x10(sp)
(translation_unit "void prepare_for_display(void)\n\n{\n  int iVar1;\n  \n  if (*PTR_inhelp_000779c0 == '\0') {\n    (*(code *)PTR_titlebar_00077664)(0);\n  }\n  iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);\n  if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {\n    precalc_multicolorinfo();\n  }\n  *PTR_have_palette_000779b0 = 0;\n  *PTR_refresh_needed_000775a4 = 1;\n  return;\n}\n\n" (function_definition "void prepare_for_display(void)\n\n{\n  int iVar1;\n  \n  if (*PTR_inhelp_000779c0 == '\0') {\n    (*(code *)PTR_titlebar_00077664)(0);\n  }\n  iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);\n  if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {\n    precalc_multicolorinfo();\n  }\n  *PTR_have_palette_000779b0 = 0;\n  *PTR_refresh_needed_000775a4 = 1;\n  return;\n}" primitive_type (function_declarator "prepare_for_display(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*PTR_inhelp_000779c0 == '\0') {\n    (*(code *)PTR_titlebar_00077664)(0);\n  }\n  iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);\n  if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {\n    precalc_multicolorinfo();\n  }\n  *PTR_have_palette_000779b0 = 0;\n  *PTR_refresh_needed_000775a4 = 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*PTR_inhelp_000779c0 == '\0') {\n    (*(code *)PTR_titlebar_00077664)(0);\n  }" if (parenthesized_expression "(*PTR_inhelp_000779c0 == '\0')" ( (binary_expression "*PTR_inhelp_000779c0 == '\0'" (pointer_expression "*PTR_inhelp_000779c0" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    (*(code *)PTR_titlebar_00077664)(0);\n  }" { (expression_statement "(*(code *)PTR_titlebar_00077664)(0);" (call_expression "(*(code *)PTR_titlebar_00077664)(0)" (parenthesized_expression "(*(code *)PTR_titlebar_00077664)" ( (pointer_expression "*(code *)PTR_titlebar_00077664" * (cast_expression "(code *)PTR_titlebar_00077664" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal ))) ;) })) (expression_statement "iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);" (assignment_expression "iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54)" identifier = (pointer_expression "*(int *)(*(int *)PTR_openfile_0007756c + 0x54)" * (cast_expression "(int *)(*(int *)PTR_openfile_0007756c + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_openfile_0007756c + 0x54)" ( (binary_expression "*(int *)PTR_openfile_0007756c + 0x54" (pointer_expression "*(int *)PTR_openfile_0007756c" * (cast_expression "(int *)PTR_openfile_0007756c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (if_statement "if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {\n    precalc_multicolorinfo();\n  }" if (parenthesized_expression "(((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0))" ( (binary_expression "((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)" (parenthesized_expression "((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c)))" ( (binary_expression "(iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(0 < *(int *)(iVar1 + 0x1c))" ( (binary_expression "0 < *(int *)(iVar1 + 0x1c)" number_literal < (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) ))))) ))) )) && (parenthesized_expression "(*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)" ( (binary_expression "*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0" (pointer_expression "*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10)" * (cast_expression "(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10)" ( (binary_expression "*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10" (pointer_expression "*(int *)(*(int *)PTR_openfile_0007756c + 4)" * (cast_expression "(int *)(*(int *)PTR_openfile_0007756c + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_openfile_0007756c + 4)" ( (binary_expression "*(int *)PTR_openfile_0007756c + 4" (pointer_expression "*(int *)PTR_openfile_0007756c" * (cast_expression "(int *)PTR_openfile_0007756c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    precalc_multicolorinfo();\n  }" { (expression_statement "precalc_multicolorinfo();" (call_expression "precalc_multicolorinfo()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*PTR_have_palette_000779b0 = 0;" (assignment_expression "*PTR_have_palette_000779b0 = 0" (pointer_expression "*PTR_have_palette_000779b0" * identifier) = number_literal) ;) (expression_statement "*PTR_refresh_needed_000775a4 = 1;" (assignment_expression "*PTR_refresh_needed_000775a4 = 1" (pointer_expression "*PTR_refresh_needed_000775a4" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid prepare_for_display(void)\n\n{\n  int iVar1;\n  \n  if (*PTR_inhelp_000779c0 == '\0') {\n    (*(code *)PTR_titlebar_00077664)(0);\n  }\n  iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);\n  if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {\n    precalc_multicolorinfo();\n  }\n  *PTR_have_palette_000779b0 = 0;\n  *PTR_refresh_needed_000775a4 = 1;\n  return;\n}\n\n" comment (function_definition "void prepare_for_display(void)\n\n{\n  int iVar1;\n  \n  if (*PTR_inhelp_000779c0 == '\0') {\n    (*(code *)PTR_titlebar_00077664)(0);\n  }\n  iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);\n  if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {\n    precalc_multicolorinfo();\n  }\n  *PTR_have_palette_000779b0 = 0;\n  *PTR_refresh_needed_000775a4 = 1;\n  return;\n}" primitive_type (function_declarator "prepare_for_display(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*PTR_inhelp_000779c0 == '\0') {\n    (*(code *)PTR_titlebar_00077664)(0);\n  }\n  iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);\n  if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {\n    precalc_multicolorinfo();\n  }\n  *PTR_have_palette_000779b0 = 0;\n  *PTR_refresh_needed_000775a4 = 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*PTR_inhelp_000779c0 == '\0') {\n    (*(code *)PTR_titlebar_00077664)(0);\n  }" if (parenthesized_expression "(*PTR_inhelp_000779c0 == '\0')" ( (binary_expression "*PTR_inhelp_000779c0 == '\0'" (pointer_expression "*PTR_inhelp_000779c0" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    (*(code *)PTR_titlebar_00077664)(0);\n  }" { (expression_statement "(*(code *)PTR_titlebar_00077664)(0);" (call_expression "(*(code *)PTR_titlebar_00077664)(0)" (parenthesized_expression "(*(code *)PTR_titlebar_00077664)" ( (pointer_expression "*(code *)PTR_titlebar_00077664" * (cast_expression "(code *)PTR_titlebar_00077664" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal ))) ;) })) (expression_statement "iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);" (assignment_expression "iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54)" identifier = (pointer_expression "*(int *)(*(int *)PTR_openfile_0007756c + 0x54)" * (cast_expression "(int *)(*(int *)PTR_openfile_0007756c + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_openfile_0007756c + 0x54)" ( (binary_expression "*(int *)PTR_openfile_0007756c + 0x54" (pointer_expression "*(int *)PTR_openfile_0007756c" * (cast_expression "(int *)PTR_openfile_0007756c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (if_statement "if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {\n    precalc_multicolorinfo();\n  }" if (parenthesized_expression "(((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0))" ( (binary_expression "((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)" (parenthesized_expression "((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c)))" ( (binary_expression "(iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(0 < *(int *)(iVar1 + 0x1c))" ( (binary_expression "0 < *(int *)(iVar1 + 0x1c)" number_literal < (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) ))))) ))) )) && (parenthesized_expression "(*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)" ( (binary_expression "*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0" (pointer_expression "*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10)" * (cast_expression "(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10)" ( (binary_expression "*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10" (pointer_expression "*(int *)(*(int *)PTR_openfile_0007756c + 4)" * (cast_expression "(int *)(*(int *)PTR_openfile_0007756c + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_openfile_0007756c + 4)" ( (binary_expression "*(int *)PTR_openfile_0007756c + 4" (pointer_expression "*(int *)PTR_openfile_0007756c" * (cast_expression "(int *)PTR_openfile_0007756c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    precalc_multicolorinfo();\n  }" { (expression_statement "precalc_multicolorinfo();" (call_expression "precalc_multicolorinfo()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*PTR_have_palette_000779b0 = 0;" (assignment_expression "*PTR_have_palette_000779b0 = 0" (pointer_expression "*PTR_have_palette_000779b0" * identifier) = number_literal) ;) (expression_statement "*PTR_refresh_needed_000775a4 = 1;" (assignment_expression "*PTR_refresh_needed_000775a4 = 1" (pointer_expression "*PTR_refresh_needed_000775a4" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void prepare_for_display(void)\n\n{\n  int iVar1;\n  \n  if (*PTR_inhelp_000779c0 == '\0') {\n    (*(code *)PTR_titlebar_00077664)(0);\n  }\n  iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);\n  if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {\n    precalc_multicolorinfo();\n  }\n  *PTR_have_palette_000779b0 = 0;\n  *PTR_refresh_needed_000775a4 = 1;\n  return;\n}\n\n" (function_definition "void prepare_for_display(void)\n\n{\n  int iVar1;\n  \n  if (*PTR_inhelp_000779c0 == '\0') {\n    (*(code *)PTR_titlebar_00077664)(0);\n  }\n  iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);\n  if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {\n    precalc_multicolorinfo();\n  }\n  *PTR_have_palette_000779b0 = 0;\n  *PTR_refresh_needed_000775a4 = 1;\n  return;\n}" primitive_type (function_declarator "prepare_for_display(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*PTR_inhelp_000779c0 == '\0') {\n    (*(code *)PTR_titlebar_00077664)(0);\n  }\n  iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);\n  if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {\n    precalc_multicolorinfo();\n  }\n  *PTR_have_palette_000779b0 = 0;\n  *PTR_refresh_needed_000775a4 = 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*PTR_inhelp_000779c0 == '\0') {\n    (*(code *)PTR_titlebar_00077664)(0);\n  }" if (parenthesized_expression "(*PTR_inhelp_000779c0 == '\0')" ( (binary_expression "*PTR_inhelp_000779c0 == '\0'" (pointer_expression "*PTR_inhelp_000779c0" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    (*(code *)PTR_titlebar_00077664)(0);\n  }" { (expression_statement "(*(code *)PTR_titlebar_00077664)(0);" (call_expression "(*(code *)PTR_titlebar_00077664)(0)" (parenthesized_expression "(*(code *)PTR_titlebar_00077664)" ( (pointer_expression "*(code *)PTR_titlebar_00077664" * (cast_expression "(code *)PTR_titlebar_00077664" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal ))) ;) })) (expression_statement "iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);" (assignment_expression "iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54)" identifier = (pointer_expression "*(int *)(*(int *)PTR_openfile_0007756c + 0x54)" * (cast_expression "(int *)(*(int *)PTR_openfile_0007756c + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_openfile_0007756c + 0x54)" ( (binary_expression "*(int *)PTR_openfile_0007756c + 0x54" (pointer_expression "*(int *)PTR_openfile_0007756c" * (cast_expression "(int *)PTR_openfile_0007756c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (if_statement "if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {\n    precalc_multicolorinfo();\n  }" if (parenthesized_expression "(((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0))" ( (binary_expression "((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)" (parenthesized_expression "((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c)))" ( (binary_expression "(iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(0 < *(int *)(iVar1 + 0x1c))" ( (binary_expression "0 < *(int *)(iVar1 + 0x1c)" number_literal < (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) ))))) ))) )) && (parenthesized_expression "(*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)" ( (binary_expression "*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0" (pointer_expression "*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10)" * (cast_expression "(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10)" ( (binary_expression "*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10" (pointer_expression "*(int *)(*(int *)PTR_openfile_0007756c + 4)" * (cast_expression "(int *)(*(int *)PTR_openfile_0007756c + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_openfile_0007756c + 4)" ( (binary_expression "*(int *)PTR_openfile_0007756c + 4" (pointer_expression "*(int *)PTR_openfile_0007756c" * (cast_expression "(int *)PTR_openfile_0007756c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    precalc_multicolorinfo();\n  }" { (expression_statement "precalc_multicolorinfo();" (call_expression "precalc_multicolorinfo()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*PTR_have_palette_000779b0 = 0;" (assignment_expression "*PTR_have_palette_000779b0 = 0" (pointer_expression "*PTR_have_palette_000779b0" * identifier) = number_literal) ;) (expression_statement "*PTR_refresh_needed_000775a4 = 1;" (assignment_expression "*PTR_refresh_needed_000775a4 = 1" (pointer_expression "*PTR_refresh_needed_000775a4" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) && (parenthesized_expression ( (binary_expression (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) )))) + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })))
(function_definition "void prepare_for_display(void)\n\n{\n  int iVar1;\n  \n  if (*PTR_inhelp_000779c0 == '\0') {\n    (*(code *)PTR_titlebar_00077664)(0);\n  }\n  iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);\n  if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {\n    precalc_multicolorinfo();\n  }\n  *PTR_have_palette_000779b0 = 0;\n  *PTR_refresh_needed_000775a4 = 1;\n  return;\n}" (primitive_type "void") (function_declarator "prepare_for_display(void)" (identifier "prepare_for_display") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (*PTR_inhelp_000779c0 == '\0') {\n    (*(code *)PTR_titlebar_00077664)(0);\n  }\n  iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);\n  if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {\n    precalc_multicolorinfo();\n  }\n  *PTR_have_palette_000779b0 = 0;\n  *PTR_refresh_needed_000775a4 = 1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*PTR_inhelp_000779c0 == '\0') {\n    (*(code *)PTR_titlebar_00077664)(0);\n  }" (if "if") (parenthesized_expression "(*PTR_inhelp_000779c0 == '\0')" (( "(") (binary_expression "*PTR_inhelp_000779c0 == '\0'" (pointer_expression "*PTR_inhelp_000779c0" (* "*") (identifier "PTR_inhelp_000779c0")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    (*(code *)PTR_titlebar_00077664)(0);\n  }" ({ "{") (expression_statement "(*(code *)PTR_titlebar_00077664)(0);" (call_expression "(*(code *)PTR_titlebar_00077664)(0)" (parenthesized_expression "(*(code *)PTR_titlebar_00077664)" (( "(") (pointer_expression "*(code *)PTR_titlebar_00077664" (* "*") (cast_expression "(code *)PTR_titlebar_00077664" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_titlebar_00077664"))) () ")")) (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);" (assignment_expression "iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)PTR_openfile_0007756c + 0x54)" (* "*") (cast_expression "(int *)(*(int *)PTR_openfile_0007756c + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_openfile_0007756c + 0x54)" (( "(") (binary_expression "*(int *)PTR_openfile_0007756c + 0x54" (pointer_expression "*(int *)PTR_openfile_0007756c" (* "*") (cast_expression "(int *)PTR_openfile_0007756c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_openfile_0007756c"))) (+ "+") (number_literal "0x54")) () ")"))))) (; ";")) (if_statement "if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {\n    precalc_multicolorinfo();\n  }" (if "if") (parenthesized_expression "(((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0))" (( "(") (binary_expression "((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&\n     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)" (parenthesized_expression "((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c)))" (( "(") (binary_expression "(iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(0 < *(int *)(iVar1 + 0x1c))" (( "(") (binary_expression "0 < *(int *)(iVar1 + 0x1c)" (number_literal "0") (< "<") (pointer_expression "*(int *)(iVar1 + 0x1c)" (* "*") (cast_expression "(int *)(iVar1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")"))))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)" (( "(") (binary_expression "*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0" (pointer_expression "*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10)" (* "*") (cast_expression "(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10)" (( "(") (binary_expression "*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10" (pointer_expression "*(int *)(*(int *)PTR_openfile_0007756c + 4)" (* "*") (cast_expression "(int *)(*(int *)PTR_openfile_0007756c + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_openfile_0007756c + 4)" (( "(") (binary_expression "*(int *)PTR_openfile_0007756c + 4" (pointer_expression "*(int *)PTR_openfile_0007756c" (* "*") (cast_expression "(int *)PTR_openfile_0007756c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_openfile_0007756c"))) (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x10")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    precalc_multicolorinfo();\n  }" ({ "{") (expression_statement "precalc_multicolorinfo();" (call_expression "precalc_multicolorinfo()" (identifier "precalc_multicolorinfo") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "*PTR_have_palette_000779b0 = 0;" (assignment_expression "*PTR_have_palette_000779b0 = 0" (pointer_expression "*PTR_have_palette_000779b0" (* "*") (identifier "PTR_have_palette_000779b0")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*PTR_refresh_needed_000775a4 = 1;" (assignment_expression "*PTR_refresh_needed_000775a4 = 1" (pointer_expression "*PTR_refresh_needed_000775a4" (* "*") (identifier "PTR_refresh_needed_000775a4")) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (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 (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (number_literal) 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))))))))) right: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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: (identifier))) right: (number_literal))))) right: (number_literal))))) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement))))

void MASKED(void)

{
  int iVar1;
  
  if (*PTR_inhelp_000779c0 == '\0') {
    (*(code *)PTR_titlebar_00077664)(0);
  }
  iVar1 = *(int *)(*(int *)PTR_openfile_0007756c + 0x54);
  if (((iVar1 != 0) && (0 < *(int *)(iVar1 + 0x1c))) &&
     (*(int *)(*(int *)(*(int *)PTR_openfile_0007756c + 4) + 0x10) == 0)) {
    precalc_multicolorinfo();
  }
  *PTR_have_palette_000779b0 = 0;
  *PTR_refresh_needed_000775a4 = 1;
  return;
}

