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

void unifontsel_draw_preview_text(unifontsel_internal *fs)

{
  long lVar1;
  long lVar2;
  undefined8 uVar3;
  long in_FS_OFFSET;
  unifont_drawctx dctx;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  lVar2 = gtk_widget_get_window(fs->preview_area);
  if (lVar2 != 0) {
    dctx.type = ADDRTYPE_UNSPEC;
    uVar3 = gtk_widget_get_type();
    dctx.u.cairo.widget = (GtkWidget *)g_type_check_instance_cast(fs->preview_area,uVar3);
    dctx.u.cairo.gdkwin = (GdkWindow *)gtk_widget_get_window(dctx.u.cairo.widget);
    uVar3 = gdk_window_get_clip_region(dctx.u.cairo.gdkwin);
    dctx.u.cairo.drawctx =
         (GdkDrawingContext *)gdk_window_begin_draw_frame(dctx.u.cairo.gdkwin,uVar3);
    dctx.u.cairo.cr = (cairo_t *)gdk_drawing_context_get_cairo_context(dctx.u.cairo.drawctx);
    cairo_region_destroy(uVar3);
    unifontsel_draw_preview_text_inner(&dctx,fs);
    if (dctx.type == ADDRTYPE_UNSPEC) {
      gdk_window_end_draw_frame(dctx.u.cairo.gdkwin,dctx.u.cairo.drawctx);
    }
    uVar3 = gtk_widget_get_window(fs->preview_area);
    gdk_window_invalidate_rect(uVar3,0,0);
  }
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



void FUN_00145197(long param_1)

{
  long lVar1;
  undefined8 uVar2;
  long in_FS_OFFSET;
  int local_78 [2];
  undefined8 local_70;
  undefined8 local_68;
  undefined8 local_30;
  undefined8 local_28;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  lVar1 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));
  if (lVar1 != 0) {
    local_78[0] = 0;
    uVar2 = gtk_widget_get_type();
    local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);
    local_30 = gtk_widget_get_window(local_70);
    uVar2 = gdk_window_get_clip_region(local_30);
    local_28 = gdk_window_begin_draw_frame(local_30,uVar2);
    local_68 = gdk_drawing_context_get_cairo_context(local_28);
    cairo_region_destroy(uVar2);
    FUN_00144d1a(local_78,param_1);
    if (local_78[0] == 0) {
      gdk_window_end_draw_frame(local_30,local_28);
    }
    uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));
    gdk_window_invalidate_rect(uVar2,0,0);
  }
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH RBP
PUSH RBX
SUB RSP,0x68
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x58],RAX
XOR EAX,EAX
MOV RDI,qword ptr [RDI + 0x80]
CALL 0x001105c0
TEST RAX,RAX
JZ 0x00145253
MOV dword ptr [RSP],0x0
CALL 0x001104f0
MOV RDI,qword ptr [RBX + 0x80]
MOV RSI,RAX
CALL 0x00110550
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,RAX
CALL 0x001105c0
MOV qword ptr [RSP + 0x48],RAX
MOV RDI,RAX
CALL 0x00111290
MOV RBP,RAX
MOV RSI,RAX
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x00111120
MOV qword ptr [RSP + 0x50],RAX
MOV RDI,RAX
CALL 0x00110790
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,RBP
CALL 0x001118a0
MOV RDI,RSP
MOV RSI,RBX
CALL 0x00144d1a
CMP dword ptr [RSP],0x0
JZ 0x0014526a
MOV RDI,qword ptr [RBX + 0x80]
CALL 0x001105c0
MOV EDX,0x0
MOV ESI,0x0
MOV RDI,RAX
CALL 0x00111970
MOV RAX,qword ptr [RSP + 0x58]
XOR RAX,qword ptr FS:[0x28]
JNZ 0x0014527b
ADD RSP,0x68
POP RBX
POP RBP
RET
MOV RSI,qword ptr [RSP + 0x50]
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x001113e0
JMP 0x00145235
CALL 0x001111e0
(translation_unit "void FUN_00145197(long param_1)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  int local_78 [2];\n  undefined8 local_70;\n  undefined8 local_68;\n  undefined8 local_30;\n  undefined8 local_28;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar1 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n  if (lVar1 != 0) {\n    local_78[0] = 0;\n    uVar2 = gtk_widget_get_type();\n    local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);\n    local_30 = gtk_widget_get_window(local_70);\n    uVar2 = gdk_window_get_clip_region(local_30);\n    local_28 = gdk_window_begin_draw_frame(local_30,uVar2);\n    local_68 = gdk_drawing_context_get_cairo_context(local_28);\n    cairo_region_destroy(uVar2);\n    FUN_00144d1a(local_78,param_1);\n    if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }\n    uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n    gdk_window_invalidate_rect(uVar2,0,0);\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "void FUN_00145197(long param_1)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  int local_78 [2];\n  undefined8 local_70;\n  undefined8 local_68;\n  undefined8 local_30;\n  undefined8 local_28;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar1 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n  if (lVar1 != 0) {\n    local_78[0] = 0;\n    uVar2 = gtk_widget_get_type();\n    local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);\n    local_30 = gtk_widget_get_window(local_70);\n    uVar2 = gdk_window_get_clip_region(local_30);\n    local_28 = gdk_window_begin_draw_frame(local_30,uVar2);\n    local_68 = gdk_drawing_context_get_cairo_context(local_28);\n    cairo_region_destroy(uVar2);\n    FUN_00144d1a(local_78,param_1);\n    if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }\n    uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n    gdk_window_invalidate_rect(uVar2,0,0);\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_00145197(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  int local_78 [2];\n  undefined8 local_70;\n  undefined8 local_68;\n  undefined8 local_30;\n  undefined8 local_28;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar1 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n  if (lVar1 != 0) {\n    local_78[0] = 0;\n    uVar2 = gtk_widget_get_type();\n    local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);\n    local_30 = gtk_widget_get_window(local_70);\n    uVar2 = gdk_window_get_clip_region(local_30);\n    local_28 = gdk_window_begin_draw_frame(local_30,uVar2);\n    local_68 = gdk_drawing_context_get_cairo_context(local_28);\n    cairo_region_destroy(uVar2);\n    FUN_00144d1a(local_78,param_1);\n    if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }\n    uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n    gdk_window_invalidate_rect(uVar2,0,0);\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_78 [2];" primitive_type (array_declarator "local_78 [2]" identifier [ number_literal ]) ;) (declaration "undefined8 local_70;" type_identifier identifier ;) (declaration "undefined8 local_68;" type_identifier identifier ;) (declaration "undefined8 local_30;" type_identifier identifier ;) (declaration "undefined8 local_28;" type_identifier identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "lVar1 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));" (assignment_expression "lVar1 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80))" identifier = (call_expression "gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x80))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x80)" * (cast_expression "(undefined8 *)(param_1 + 0x80)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) )))) ;) (if_statement "if (lVar1 != 0) {\n    local_78[0] = 0;\n    uVar2 = gtk_widget_get_type();\n    local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);\n    local_30 = gtk_widget_get_window(local_70);\n    uVar2 = gdk_window_get_clip_region(local_30);\n    local_28 = gdk_window_begin_draw_frame(local_30,uVar2);\n    local_68 = gdk_drawing_context_get_cairo_context(local_28);\n    cairo_region_destroy(uVar2);\n    FUN_00144d1a(local_78,param_1);\n    if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }\n    uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n    gdk_window_invalidate_rect(uVar2,0,0);\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    local_78[0] = 0;\n    uVar2 = gtk_widget_get_type();\n    local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);\n    local_30 = gtk_widget_get_window(local_70);\n    uVar2 = gdk_window_get_clip_region(local_30);\n    local_28 = gdk_window_begin_draw_frame(local_30,uVar2);\n    local_68 = gdk_drawing_context_get_cairo_context(local_28);\n    cairo_region_destroy(uVar2);\n    FUN_00144d1a(local_78,param_1);\n    if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }\n    uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n    gdk_window_invalidate_rect(uVar2,0,0);\n  }" { (expression_statement "local_78[0] = 0;" (assignment_expression "local_78[0] = 0" (subscript_expression "local_78[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" identifier = (call_expression "gtk_widget_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);" (assignment_expression "local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2)" identifier = (call_expression "g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x80),uVar2)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x80)" * (cast_expression "(undefined8 *)(param_1 + 0x80)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "local_30 = gtk_widget_get_window(local_70);" (assignment_expression "local_30 = gtk_widget_get_window(local_70)" identifier = (call_expression "gtk_widget_get_window(local_70)" identifier (argument_list "(local_70)" ( identifier )))) ;) (expression_statement "uVar2 = gdk_window_get_clip_region(local_30);" (assignment_expression "uVar2 = gdk_window_get_clip_region(local_30)" identifier = (call_expression "gdk_window_get_clip_region(local_30)" identifier (argument_list "(local_30)" ( identifier )))) ;) (expression_statement "local_28 = gdk_window_begin_draw_frame(local_30,uVar2);" (assignment_expression "local_28 = gdk_window_begin_draw_frame(local_30,uVar2)" identifier = (call_expression "gdk_window_begin_draw_frame(local_30,uVar2)" identifier (argument_list "(local_30,uVar2)" ( identifier , identifier )))) ;) (expression_statement "local_68 = gdk_drawing_context_get_cairo_context(local_28);" (assignment_expression "local_68 = gdk_drawing_context_get_cairo_context(local_28)" identifier = (call_expression "gdk_drawing_context_get_cairo_context(local_28)" identifier (argument_list "(local_28)" ( identifier )))) ;) (expression_statement "cairo_region_destroy(uVar2);" (call_expression "cairo_region_destroy(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "FUN_00144d1a(local_78,param_1);" (call_expression "FUN_00144d1a(local_78,param_1)" identifier (argument_list "(local_78,param_1)" ( identifier , identifier ))) ;) (if_statement "if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }" if (parenthesized_expression "(local_78[0] == 0)" ( (binary_expression "local_78[0] == 0" (subscript_expression "local_78[0]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      gdk_window_end_draw_frame(local_30,local_28);\n    }" { (expression_statement "gdk_window_end_draw_frame(local_30,local_28);" (call_expression "gdk_window_end_draw_frame(local_30,local_28)" identifier (argument_list "(local_30,local_28)" ( identifier , identifier ))) ;) })) (expression_statement "uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));" (assignment_expression "uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80))" identifier = (call_expression "gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x80))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x80)" * (cast_expression "(undefined8 *)(param_1 + 0x80)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) )))) ;) (expression_statement "gdk_window_invalidate_rect(uVar2,0,0);" (call_expression "gdk_window_invalidate_rect(uVar2,0,0)" identifier (argument_list "(uVar2,0,0)" ( identifier , number_literal , number_literal ))) ;) })) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid unifontsel_draw_preview_text(unifontsel_internal *fs)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  unifont_drawctx dctx;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = gtk_widget_get_window(fs->preview_area);\n  if (lVar2 != 0) {\n    dctx.type = ADDRTYPE_UNSPEC;\n    uVar3 = gtk_widget_get_type();\n    dctx.u.cairo.widget = (GtkWidget *)g_type_check_instance_cast(fs->preview_area,uVar3);\n    dctx.u.cairo.gdkwin = (GdkWindow *)gtk_widget_get_window(dctx.u.cairo.widget);\n    uVar3 = gdk_window_get_clip_region(dctx.u.cairo.gdkwin);\n    dctx.u.cairo.drawctx =\n         (GdkDrawingContext *)gdk_window_begin_draw_frame(dctx.u.cairo.gdkwin,uVar3);\n    dctx.u.cairo.cr = (cairo_t *)gdk_drawing_context_get_cairo_context(dctx.u.cairo.drawctx);\n    cairo_region_destroy(uVar3);\n    unifontsel_draw_preview_text_inner(&dctx,fs);\n    if (dctx.type == ADDRTYPE_UNSPEC) {\n      gdk_window_end_draw_frame(dctx.u.cairo.gdkwin,dctx.u.cairo.drawctx);\n    }\n    uVar3 = gtk_widget_get_window(fs->preview_area);\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" comment (function_definition "void unifontsel_draw_preview_text(unifontsel_internal *fs)\n\n{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  unifont_drawctx dctx;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = gtk_widget_get_window(fs->preview_area);\n  if (lVar2 != 0) {\n    dctx.type = ADDRTYPE_UNSPEC;\n    uVar3 = gtk_widget_get_type();\n    dctx.u.cairo.widget = (GtkWidget *)g_type_check_instance_cast(fs->preview_area,uVar3);\n    dctx.u.cairo.gdkwin = (GdkWindow *)gtk_widget_get_window(dctx.u.cairo.widget);\n    uVar3 = gdk_window_get_clip_region(dctx.u.cairo.gdkwin);\n    dctx.u.cairo.drawctx =\n         (GdkDrawingContext *)gdk_window_begin_draw_frame(dctx.u.cairo.gdkwin,uVar3);\n    dctx.u.cairo.cr = (cairo_t *)gdk_drawing_context_get_cairo_context(dctx.u.cairo.drawctx);\n    cairo_region_destroy(uVar3);\n    unifontsel_draw_preview_text_inner(&dctx,fs);\n    if (dctx.type == ADDRTYPE_UNSPEC) {\n      gdk_window_end_draw_frame(dctx.u.cairo.gdkwin,dctx.u.cairo.drawctx);\n    }\n    uVar3 = gtk_widget_get_window(fs->preview_area);\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "unifontsel_draw_preview_text(unifontsel_internal *fs)" identifier (parameter_list "(unifontsel_internal *fs)" ( (parameter_declaration "unifontsel_internal *fs" type_identifier (pointer_declarator "*fs" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  unifont_drawctx dctx;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar2 = gtk_widget_get_window(fs->preview_area);\n  if (lVar2 != 0) {\n    dctx.type = ADDRTYPE_UNSPEC;\n    uVar3 = gtk_widget_get_type();\n    dctx.u.cairo.widget = (GtkWidget *)g_type_check_instance_cast(fs->preview_area,uVar3);\n    dctx.u.cairo.gdkwin = (GdkWindow *)gtk_widget_get_window(dctx.u.cairo.widget);\n    uVar3 = gdk_window_get_clip_region(dctx.u.cairo.gdkwin);\n    dctx.u.cairo.drawctx =\n         (GdkDrawingContext *)gdk_window_begin_draw_frame(dctx.u.cairo.gdkwin,uVar3);\n    dctx.u.cairo.cr = (cairo_t *)gdk_drawing_context_get_cairo_context(dctx.u.cairo.drawctx);\n    cairo_region_destroy(uVar3);\n    unifontsel_draw_preview_text_inner(&dctx,fs);\n    if (dctx.type == ADDRTYPE_UNSPEC) {\n      gdk_window_end_draw_frame(dctx.u.cairo.gdkwin,dctx.u.cairo.drawctx);\n    }\n    uVar3 = gtk_widget_get_window(fs->preview_area);\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "unifont_drawctx dctx;" type_identifier identifier ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "lVar2 = gtk_widget_get_window(fs->preview_area);" (assignment_expression "lVar2 = gtk_widget_get_window(fs->preview_area)" identifier = (call_expression "gtk_widget_get_window(fs->preview_area)" identifier (argument_list "(fs->preview_area)" ( (field_expression "fs->preview_area" identifier -> field_identifier) )))) ;) (if_statement "if (lVar2 != 0) {\n    dctx.type = ADDRTYPE_UNSPEC;\n    uVar3 = gtk_widget_get_type();\n    dctx.u.cairo.widget = (GtkWidget *)g_type_check_instance_cast(fs->preview_area,uVar3);\n    dctx.u.cairo.gdkwin = (GdkWindow *)gtk_widget_get_window(dctx.u.cairo.widget);\n    uVar3 = gdk_window_get_clip_region(dctx.u.cairo.gdkwin);\n    dctx.u.cairo.drawctx =\n         (GdkDrawingContext *)gdk_window_begin_draw_frame(dctx.u.cairo.gdkwin,uVar3);\n    dctx.u.cairo.cr = (cairo_t *)gdk_drawing_context_get_cairo_context(dctx.u.cairo.drawctx);\n    cairo_region_destroy(uVar3);\n    unifontsel_draw_preview_text_inner(&dctx,fs);\n    if (dctx.type == ADDRTYPE_UNSPEC) {\n      gdk_window_end_draw_frame(dctx.u.cairo.gdkwin,dctx.u.cairo.drawctx);\n    }\n    uVar3 = gtk_widget_get_window(fs->preview_area);\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    dctx.type = ADDRTYPE_UNSPEC;\n    uVar3 = gtk_widget_get_type();\n    dctx.u.cairo.widget = (GtkWidget *)g_type_check_instance_cast(fs->preview_area,uVar3);\n    dctx.u.cairo.gdkwin = (GdkWindow *)gtk_widget_get_window(dctx.u.cairo.widget);\n    uVar3 = gdk_window_get_clip_region(dctx.u.cairo.gdkwin);\n    dctx.u.cairo.drawctx =\n         (GdkDrawingContext *)gdk_window_begin_draw_frame(dctx.u.cairo.gdkwin,uVar3);\n    dctx.u.cairo.cr = (cairo_t *)gdk_drawing_context_get_cairo_context(dctx.u.cairo.drawctx);\n    cairo_region_destroy(uVar3);\n    unifontsel_draw_preview_text_inner(&dctx,fs);\n    if (dctx.type == ADDRTYPE_UNSPEC) {\n      gdk_window_end_draw_frame(dctx.u.cairo.gdkwin,dctx.u.cairo.drawctx);\n    }\n    uVar3 = gtk_widget_get_window(fs->preview_area);\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }" { (expression_statement "dctx.type = ADDRTYPE_UNSPEC;" (assignment_expression "dctx.type = ADDRTYPE_UNSPEC" (field_expression "dctx.type" identifier . field_identifier) = identifier) ;) (expression_statement "uVar3 = gtk_widget_get_type();" (assignment_expression "uVar3 = gtk_widget_get_type()" identifier = (call_expression "gtk_widget_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "dctx.u.cairo.widget = (GtkWidget *)g_type_check_instance_cast(fs->preview_area,uVar3);" (assignment_expression "dctx.u.cairo.widget = (GtkWidget *)g_type_check_instance_cast(fs->preview_area,uVar3)" (field_expression "dctx.u.cairo.widget" (field_expression "dctx.u.cairo" (field_expression "dctx.u" identifier . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(GtkWidget *)g_type_check_instance_cast(fs->preview_area,uVar3)" ( (type_descriptor "GtkWidget *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "g_type_check_instance_cast(fs->preview_area,uVar3)" identifier (argument_list "(fs->preview_area,uVar3)" ( (field_expression "fs->preview_area" identifier -> field_identifier) , identifier ))))) ;) (expression_statement "dctx.u.cairo.gdkwin = (GdkWindow *)gtk_widget_get_window(dctx.u.cairo.widget);" (assignment_expression "dctx.u.cairo.gdkwin = (GdkWindow *)gtk_widget_get_window(dctx.u.cairo.widget)" (field_expression "dctx.u.cairo.gdkwin" (field_expression "dctx.u.cairo" (field_expression "dctx.u" identifier . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(GdkWindow *)gtk_widget_get_window(dctx.u.cairo.widget)" ( (type_descriptor "GdkWindow *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "gtk_widget_get_window(dctx.u.cairo.widget)" identifier (argument_list "(dctx.u.cairo.widget)" ( (field_expression "dctx.u.cairo.widget" (field_expression "dctx.u.cairo" (field_expression "dctx.u" identifier . field_identifier) . field_identifier) . field_identifier) ))))) ;) (expression_statement "uVar3 = gdk_window_get_clip_region(dctx.u.cairo.gdkwin);" (assignment_expression "uVar3 = gdk_window_get_clip_region(dctx.u.cairo.gdkwin)" identifier = (call_expression "gdk_window_get_clip_region(dctx.u.cairo.gdkwin)" identifier (argument_list "(dctx.u.cairo.gdkwin)" ( (field_expression "dctx.u.cairo.gdkwin" (field_expression "dctx.u.cairo" (field_expression "dctx.u" identifier . field_identifier) . field_identifier) . field_identifier) )))) ;) (expression_statement "dctx.u.cairo.drawctx =\n         (GdkDrawingContext *)gdk_window_begin_draw_frame(dctx.u.cairo.gdkwin,uVar3);" (assignment_expression "dctx.u.cairo.drawctx =\n         (GdkDrawingContext *)gdk_window_begin_draw_frame(dctx.u.cairo.gdkwin,uVar3)" (field_expression "dctx.u.cairo.drawctx" (field_expression "dctx.u.cairo" (field_expression "dctx.u" identifier . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(GdkDrawingContext *)gdk_window_begin_draw_frame(dctx.u.cairo.gdkwin,uVar3)" ( (type_descriptor "GdkDrawingContext *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "gdk_window_begin_draw_frame(dctx.u.cairo.gdkwin,uVar3)" identifier (argument_list "(dctx.u.cairo.gdkwin,uVar3)" ( (field_expression "dctx.u.cairo.gdkwin" (field_expression "dctx.u.cairo" (field_expression "dctx.u" identifier . field_identifier) . field_identifier) . field_identifier) , identifier ))))) ;) (expression_statement "dctx.u.cairo.cr = (cairo_t *)gdk_drawing_context_get_cairo_context(dctx.u.cairo.drawctx);" (assignment_expression "dctx.u.cairo.cr = (cairo_t *)gdk_drawing_context_get_cairo_context(dctx.u.cairo.drawctx)" (field_expression "dctx.u.cairo.cr" (field_expression "dctx.u.cairo" (field_expression "dctx.u" identifier . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(cairo_t *)gdk_drawing_context_get_cairo_context(dctx.u.cairo.drawctx)" ( (type_descriptor "cairo_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "gdk_drawing_context_get_cairo_context(dctx.u.cairo.drawctx)" identifier (argument_list "(dctx.u.cairo.drawctx)" ( (field_expression "dctx.u.cairo.drawctx" (field_expression "dctx.u.cairo" (field_expression "dctx.u" identifier . field_identifier) . field_identifier) . field_identifier) ))))) ;) (expression_statement "cairo_region_destroy(uVar3);" (call_expression "cairo_region_destroy(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "unifontsel_draw_preview_text_inner(&dctx,fs);" (call_expression "unifontsel_draw_preview_text_inner(&dctx,fs)" identifier (argument_list "(&dctx,fs)" ( (pointer_expression "&dctx" & identifier) , identifier ))) ;) (if_statement "if (dctx.type == ADDRTYPE_UNSPEC) {\n      gdk_window_end_draw_frame(dctx.u.cairo.gdkwin,dctx.u.cairo.drawctx);\n    }" if (parenthesized_expression "(dctx.type == ADDRTYPE_UNSPEC)" ( (binary_expression "dctx.type == ADDRTYPE_UNSPEC" (field_expression "dctx.type" identifier . field_identifier) == identifier) )) (compound_statement "{\n      gdk_window_end_draw_frame(dctx.u.cairo.gdkwin,dctx.u.cairo.drawctx);\n    }" { (expression_statement "gdk_window_end_draw_frame(dctx.u.cairo.gdkwin,dctx.u.cairo.drawctx);" (call_expression "gdk_window_end_draw_frame(dctx.u.cairo.gdkwin,dctx.u.cairo.drawctx)" identifier (argument_list "(dctx.u.cairo.gdkwin,dctx.u.cairo.drawctx)" ( (field_expression "dctx.u.cairo.gdkwin" (field_expression "dctx.u.cairo" (field_expression "dctx.u" identifier . field_identifier) . field_identifier) . field_identifier) , (field_expression "dctx.u.cairo.drawctx" (field_expression "dctx.u.cairo" (field_expression "dctx.u" identifier . field_identifier) . field_identifier) . field_identifier) ))) ;) })) (expression_statement "uVar3 = gtk_widget_get_window(fs->preview_area);" (assignment_expression "uVar3 = gtk_widget_get_window(fs->preview_area)" identifier = (call_expression "gtk_widget_get_window(fs->preview_area)" identifier (argument_list "(fs->preview_area)" ( (field_expression "fs->preview_area" identifier -> field_identifier) )))) ;) (expression_statement "gdk_window_invalidate_rect(uVar3,0,0);" (call_expression "gdk_window_invalidate_rect(uVar3,0,0)" identifier (argument_list "(uVar3,0,0)" ( identifier , number_literal , number_literal ))) ;) })) (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_00145197(long param_1)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  int local_78 [2];\n  undefined8 local_70;\n  undefined8 local_68;\n  undefined8 local_30;\n  undefined8 local_28;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar1 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n  if (lVar1 != 0) {\n    local_78[0] = 0;\n    uVar2 = gtk_widget_get_type();\n    local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);\n    local_30 = gtk_widget_get_window(local_70);\n    uVar2 = gdk_window_get_clip_region(local_30);\n    local_28 = gdk_window_begin_draw_frame(local_30,uVar2);\n    local_68 = gdk_drawing_context_get_cairo_context(local_28);\n    cairo_region_destroy(uVar2);\n    FUN_00144d1a(local_78,param_1);\n    if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }\n    uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n    gdk_window_invalidate_rect(uVar2,0,0);\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "void FUN_00145197(long param_1)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  int local_78 [2];\n  undefined8 local_70;\n  undefined8 local_68;\n  undefined8 local_30;\n  undefined8 local_28;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar1 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n  if (lVar1 != 0) {\n    local_78[0] = 0;\n    uVar2 = gtk_widget_get_type();\n    local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);\n    local_30 = gtk_widget_get_window(local_70);\n    uVar2 = gdk_window_get_clip_region(local_30);\n    local_28 = gdk_window_begin_draw_frame(local_30,uVar2);\n    local_68 = gdk_drawing_context_get_cairo_context(local_28);\n    cairo_region_destroy(uVar2);\n    FUN_00144d1a(local_78,param_1);\n    if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }\n    uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n    gdk_window_invalidate_rect(uVar2,0,0);\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_00145197(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  int local_78 [2];\n  undefined8 local_70;\n  undefined8 local_68;\n  undefined8 local_30;\n  undefined8 local_28;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar1 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n  if (lVar1 != 0) {\n    local_78[0] = 0;\n    uVar2 = gtk_widget_get_type();\n    local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);\n    local_30 = gtk_widget_get_window(local_70);\n    uVar2 = gdk_window_get_clip_region(local_30);\n    local_28 = gdk_window_begin_draw_frame(local_30,uVar2);\n    local_68 = gdk_drawing_context_get_cairo_context(local_28);\n    cairo_region_destroy(uVar2);\n    FUN_00144d1a(local_78,param_1);\n    if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }\n    uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n    gdk_window_invalidate_rect(uVar2,0,0);\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_78 [2];" primitive_type (array_declarator "local_78 [2]" identifier [ number_literal ]) ;) (declaration "undefined8 local_70;" type_identifier identifier ;) (declaration "undefined8 local_68;" type_identifier identifier ;) (declaration "undefined8 local_30;" type_identifier identifier ;) (declaration "undefined8 local_28;" type_identifier identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "lVar1 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));" (assignment_expression "lVar1 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80))" identifier = (call_expression "gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x80))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x80)" * (cast_expression "(undefined8 *)(param_1 + 0x80)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) )))) ;) (if_statement "if (lVar1 != 0) {\n    local_78[0] = 0;\n    uVar2 = gtk_widget_get_type();\n    local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);\n    local_30 = gtk_widget_get_window(local_70);\n    uVar2 = gdk_window_get_clip_region(local_30);\n    local_28 = gdk_window_begin_draw_frame(local_30,uVar2);\n    local_68 = gdk_drawing_context_get_cairo_context(local_28);\n    cairo_region_destroy(uVar2);\n    FUN_00144d1a(local_78,param_1);\n    if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }\n    uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n    gdk_window_invalidate_rect(uVar2,0,0);\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    local_78[0] = 0;\n    uVar2 = gtk_widget_get_type();\n    local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);\n    local_30 = gtk_widget_get_window(local_70);\n    uVar2 = gdk_window_get_clip_region(local_30);\n    local_28 = gdk_window_begin_draw_frame(local_30,uVar2);\n    local_68 = gdk_drawing_context_get_cairo_context(local_28);\n    cairo_region_destroy(uVar2);\n    FUN_00144d1a(local_78,param_1);\n    if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }\n    uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n    gdk_window_invalidate_rect(uVar2,0,0);\n  }" { (expression_statement "local_78[0] = 0;" (assignment_expression "local_78[0] = 0" (subscript_expression "local_78[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" identifier = (call_expression "gtk_widget_get_type()" identifier (argument_list "()" ( )))) ;) (expression_statement "local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);" (assignment_expression "local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2)" identifier = (call_expression "g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x80),uVar2)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x80)" * (cast_expression "(undefined8 *)(param_1 + 0x80)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "local_30 = gtk_widget_get_window(local_70);" (assignment_expression "local_30 = gtk_widget_get_window(local_70)" identifier = (call_expression "gtk_widget_get_window(local_70)" identifier (argument_list "(local_70)" ( identifier )))) ;) (expression_statement "uVar2 = gdk_window_get_clip_region(local_30);" (assignment_expression "uVar2 = gdk_window_get_clip_region(local_30)" identifier = (call_expression "gdk_window_get_clip_region(local_30)" identifier (argument_list "(local_30)" ( identifier )))) ;) (expression_statement "local_28 = gdk_window_begin_draw_frame(local_30,uVar2);" (assignment_expression "local_28 = gdk_window_begin_draw_frame(local_30,uVar2)" identifier = (call_expression "gdk_window_begin_draw_frame(local_30,uVar2)" identifier (argument_list "(local_30,uVar2)" ( identifier , identifier )))) ;) (expression_statement "local_68 = gdk_drawing_context_get_cairo_context(local_28);" (assignment_expression "local_68 = gdk_drawing_context_get_cairo_context(local_28)" identifier = (call_expression "gdk_drawing_context_get_cairo_context(local_28)" identifier (argument_list "(local_28)" ( identifier )))) ;) (expression_statement "cairo_region_destroy(uVar2);" (call_expression "cairo_region_destroy(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "FUN_00144d1a(local_78,param_1);" (call_expression "FUN_00144d1a(local_78,param_1)" identifier (argument_list "(local_78,param_1)" ( identifier , identifier ))) ;) (if_statement "if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }" if (parenthesized_expression "(local_78[0] == 0)" ( (binary_expression "local_78[0] == 0" (subscript_expression "local_78[0]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      gdk_window_end_draw_frame(local_30,local_28);\n    }" { (expression_statement "gdk_window_end_draw_frame(local_30,local_28);" (call_expression "gdk_window_end_draw_frame(local_30,local_28)" identifier (argument_list "(local_30,local_28)" ( identifier , identifier ))) ;) })) (expression_statement "uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));" (assignment_expression "uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80))" identifier = (call_expression "gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x80))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x80)" * (cast_expression "(undefined8 *)(param_1 + 0x80)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) )))) )))) ;) (expression_statement "gdk_window_invalidate_rect(uVar2,0,0);" (call_expression "gdk_window_invalidate_rect(uVar2,0,0)" identifier (argument_list "(uVar2,0,0)" ( identifier , number_literal , number_literal ))) ;) })) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (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 IDENT (argument_list ( IDENT , LIT , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00145197(long param_1)\n\n{\n  long lVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  int local_78 [2];\n  undefined8 local_70;\n  undefined8 local_68;\n  undefined8 local_30;\n  undefined8 local_28;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar1 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n  if (lVar1 != 0) {\n    local_78[0] = 0;\n    uVar2 = gtk_widget_get_type();\n    local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);\n    local_30 = gtk_widget_get_window(local_70);\n    uVar2 = gdk_window_get_clip_region(local_30);\n    local_28 = gdk_window_begin_draw_frame(local_30,uVar2);\n    local_68 = gdk_drawing_context_get_cairo_context(local_28);\n    cairo_region_destroy(uVar2);\n    FUN_00144d1a(local_78,param_1);\n    if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }\n    uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n    gdk_window_invalidate_rect(uVar2,0,0);\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" (primitive_type "void") (function_declarator "FUN_00145197(long param_1)" (identifier "FUN_00145197") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  long lVar1;\n  undefined8 uVar2;\n  long in_FS_OFFSET;\n  int local_78 [2];\n  undefined8 local_70;\n  undefined8 local_68;\n  undefined8 local_30;\n  undefined8 local_28;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  lVar1 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n  if (lVar1 != 0) {\n    local_78[0] = 0;\n    uVar2 = gtk_widget_get_type();\n    local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);\n    local_30 = gtk_widget_get_window(local_70);\n    uVar2 = gdk_window_get_clip_region(local_30);\n    local_28 = gdk_window_begin_draw_frame(local_30,uVar2);\n    local_68 = gdk_drawing_context_get_cairo_context(local_28);\n    cairo_region_destroy(uVar2);\n    FUN_00144d1a(local_78,param_1);\n    if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }\n    uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n    gdk_window_invalidate_rect(uVar2,0,0);\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "int local_78 [2];" (primitive_type "int") (array_declarator "local_78 [2]" (identifier "local_78") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "undefined8 local_70;" (type_identifier "undefined8") (identifier "local_70") (; ";")) (declaration "undefined8 local_68;" (type_identifier "undefined8") (identifier "local_68") (; ";")) (declaration "undefined8 local_30;" (type_identifier "undefined8") (identifier "local_30") (; ";")) (declaration "undefined8 local_28;" (type_identifier "undefined8") (identifier "local_28") (; ";")) (declaration "long local_20;" (sized_type_specifier "long" (long "long")) (identifier "local_20") (; ";")) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "lVar1 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));" (assignment_expression "lVar1 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80))" (identifier "lVar1") (= "=") (call_expression "gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80))" (identifier "gtk_widget_get_window") (argument_list "(*(undefined8 *)(param_1 + 0x80))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x80)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x80)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")")))) () ")")))) (; ";")) (if_statement "if (lVar1 != 0) {\n    local_78[0] = 0;\n    uVar2 = gtk_widget_get_type();\n    local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);\n    local_30 = gtk_widget_get_window(local_70);\n    uVar2 = gdk_window_get_clip_region(local_30);\n    local_28 = gdk_window_begin_draw_frame(local_30,uVar2);\n    local_68 = gdk_drawing_context_get_cairo_context(local_28);\n    cairo_region_destroy(uVar2);\n    FUN_00144d1a(local_78,param_1);\n    if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }\n    uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n    gdk_window_invalidate_rect(uVar2,0,0);\n  }" (if "if") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    local_78[0] = 0;\n    uVar2 = gtk_widget_get_type();\n    local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);\n    local_30 = gtk_widget_get_window(local_70);\n    uVar2 = gdk_window_get_clip_region(local_30);\n    local_28 = gdk_window_begin_draw_frame(local_30,uVar2);\n    local_68 = gdk_drawing_context_get_cairo_context(local_28);\n    cairo_region_destroy(uVar2);\n    FUN_00144d1a(local_78,param_1);\n    if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }\n    uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));\n    gdk_window_invalidate_rect(uVar2,0,0);\n  }" ({ "{") (expression_statement "local_78[0] = 0;" (assignment_expression "local_78[0] = 0" (subscript_expression "local_78[0]" (identifier "local_78") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = gtk_widget_get_type();" (assignment_expression "uVar2 = gtk_widget_get_type()" (identifier "uVar2") (= "=") (call_expression "gtk_widget_get_type()" (identifier "gtk_widget_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);" (assignment_expression "local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2)" (identifier "local_70") (= "=") (call_expression "g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2)" (identifier "g_type_check_instance_cast") (argument_list "(*(undefined8 *)(param_1 + 0x80),uVar2)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x80)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x80)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")")))) (, ",") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "local_30 = gtk_widget_get_window(local_70);" (assignment_expression "local_30 = gtk_widget_get_window(local_70)" (identifier "local_30") (= "=") (call_expression "gtk_widget_get_window(local_70)" (identifier "gtk_widget_get_window") (argument_list "(local_70)" (( "(") (identifier "local_70") () ")")))) (; ";")) (expression_statement "uVar2 = gdk_window_get_clip_region(local_30);" (assignment_expression "uVar2 = gdk_window_get_clip_region(local_30)" (identifier "uVar2") (= "=") (call_expression "gdk_window_get_clip_region(local_30)" (identifier "gdk_window_get_clip_region") (argument_list "(local_30)" (( "(") (identifier "local_30") () ")")))) (; ";")) (expression_statement "local_28 = gdk_window_begin_draw_frame(local_30,uVar2);" (assignment_expression "local_28 = gdk_window_begin_draw_frame(local_30,uVar2)" (identifier "local_28") (= "=") (call_expression "gdk_window_begin_draw_frame(local_30,uVar2)" (identifier "gdk_window_begin_draw_frame") (argument_list "(local_30,uVar2)" (( "(") (identifier "local_30") (, ",") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "local_68 = gdk_drawing_context_get_cairo_context(local_28);" (assignment_expression "local_68 = gdk_drawing_context_get_cairo_context(local_28)" (identifier "local_68") (= "=") (call_expression "gdk_drawing_context_get_cairo_context(local_28)" (identifier "gdk_drawing_context_get_cairo_context") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")")))) (; ";")) (expression_statement "cairo_region_destroy(uVar2);" (call_expression "cairo_region_destroy(uVar2)" (identifier "cairo_region_destroy") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "FUN_00144d1a(local_78,param_1);" (call_expression "FUN_00144d1a(local_78,param_1)" (identifier "FUN_00144d1a") (argument_list "(local_78,param_1)" (( "(") (identifier "local_78") (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (local_78[0] == 0) {\n      gdk_window_end_draw_frame(local_30,local_28);\n    }" (if "if") (parenthesized_expression "(local_78[0] == 0)" (( "(") (binary_expression "local_78[0] == 0" (subscript_expression "local_78[0]" (identifier "local_78") ([ "[") (number_literal "0") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      gdk_window_end_draw_frame(local_30,local_28);\n    }" ({ "{") (expression_statement "gdk_window_end_draw_frame(local_30,local_28);" (call_expression "gdk_window_end_draw_frame(local_30,local_28)" (identifier "gdk_window_end_draw_frame") (argument_list "(local_30,local_28)" (( "(") (identifier "local_30") (, ",") (identifier "local_28") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));" (assignment_expression "uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80))" (identifier "uVar2") (= "=") (call_expression "gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80))" (identifier "gtk_widget_get_window") (argument_list "(*(undefined8 *)(param_1 + 0x80))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x80)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x80)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")")))) () ")")))) (; ";")) (expression_statement "gdk_window_invalidate_rect(uVar2,0,0);" (call_expression "gdk_window_invalidate_rect(uVar2,0,0)" (identifier "gdk_window_invalidate_rect") (argument_list "(uVar2,0,0)" (( "(") (identifier "uVar2") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 *fs)

{
  long var_14;
  long var_3;
  type_2 uVar3;
  long var_1;
  type_3 dctx;
  
  var_14 = *(long *)(var_1 + 0x28);
  var_3 = var_2(fs->preview_area);
  if (var_3 != 0) {
    dctx.type = var_11;
    uVar3 = var_4();
    dctx.u.cairo.widget = (type_4 *)var_5(fs->preview_area,uVar3);
    dctx.u.cairo.gdkwin = (type_5 *)var_2(dctx.u.cairo.widget);
    uVar3 = var_6(dctx.u.cairo.gdkwin);
    dctx.u.cairo.drawctx =
         (type_6 *)var_7(dctx.u.cairo.gdkwin,uVar3);
    dctx.u.cairo.cr = (type_7 *)var_8(dctx.u.cairo.drawctx);
    var_9(uVar3);
    var_10(&dctx,fs);
    if (dctx.type == var_11) {
      var_12(dctx.u.cairo.gdkwin,dctx.u.cairo.drawctx);
    }
    uVar3 = var_2(fs->preview_area);
    var_13(uVar3,0,0);
  }
  if (var_14 == *(long *)(var_1 + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_15();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (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))))) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

void MASKED(long param_1)

{
  long lVar1;
  undefined8 uVar2;
  long in_FS_OFFSET;
  int local_78 [2];
  undefined8 local_70;
  undefined8 local_68;
  undefined8 local_30;
  undefined8 local_28;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  lVar1 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));
  if (lVar1 != 0) {
    local_78[0] = 0;
    uVar2 = gtk_widget_get_type();
    local_70 = g_type_check_instance_cast(*(undefined8 *)(param_1 + 0x80),uVar2);
    local_30 = gtk_widget_get_window(local_70);
    uVar2 = gdk_window_get_clip_region(local_30);
    local_28 = gdk_window_begin_draw_frame(local_30,uVar2);
    local_68 = gdk_drawing_context_get_cairo_context(local_28);
    cairo_region_destroy(uVar2);
    FUN_00144d1a(local_78,param_1);
    if (local_78[0] == 0) {
      gdk_window_end_draw_frame(local_30,local_28);
    }
    uVar2 = gtk_widget_get_window(*(undefined8 *)(param_1 + 0x80));
    gdk_window_invalidate_rect(uVar2,0,0);
  }
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

