
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void __regparm3 unifontsel_draw_preview_text(unifontsel_internal *fs)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int in_GS_OFFSET;
  unifont_drawctx dctx;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = gtk_widget_get_window(fs->preview_area);
  if (iVar2 != 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 (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 FUN_00053cd0(int param_1)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));
  if (iVar2 != 0) {
    uVar3 = gtk_widget_get_type();
    uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);
    uVar3 = gtk_widget_get_window(uVar3);
    uVar4 = gdk_window_get_clip_region(uVar3);
    uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);
    gdk_drawing_context_get_cairo_context(uVar5);
    cairo_region_destroy(uVar4);
    FUN_000528e0();
    gdk_window_end_draw_frame(uVar3,uVar5);
    uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));
    gdk_window_invalidate_rect(uVar3,0,0);
  }
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00066390();
  }
  return;
}


PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x0001b410
ADD EBX,0x5caca
SUB ESP,0x5c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x58],EAX
XOR EAX,EAX
PUSH dword ptr [ESI + 0x40]
CALL 0x00019600
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00053d8a
MOV dword ptr [ESP + 0x8],0x0
CALL 0x00019530
SUB ESP,0x8
PUSH EAX
PUSH dword ptr [ESI + 0x40]
CALL 0x00019590
MOV dword ptr [ESP],EAX
MOV dword ptr [ESP + 0x1c],EAX
CALL 0x00019600
MOV dword ptr [ESP + 0x54],EAX
MOV dword ptr [ESP],EAX
CALL 0x0001a2b0
MOV EDI,EAX
POP EAX
POP EDX
PUSH EDI
PUSH dword ptr [ESP + 0x50]
CALL 0x0001a180
MOV dword ptr [ESP],EAX
MOV dword ptr [ESP + 0x58],EAX
CALL 0x000197c0
MOV dword ptr [ESP],EDI
MOV dword ptr [ESP + 0x20],EAX
CALL 0x0001a7e0
LEA EAX,[ESP + 0x18]
MOV EDX,ESI
CALL 0x000528e0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x8]
TEST ECX,ECX
JZ 0x00053da0
SUB ESP,0xc
PUSH dword ptr [ESI + 0x40]
CALL 0x00019600
ADD ESP,0xc
PUSH 0x0
PUSH 0x0
PUSH EAX
CALL 0x0001a8d0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x4c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00053db5
ADD ESP,0x50
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x8
PUSH dword ptr [ESP + 0x50]
PUSH dword ptr [ESP + 0x50]
CALL 0x0001a3b0
ADD ESP,0x10
JMP 0x00053d6f
CALL 0x00066390
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00053cd0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n  if (iVar2 != 0) {\n    uVar3 = gtk_widget_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);\n    uVar3 = gtk_widget_get_window(uVar3);\n    uVar4 = gdk_window_get_clip_region(uVar3);\n    uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);\n    gdk_drawing_context_get_cairo_context(uVar5);\n    cairo_region_destroy(uVar4);\n    FUN_000528e0();\n    gdk_window_end_draw_frame(uVar3,uVar5);\n    uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00066390();\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00053cd0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n  if (iVar2 != 0) {\n    uVar3 = gtk_widget_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);\n    uVar3 = gtk_widget_get_window(uVar3);\n    uVar4 = gdk_window_get_clip_region(uVar3);\n    uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);\n    gdk_drawing_context_get_cairo_context(uVar5);\n    cairo_region_destroy(uVar4);\n    FUN_000528e0();\n    gdk_window_end_draw_frame(uVar3,uVar5);\n    uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00066390();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00053cd0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n  if (iVar2 != 0) {\n    uVar3 = gtk_widget_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);\n    uVar3 = gtk_widget_get_window(uVar3);\n    uVar4 = gdk_window_get_clip_region(uVar3);\n    uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);\n    gdk_drawing_context_get_cairo_context(uVar5);\n    cairo_region_destroy(uVar4);\n    FUN_000528e0();\n    gdk_window_end_draw_frame(uVar3,uVar5);\n    uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00066390();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));" (assignment_expression "iVar2 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40))" identifier = (call_expression "gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x40))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x40)" * (cast_expression "(undefined4 *)(param_1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar2 != 0) {\n    uVar3 = gtk_widget_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);\n    uVar3 = gtk_widget_get_window(uVar3);\n    uVar4 = gdk_window_get_clip_region(uVar3);\n    uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);\n    gdk_drawing_context_get_cairo_context(uVar5);\n    cairo_region_destroy(uVar4);\n    FUN_000528e0();\n    gdk_window_end_draw_frame(uVar3,uVar5);\n    uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = gtk_widget_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);\n    uVar3 = gtk_widget_get_window(uVar3);\n    uVar4 = gdk_window_get_clip_region(uVar3);\n    uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);\n    gdk_drawing_context_get_cairo_context(uVar5);\n    cairo_region_destroy(uVar4);\n    FUN_000528e0();\n    gdk_window_end_draw_frame(uVar3,uVar5);\n    uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }" { (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 "uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x40),uVar3)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x40)" * (cast_expression "(undefined4 *)(param_1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "uVar3 = gtk_widget_get_window(uVar3);" (assignment_expression "uVar3 = gtk_widget_get_window(uVar3)" identifier = (call_expression "gtk_widget_get_window(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "uVar4 = gdk_window_get_clip_region(uVar3);" (assignment_expression "uVar4 = gdk_window_get_clip_region(uVar3)" identifier = (call_expression "gdk_window_get_clip_region(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);" (assignment_expression "uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4)" identifier = (call_expression "gdk_window_begin_draw_frame(uVar3,uVar4)" identifier (argument_list "(uVar3,uVar4)" ( identifier , identifier )))) ;) (expression_statement "gdk_drawing_context_get_cairo_context(uVar5);" (call_expression "gdk_drawing_context_get_cairo_context(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "cairo_region_destroy(uVar4);" (call_expression "cairo_region_destroy(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "FUN_000528e0();" (call_expression "FUN_000528e0()" identifier (argument_list "()" ( ))) ;) (expression_statement "gdk_window_end_draw_frame(uVar3,uVar5);" (call_expression "gdk_window_end_draw_frame(uVar3,uVar5)" identifier (argument_list "(uVar3,uVar5)" ( identifier , identifier ))) ;) (expression_statement "uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));" (assignment_expression "uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40))" identifier = (call_expression "gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x40))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x40)" * (cast_expression "(undefined4 *)(param_1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) )))) ;) (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 (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00066390();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00066390();\n  }" { comment (expression_statement "FUN_00066390();" (call_expression "FUN_00066390()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid __regparm3 unifontsel_draw_preview_text(unifontsel_internal *fs)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  unifont_drawctx dctx;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = gtk_widget_get_window(fs->preview_area);\n  if (iVar2 != 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 (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void __regparm3 unifontsel_draw_preview_text(unifontsel_internal *fs)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  unifont_drawctx dctx;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = gtk_widget_get_window(fs->preview_area);\n  if (iVar2 != 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 (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (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  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int in_GS_OFFSET;\n  unifont_drawctx dctx;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = gtk_widget_get_window(fs->preview_area);\n  if (iVar2 != 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 (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "unifont_drawctx dctx;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = gtk_widget_get_window(fs->preview_area);" (assignment_expression "iVar2 = 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 (iVar2 != 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 "(iVar2 != 0)" ( (binary_expression "iVar2 != 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 (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __regparm3 FUN_00053cd0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n  if (iVar2 != 0) {\n    uVar3 = gtk_widget_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);\n    uVar3 = gtk_widget_get_window(uVar3);\n    uVar4 = gdk_window_get_clip_region(uVar3);\n    uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);\n    gdk_drawing_context_get_cairo_context(uVar5);\n    cairo_region_destroy(uVar4);\n    FUN_000528e0();\n    gdk_window_end_draw_frame(uVar3,uVar5);\n    uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00066390();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00053cd0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n  if (iVar2 != 0) {\n    uVar3 = gtk_widget_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);\n    uVar3 = gtk_widget_get_window(uVar3);\n    uVar4 = gdk_window_get_clip_region(uVar3);\n    uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);\n    gdk_drawing_context_get_cairo_context(uVar5);\n    cairo_region_destroy(uVar4);\n    FUN_000528e0();\n    gdk_window_end_draw_frame(uVar3,uVar5);\n    uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00066390();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00053cd0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n  if (iVar2 != 0) {\n    uVar3 = gtk_widget_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);\n    uVar3 = gtk_widget_get_window(uVar3);\n    uVar4 = gdk_window_get_clip_region(uVar3);\n    uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);\n    gdk_drawing_context_get_cairo_context(uVar5);\n    cairo_region_destroy(uVar4);\n    FUN_000528e0();\n    gdk_window_end_draw_frame(uVar3,uVar5);\n    uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00066390();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));" (assignment_expression "iVar2 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40))" identifier = (call_expression "gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x40))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x40)" * (cast_expression "(undefined4 *)(param_1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar2 != 0) {\n    uVar3 = gtk_widget_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);\n    uVar3 = gtk_widget_get_window(uVar3);\n    uVar4 = gdk_window_get_clip_region(uVar3);\n    uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);\n    gdk_drawing_context_get_cairo_context(uVar5);\n    cairo_region_destroy(uVar4);\n    FUN_000528e0();\n    gdk_window_end_draw_frame(uVar3,uVar5);\n    uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = gtk_widget_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);\n    uVar3 = gtk_widget_get_window(uVar3);\n    uVar4 = gdk_window_get_clip_region(uVar3);\n    uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);\n    gdk_drawing_context_get_cairo_context(uVar5);\n    cairo_region_destroy(uVar4);\n    FUN_000528e0();\n    gdk_window_end_draw_frame(uVar3,uVar5);\n    uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }" { (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 "uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3)" identifier = (call_expression "g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x40),uVar3)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x40)" * (cast_expression "(undefined4 *)(param_1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "uVar3 = gtk_widget_get_window(uVar3);" (assignment_expression "uVar3 = gtk_widget_get_window(uVar3)" identifier = (call_expression "gtk_widget_get_window(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "uVar4 = gdk_window_get_clip_region(uVar3);" (assignment_expression "uVar4 = gdk_window_get_clip_region(uVar3)" identifier = (call_expression "gdk_window_get_clip_region(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);" (assignment_expression "uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4)" identifier = (call_expression "gdk_window_begin_draw_frame(uVar3,uVar4)" identifier (argument_list "(uVar3,uVar4)" ( identifier , identifier )))) ;) (expression_statement "gdk_drawing_context_get_cairo_context(uVar5);" (call_expression "gdk_drawing_context_get_cairo_context(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "cairo_region_destroy(uVar4);" (call_expression "cairo_region_destroy(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "FUN_000528e0();" (call_expression "FUN_000528e0()" identifier (argument_list "()" ( ))) ;) (expression_statement "gdk_window_end_draw_frame(uVar3,uVar5);" (call_expression "gdk_window_end_draw_frame(uVar3,uVar5)" identifier (argument_list "(uVar3,uVar5)" ( identifier , identifier ))) ;) (expression_statement "uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));" (assignment_expression "uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40))" identifier = (call_expression "gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x40))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x40)" * (cast_expression "(undefined4 *)(param_1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) )))) ;) (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 (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00066390();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_00066390();\n  }" { (expression_statement "FUN_00066390();" (call_expression "FUN_00066390()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 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 (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00053cd0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n  if (iVar2 != 0) {\n    uVar3 = gtk_widget_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);\n    uVar3 = gtk_widget_get_window(uVar3);\n    uVar4 = gdk_window_get_clip_region(uVar3);\n    uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);\n    gdk_drawing_context_get_cairo_context(uVar5);\n    cairo_region_destroy(uVar4);\n    FUN_000528e0();\n    gdk_window_end_draw_frame(uVar3,uVar5);\n    uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00066390();\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00053cd0(int param_1)" (identifier "FUN_00053cd0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n  if (iVar2 != 0) {\n    uVar3 = gtk_widget_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);\n    uVar3 = gtk_widget_get_window(uVar3);\n    uVar4 = gdk_window_get_clip_region(uVar3);\n    uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);\n    gdk_drawing_context_get_cairo_context(uVar5);\n    cairo_region_destroy(uVar4);\n    FUN_000528e0();\n    gdk_window_end_draw_frame(uVar3,uVar5);\n    uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00066390();\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar2 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));" (assignment_expression "iVar2 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40))" (identifier "iVar2") (= "=") (call_expression "gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40))" (identifier "gtk_widget_get_window") (argument_list "(*(undefined4 *)(param_1 + 0x40))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x40)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    uVar3 = gtk_widget_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);\n    uVar3 = gtk_widget_get_window(uVar3);\n    uVar4 = gdk_window_get_clip_region(uVar3);\n    uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);\n    gdk_drawing_context_get_cairo_context(uVar5);\n    cairo_region_destroy(uVar4);\n    FUN_000528e0();\n    gdk_window_end_draw_frame(uVar3,uVar5);\n    uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = gtk_widget_get_type();\n    uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);\n    uVar3 = gtk_widget_get_window(uVar3);\n    uVar4 = gdk_window_get_clip_region(uVar3);\n    uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);\n    gdk_drawing_context_get_cairo_context(uVar5);\n    cairo_region_destroy(uVar4);\n    FUN_000528e0();\n    gdk_window_end_draw_frame(uVar3,uVar5);\n    uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));\n    gdk_window_invalidate_rect(uVar3,0,0);\n  }" ({ "{") (expression_statement "uVar3 = gtk_widget_get_type();" (assignment_expression "uVar3 = gtk_widget_get_type()" (identifier "uVar3") (= "=") (call_expression "gtk_widget_get_type()" (identifier "gtk_widget_get_type") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);" (assignment_expression "uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3)" (identifier "uVar3") (= "=") (call_expression "g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3)" (identifier "g_type_check_instance_cast") (argument_list "(*(undefined4 *)(param_1 + 0x40),uVar3)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x40)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (, ",") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "uVar3 = gtk_widget_get_window(uVar3);" (assignment_expression "uVar3 = gtk_widget_get_window(uVar3)" (identifier "uVar3") (= "=") (call_expression "gtk_widget_get_window(uVar3)" (identifier "gtk_widget_get_window") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "uVar4 = gdk_window_get_clip_region(uVar3);" (assignment_expression "uVar4 = gdk_window_get_clip_region(uVar3)" (identifier "uVar4") (= "=") (call_expression "gdk_window_get_clip_region(uVar3)" (identifier "gdk_window_get_clip_region") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);" (assignment_expression "uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4)" (identifier "uVar5") (= "=") (call_expression "gdk_window_begin_draw_frame(uVar3,uVar4)" (identifier "gdk_window_begin_draw_frame") (argument_list "(uVar3,uVar4)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "gdk_drawing_context_get_cairo_context(uVar5);" (call_expression "gdk_drawing_context_get_cairo_context(uVar5)" (identifier "gdk_drawing_context_get_cairo_context") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "cairo_region_destroy(uVar4);" (call_expression "cairo_region_destroy(uVar4)" (identifier "cairo_region_destroy") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "FUN_000528e0();" (call_expression "FUN_000528e0()" (identifier "FUN_000528e0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "gdk_window_end_draw_frame(uVar3,uVar5);" (call_expression "gdk_window_end_draw_frame(uVar3,uVar5)" (identifier "gdk_window_end_draw_frame") (argument_list "(uVar3,uVar5)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));" (assignment_expression "uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40))" (identifier "uVar3") (= "=") (call_expression "gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40))" (identifier "gtk_widget_get_window") (argument_list "(*(undefined4 *)(param_1 + 0x40))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x40)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) () ")")))) (; ";")) (expression_statement "gdk_window_invalidate_rect(uVar3,0,0);" (call_expression "gdk_window_invalidate_rect(uVar3,0,0)" (identifier "gdk_window_invalidate_rect") (argument_list "(uVar3,0,0)" (( "(") (identifier "uVar3") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00066390();\n  }" (if "if") (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_00066390();\n  }" ({ "{") (expression_statement "FUN_00066390();" (call_expression "FUN_00066390()" (identifier "FUN_00066390") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void __regparm3 function_1(type_1 *fs)

{
  int var_14;
  int var_3;
  type_2 uVar3;
  int var_1;
  type_3 dctx;
  
  var_14 = *(int *)(var_1 + 0x14);
  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 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_15();
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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 (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: (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 (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))) (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));
  if (iVar2 != 0) {
    uVar3 = gtk_widget_get_type();
    uVar3 = g_type_check_instance_cast(*(undefined4 *)(param_1 + 0x40),uVar3);
    uVar3 = gtk_widget_get_window(uVar3);
    uVar4 = gdk_window_get_clip_region(uVar3);
    uVar5 = gdk_window_begin_draw_frame(uVar3,uVar4);
    gdk_drawing_context_get_cairo_context(uVar5);
    cairo_region_destroy(uVar4);
    FUN_000528e0();
    gdk_window_end_draw_frame(uVar3,uVar5);
    uVar3 = gtk_widget_get_window(*(undefined4 *)(param_1 + 0x40));
    gdk_window_invalidate_rect(uVar3,0,0);
  }
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00066390();
  }
  return;
}

