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

void x11font_cairo_setup(unifont_drawctx *ctx,x11font_individual *xfi)

{
  int iVar1;
  short sVar2;
  XFontStruct *pXVar3;
  undefined4 uVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  Pixmap PVar8;
  GC p_Var9;
  int iVar10;
  int iVar11;
  int in_GS_OFFSET;
  XGCValues gcvals;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (xfi->pixmap == 0) {
    uVar4 = gdk_display_get_default();
    iVar5 = gdk_x11_display_get_xdisplay(uVar4);
    uVar4 = gtk_widget_get_window((ctx->u).cairo.widget);
    uVar4 = gdk_window_get_screen(uVar4);
    iVar6 = gdk_x11_screen_get_screen_number(uVar4);
    pXVar3 = xfi->xfs;
    iVar10 = (int)(pXVar3->min_bounds).lbearing;
    iVar7 = (pXVar3->max_bounds).rbearing - iVar10;
    iVar11 = (int)(pXVar3->max_bounds).ascent;
    sVar2 = (pXVar3->max_bounds).descent;
    xfi->pixwidth = iVar7;
    xfi->pixoriginy = iVar11;
    xfi->pixheight = sVar2 + iVar11;
    xfi->pixoriginx = -iVar10;
    iVar11 = cairo_format_stride_for_width(3,iVar7);
    iVar7 = xfi->pixheight;
    iVar10 = xfi->pixwidth;
    xfi->indexflip = 0;
    xfi->rowsize = iVar11;
    xfi->allsize = iVar11 * iVar7;
    uVar4 = gtk_widget_get_window((ctx->u).cairo.widget);
    uVar4 = gdk_x11_window_get_xid(uVar4);
    PVar8 = XCreatePixmap(iVar5,uVar4,iVar10,iVar7,1);
    xfi->pixmap = PVar8;
    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);
    gcvals.background = *(ulong *)(iVar7 + 0x38);
    gcvals.foreground = *(ulong *)(iVar7 + 0x34);
    gcvals.font = xfi->xfs->fid;
    p_Var9 = (GC)XCreateGC(iVar5,PVar8,0x400c,&gcvals);
    xfi->gc = p_Var9;
  }
  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 FUN_00061190(int param_1,int *param_2)

