
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void x11_free_display(X11Display *disp)

{
  uchar *puVar1;
  
  (*(code *)PTR_safefree_001112f0)(disp->hostname);
  (*(code *)PTR_safefree_001112f0)(disp->unixsocketpath);
  puVar1 = disp->localauthdata;
  if (puVar1 != (uchar *)0x0) {
    (*(code *)PTR_smemclr_00111398)(puVar1,disp->localauthdatalen);
    puVar1 = disp->localauthdata;
  }
  (*(code *)PTR_safefree_001112f0)(puVar1);
  sk_addr_free(disp->addr);
  (*(code *)PTR_safefree_001112f0)(disp);
  return;
}



void x11_free_display(int param_1)

{
  int iVar1;
  
  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 4));
  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0x10));
  iVar1 = *(int *)(param_1 + 0x24);
  if (iVar1 != 0) {
    (*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));
    iVar1 = *(int *)(param_1 + 0x24);
  }
  (*(code *)PTR_safefree_001112f0)(iVar1);
  sk_addr_free(*(undefined4 *)(param_1 + 0x14));
  (*(code *)PTR_safefree_001112f0)(param_1);
  return;
}


lui gp,0x5
addiu gp,gp,-0x303c
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7fc0(gp)
sw s0,0x18(sp)
or s0,a0,zero
sw gp,0x10(sp)
sw ra,0x1c(sp)
jalr t9
_lw a0,0x4(a0)
lw gp,0x10(sp)
lw t9,-0x7fc0(gp)
jalr t9
_lw a0,0x10(s0)
lw a0,0x24(s0)
beq a0,zero,0x000cc348
_lw gp,0x10(sp)
lw t9,-0x7f18(gp)
jalr t9
_lw a1,0x28(s0)
lw gp,0x10(sp)
lw a0,0x24(s0)
lw t9,-0x7fc0(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x7c58(gp)
bal 0x000c2540
_lw a0,0x14(s0)
or a0,s0,zero
lw gp,0x10(sp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x7fc0(gp)
jr t9
_addiu sp,sp,0x20
(translation_unit "void x11_free_display(int param_1)\n\n{\n  int iVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 4));\n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0x10));\n  iVar1 = *(int *)(param_1 + 0x24);\n  if (iVar1 != 0) {\n    (*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }\n  (*(code *)PTR_safefree_001112f0)(iVar1);\n  sk_addr_free(*(undefined4 *)(param_1 + 0x14));\n  (*(code *)PTR_safefree_001112f0)(param_1);\n  return;\n}\n\n" (function_definition "void x11_free_display(int param_1)\n\n{\n  int iVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 4));\n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0x10));\n  iVar1 = *(int *)(param_1 + 0x24);\n  if (iVar1 != 0) {\n    (*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }\n  (*(code *)PTR_safefree_001112f0)(iVar1);\n  sk_addr_free(*(undefined4 *)(param_1 + 0x14));\n  (*(code *)PTR_safefree_001112f0)(param_1);\n  return;\n}" primitive_type (function_declarator "x11_free_display(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 4));\n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0x10));\n  iVar1 = *(int *)(param_1 + 0x24);\n  if (iVar1 != 0) {\n    (*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }\n  (*(code *)PTR_safefree_001112f0)(iVar1);\n  sk_addr_free(*(undefined4 *)(param_1 + 0x14));\n  (*(code *)PTR_safefree_001112f0)(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 4));" (call_expression "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 4))" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0x10));" (call_expression "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0x10))" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }" { (expression_statement "(*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));" (call_expression "(*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28))" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,*(undefined4 *)(param_1 + 0x28))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) })) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "sk_addr_free(*(undefined4 *)(param_1 + 0x14));" (call_expression "sk_addr_free(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(param_1);" (call_expression "(*(code *)PTR_safefree_001112f0)(param_1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid x11_free_display(X11Display *disp)\n\n{\n  uchar *puVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(disp->hostname);\n  (*(code *)PTR_safefree_001112f0)(disp->unixsocketpath);\n  puVar1 = disp->localauthdata;\n  if (puVar1 != (uchar *)0x0) {\n    (*(code *)PTR_smemclr_00111398)(puVar1,disp->localauthdatalen);\n    puVar1 = disp->localauthdata;\n  }\n  (*(code *)PTR_safefree_001112f0)(puVar1);\n  sk_addr_free(disp->addr);\n  (*(code *)PTR_safefree_001112f0)(disp);\n  return;\n}\n\n" comment (function_definition "void x11_free_display(X11Display *disp)\n\n{\n  uchar *puVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(disp->hostname);\n  (*(code *)PTR_safefree_001112f0)(disp->unixsocketpath);\n  puVar1 = disp->localauthdata;\n  if (puVar1 != (uchar *)0x0) {\n    (*(code *)PTR_smemclr_00111398)(puVar1,disp->localauthdatalen);\n    puVar1 = disp->localauthdata;\n  }\n  (*(code *)PTR_safefree_001112f0)(puVar1);\n  sk_addr_free(disp->addr);\n  (*(code *)PTR_safefree_001112f0)(disp);\n  return;\n}" primitive_type (function_declarator "x11_free_display(X11Display *disp)" identifier (parameter_list "(X11Display *disp)" ( (parameter_declaration "X11Display *disp" type_identifier (pointer_declarator "*disp" * identifier)) ))) (compound_statement "{\n  uchar *puVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(disp->hostname);\n  (*(code *)PTR_safefree_001112f0)(disp->unixsocketpath);\n  puVar1 = disp->localauthdata;\n  if (puVar1 != (uchar *)0x0) {\n    (*(code *)PTR_smemclr_00111398)(puVar1,disp->localauthdatalen);\n    puVar1 = disp->localauthdata;\n  }\n  (*(code *)PTR_safefree_001112f0)(puVar1);\n  sk_addr_free(disp->addr);\n  (*(code *)PTR_safefree_001112f0)(disp);\n  return;\n}" { (declaration "uchar *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(disp->hostname);" (call_expression "(*(code *)PTR_safefree_001112f0)(disp->hostname)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(disp->hostname)" ( (field_expression "disp->hostname" identifier -> field_identifier) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(disp->unixsocketpath);" (call_expression "(*(code *)PTR_safefree_001112f0)(disp->unixsocketpath)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(disp->unixsocketpath)" ( (field_expression "disp->unixsocketpath" identifier -> field_identifier) ))) ;) (expression_statement "puVar1 = disp->localauthdata;" (assignment_expression "puVar1 = disp->localauthdata" identifier = (field_expression "disp->localauthdata" identifier -> field_identifier)) ;) (if_statement "if (puVar1 != (uchar *)0x0) {\n    (*(code *)PTR_smemclr_00111398)(puVar1,disp->localauthdatalen);\n    puVar1 = disp->localauthdata;\n  }" if (parenthesized_expression "(puVar1 != (uchar *)0x0)" ( (binary_expression "puVar1 != (uchar *)0x0" identifier != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_smemclr_00111398)(puVar1,disp->localauthdatalen);\n    puVar1 = disp->localauthdata;\n  }" { (expression_statement "(*(code *)PTR_smemclr_00111398)(puVar1,disp->localauthdatalen);" (call_expression "(*(code *)PTR_smemclr_00111398)(puVar1,disp->localauthdatalen)" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar1,disp->localauthdatalen)" ( identifier , (field_expression "disp->localauthdatalen" identifier -> field_identifier) ))) ;) (expression_statement "puVar1 = disp->localauthdata;" (assignment_expression "puVar1 = disp->localauthdata" identifier = (field_expression "disp->localauthdata" identifier -> field_identifier)) ;) })) (expression_statement "(*(code *)PTR_safefree_001112f0)(puVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(puVar1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "sk_addr_free(disp->addr);" (call_expression "sk_addr_free(disp->addr)" identifier (argument_list "(disp->addr)" ( (field_expression "disp->addr" identifier -> field_identifier) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(disp);" (call_expression "(*(code *)PTR_safefree_001112f0)(disp)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(disp)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void x11_free_display(int param_1)\n\n{\n  int iVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 4));\n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0x10));\n  iVar1 = *(int *)(param_1 + 0x24);\n  if (iVar1 != 0) {\n    (*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }\n  (*(code *)PTR_safefree_001112f0)(iVar1);\n  sk_addr_free(*(undefined4 *)(param_1 + 0x14));\n  (*(code *)PTR_safefree_001112f0)(param_1);\n  return;\n}\n\n" (function_definition "void x11_free_display(int param_1)\n\n{\n  int iVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 4));\n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0x10));\n  iVar1 = *(int *)(param_1 + 0x24);\n  if (iVar1 != 0) {\n    (*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }\n  (*(code *)PTR_safefree_001112f0)(iVar1);\n  sk_addr_free(*(undefined4 *)(param_1 + 0x14));\n  (*(code *)PTR_safefree_001112f0)(param_1);\n  return;\n}" primitive_type (function_declarator "x11_free_display(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 4));\n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0x10));\n  iVar1 = *(int *)(param_1 + 0x24);\n  if (iVar1 != 0) {\n    (*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }\n  (*(code *)PTR_safefree_001112f0)(iVar1);\n  sk_addr_free(*(undefined4 *)(param_1 + 0x14));\n  (*(code *)PTR_safefree_001112f0)(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 4));" (call_expression "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 4))" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0x10));" (call_expression "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0x10))" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }" { (expression_statement "(*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));" (call_expression "(*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28))" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" ( (pointer_expression "*(code *)PTR_smemclr_00111398" * (cast_expression "(code *)PTR_smemclr_00111398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,*(undefined4 *)(param_1 + 0x28))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" identifier = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) })) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "sk_addr_free(*(undefined4 *)(param_1 + 0x14));" (call_expression "sk_addr_free(*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(param_1);" (call_expression "(*(code *)PTR_safefree_001112f0)(param_1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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 (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void x11_free_display(int param_1)\n\n{\n  int iVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 4));\n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0x10));\n  iVar1 = *(int *)(param_1 + 0x24);\n  if (iVar1 != 0) {\n    (*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }\n  (*(code *)PTR_safefree_001112f0)(iVar1);\n  sk_addr_free(*(undefined4 *)(param_1 + 0x14));\n  (*(code *)PTR_safefree_001112f0)(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "x11_free_display(int param_1)" (identifier "x11_free_display") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 4));\n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0x10));\n  iVar1 = *(int *)(param_1 + 0x24);\n  if (iVar1 != 0) {\n    (*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }\n  (*(code *)PTR_safefree_001112f0)(iVar1);\n  sk_addr_free(*(undefined4 *)(param_1 + 0x14));\n  (*(code *)PTR_safefree_001112f0)(param_1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 4));" (call_expression "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 4))" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0x10));" (call_expression "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0x10))" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x10))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));\n    iVar1 = *(int *)(param_1 + 0x24);\n  }" ({ "{") (expression_statement "(*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));" (call_expression "(*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28))" (parenthesized_expression "(*(code *)PTR_smemclr_00111398)" (( "(") (pointer_expression "*(code *)PTR_smemclr_00111398" (* "*") (cast_expression "(code *)PTR_smemclr_00111398" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_smemclr_00111398"))) () ")")) (argument_list "(iVar1,*(undefined4 *)(param_1 + 0x28))" (( "(") (identifier "iVar1") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x24)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_safefree_001112f0)(iVar1);" (call_expression "(*(code *)PTR_safefree_001112f0)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "sk_addr_free(*(undefined4 *)(param_1 + 0x14));" (call_expression "sk_addr_free(*(undefined4 *)(param_1 + 0x14))" (identifier "sk_addr_free") (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_001112f0)(param_1);" (call_expression "(*(code *)PTR_safefree_001112f0)(param_1)" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_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) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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 (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 (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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))))))))) (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 (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (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 (identifier)))) (return_statement))))

void MASKED(int param_1)

{
  int iVar1;
  
  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 4));
  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0x10));
  iVar1 = *(int *)(param_1 + 0x24);
  if (iVar1 != 0) {
    (*(code *)PTR_smemclr_00111398)(iVar1,*(undefined4 *)(param_1 + 0x28));
    iVar1 = *(int *)(param_1 + 0x24);
  }
  (*(code *)PTR_safefree_001112f0)(iVar1);
  sk_addr_free(*(undefined4 *)(param_1 + 0x14));
  (*(code *)PTR_safefree_001112f0)(param_1);
  return;
}