{
  short sVar1;
  short sVar2;
  short sVar3;
  undefined4 uVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  int in_GS_OFFSET;
  undefined1 local_7c [8];
  undefined4 local_74;
  undefined4 local_70;
  undefined4 local_40;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x61199;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2[4] == 0) {
    uVar4 = gdk_display_get_default();
    iVar5 = gdk_x11_display_get_xdisplay(uVar4);
    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));
    uVar4 = gdk_window_get_screen(uVar4);
    iVar6 = gdk_x11_screen_get_screen_number(uVar4);
    iVar9 = *param_2;
    sVar1 = *(short *)(iVar9 + 0x2c);
    iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;
    sVar2 = *(short *)(iVar9 + 0x3e);
    sVar3 = *(short *)(iVar9 + 0x40);
    param_2[6] = iVar7;
    param_2[9] = (int)sVar2;
    param_2[7] = (int)sVar3 + (int)sVar2;
    param_2[8] = -(int)sVar1;
    iVar8 = cairo_format_stride_for_width(3,iVar7);
    iVar9 = param_2[7];
    iVar7 = param_2[6];
    param_2[0xc] = 0;
    param_2[10] = iVar8;
    param_2[0xb] = iVar8 * iVar9;
    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));
    uVar4 = gdk_x11_window_get_xid(uVar4);
    iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);
    param_2[4] = iVar9;
    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);
    local_70 = *(undefined4 *)(iVar7 + 0x38);
    local_74 = *(undefined4 *)(iVar7 + 0x34);
    local_40 = *(undefined4 *)(*param_2 + 4);
    iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);
    param_2[5] = iVar9;
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00077880();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001b410
ADD EBX,0x6460b
SUB ESP,0x7c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x6c],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x94]
MOV EDI,dword ptr [ESP + 0x90]
MOV EAX,dword ptr [ESI + 0x10]
TEST EAX,EAX
JZ 0x000611e0
MOV EAX,dword ptr [ESP + 0x6c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x000612d3
ADD ESP,0x7c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00019e00
SUB ESP,0xc
PUSH EAX
CALL 0x0001af10
MOV EBP,EAX
POP EAX
PUSH dword ptr [EDI + 0x4]
CALL 0x00019600
MOV dword ptr [ESP],EAX
CALL 0x0001ab70
MOV dword ptr [ESP],EAX
CALL 0x00019ce0
MOV EDX,dword ptr [ESI]
MOV dword ptr [ESP + 0x14],EAX
MOVSX ECX,word ptr [EDX + 0x2c]
MOVSX EAX,word ptr [EDX + 0x3a]
MOV dword ptr [ESP + 0x18],ECX
SUB EAX,ECX
MOVSX ECX,word ptr [EDX + 0x3e]
MOVSX EDX,word ptr [EDX + 0x40]
MOV dword ptr [ESI + 0x18],EAX
MOV dword ptr [ESI + 0x24],ECX
ADD EDX,ECX
MOV dword ptr [ESI + 0x1c],EDX
MOV EDX,dword ptr [ESP + 0x18]
NEG EDX
MOV dword ptr [ESI + 0x20],EDX
POP EDX
POP ECX
PUSH EAX
PUSH 0x3
CALL 0x00019a00
MOV EDX,dword ptr [ESI + 0x1c]
MOV ECX,dword ptr [ESI + 0x18]
MOV dword ptr [ESI + 0x30],0x0
MOV dword ptr [ESI + 0x28],EAX
IMUL EAX,EDX
MOV dword ptr [ESP + 0x1c],EDX
MOV dword ptr [ESP + 0x18],ECX
MOV dword ptr [ESI + 0x2c],EAX
POP EAX
PUSH dword ptr [EDI + 0x4]
CALL 0x00019600
MOV dword ptr [ESP],EAX
CALL 0x000191c0
MOV EDX,dword ptr [ESP + 0x1c]
MOV dword ptr [ESP],0x1
PUSH EDX
MOV ECX,dword ptr [ESP + 0x1c]
PUSH ECX
PUSH EAX
PUSH EBP
CALL 0x000193a0
MOV EDI,dword ptr [ESP + 0x24]
MOV dword ptr [ESI + 0x10],EAX
LEA EDX,[EDI + EDI*0x4]
SHL EDX,0x4
ADD EDX,dword ptr [EBP + 0x8c]
MOV ECX,dword ptr [EDX + 0x38]
MOV EDX,dword ptr [EDX + 0x34]
MOV dword ptr [ESP + 0x38],EDX
MOV EDX,dword ptr [ESI]
MOV dword ptr [ESP + 0x3c],ECX
MOV EDX,dword ptr [EDX + 0x4]
MOV dword ptr [ESP + 0x6c],EDX
ADD ESP,0x20
LEA EDX,[ESP + 0x10]
PUSH EDX
PUSH 0x400c
PUSH EAX
PUSH EBP
CALL 0x00019830
ADD ESP,0x10
MOV dword ptr [ESI + 0x14],EAX
JMP 0x000611c3
CALL 0x00077880
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00061190(int param_1,int *param_2)\n\n{\n  short sVar1;\n  short sVar2;\n  short sVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  undefined1 local_7c [8];\n  undefined4 local_74;\n  undefined4 local_70;\n  undefined4 local_40;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x61199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2[4] == 0) {\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    iVar9 = *param_2;\n    sVar1 = *(short *)(iVar9 + 0x2c);\n    iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;\n    sVar2 = *(short *)(iVar9 + 0x3e);\n    sVar3 = *(short *)(iVar9 + 0x40);\n    param_2[6] = iVar7;\n    param_2[9] = (int)sVar2;\n    param_2[7] = (int)sVar3 + (int)sVar2;\n    param_2[8] = -(int)sVar1;\n    iVar8 = cairo_format_stride_for_width(3,iVar7);\n    iVar9 = param_2[7];\n    iVar7 = param_2[6];\n    param_2[0xc] = 0;\n    param_2[10] = iVar8;\n    param_2[0xb] = iVar8 * iVar9;\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);\n    param_2[4] = iVar9;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    local_70 = *(undefined4 *)(iVar7 + 0x38);\n    local_74 = *(undefined4 *)(iVar7 + 0x34);\n    local_40 = *(undefined4 *)(*param_2 + 4);\n    iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);\n    param_2[5] = iVar9;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00077880();\n}\n\n" comment (function_definition "void FUN_00061190(int param_1,int *param_2)\n\n{\n  short sVar1;\n  short sVar2;\n  short sVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  undefined1 local_7c [8];\n  undefined4 local_74;\n  undefined4 local_70;\n  undefined4 local_40;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x61199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2[4] == 0) {\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    iVar9 = *param_2;\n    sVar1 = *(short *)(iVar9 + 0x2c);\n    iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;\n    sVar2 = *(short *)(iVar9 + 0x3e);\n    sVar3 = *(short *)(iVar9 + 0x40);\n    param_2[6] = iVar7;\n    param_2[9] = (int)sVar2;\n    param_2[7] = (int)sVar3 + (int)sVar2;\n    param_2[8] = -(int)sVar1;\n    iVar8 = cairo_format_stride_for_width(3,iVar7);\n    iVar9 = param_2[7];\n    iVar7 = param_2[6];\n    param_2[0xc] = 0;\n    param_2[10] = iVar8;\n    param_2[0xb] = iVar8 * iVar9;\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);\n    param_2[4] = iVar9;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    local_70 = *(undefined4 *)(iVar7 + 0x38);\n    local_74 = *(undefined4 *)(iVar7 + 0x34);\n    local_40 = *(undefined4 *)(*param_2 + 4);\n    iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);\n    param_2[5] = iVar9;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00077880();\n}" primitive_type (function_declarator "FUN_00061190(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  short sVar1;\n  short sVar2;\n  short sVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  undefined1 local_7c [8];\n  undefined4 local_74;\n  undefined4 local_70;\n  undefined4 local_40;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x61199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2[4] == 0) {\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    iVar9 = *param_2;\n    sVar1 = *(short *)(iVar9 + 0x2c);\n    iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;\n    sVar2 = *(short *)(iVar9 + 0x3e);\n    sVar3 = *(short *)(iVar9 + 0x40);\n    param_2[6] = iVar7;\n    param_2[9] = (int)sVar2;\n    param_2[7] = (int)sVar3 + (int)sVar2;\n    param_2[8] = -(int)sVar1;\n    iVar8 = cairo_format_stride_for_width(3,iVar7);\n    iVar9 = param_2[7];\n    iVar7 = param_2[6];\n    param_2[0xc] = 0;\n    param_2[10] = iVar8;\n    param_2[0xb] = iVar8 * iVar9;\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);\n    param_2[4] = iVar9;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    local_70 = *(undefined4 *)(iVar7 + 0x38);\n    local_74 = *(undefined4 *)(iVar7 + 0x34);\n    local_40 = *(undefined4 *)(*param_2 + 4);\n    iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);\n    param_2[5] = iVar9;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00077880();\n}" { (declaration "short sVar1;" (sized_type_specifier "short" short) identifier ;) (declaration "short sVar2;" (sized_type_specifier "short" short) identifier ;) (declaration "short sVar3;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_7c [8];" type_identifier (array_declarator "local_7c [8]" identifier [ number_literal ]) ;) (declaration "undefined4 local_74;" type_identifier identifier ;) (declaration "undefined4 local_70;" type_identifier identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x61199;" (assignment_expression "uStack_14 = 0x61199" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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) ))))) ;) (if_statement "if (param_2[4] == 0) {\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    iVar9 = *param_2;\n    sVar1 = *(short *)(iVar9 + 0x2c);\n    iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;\n    sVar2 = *(short *)(iVar9 + 0x3e);\n    sVar3 = *(short *)(iVar9 + 0x40);\n    param_2[6] = iVar7;\n    param_2[9] = (int)sVar2;\n    param_2[7] = (int)sVar3 + (int)sVar2;\n    param_2[8] = -(int)sVar1;\n    iVar8 = cairo_format_stride_for_width(3,iVar7);\n    iVar9 = param_2[7];\n    iVar7 = param_2[6];\n    param_2[0xc] = 0;\n    param_2[10] = iVar8;\n    param_2[0xb] = iVar8 * iVar9;\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);\n    param_2[4] = iVar9;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    local_70 = *(undefined4 *)(iVar7 + 0x38);\n    local_74 = *(undefined4 *)(iVar7 + 0x34);\n    local_40 = *(undefined4 *)(*param_2 + 4);\n    iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);\n    param_2[5] = iVar9;\n  }" if (parenthesized_expression "(param_2[4] == 0)" ( (binary_expression "param_2[4] == 0" (subscript_expression "param_2[4]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    iVar9 = *param_2;\n    sVar1 = *(short *)(iVar9 + 0x2c);\n    iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;\n    sVar2 = *(short *)(iVar9 + 0x3e);\n    sVar3 = *(short *)(iVar9 + 0x40);\n    param_2[6] = iVar7;\n    param_2[9] = (int)sVar2;\n    param_2[7] = (int)sVar3 + (int)sVar2;\n    param_2[8] = -(int)sVar1;\n    iVar8 = cairo_format_stride_for_width(3,iVar7);\n    iVar9 = param_2[7];\n    iVar7 = param_2[6];\n    param_2[0xc] = 0;\n    param_2[10] = iVar8;\n    param_2[0xb] = iVar8 * iVar9;\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);\n    param_2[4] = iVar9;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    local_70 = *(undefined4 *)(iVar7 + 0x38);\n    local_74 = *(undefined4 *)(iVar7 + 0x34);\n    local_40 = *(undefined4 *)(*param_2 + 4);\n    iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);\n    param_2[5] = iVar9;\n  }" { (expression_statement "uVar4 = gdk_display_get_default();" (assignment_expression "uVar4 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = gdk_x11_display_get_xdisplay(uVar4);" (assignment_expression "iVar5 = gdk_x11_display_get_xdisplay(uVar4)" identifier = (call_expression "gdk_x11_display_get_xdisplay(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));" (assignment_expression "uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "gtk_widget_get_window(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "uVar4 = gdk_window_get_screen(uVar4);" (assignment_expression "uVar4 = gdk_window_get_screen(uVar4)" identifier = (call_expression "gdk_window_get_screen(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar6 = gdk_x11_screen_get_screen_number(uVar4);" (assignment_expression "iVar6 = gdk_x11_screen_get_screen_number(uVar4)" identifier = (call_expression "gdk_x11_screen_get_screen_number(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar9 = *param_2;" (assignment_expression "iVar9 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "sVar1 = *(short *)(iVar9 + 0x2c);" (assignment_expression "sVar1 = *(short *)(iVar9 + 0x2c)" identifier = (pointer_expression "*(short *)(iVar9 + 0x2c)" * (cast_expression "(short *)(iVar9 + 0x2c)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x2c)" ( (binary_expression "iVar9 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;" (assignment_expression "iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1" identifier = (binary_expression "(int)*(short *)(iVar9 + 0x3a) - (int)sVar1" (cast_expression "(int)*(short *)(iVar9 + 0x3a)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(iVar9 + 0x3a)" * (cast_expression "(short *)(iVar9 + 0x3a)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x3a)" ( (binary_expression "iVar9 + 0x3a" identifier + number_literal) ))))) - (cast_expression "(int)sVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "sVar2 = *(short *)(iVar9 + 0x3e);" (assignment_expression "sVar2 = *(short *)(iVar9 + 0x3e)" identifier = (pointer_expression "*(short *)(iVar9 + 0x3e)" * (cast_expression "(short *)(iVar9 + 0x3e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x3e)" ( (binary_expression "iVar9 + 0x3e" identifier + number_literal) ))))) ;) (expression_statement "sVar3 = *(short *)(iVar9 + 0x40);" (assignment_expression "sVar3 = *(short *)(iVar9 + 0x40)" identifier = (pointer_expression "*(short *)(iVar9 + 0x40)" * (cast_expression "(short *)(iVar9 + 0x40)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x40)" ( (binary_expression "iVar9 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "param_2[6] = iVar7;" (assignment_expression "param_2[6] = iVar7" (subscript_expression "param_2[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[9] = (int)sVar2;" (assignment_expression "param_2[9] = (int)sVar2" (subscript_expression "param_2[9]" identifier [ number_literal ]) = (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_2[7] = (int)sVar3 + (int)sVar2;" (assignment_expression "param_2[7] = (int)sVar3 + (int)sVar2" (subscript_expression "param_2[7]" identifier [ number_literal ]) = (binary_expression "(int)sVar3 + (int)sVar2" (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "param_2[8] = -(int)sVar1;" (assignment_expression "param_2[8] = -(int)sVar1" (subscript_expression "param_2[8]" identifier [ number_literal ]) = (unary_expression "-(int)sVar1" - (cast_expression "(int)sVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar8 = cairo_format_stride_for_width(3,iVar7);" (assignment_expression "iVar8 = cairo_format_stride_for_width(3,iVar7)" identifier = (call_expression "cairo_format_stride_for_width(3,iVar7)" identifier (argument_list "(3,iVar7)" ( number_literal , identifier )))) ;) (expression_statement "iVar9 = param_2[7];" (assignment_expression "iVar9 = param_2[7]" identifier = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) (expression_statement "iVar7 = param_2[6];" (assignment_expression "iVar7 = param_2[6]" identifier = (subscript_expression "param_2[6]" identifier [ number_literal ])) ;) (expression_statement "param_2[0xc] = 0;" (assignment_expression "param_2[0xc] = 0" (subscript_expression "param_2[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[10] = iVar8;" (assignment_expression "param_2[10] = iVar8" (subscript_expression "param_2[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[0xb] = iVar8 * iVar9;" (assignment_expression "param_2[0xb] = iVar8 * iVar9" (subscript_expression "param_2[0xb]" identifier [ number_literal ]) = (binary_expression "iVar8 * iVar9" identifier * identifier)) ;) (expression_statement "uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));" (assignment_expression "uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "gtk_widget_get_window(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "uVar4 = gdk_x11_window_get_xid(uVar4);" (assignment_expression "uVar4 = gdk_x11_window_get_xid(uVar4)" identifier = (call_expression "gdk_x11_window_get_xid(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);" (assignment_expression "iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1)" identifier = (call_expression "XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1)" identifier (argument_list "(iVar5,uVar4,iVar7,iVar9,1)" ( identifier , identifier , identifier , identifier , number_literal )))) ;) (expression_statement "param_2[4] = iVar9;" (assignment_expression "param_2[4] = iVar9" (subscript_expression "param_2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);" (assignment_expression "iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c)" identifier = (binary_expression "iVar6 * 0x50 + *(int *)(iVar5 + 0x8c)" (binary_expression "iVar6 * 0x50" identifier * number_literal) + (pointer_expression "*(int *)(iVar5 + 0x8c)" * (cast_expression "(int *)(iVar5 + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x8c)" ( (binary_expression "iVar5 + 0x8c" identifier + number_literal) )))))) ;) (expression_statement "local_70 = *(undefined4 *)(iVar7 + 0x38);" (assignment_expression "local_70 = *(undefined4 *)(iVar7 + 0x38)" identifier = (pointer_expression "*(undefined4 *)(iVar7 + 0x38)" * (cast_expression "(undefined4 *)(iVar7 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x38)" ( (binary_expression "iVar7 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "local_74 = *(undefined4 *)(iVar7 + 0x34);" (assignment_expression "local_74 = *(undefined4 *)(iVar7 + 0x34)" identifier = (pointer_expression "*(undefined4 *)(iVar7 + 0x34)" * (cast_expression "(undefined4 *)(iVar7 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x34)" ( (binary_expression "iVar7 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "local_40 = *(undefined4 *)(*param_2 + 4);" (assignment_expression "local_40 = *(undefined4 *)(*param_2 + 4)" identifier = (pointer_expression "*(undefined4 *)(*param_2 + 4)" * (cast_expression "(undefined4 *)(*param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 4)" ( (binary_expression "*param_2 + 4" (pointer_expression "*param_2" * identifier) + number_literal) ))))) ;) (expression_statement "iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);" (assignment_expression "iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c)" identifier = (call_expression "XCreateGC(iVar5,iVar9,0x400c,local_7c)" identifier (argument_list "(iVar5,iVar9,0x400c,local_7c)" ( identifier , identifier , number_literal , identifier )))) ;) (expression_statement "param_2[5] = iVar9;" (assignment_expression "param_2[5] = iVar9" (subscript_expression "param_2[5]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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 "FUN_00077880();" (call_expression "FUN_00077880()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid x11font_cairo_setup(unifont_drawctx *ctx,x11font_individual *xfi)\n\n{\n  int iVar1;\n  short sVar2;\n  XFontStruct *pXVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  Pixmap PVar8;\n  GC p_Var9;\n  int iVar10;\n  int iVar11;\n  int in_GS_OFFSET;\n  XGCValues gcvals;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (xfi->pixmap == 0) {\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window((ctx->u).cairo.widget);\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    pXVar3 = xfi->xfs;\n    iVar10 = (int)(pXVar3->min_bounds).lbearing;\n    iVar7 = (pXVar3->max_bounds).rbearing - iVar10;\n    iVar11 = (int)(pXVar3->max_bounds).ascent;\n    sVar2 = (pXVar3->max_bounds).descent;\n    xfi->pixwidth = iVar7;\n    xfi->pixoriginy = iVar11;\n    xfi->pixheight = sVar2 + iVar11;\n    xfi->pixoriginx = -iVar10;\n    iVar11 = cairo_format_stride_for_width(3,iVar7);\n    iVar7 = xfi->pixheight;\n    iVar10 = xfi->pixwidth;\n    xfi->indexflip = 0;\n    xfi->rowsize = iVar11;\n    xfi->allsize = iVar11 * iVar7;\n    uVar4 = gtk_widget_get_window((ctx->u).cairo.widget);\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    PVar8 = XCreatePixmap(iVar5,uVar4,iVar10,iVar7,1);\n    xfi->pixmap = PVar8;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    gcvals.background = *(ulong *)(iVar7 + 0x38);\n    gcvals.foreground = *(ulong *)(iVar7 + 0x34);\n    gcvals.font = xfi->xfs->fid;\n    p_Var9 = (GC)XCreateGC(iVar5,PVar8,0x400c,&gcvals);\n    xfi->gc = p_Var9;\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 comment (function_definition "void x11font_cairo_setup(unifont_drawctx *ctx,x11font_individual *xfi)\n\n{\n  int iVar1;\n  short sVar2;\n  XFontStruct *pXVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  Pixmap PVar8;\n  GC p_Var9;\n  int iVar10;\n  int iVar11;\n  int in_GS_OFFSET;\n  XGCValues gcvals;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (xfi->pixmap == 0) {\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window((ctx->u).cairo.widget);\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    pXVar3 = xfi->xfs;\n    iVar10 = (int)(pXVar3->min_bounds).lbearing;\n    iVar7 = (pXVar3->max_bounds).rbearing - iVar10;\n    iVar11 = (int)(pXVar3->max_bounds).ascent;\n    sVar2 = (pXVar3->max_bounds).descent;\n    xfi->pixwidth = iVar7;\n    xfi->pixoriginy = iVar11;\n    xfi->pixheight = sVar2 + iVar11;\n    xfi->pixoriginx = -iVar10;\n    iVar11 = cairo_format_stride_for_width(3,iVar7);\n    iVar7 = xfi->pixheight;\n    iVar10 = xfi->pixwidth;\n    xfi->indexflip = 0;\n    xfi->rowsize = iVar11;\n    xfi->allsize = iVar11 * iVar7;\n    uVar4 = gtk_widget_get_window((ctx->u).cairo.widget);\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    PVar8 = XCreatePixmap(iVar5,uVar4,iVar10,iVar7,1);\n    xfi->pixmap = PVar8;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    gcvals.background = *(ulong *)(iVar7 + 0x38);\n    gcvals.foreground = *(ulong *)(iVar7 + 0x34);\n    gcvals.font = xfi->xfs->fid;\n    p_Var9 = (GC)XCreateGC(iVar5,PVar8,0x400c,&gcvals);\n    xfi->gc = p_Var9;\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 (function_declarator "x11font_cairo_setup(unifont_drawctx *ctx,x11font_individual *xfi)" identifier (parameter_list "(unifont_drawctx *ctx,x11font_individual *xfi)" ( (parameter_declaration "unifont_drawctx *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) , (parameter_declaration "x11font_individual *xfi" type_identifier (pointer_declarator "*xfi" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  short sVar2;\n  XFontStruct *pXVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  Pixmap PVar8;\n  GC p_Var9;\n  int iVar10;\n  int iVar11;\n  int in_GS_OFFSET;\n  XGCValues gcvals;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (xfi->pixmap == 0) {\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window((ctx->u).cairo.widget);\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    pXVar3 = xfi->xfs;\n    iVar10 = (int)(pXVar3->min_bounds).lbearing;\n    iVar7 = (pXVar3->max_bounds).rbearing - iVar10;\n    iVar11 = (int)(pXVar3->max_bounds).ascent;\n    sVar2 = (pXVar3->max_bounds).descent;\n    xfi->pixwidth = iVar7;\n    xfi->pixoriginy = iVar11;\n    xfi->pixheight = sVar2 + iVar11;\n    xfi->pixoriginx = -iVar10;\n    iVar11 = cairo_format_stride_for_width(3,iVar7);\n    iVar7 = xfi->pixheight;\n    iVar10 = xfi->pixwidth;\n    xfi->indexflip = 0;\n    xfi->rowsize = iVar11;\n    xfi->allsize = iVar11 * iVar7;\n    uVar4 = gtk_widget_get_window((ctx->u).cairo.widget);\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    PVar8 = XCreatePixmap(iVar5,uVar4,iVar10,iVar7,1);\n    xfi->pixmap = PVar8;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    gcvals.background = *(ulong *)(iVar7 + 0x38);\n    gcvals.foreground = *(ulong *)(iVar7 + 0x34);\n    gcvals.font = xfi->xfs->fid;\n    p_Var9 = (GC)XCreateGC(iVar5,PVar8,0x400c,&gcvals);\n    xfi->gc = p_Var9;\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 "short sVar2;" (sized_type_specifier "short" short) identifier ;) (declaration "XFontStruct *pXVar3;" type_identifier (pointer_declarator "*pXVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "Pixmap PVar8;" type_identifier identifier ;) (declaration "GC p_Var9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "XGCValues gcvals;" 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) ))))) ;) (if_statement "if (xfi->pixmap == 0) {\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window((ctx->u).cairo.widget);\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    pXVar3 = xfi->xfs;\n    iVar10 = (int)(pXVar3->min_bounds).lbearing;\n    iVar7 = (pXVar3->max_bounds).rbearing - iVar10;\n    iVar11 = (int)(pXVar3->max_bounds).ascent;\n    sVar2 = (pXVar3->max_bounds).descent;\n    xfi->pixwidth = iVar7;\n    xfi->pixoriginy = iVar11;\n    xfi->pixheight = sVar2 + iVar11;\n    xfi->pixoriginx = -iVar10;\n    iVar11 = cairo_format_stride_for_width(3,iVar7);\n    iVar7 = xfi->pixheight;\n    iVar10 = xfi->pixwidth;\n    xfi->indexflip = 0;\n    xfi->rowsize = iVar11;\n    xfi->allsize = iVar11 * iVar7;\n    uVar4 = gtk_widget_get_window((ctx->u).cairo.widget);\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    PVar8 = XCreatePixmap(iVar5,uVar4,iVar10,iVar7,1);\n    xfi->pixmap = PVar8;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    gcvals.background = *(ulong *)(iVar7 + 0x38);\n    gcvals.foreground = *(ulong *)(iVar7 + 0x34);\n    gcvals.font = xfi->xfs->fid;\n    p_Var9 = (GC)XCreateGC(iVar5,PVar8,0x400c,&gcvals);\n    xfi->gc = p_Var9;\n  }" if (parenthesized_expression "(xfi->pixmap == 0)" ( (binary_expression "xfi->pixmap == 0" (field_expression "xfi->pixmap" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window((ctx->u).cairo.widget);\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    pXVar3 = xfi->xfs;\n    iVar10 = (int)(pXVar3->min_bounds).lbearing;\n    iVar7 = (pXVar3->max_bounds).rbearing - iVar10;\n    iVar11 = (int)(pXVar3->max_bounds).ascent;\n    sVar2 = (pXVar3->max_bounds).descent;\n    xfi->pixwidth = iVar7;\n    xfi->pixoriginy = iVar11;\n    xfi->pixheight = sVar2 + iVar11;\n    xfi->pixoriginx = -iVar10;\n    iVar11 = cairo_format_stride_for_width(3,iVar7);\n    iVar7 = xfi->pixheight;\n    iVar10 = xfi->pixwidth;\n    xfi->indexflip = 0;\n    xfi->rowsize = iVar11;\n    xfi->allsize = iVar11 * iVar7;\n    uVar4 = gtk_widget_get_window((ctx->u).cairo.widget);\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    PVar8 = XCreatePixmap(iVar5,uVar4,iVar10,iVar7,1);\n    xfi->pixmap = PVar8;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    gcvals.background = *(ulong *)(iVar7 + 0x38);\n    gcvals.foreground = *(ulong *)(iVar7 + 0x34);\n    gcvals.font = xfi->xfs->fid;\n    p_Var9 = (GC)XCreateGC(iVar5,PVar8,0x400c,&gcvals);\n    xfi->gc = p_Var9;\n  }" { (expression_statement "uVar4 = gdk_display_get_default();" (assignment_expression "uVar4 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = gdk_x11_display_get_xdisplay(uVar4);" (assignment_expression "iVar5 = gdk_x11_display_get_xdisplay(uVar4)" identifier = (call_expression "gdk_x11_display_get_xdisplay(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "uVar4 = gtk_widget_get_window((ctx->u).cairo.widget);" (assignment_expression "uVar4 = gtk_widget_get_window((ctx->u).cairo.widget)" identifier = (call_expression "gtk_widget_get_window((ctx->u).cairo.widget)" identifier (argument_list "((ctx->u).cairo.widget)" ( (field_expression "(ctx->u).cairo.widget" (field_expression "(ctx->u).cairo" (parenthesized_expression "(ctx->u)" ( (field_expression "ctx->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) )))) ;) (expression_statement "uVar4 = gdk_window_get_screen(uVar4);" (assignment_expression "uVar4 = gdk_window_get_screen(uVar4)" identifier = (call_expression "gdk_window_get_screen(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar6 = gdk_x11_screen_get_screen_number(uVar4);" (assignment_expression "iVar6 = gdk_x11_screen_get_screen_number(uVar4)" identifier = (call_expression "gdk_x11_screen_get_screen_number(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "pXVar3 = xfi->xfs;" (assignment_expression "pXVar3 = xfi->xfs" identifier = (field_expression "xfi->xfs" identifier -> field_identifier)) ;) (expression_statement "iVar10 = (int)(pXVar3->min_bounds).lbearing;" (assignment_expression "iVar10 = (int)(pXVar3->min_bounds).lbearing" identifier = (cast_expression "(int)(pXVar3->min_bounds).lbearing" ( (type_descriptor "int" primitive_type) ) (field_expression "(pXVar3->min_bounds).lbearing" (parenthesized_expression "(pXVar3->min_bounds)" ( (field_expression "pXVar3->min_bounds" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "iVar7 = (pXVar3->max_bounds).rbearing - iVar10;" (assignment_expression "iVar7 = (pXVar3->max_bounds).rbearing - iVar10" identifier = (binary_expression "(pXVar3->max_bounds).rbearing - iVar10" (field_expression "(pXVar3->max_bounds).rbearing" (parenthesized_expression "(pXVar3->max_bounds)" ( (field_expression "pXVar3->max_bounds" identifier -> field_identifier) )) . field_identifier) - identifier)) ;) (expression_statement "iVar11 = (int)(pXVar3->max_bounds).ascent;" (assignment_expression "iVar11 = (int)(pXVar3->max_bounds).ascent" identifier = (cast_expression "(int)(pXVar3->max_bounds).ascent" ( (type_descriptor "int" primitive_type) ) (field_expression "(pXVar3->max_bounds).ascent" (parenthesized_expression "(pXVar3->max_bounds)" ( (field_expression "pXVar3->max_bounds" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "sVar2 = (pXVar3->max_bounds).descent;" (assignment_expression "sVar2 = (pXVar3->max_bounds).descent" identifier = (field_expression "(pXVar3->max_bounds).descent" (parenthesized_expression "(pXVar3->max_bounds)" ( (field_expression "pXVar3->max_bounds" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "xfi->pixwidth = iVar7;" (assignment_expression "xfi->pixwidth = iVar7" (field_expression "xfi->pixwidth" identifier -> field_identifier) = identifier) ;) (expression_statement "xfi->pixoriginy = iVar11;" (assignment_expression "xfi->pixoriginy = iVar11" (field_expression "xfi->pixoriginy" identifier -> field_identifier) = identifier) ;) (expression_statement "xfi->pixheight = sVar2 + iVar11;" (assignment_expression "xfi->pixheight = sVar2 + iVar11" (field_expression "xfi->pixheight" identifier -> field_identifier) = (binary_expression "sVar2 + iVar11" identifier + identifier)) ;) (expression_statement "xfi->pixoriginx = -iVar10;" (assignment_expression "xfi->pixoriginx = -iVar10" (field_expression "xfi->pixoriginx" identifier -> field_identifier) = (unary_expression "-iVar10" - identifier)) ;) (expression_statement "iVar11 = cairo_format_stride_for_width(3,iVar7);" (assignment_expression "iVar11 = cairo_format_stride_for_width(3,iVar7)" identifier = (call_expression "cairo_format_stride_for_width(3,iVar7)" identifier (argument_list "(3,iVar7)" ( number_literal , identifier )))) ;) (expression_statement "iVar7 = xfi->pixheight;" (assignment_expression "iVar7 = xfi->pixheight" identifier = (field_expression "xfi->pixheight" identifier -> field_identifier)) ;) (expression_statement "iVar10 = xfi->pixwidth;" (assignment_expression "iVar10 = xfi->pixwidth" identifier = (field_expression "xfi->pixwidth" identifier -> field_identifier)) ;) (expression_statement "xfi->indexflip = 0;" (assignment_expression "xfi->indexflip = 0" (field_expression "xfi->indexflip" identifier -> field_identifier) = number_literal) ;) (expression_statement "xfi->rowsize = iVar11;" (assignment_expression "xfi->rowsize = iVar11" (field_expression "xfi->rowsize" identifier -> field_identifier) = identifier) ;) (expression_statement "xfi->allsize = iVar11 * iVar7;" (assignment_expression "xfi->allsize = iVar11 * iVar7" (field_expression "xfi->allsize" identifier -> field_identifier) = (binary_expression "iVar11 * iVar7" identifier * identifier)) ;) (expression_statement "uVar4 = gtk_widget_get_window((ctx->u).cairo.widget);" (assignment_expression "uVar4 = gtk_widget_get_window((ctx->u).cairo.widget)" identifier = (call_expression "gtk_widget_get_window((ctx->u).cairo.widget)" identifier (argument_list "((ctx->u).cairo.widget)" ( (field_expression "(ctx->u).cairo.widget" (field_expression "(ctx->u).cairo" (parenthesized_expression "(ctx->u)" ( (field_expression "ctx->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) )))) ;) (expression_statement "uVar4 = gdk_x11_window_get_xid(uVar4);" (assignment_expression "uVar4 = gdk_x11_window_get_xid(uVar4)" identifier = (call_expression "gdk_x11_window_get_xid(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "PVar8 = XCreatePixmap(iVar5,uVar4,iVar10,iVar7,1);" (assignment_expression "PVar8 = XCreatePixmap(iVar5,uVar4,iVar10,iVar7,1)" identifier = (call_expression "XCreatePixmap(iVar5,uVar4,iVar10,iVar7,1)" identifier (argument_list "(iVar5,uVar4,iVar10,iVar7,1)" ( identifier , identifier , identifier , identifier , number_literal )))) ;) (expression_statement "xfi->pixmap = PVar8;" (assignment_expression "xfi->pixmap = PVar8" (field_expression "xfi->pixmap" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);" (assignment_expression "iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c)" identifier = (binary_expression "iVar6 * 0x50 + *(int *)(iVar5 + 0x8c)" (binary_expression "iVar6 * 0x50" identifier * number_literal) + (pointer_expression "*(int *)(iVar5 + 0x8c)" * (cast_expression "(int *)(iVar5 + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x8c)" ( (binary_expression "iVar5 + 0x8c" identifier + number_literal) )))))) ;) (expression_statement "gcvals.background = *(ulong *)(iVar7 + 0x38);" (assignment_expression "gcvals.background = *(ulong *)(iVar7 + 0x38)" (field_expression "gcvals.background" identifier . field_identifier) = (pointer_expression "*(ulong *)(iVar7 + 0x38)" * (cast_expression "(ulong *)(iVar7 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x38)" ( (binary_expression "iVar7 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "gcvals.foreground = *(ulong *)(iVar7 + 0x34);" (assignment_expression "gcvals.foreground = *(ulong *)(iVar7 + 0x34)" (field_expression "gcvals.foreground" identifier . field_identifier) = (pointer_expression "*(ulong *)(iVar7 + 0x34)" * (cast_expression "(ulong *)(iVar7 + 0x34)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x34)" ( (binary_expression "iVar7 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "gcvals.font = xfi->xfs->fid;" (assignment_expression "gcvals.font = xfi->xfs->fid" (field_expression "gcvals.font" identifier . field_identifier) = (field_expression "xfi->xfs->fid" (field_expression "xfi->xfs" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "p_Var9 = (GC)XCreateGC(iVar5,PVar8,0x400c,&gcvals);" (assignment_expression "p_Var9 = (GC)XCreateGC(iVar5,PVar8,0x400c,&gcvals)" identifier = (cast_expression "(GC)XCreateGC(iVar5,PVar8,0x400c,&gcvals)" ( (type_descriptor "GC" type_identifier) ) (call_expression "XCreateGC(iVar5,PVar8,0x400c,&gcvals)" identifier (argument_list "(iVar5,PVar8,0x400c,&gcvals)" ( identifier , identifier , number_literal , (pointer_expression "&gcvals" & identifier) ))))) ;) (expression_statement "xfi->gc = p_Var9;" (assignment_expression "xfi->gc = p_Var9" (field_expression "xfi->gc" identifier -> field_identifier) = identifier) ;) })) (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 FUN_00061190(int param_1,int *param_2)\n\n{\n  short sVar1;\n  short sVar2;\n  short sVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  undefined1 local_7c [8];\n  undefined4 local_74;\n  undefined4 local_70;\n  undefined4 local_40;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x61199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2[4] == 0) {\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    iVar9 = *param_2;\n    sVar1 = *(short *)(iVar9 + 0x2c);\n    iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;\n    sVar2 = *(short *)(iVar9 + 0x3e);\n    sVar3 = *(short *)(iVar9 + 0x40);\n    param_2[6] = iVar7;\n    param_2[9] = (int)sVar2;\n    param_2[7] = (int)sVar3 + (int)sVar2;\n    param_2[8] = -(int)sVar1;\n    iVar8 = cairo_format_stride_for_width(3,iVar7);\n    iVar9 = param_2[7];\n    iVar7 = param_2[6];\n    param_2[0xc] = 0;\n    param_2[10] = iVar8;\n    param_2[0xb] = iVar8 * iVar9;\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);\n    param_2[4] = iVar9;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    local_70 = *(undefined4 *)(iVar7 + 0x38);\n    local_74 = *(undefined4 *)(iVar7 + 0x34);\n    local_40 = *(undefined4 *)(*param_2 + 4);\n    iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);\n    param_2[5] = iVar9;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}\n\n" (function_definition "void FUN_00061190(int param_1,int *param_2)\n\n{\n  short sVar1;\n  short sVar2;\n  short sVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  undefined1 local_7c [8];\n  undefined4 local_74;\n  undefined4 local_70;\n  undefined4 local_40;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x61199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2[4] == 0) {\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    iVar9 = *param_2;\n    sVar1 = *(short *)(iVar9 + 0x2c);\n    iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;\n    sVar2 = *(short *)(iVar9 + 0x3e);\n    sVar3 = *(short *)(iVar9 + 0x40);\n    param_2[6] = iVar7;\n    param_2[9] = (int)sVar2;\n    param_2[7] = (int)sVar3 + (int)sVar2;\n    param_2[8] = -(int)sVar1;\n    iVar8 = cairo_format_stride_for_width(3,iVar7);\n    iVar9 = param_2[7];\n    iVar7 = param_2[6];\n    param_2[0xc] = 0;\n    param_2[10] = iVar8;\n    param_2[0xb] = iVar8 * iVar9;\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);\n    param_2[4] = iVar9;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    local_70 = *(undefined4 *)(iVar7 + 0x38);\n    local_74 = *(undefined4 *)(iVar7 + 0x34);\n    local_40 = *(undefined4 *)(*param_2 + 4);\n    iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);\n    param_2[5] = iVar9;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}" primitive_type (function_declarator "FUN_00061190(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  short sVar1;\n  short sVar2;\n  short sVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  undefined1 local_7c [8];\n  undefined4 local_74;\n  undefined4 local_70;\n  undefined4 local_40;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x61199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2[4] == 0) {\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    iVar9 = *param_2;\n    sVar1 = *(short *)(iVar9 + 0x2c);\n    iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;\n    sVar2 = *(short *)(iVar9 + 0x3e);\n    sVar3 = *(short *)(iVar9 + 0x40);\n    param_2[6] = iVar7;\n    param_2[9] = (int)sVar2;\n    param_2[7] = (int)sVar3 + (int)sVar2;\n    param_2[8] = -(int)sVar1;\n    iVar8 = cairo_format_stride_for_width(3,iVar7);\n    iVar9 = param_2[7];\n    iVar7 = param_2[6];\n    param_2[0xc] = 0;\n    param_2[10] = iVar8;\n    param_2[0xb] = iVar8 * iVar9;\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);\n    param_2[4] = iVar9;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    local_70 = *(undefined4 *)(iVar7 + 0x38);\n    local_74 = *(undefined4 *)(iVar7 + 0x34);\n    local_40 = *(undefined4 *)(*param_2 + 4);\n    iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);\n    param_2[5] = iVar9;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}" { (declaration "short sVar1;" (sized_type_specifier "short" short) identifier ;) (declaration "short sVar2;" (sized_type_specifier "short" short) identifier ;) (declaration "short sVar3;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_7c [8];" type_identifier (array_declarator "local_7c [8]" identifier [ number_literal ]) ;) (declaration "undefined4 local_74;" type_identifier identifier ;) (declaration "undefined4 local_70;" type_identifier identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x61199;" (assignment_expression "uStack_14 = 0x61199" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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) ))))) ;) (if_statement "if (param_2[4] == 0) {\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    iVar9 = *param_2;\n    sVar1 = *(short *)(iVar9 + 0x2c);\n    iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;\n    sVar2 = *(short *)(iVar9 + 0x3e);\n    sVar3 = *(short *)(iVar9 + 0x40);\n    param_2[6] = iVar7;\n    param_2[9] = (int)sVar2;\n    param_2[7] = (int)sVar3 + (int)sVar2;\n    param_2[8] = -(int)sVar1;\n    iVar8 = cairo_format_stride_for_width(3,iVar7);\n    iVar9 = param_2[7];\n    iVar7 = param_2[6];\n    param_2[0xc] = 0;\n    param_2[10] = iVar8;\n    param_2[0xb] = iVar8 * iVar9;\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);\n    param_2[4] = iVar9;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    local_70 = *(undefined4 *)(iVar7 + 0x38);\n    local_74 = *(undefined4 *)(iVar7 + 0x34);\n    local_40 = *(undefined4 *)(*param_2 + 4);\n    iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);\n    param_2[5] = iVar9;\n  }" if (parenthesized_expression "(param_2[4] == 0)" ( (binary_expression "param_2[4] == 0" (subscript_expression "param_2[4]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    iVar9 = *param_2;\n    sVar1 = *(short *)(iVar9 + 0x2c);\n    iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;\n    sVar2 = *(short *)(iVar9 + 0x3e);\n    sVar3 = *(short *)(iVar9 + 0x40);\n    param_2[6] = iVar7;\n    param_2[9] = (int)sVar2;\n    param_2[7] = (int)sVar3 + (int)sVar2;\n    param_2[8] = -(int)sVar1;\n    iVar8 = cairo_format_stride_for_width(3,iVar7);\n    iVar9 = param_2[7];\n    iVar7 = param_2[6];\n    param_2[0xc] = 0;\n    param_2[10] = iVar8;\n    param_2[0xb] = iVar8 * iVar9;\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);\n    param_2[4] = iVar9;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    local_70 = *(undefined4 *)(iVar7 + 0x38);\n    local_74 = *(undefined4 *)(iVar7 + 0x34);\n    local_40 = *(undefined4 *)(*param_2 + 4);\n    iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);\n    param_2[5] = iVar9;\n  }" { (expression_statement "uVar4 = gdk_display_get_default();" (assignment_expression "uVar4 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = gdk_x11_display_get_xdisplay(uVar4);" (assignment_expression "iVar5 = gdk_x11_display_get_xdisplay(uVar4)" identifier = (call_expression "gdk_x11_display_get_xdisplay(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));" (assignment_expression "uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "gtk_widget_get_window(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "uVar4 = gdk_window_get_screen(uVar4);" (assignment_expression "uVar4 = gdk_window_get_screen(uVar4)" identifier = (call_expression "gdk_window_get_screen(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar6 = gdk_x11_screen_get_screen_number(uVar4);" (assignment_expression "iVar6 = gdk_x11_screen_get_screen_number(uVar4)" identifier = (call_expression "gdk_x11_screen_get_screen_number(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar9 = *param_2;" (assignment_expression "iVar9 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "sVar1 = *(short *)(iVar9 + 0x2c);" (assignment_expression "sVar1 = *(short *)(iVar9 + 0x2c)" identifier = (pointer_expression "*(short *)(iVar9 + 0x2c)" * (cast_expression "(short *)(iVar9 + 0x2c)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x2c)" ( (binary_expression "iVar9 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;" (assignment_expression "iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1" identifier = (binary_expression "(int)*(short *)(iVar9 + 0x3a) - (int)sVar1" (cast_expression "(int)*(short *)(iVar9 + 0x3a)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(iVar9 + 0x3a)" * (cast_expression "(short *)(iVar9 + 0x3a)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x3a)" ( (binary_expression "iVar9 + 0x3a" identifier + number_literal) ))))) - (cast_expression "(int)sVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "sVar2 = *(short *)(iVar9 + 0x3e);" (assignment_expression "sVar2 = *(short *)(iVar9 + 0x3e)" identifier = (pointer_expression "*(short *)(iVar9 + 0x3e)" * (cast_expression "(short *)(iVar9 + 0x3e)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x3e)" ( (binary_expression "iVar9 + 0x3e" identifier + number_literal) ))))) ;) (expression_statement "sVar3 = *(short *)(iVar9 + 0x40);" (assignment_expression "sVar3 = *(short *)(iVar9 + 0x40)" identifier = (pointer_expression "*(short *)(iVar9 + 0x40)" * (cast_expression "(short *)(iVar9 + 0x40)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x40)" ( (binary_expression "iVar9 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "param_2[6] = iVar7;" (assignment_expression "param_2[6] = iVar7" (subscript_expression "param_2[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[9] = (int)sVar2;" (assignment_expression "param_2[9] = (int)sVar2" (subscript_expression "param_2[9]" identifier [ number_literal ]) = (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_2[7] = (int)sVar3 + (int)sVar2;" (assignment_expression "param_2[7] = (int)sVar3 + (int)sVar2" (subscript_expression "param_2[7]" identifier [ number_literal ]) = (binary_expression "(int)sVar3 + (int)sVar2" (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "param_2[8] = -(int)sVar1;" (assignment_expression "param_2[8] = -(int)sVar1" (subscript_expression "param_2[8]" identifier [ number_literal ]) = (unary_expression "-(int)sVar1" - (cast_expression "(int)sVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "iVar8 = cairo_format_stride_for_width(3,iVar7);" (assignment_expression "iVar8 = cairo_format_stride_for_width(3,iVar7)" identifier = (call_expression "cairo_format_stride_for_width(3,iVar7)" identifier (argument_list "(3,iVar7)" ( number_literal , identifier )))) ;) (expression_statement "iVar9 = param_2[7];" (assignment_expression "iVar9 = param_2[7]" identifier = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) (expression_statement "iVar7 = param_2[6];" (assignment_expression "iVar7 = param_2[6]" identifier = (subscript_expression "param_2[6]" identifier [ number_literal ])) ;) (expression_statement "param_2[0xc] = 0;" (assignment_expression "param_2[0xc] = 0" (subscript_expression "param_2[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[10] = iVar8;" (assignment_expression "param_2[10] = iVar8" (subscript_expression "param_2[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[0xb] = iVar8 * iVar9;" (assignment_expression "param_2[0xb] = iVar8 * iVar9" (subscript_expression "param_2[0xb]" identifier [ number_literal ]) = (binary_expression "iVar8 * iVar9" identifier * identifier)) ;) (expression_statement "uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));" (assignment_expression "uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4))" identifier = (call_expression "gtk_widget_get_window(*(undefined4 *)(param_1 + 4))" identifier (argument_list "(*(undefined4 *)(param_1 + 4))" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "uVar4 = gdk_x11_window_get_xid(uVar4);" (assignment_expression "uVar4 = gdk_x11_window_get_xid(uVar4)" identifier = (call_expression "gdk_x11_window_get_xid(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);" (assignment_expression "iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1)" identifier = (call_expression "XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1)" identifier (argument_list "(iVar5,uVar4,iVar7,iVar9,1)" ( identifier , identifier , identifier , identifier , number_literal )))) ;) (expression_statement "param_2[4] = iVar9;" (assignment_expression "param_2[4] = iVar9" (subscript_expression "param_2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);" (assignment_expression "iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c)" identifier = (binary_expression "iVar6 * 0x50 + *(int *)(iVar5 + 0x8c)" (binary_expression "iVar6 * 0x50" identifier * number_literal) + (pointer_expression "*(int *)(iVar5 + 0x8c)" * (cast_expression "(int *)(iVar5 + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x8c)" ( (binary_expression "iVar5 + 0x8c" identifier + number_literal) )))))) ;) (expression_statement "local_70 = *(undefined4 *)(iVar7 + 0x38);" (assignment_expression "local_70 = *(undefined4 *)(iVar7 + 0x38)" identifier = (pointer_expression "*(undefined4 *)(iVar7 + 0x38)" * (cast_expression "(undefined4 *)(iVar7 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x38)" ( (binary_expression "iVar7 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "local_74 = *(undefined4 *)(iVar7 + 0x34);" (assignment_expression "local_74 = *(undefined4 *)(iVar7 + 0x34)" identifier = (pointer_expression "*(undefined4 *)(iVar7 + 0x34)" * (cast_expression "(undefined4 *)(iVar7 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x34)" ( (binary_expression "iVar7 + 0x34" identifier + number_literal) ))))) ;) (expression_statement "local_40 = *(undefined4 *)(*param_2 + 4);" (assignment_expression "local_40 = *(undefined4 *)(*param_2 + 4)" identifier = (pointer_expression "*(undefined4 *)(*param_2 + 4)" * (cast_expression "(undefined4 *)(*param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 4)" ( (binary_expression "*param_2 + 4" (pointer_expression "*param_2" * identifier) + number_literal) ))))) ;) (expression_statement "iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);" (assignment_expression "iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c)" identifier = (call_expression "XCreateGC(iVar5,iVar9,0x400c,local_7c)" identifier (argument_list "(iVar5,iVar9,0x400c,local_7c)" ( identifier , identifier , number_literal , identifier )))) ;) (expression_statement "param_2[5] = iVar9;" (assignment_expression "param_2[5] = iVar9" (subscript_expression "param_2[5]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(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 ;) })) (expression_statement "FUN_00077880();" (call_expression "FUN_00077880()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier short) IDENT ;) (declaration (sized_type_specifier short) IDENT ;) (declaration (sized_type_specifier short) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 (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 = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (unary_expression - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression 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 (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (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 { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00061190(int param_1,int *param_2)\n\n{\n  short sVar1;\n  short sVar2;\n  short sVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  undefined1 local_7c [8];\n  undefined4 local_74;\n  undefined4 local_70;\n  undefined4 local_40;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x61199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2[4] == 0) {\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    iVar9 = *param_2;\n    sVar1 = *(short *)(iVar9 + 0x2c);\n    iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;\n    sVar2 = *(short *)(iVar9 + 0x3e);\n    sVar3 = *(short *)(iVar9 + 0x40);\n    param_2[6] = iVar7;\n    param_2[9] = (int)sVar2;\n    param_2[7] = (int)sVar3 + (int)sVar2;\n    param_2[8] = -(int)sVar1;\n    iVar8 = cairo_format_stride_for_width(3,iVar7);\n    iVar9 = param_2[7];\n    iVar7 = param_2[6];\n    param_2[0xc] = 0;\n    param_2[10] = iVar8;\n    param_2[0xb] = iVar8 * iVar9;\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);\n    param_2[4] = iVar9;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    local_70 = *(undefined4 *)(iVar7 + 0x38);\n    local_74 = *(undefined4 *)(iVar7 + 0x34);\n    local_40 = *(undefined4 *)(*param_2 + 4);\n    iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);\n    param_2[5] = iVar9;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}" (primitive_type "void") (function_declarator "FUN_00061190(int param_1,int *param_2)" (identifier "FUN_00061190") (parameter_list "(int param_1,int *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  short sVar1;\n  short sVar2;\n  short sVar3;\n  undefined4 uVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  int in_GS_OFFSET;\n  undefined1 local_7c [8];\n  undefined4 local_74;\n  undefined4 local_70;\n  undefined4 local_40;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x61199;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2[4] == 0) {\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    iVar9 = *param_2;\n    sVar1 = *(short *)(iVar9 + 0x2c);\n    iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;\n    sVar2 = *(short *)(iVar9 + 0x3e);\n    sVar3 = *(short *)(iVar9 + 0x40);\n    param_2[6] = iVar7;\n    param_2[9] = (int)sVar2;\n    param_2[7] = (int)sVar3 + (int)sVar2;\n    param_2[8] = -(int)sVar1;\n    iVar8 = cairo_format_stride_for_width(3,iVar7);\n    iVar9 = param_2[7];\n    iVar7 = param_2[6];\n    param_2[0xc] = 0;\n    param_2[10] = iVar8;\n    param_2[0xb] = iVar8 * iVar9;\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);\n    param_2[4] = iVar9;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    local_70 = *(undefined4 *)(iVar7 + 0x38);\n    local_74 = *(undefined4 *)(iVar7 + 0x34);\n    local_40 = *(undefined4 *)(*param_2 + 4);\n    iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);\n    param_2[5] = iVar9;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_00077880();\n}" ({ "{") (declaration "short sVar1;" (sized_type_specifier "short" (short "short")) (identifier "sVar1") (; ";")) (declaration "short sVar2;" (sized_type_specifier "short" (short "short")) (identifier "sVar2") (; ";")) (declaration "short sVar3;" (sized_type_specifier "short" (short "short")) (identifier "sVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_7c [8];" (type_identifier "undefined1") (array_declarator "local_7c [8]" (identifier "local_7c") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "undefined4 local_74;" (type_identifier "undefined4") (identifier "local_74") (; ";")) (declaration "undefined4 local_70;" (type_identifier "undefined4") (identifier "local_70") (; ";")) (declaration "undefined4 local_40;" (type_identifier "undefined4") (identifier "local_40") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x61199;" (assignment_expression "uStack_14 = 0x61199" (identifier "uStack_14") (= "=") (number_literal "0x61199")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (param_2[4] == 0) {\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    iVar9 = *param_2;\n    sVar1 = *(short *)(iVar9 + 0x2c);\n    iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;\n    sVar2 = *(short *)(iVar9 + 0x3e);\n    sVar3 = *(short *)(iVar9 + 0x40);\n    param_2[6] = iVar7;\n    param_2[9] = (int)sVar2;\n    param_2[7] = (int)sVar3 + (int)sVar2;\n    param_2[8] = -(int)sVar1;\n    iVar8 = cairo_format_stride_for_width(3,iVar7);\n    iVar9 = param_2[7];\n    iVar7 = param_2[6];\n    param_2[0xc] = 0;\n    param_2[10] = iVar8;\n    param_2[0xb] = iVar8 * iVar9;\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);\n    param_2[4] = iVar9;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    local_70 = *(undefined4 *)(iVar7 + 0x38);\n    local_74 = *(undefined4 *)(iVar7 + 0x34);\n    local_40 = *(undefined4 *)(*param_2 + 4);\n    iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);\n    param_2[5] = iVar9;\n  }" (if "if") (parenthesized_expression "(param_2[4] == 0)" (( "(") (binary_expression "param_2[4] == 0" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = gdk_display_get_default();\n    iVar5 = gdk_x11_display_get_xdisplay(uVar4);\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_window_get_screen(uVar4);\n    iVar6 = gdk_x11_screen_get_screen_number(uVar4);\n    iVar9 = *param_2;\n    sVar1 = *(short *)(iVar9 + 0x2c);\n    iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;\n    sVar2 = *(short *)(iVar9 + 0x3e);\n    sVar3 = *(short *)(iVar9 + 0x40);\n    param_2[6] = iVar7;\n    param_2[9] = (int)sVar2;\n    param_2[7] = (int)sVar3 + (int)sVar2;\n    param_2[8] = -(int)sVar1;\n    iVar8 = cairo_format_stride_for_width(3,iVar7);\n    iVar9 = param_2[7];\n    iVar7 = param_2[6];\n    param_2[0xc] = 0;\n    param_2[10] = iVar8;\n    param_2[0xb] = iVar8 * iVar9;\n    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));\n    uVar4 = gdk_x11_window_get_xid(uVar4);\n    iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);\n    param_2[4] = iVar9;\n    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);\n    local_70 = *(undefined4 *)(iVar7 + 0x38);\n    local_74 = *(undefined4 *)(iVar7 + 0x34);\n    local_40 = *(undefined4 *)(*param_2 + 4);\n    iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);\n    param_2[5] = iVar9;\n  }" ({ "{") (expression_statement "uVar4 = gdk_display_get_default();" (assignment_expression "uVar4 = gdk_display_get_default()" (identifier "uVar4") (= "=") (call_expression "gdk_display_get_default()" (identifier "gdk_display_get_default") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar5 = gdk_x11_display_get_xdisplay(uVar4);" (assignment_expression "iVar5 = gdk_x11_display_get_xdisplay(uVar4)" (identifier "iVar5") (= "=") (call_expression "gdk_x11_display_get_xdisplay(uVar4)" (identifier "gdk_x11_display_get_xdisplay") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));" (assignment_expression "uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4))" (identifier "uVar4") (= "=") (call_expression "gtk_widget_get_window(*(undefined4 *)(param_1 + 4))" (identifier "gtk_widget_get_window") (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar4 = gdk_window_get_screen(uVar4);" (assignment_expression "uVar4 = gdk_window_get_screen(uVar4)" (identifier "uVar4") (= "=") (call_expression "gdk_window_get_screen(uVar4)" (identifier "gdk_window_get_screen") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "iVar6 = gdk_x11_screen_get_screen_number(uVar4);" (assignment_expression "iVar6 = gdk_x11_screen_get_screen_number(uVar4)" (identifier "iVar6") (= "=") (call_expression "gdk_x11_screen_get_screen_number(uVar4)" (identifier "gdk_x11_screen_get_screen_number") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "iVar9 = *param_2;" (assignment_expression "iVar9 = *param_2" (identifier "iVar9") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "sVar1 = *(short *)(iVar9 + 0x2c);" (assignment_expression "sVar1 = *(short *)(iVar9 + 0x2c)" (identifier "sVar1") (= "=") (pointer_expression "*(short *)(iVar9 + 0x2c)" (* "*") (cast_expression "(short *)(iVar9 + 0x2c)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0x2c)" (( "(") (binary_expression "iVar9 + 0x2c" (identifier "iVar9") (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (expression_statement "iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;" (assignment_expression "iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1" (identifier "iVar7") (= "=") (binary_expression "(int)*(short *)(iVar9 + 0x3a) - (int)sVar1" (cast_expression "(int)*(short *)(iVar9 + 0x3a)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(short *)(iVar9 + 0x3a)" (* "*") (cast_expression "(short *)(iVar9 + 0x3a)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0x3a)" (( "(") (binary_expression "iVar9 + 0x3a" (identifier "iVar9") (+ "+") (number_literal "0x3a")) () ")"))))) (- "-") (cast_expression "(int)sVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar1")))) (; ";")) (expression_statement "sVar2 = *(short *)(iVar9 + 0x3e);" (assignment_expression "sVar2 = *(short *)(iVar9 + 0x3e)" (identifier "sVar2") (= "=") (pointer_expression "*(short *)(iVar9 + 0x3e)" (* "*") (cast_expression "(short *)(iVar9 + 0x3e)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0x3e)" (( "(") (binary_expression "iVar9 + 0x3e" (identifier "iVar9") (+ "+") (number_literal "0x3e")) () ")"))))) (; ";")) (expression_statement "sVar3 = *(short *)(iVar9 + 0x40);" (assignment_expression "sVar3 = *(short *)(iVar9 + 0x40)" (identifier "sVar3") (= "=") (pointer_expression "*(short *)(iVar9 + 0x40)" (* "*") (cast_expression "(short *)(iVar9 + 0x40)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0x40)" (( "(") (binary_expression "iVar9 + 0x40" (identifier "iVar9") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (expression_statement "param_2[6] = iVar7;" (assignment_expression "param_2[6] = iVar7" (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "param_2[9] = (int)sVar2;" (assignment_expression "param_2[9] = (int)sVar2" (subscript_expression "param_2[9]" (identifier "param_2") ([ "[") (number_literal "9") (] "]")) (= "=") (cast_expression "(int)sVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar2"))) (; ";")) (expression_statement "param_2[7] = (int)sVar3 + (int)sVar2;" (assignment_expression "param_2[7] = (int)sVar3 + (int)sVar2" (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")) (= "=") (binary_expression "(int)sVar3 + (int)sVar2" (cast_expression "(int)sVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar3")) (+ "+") (cast_expression "(int)sVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar2")))) (; ";")) (expression_statement "param_2[8] = -(int)sVar1;" (assignment_expression "param_2[8] = -(int)sVar1" (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]")) (= "=") (unary_expression "-(int)sVar1" (- "-") (cast_expression "(int)sVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar1")))) (; ";")) (expression_statement "iVar8 = cairo_format_stride_for_width(3,iVar7);" (assignment_expression "iVar8 = cairo_format_stride_for_width(3,iVar7)" (identifier "iVar8") (= "=") (call_expression "cairo_format_stride_for_width(3,iVar7)" (identifier "cairo_format_stride_for_width") (argument_list "(3,iVar7)" (( "(") (number_literal "3") (, ",") (identifier "iVar7") () ")")))) (; ";")) (expression_statement "iVar9 = param_2[7];" (assignment_expression "iVar9 = param_2[7]" (identifier "iVar9") (= "=") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "iVar7 = param_2[6];" (assignment_expression "iVar7 = param_2[6]" (identifier "iVar7") (= "=") (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "param_2[0xc] = 0;" (assignment_expression "param_2[0xc] = 0" (subscript_expression "param_2[0xc]" (identifier "param_2") ([ "[") (number_literal "0xc") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2[10] = iVar8;" (assignment_expression "param_2[10] = iVar8" (subscript_expression "param_2[10]" (identifier "param_2") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "iVar8")) (; ";")) (expression_statement "param_2[0xb] = iVar8 * iVar9;" (assignment_expression "param_2[0xb] = iVar8 * iVar9" (subscript_expression "param_2[0xb]" (identifier "param_2") ([ "[") (number_literal "0xb") (] "]")) (= "=") (binary_expression "iVar8 * iVar9" (identifier "iVar8") (* "*") (identifier "iVar9"))) (; ";")) (expression_statement "uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));" (assignment_expression "uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4))" (identifier "uVar4") (= "=") (call_expression "gtk_widget_get_window(*(undefined4 *)(param_1 + 4))" (identifier "gtk_widget_get_window") (argument_list "(*(undefined4 *)(param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar4 = gdk_x11_window_get_xid(uVar4);" (assignment_expression "uVar4 = gdk_x11_window_get_xid(uVar4)" (identifier "uVar4") (= "=") (call_expression "gdk_x11_window_get_xid(uVar4)" (identifier "gdk_x11_window_get_xid") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);" (assignment_expression "iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1)" (identifier "iVar9") (= "=") (call_expression "XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1)" (identifier "XCreatePixmap") (argument_list "(iVar5,uVar4,iVar7,iVar9,1)" (( "(") (identifier "iVar5") (, ",") (identifier "uVar4") (, ",") (identifier "iVar7") (, ",") (identifier "iVar9") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "param_2[4] = iVar9;" (assignment_expression "param_2[4] = iVar9" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "iVar9")) (; ";")) (expression_statement "iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);" (assignment_expression "iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c)" (identifier "iVar7") (= "=") (binary_expression "iVar6 * 0x50 + *(int *)(iVar5 + 0x8c)" (binary_expression "iVar6 * 0x50" (identifier "iVar6") (* "*") (number_literal "0x50")) (+ "+") (pointer_expression "*(int *)(iVar5 + 0x8c)" (* "*") (cast_expression "(int *)(iVar5 + 0x8c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x8c)" (( "(") (binary_expression "iVar5 + 0x8c" (identifier "iVar5") (+ "+") (number_literal "0x8c")) () ")")))))) (; ";")) (expression_statement "local_70 = *(undefined4 *)(iVar7 + 0x38);" (assignment_expression "local_70 = *(undefined4 *)(iVar7 + 0x38)" (identifier "local_70") (= "=") (pointer_expression "*(undefined4 *)(iVar7 + 0x38)" (* "*") (cast_expression "(undefined4 *)(iVar7 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x38)" (( "(") (binary_expression "iVar7 + 0x38" (identifier "iVar7") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (expression_statement "local_74 = *(undefined4 *)(iVar7 + 0x34);" (assignment_expression "local_74 = *(undefined4 *)(iVar7 + 0x34)" (identifier "local_74") (= "=") (pointer_expression "*(undefined4 *)(iVar7 + 0x34)" (* "*") (cast_expression "(undefined4 *)(iVar7 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x34)" (( "(") (binary_expression "iVar7 + 0x34" (identifier "iVar7") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (expression_statement "local_40 = *(undefined4 *)(*param_2 + 4);" (assignment_expression "local_40 = *(undefined4 *)(*param_2 + 4)" (identifier "local_40") (= "=") (pointer_expression "*(undefined4 *)(*param_2 + 4)" (* "*") (cast_expression "(undefined4 *)(*param_2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + 4)" (( "(") (binary_expression "*param_2 + 4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);" (assignment_expression "iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c)" (identifier "iVar9") (= "=") (call_expression "XCreateGC(iVar5,iVar9,0x400c,local_7c)" (identifier "XCreateGC") (argument_list "(iVar5,iVar9,0x400c,local_7c)" (( "(") (identifier "iVar5") (, ",") (identifier "iVar9") (, ",") (number_literal "0x400c") (, ",") (identifier "local_7c") () ")")))) (; ";")) (expression_statement "param_2[5] = iVar9;" (assignment_expression "param_2[5] = iVar9" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "iVar9")) (; ";")) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (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    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00077880();" (call_expression "FUN_00077880()" (identifier "FUN_00077880") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 *ctx,type_2 *xfi)

{
  int var_17;
  short var_8;
  type_3 *pXVar3;
  type_4 uVar4;
  int var_15;
  int var_14;
  int var_11;
  type_5 PVar8;
  type_6 p_Var9;
  int var_7;
  int var_9;
  int var_1;
  type_7 gcvals;
  
  var_17 = *(int *)(var_1 + 0x14);
  if (xfi->pixmap == 0) {
    uVar4 = var_2();
    var_15 = var_3(uVar4);
    uVar4 = var_4((ctx->u).cairo.widget);
    uVar4 = var_5(uVar4);
    var_14 = var_6(uVar4);
    pXVar3 = xfi->xfs;
    var_7 = (int)(pXVar3->min_bounds).lbearing;
    var_11 = (pXVar3->max_bounds).rbearing - var_7;
    var_9 = (int)(pXVar3->max_bounds).ascent;
    var_8 = (pXVar3->max_bounds).descent;
    xfi->pixwidth = var_11;
    xfi->pixoriginy = var_9;
    xfi->pixheight = var_8 + var_9;
    xfi->pixoriginx = -var_7;
    var_9 = var_10(3,var_11);
    var_11 = xfi->pixheight;
    var_7 = xfi->pixwidth;
    xfi->indexflip = 0;
    xfi->rowsize = var_9;
    xfi->allsize = var_9 * var_11;
    uVar4 = var_4((ctx->u).cairo.widget);
    uVar4 = var_12(uVar4);
    PVar8 = var_13(var_15,uVar4,var_7,var_11,1);
    xfi->pixmap = PVar8;
    var_11 = var_14 * 0x50 + *(int *)(var_15 + 0x8c);
    gcvals.background = *(type_8 *)(var_11 + 0x38);
    gcvals.foreground = *(type_8 *)(var_11 + 0x34);
    gcvals.font = xfi->xfs->fid;
    p_Var9 = (type_6)var_16(var_15,PVar8,0x400c,&gcvals);
    xfi->gc = p_Var9;
  }
  if (var_17 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_18();
}


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

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

void MASKED(int param_1,int *param_2)

{
  short sVar1;
  short sVar2;
  short sVar3;
  undefined4 uVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  int in_GS_OFFSET;
  undefined1 local_7c [8];
  undefined4 local_74;
  undefined4 local_70;
  undefined4 local_40;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x61199;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2[4] == 0) {
    uVar4 = gdk_display_get_default();
    iVar5 = gdk_x11_display_get_xdisplay(uVar4);
    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));
    uVar4 = gdk_window_get_screen(uVar4);
    iVar6 = gdk_x11_screen_get_screen_number(uVar4);
    iVar9 = *param_2;
    sVar1 = *(short *)(iVar9 + 0x2c);
    iVar7 = (int)*(short *)(iVar9 + 0x3a) - (int)sVar1;
    sVar2 = *(short *)(iVar9 + 0x3e);
    sVar3 = *(short *)(iVar9 + 0x40);
    param_2[6] = iVar7;
    param_2[9] = (int)sVar2;
    param_2[7] = (int)sVar3 + (int)sVar2;
    param_2[8] = -(int)sVar1;
    iVar8 = cairo_format_stride_for_width(3,iVar7);
    iVar9 = param_2[7];
    iVar7 = param_2[6];
    param_2[0xc] = 0;
    param_2[10] = iVar8;
    param_2[0xb] = iVar8 * iVar9;
    uVar4 = gtk_widget_get_window(*(undefined4 *)(param_1 + 4));
    uVar4 = gdk_x11_window_get_xid(uVar4);
    iVar9 = XCreatePixmap(iVar5,uVar4,iVar7,iVar9,1);
    param_2[4] = iVar9;
    iVar7 = iVar6 * 0x50 + *(int *)(iVar5 + 0x8c);
    local_70 = *(undefined4 *)(iVar7 + 0x38);
    local_74 = *(undefined4 *)(iVar7 + 0x34);
    local_40 = *(undefined4 *)(*param_2 + 4);
    iVar9 = XCreateGC(iVar5,iVar9,0x400c,local_7c);
    param_2[5] = iVar9;
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00077880();
}

