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

void x11font_cairo_draw_8
               (unifont_drawctx *ctx,x11font_individual *xfi,int x,int y,void *vstring,int start,
               int length)

{
  undefined4 uVar1;
  int iVar2;
  byte *glyphindex;
  uint glyphindex_00;
  byte *pbVar3;
  x11font_individual *in_stack_ffffffd4;
  
  uVar1 = gdk_display_get_default();
  uVar1 = gdk_x11_display_get_xdisplay(uVar1);
  if (0 < length) {
    glyphindex = (byte *)((int)vstring + start + length);
    pbVar3 = (byte *)((int)vstring + start);
    do {
      glyphindex_00 = (uint)*pbVar3;
      iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);
      if (iVar2 != 0) {
        if ((xfi->nglyphs <= (int)glyphindex_00) ||
           (xfi->glyphcache[glyphindex_00].surface == (cairo_surface_t *)0x0)) {
          XDrawImageString(uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);
          x11font_cairo_cache_glyph(in_stack_ffffffd4,(int)glyphindex);
        }
        x11font_cairo_draw_glyph((unifont_drawctx *)((int)&ctx->u + 4),xfi,x,y,glyphindex_00);
        iVar2 = XTextWidth(xfi->xfs,pbVar3,1);
        x = x + iVar2;
      }
      pbVar3 = pbVar3 + 1;
    } while (glyphindex != pbVar3);
  }
  return;
}



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

void FUN_0004be30(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,
                 int param_5,int param_6,int param_7)

{
  undefined4 uVar1;
  int iVar2;
  uint uVar3;
  byte *pbVar4;
  
  uVar1 = gdk_display_get_default();
  uVar1 = gdk_x11_display_get_xdisplay(uVar1);
  if (0 < param_7) {
    pbVar4 = (byte *)(param_5 + param_6);
    do {
      uVar3 = (uint)*pbVar4;
      iVar2 = FUN_00048d90();
      if (iVar2 != 0) {
        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {
          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);
          FUN_0004a4a0();
        }
        FUN_0004bcd0(param_4,uVar3);
        XTextWidth(*param_2,pbVar4,1);
      }
      pbVar4 = pbVar4 + 1;
    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001a360
ADD EBX,0x559ab
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x34]
MOV EBP,dword ptr [ESP + 0x48]
CALL 0x00018de0
SUB ESP,0xc
PUSH EAX
CALL 0x00019e70
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
TEST EBP,EBP
JLE 0x0004bf10
MOV EAX,dword ptr [ESP + 0x30]
ADD EBP,dword ptr [ESP + 0x40]
ADD EBP,dword ptr [ESP + 0x44]
MOV ESI,dword ptr [ESP + 0x40]
ADD EAX,0x8
ADD ESI,dword ptr [ESP + 0x44]
MOV dword ptr [ESP + 0x4],EBP
MOV dword ptr [ESP + 0x8],EAX
JMP 0x0004bece
MOV EAX,dword ptr [EDI + 0x8]
MOV EAX,dword ptr [EAX + EBP*0x8]
TEST EAX,EAX
JZ 0x0004bee5
SUB ESP,0x8
MOV EDX,EDI
PUSH EBP
PUSH dword ptr [ESP + 0x48]
MOV ECX,dword ptr [ESP + 0x48]
MOV EAX,dword ptr [ESP + 0x18]
CALL 0x0004bcd0
ADD ESP,0xc
PUSH 0x1
PUSH ESI
PUSH dword ptr [EDI]
CALL 0x000181f0
ADD dword ptr [ESP + 0x48],EAX
ADD ESP,0x10
ADD ESI,0x1
CMP dword ptr [ESP + 0x4],ESI
JZ 0x0004bf10
MOVZX EBP,byte ptr [ESI]
MOV EAX,dword ptr [EDI]
XOR EDX,EDX
MOV ECX,EBP
CALL 0x00048d90
TEST EAX,EAX
JZ 0x0004bec5
CMP EBP,dword ptr [EDI + 0xc]
JL 0x0004be90
SUB ESP,0x4
PUSH 0x1
PUSH ESI
PUSH dword ptr [EDI + 0x24]
PUSH dword ptr [EDI + 0x20]
PUSH dword ptr [EDI + 0x14]
PUSH dword ptr [EDI + 0x10]
PUSH dword ptr [ESP + 0x28]
CALL 0x00018600
ADD ESP,0x20
MOV EDX,EBP
MOV EAX,EDI
CALL 0x0004a4a0
JMP 0x0004be9a
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0004be30(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 int param_5,int param_6,int param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  \n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  if (0 < param_7) {\n    pbVar4 = (byte *)(param_5 + param_6);\n    do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0004be30(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 int param_5,int param_6,int param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  \n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  if (0 < param_7) {\n    pbVar4 = (byte *)(param_5 + param_6);\n    do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0004be30(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 int param_5,int param_6,int param_7)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 int param_5,int param_6,int param_7)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  \n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  if (0 < param_7) {\n    pbVar4 = (byte *)(param_5 + param_6);\n    do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (expression_statement "uVar1 = gdk_display_get_default();" (assignment_expression "uVar1 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = gdk_x11_display_get_xdisplay(uVar1);" (assignment_expression "uVar1 = gdk_x11_display_get_xdisplay(uVar1)" identifier = (call_expression "gdk_x11_display_get_xdisplay(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (if_statement "if (0 < param_7) {\n    pbVar4 = (byte *)(param_5 + param_6);\n    do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);\n  }" if (parenthesized_expression "(0 < param_7)" ( (binary_expression "0 < param_7" number_literal < identifier) )) (compound_statement "{\n    pbVar4 = (byte *)(param_5 + param_6);\n    do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);\n  }" { (expression_statement "pbVar4 = (byte *)(param_5 + param_6);" (assignment_expression "pbVar4 = (byte *)(param_5 + param_6)" identifier = (cast_expression "(byte *)(param_5 + param_6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + param_6)" ( (binary_expression "param_5 + param_6" identifier + identifier) )))) ;) (do_statement "do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);" do (compound_statement "{\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    }" { (expression_statement "uVar3 = (uint)*pbVar4;" (assignment_expression "uVar3 = (uint)*pbVar4" identifier = (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar2 = FUN_00048d90();" (assignment_expression "iVar2 = FUN_00048d90()" identifier = (call_expression "FUN_00048d90()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }" { (if_statement "if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }" if (parenthesized_expression "(((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0))" ( (binary_expression "((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)" (parenthesized_expression "((int)param_2[3] <= (int)uVar3)" ( (binary_expression "(int)param_2[3] <= (int)uVar3" (cast_expression "(int)param_2[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[3]" identifier [ number_literal ])) <= (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) || (parenthesized_expression "(*(int *)(param_2[2] + uVar3 * 8) == 0)" ( (binary_expression "*(int *)(param_2[2] + uVar3 * 8) == 0" (pointer_expression "*(int *)(param_2[2] + uVar3 * 8)" * (cast_expression "(int *)(param_2[2] + uVar3 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[2] + uVar3 * 8)" ( (binary_expression "param_2[2] + uVar3 * 8" (subscript_expression "param_2[2]" identifier [ number_literal ]) + (binary_expression "uVar3 * 8" identifier * number_literal)) )))) == number_literal) ))) )) (compound_statement "{\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }" { (expression_statement "XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);" (call_expression "XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1)" identifier (argument_list "(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1)" ( identifier , (subscript_expression "param_2[4]" identifier [ number_literal ]) , (subscript_expression "param_2[5]" identifier [ number_literal ]) , (subscript_expression "param_2[8]" identifier [ number_literal ]) , (subscript_expression "param_2[9]" identifier [ number_literal ]) , identifier , number_literal ))) ;) (expression_statement "FUN_0004a4a0();" (call_expression "FUN_0004a4a0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_0004bcd0(param_4,uVar3);" (call_expression "FUN_0004bcd0(param_4,uVar3)" identifier (argument_list "(param_4,uVar3)" ( identifier , identifier ))) ;) (expression_statement "XTextWidth(*param_2,pbVar4,1);" (call_expression "XTextWidth(*param_2,pbVar4,1)" identifier (argument_list "(*param_2,pbVar4,1)" ( (pointer_expression "*param_2" * identifier) , identifier , number_literal ))) ;) })) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((byte *)(param_7 + param_5 + param_6) != pbVar4)" ( (binary_expression "(byte *)(param_7 + param_5 + param_6) != pbVar4" (cast_expression "(byte *)(param_7 + param_5 + param_6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_7 + param_5 + param_6)" ( (binary_expression "param_7 + param_5 + param_6" (binary_expression "param_7 + param_5" identifier + identifier) + identifier) ))) != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid x11font_cairo_draw_8\n               (unifont_drawctx *ctx,x11font_individual *xfi,int x,int y,void *vstring,int start,\n               int length)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  byte *glyphindex;\n  uint glyphindex_00;\n  byte *pbVar3;\n  x11font_individual *in_stack_ffffffd4;\n  \n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  if (0 < length) {\n    glyphindex = (byte *)((int)vstring + start + length);\n    pbVar3 = (byte *)((int)vstring + start);\n    do {\n      glyphindex_00 = (uint)*pbVar3;\n      iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);\n      if (iVar2 != 0) {\n        if ((xfi->nglyphs <= (int)glyphindex_00) ||\n           (xfi->glyphcache[glyphindex_00].surface == (cairo_surface_t *)0x0)) {\n          XDrawImageString(uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          x11font_cairo_cache_glyph(in_stack_ffffffd4,(int)glyphindex);\n        }\n        x11font_cairo_draw_glyph((unifont_drawctx *)((int)&ctx->u + 4),xfi,x,y,glyphindex_00);\n        iVar2 = XTextWidth(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (glyphindex != pbVar3);\n  }\n  return;\n}\n\n" comment comment (function_definition "void x11font_cairo_draw_8\n               (unifont_drawctx *ctx,x11font_individual *xfi,int x,int y,void *vstring,int start,\n               int length)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  byte *glyphindex;\n  uint glyphindex_00;\n  byte *pbVar3;\n  x11font_individual *in_stack_ffffffd4;\n  \n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  if (0 < length) {\n    glyphindex = (byte *)((int)vstring + start + length);\n    pbVar3 = (byte *)((int)vstring + start);\n    do {\n      glyphindex_00 = (uint)*pbVar3;\n      iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);\n      if (iVar2 != 0) {\n        if ((xfi->nglyphs <= (int)glyphindex_00) ||\n           (xfi->glyphcache[glyphindex_00].surface == (cairo_surface_t *)0x0)) {\n          XDrawImageString(uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          x11font_cairo_cache_glyph(in_stack_ffffffd4,(int)glyphindex);\n        }\n        x11font_cairo_draw_glyph((unifont_drawctx *)((int)&ctx->u + 4),xfi,x,y,glyphindex_00);\n        iVar2 = XTextWidth(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (glyphindex != pbVar3);\n  }\n  return;\n}" primitive_type (function_declarator "x11font_cairo_draw_8\n               (unifont_drawctx *ctx,x11font_individual *xfi,int x,int y,void *vstring,int start,\n               int length)" identifier (parameter_list "(unifont_drawctx *ctx,x11font_individual *xfi,int x,int y,void *vstring,int start,\n               int length)" ( (parameter_declaration "unifont_drawctx *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) , (parameter_declaration "x11font_individual *xfi" type_identifier (pointer_declarator "*xfi" * identifier)) , (parameter_declaration "int x" primitive_type identifier) , (parameter_declaration "int y" primitive_type identifier) , (parameter_declaration "void *vstring" primitive_type (pointer_declarator "*vstring" * identifier)) , (parameter_declaration "int start" primitive_type identifier) , (parameter_declaration "int length" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  byte *glyphindex;\n  uint glyphindex_00;\n  byte *pbVar3;\n  x11font_individual *in_stack_ffffffd4;\n  \n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  if (0 < length) {\n    glyphindex = (byte *)((int)vstring + start + length);\n    pbVar3 = (byte *)((int)vstring + start);\n    do {\n      glyphindex_00 = (uint)*pbVar3;\n      iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);\n      if (iVar2 != 0) {\n        if ((xfi->nglyphs <= (int)glyphindex_00) ||\n           (xfi->glyphcache[glyphindex_00].surface == (cairo_surface_t *)0x0)) {\n          XDrawImageString(uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          x11font_cairo_cache_glyph(in_stack_ffffffd4,(int)glyphindex);\n        }\n        x11font_cairo_draw_glyph((unifont_drawctx *)((int)&ctx->u + 4),xfi,x,y,glyphindex_00);\n        iVar2 = XTextWidth(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (glyphindex != pbVar3);\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *glyphindex;" type_identifier (pointer_declarator "*glyphindex" * identifier) ;) (declaration "uint glyphindex_00;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "x11font_individual *in_stack_ffffffd4;" type_identifier (pointer_declarator "*in_stack_ffffffd4" * identifier) ;) (expression_statement "uVar1 = gdk_display_get_default();" (assignment_expression "uVar1 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = gdk_x11_display_get_xdisplay(uVar1);" (assignment_expression "uVar1 = gdk_x11_display_get_xdisplay(uVar1)" identifier = (call_expression "gdk_x11_display_get_xdisplay(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (if_statement "if (0 < length) {\n    glyphindex = (byte *)((int)vstring + start + length);\n    pbVar3 = (byte *)((int)vstring + start);\n    do {\n      glyphindex_00 = (uint)*pbVar3;\n      iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);\n      if (iVar2 != 0) {\n        if ((xfi->nglyphs <= (int)glyphindex_00) ||\n           (xfi->glyphcache[glyphindex_00].surface == (cairo_surface_t *)0x0)) {\n          XDrawImageString(uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          x11font_cairo_cache_glyph(in_stack_ffffffd4,(int)glyphindex);\n        }\n        x11font_cairo_draw_glyph((unifont_drawctx *)((int)&ctx->u + 4),xfi,x,y,glyphindex_00);\n        iVar2 = XTextWidth(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (glyphindex != pbVar3);\n  }" if (parenthesized_expression "(0 < length)" ( (binary_expression "0 < length" number_literal < identifier) )) (compound_statement "{\n    glyphindex = (byte *)((int)vstring + start + length);\n    pbVar3 = (byte *)((int)vstring + start);\n    do {\n      glyphindex_00 = (uint)*pbVar3;\n      iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);\n      if (iVar2 != 0) {\n        if ((xfi->nglyphs <= (int)glyphindex_00) ||\n           (xfi->glyphcache[glyphindex_00].surface == (cairo_surface_t *)0x0)) {\n          XDrawImageString(uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          x11font_cairo_cache_glyph(in_stack_ffffffd4,(int)glyphindex);\n        }\n        x11font_cairo_draw_glyph((unifont_drawctx *)((int)&ctx->u + 4),xfi,x,y,glyphindex_00);\n        iVar2 = XTextWidth(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (glyphindex != pbVar3);\n  }" { (expression_statement "glyphindex = (byte *)((int)vstring + start + length);" (assignment_expression "glyphindex = (byte *)((int)vstring + start + length)" identifier = (cast_expression "(byte *)((int)vstring + start + length)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vstring + start + length)" ( (binary_expression "(int)vstring + start + length" (binary_expression "(int)vstring + start" (cast_expression "(int)vstring" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + identifier) )))) ;) (expression_statement "pbVar3 = (byte *)((int)vstring + start);" (assignment_expression "pbVar3 = (byte *)((int)vstring + start)" identifier = (cast_expression "(byte *)((int)vstring + start)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vstring + start)" ( (binary_expression "(int)vstring + start" (cast_expression "(int)vstring" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (do_statement "do {\n      glyphindex_00 = (uint)*pbVar3;\n      iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);\n      if (iVar2 != 0) {\n        if ((xfi->nglyphs <= (int)glyphindex_00) ||\n           (xfi->glyphcache[glyphindex_00].surface == (cairo_surface_t *)0x0)) {\n          XDrawImageString(uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          x11font_cairo_cache_glyph(in_stack_ffffffd4,(int)glyphindex);\n        }\n        x11font_cairo_draw_glyph((unifont_drawctx *)((int)&ctx->u + 4),xfi,x,y,glyphindex_00);\n        iVar2 = XTextWidth(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (glyphindex != pbVar3);" do (compound_statement "{\n      glyphindex_00 = (uint)*pbVar3;\n      iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);\n      if (iVar2 != 0) {\n        if ((xfi->nglyphs <= (int)glyphindex_00) ||\n           (xfi->glyphcache[glyphindex_00].surface == (cairo_surface_t *)0x0)) {\n          XDrawImageString(uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          x11font_cairo_cache_glyph(in_stack_ffffffd4,(int)glyphindex);\n        }\n        x11font_cairo_draw_glyph((unifont_drawctx *)((int)&ctx->u + 4),xfi,x,y,glyphindex_00);\n        iVar2 = XTextWidth(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    }" { (expression_statement "glyphindex_00 = (uint)*pbVar3;" (assignment_expression "glyphindex_00 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);" (assignment_expression "iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3)" identifier = (call_expression "x11_font_has_glyph(xfi->xfs,'\0',*pbVar3)" identifier (argument_list "(xfi->xfs,'\0',*pbVar3)" ( (field_expression "xfi->xfs" identifier -> field_identifier) , (char_literal "'\0'" ' escape_sequence ') , (pointer_expression "*pbVar3" * identifier) )))) ;) (if_statement "if (iVar2 != 0) {\n        if ((xfi->nglyphs <= (int)glyphindex_00) ||\n           (xfi->glyphcache[glyphindex_00].surface == (cairo_surface_t *)0x0)) {\n          XDrawImageString(uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          x11font_cairo_cache_glyph(in_stack_ffffffd4,(int)glyphindex);\n        }\n        x11font_cairo_draw_glyph((unifont_drawctx *)((int)&ctx->u + 4),xfi,x,y,glyphindex_00);\n        iVar2 = XTextWidth(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        if ((xfi->nglyphs <= (int)glyphindex_00) ||\n           (xfi->glyphcache[glyphindex_00].surface == (cairo_surface_t *)0x0)) {\n          XDrawImageString(uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          x11font_cairo_cache_glyph(in_stack_ffffffd4,(int)glyphindex);\n        }\n        x11font_cairo_draw_glyph((unifont_drawctx *)((int)&ctx->u + 4),xfi,x,y,glyphindex_00);\n        iVar2 = XTextWidth(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }" { (if_statement "if ((xfi->nglyphs <= (int)glyphindex_00) ||\n           (xfi->glyphcache[glyphindex_00].surface == (cairo_surface_t *)0x0)) {\n          XDrawImageString(uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          x11font_cairo_cache_glyph(in_stack_ffffffd4,(int)glyphindex);\n        }" if (parenthesized_expression "((xfi->nglyphs <= (int)glyphindex_00) ||\n           (xfi->glyphcache[glyphindex_00].surface == (cairo_surface_t *)0x0))" ( (binary_expression "(xfi->nglyphs <= (int)glyphindex_00) ||\n           (xfi->glyphcache[glyphindex_00].surface == (cairo_surface_t *)0x0)" (parenthesized_expression "(xfi->nglyphs <= (int)glyphindex_00)" ( (binary_expression "xfi->nglyphs <= (int)glyphindex_00" (field_expression "xfi->nglyphs" identifier -> field_identifier) <= (cast_expression "(int)glyphindex_00" ( (type_descriptor "int" primitive_type) ) identifier)) )) || (parenthesized_expression "(xfi->glyphcache[glyphindex_00].surface == (cairo_surface_t *)0x0)" ( (binary_expression "xfi->glyphcache[glyphindex_00].surface == (cairo_surface_t *)0x0" (field_expression "xfi->glyphcache[glyphindex_00].surface" (subscript_expression "xfi->glyphcache[glyphindex_00]" (field_expression "xfi->glyphcache" identifier -> field_identifier) [ identifier ]) . field_identifier) == (cast_expression "(cairo_surface_t *)0x0" ( (type_descriptor "cairo_surface_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          XDrawImageString(uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          x11font_cairo_cache_glyph(in_stack_ffffffd4,(int)glyphindex);\n        }" { (expression_statement "XDrawImageString(uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);" (call_expression "XDrawImageString(uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1)" identifier (argument_list "(uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1)" ( identifier , (field_expression "xfi->pixmap" identifier -> field_identifier) , (field_expression "xfi->gc" identifier -> field_identifier) , (field_expression "xfi->pixoriginx" identifier -> field_identifier) , (field_expression "xfi->pixoriginy" identifier -> field_identifier) , identifier , number_literal ))) ;) (expression_statement "x11font_cairo_cache_glyph(in_stack_ffffffd4,(int)glyphindex);" (call_expression "x11font_cairo_cache_glyph(in_stack_ffffffd4,(int)glyphindex)" identifier (argument_list "(in_stack_ffffffd4,(int)glyphindex)" ( identifier , (cast_expression "(int)glyphindex" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) })) (expression_statement "x11font_cairo_draw_glyph((unifont_drawctx *)((int)&ctx->u + 4),xfi,x,y,glyphindex_00);" (call_expression "x11font_cairo_draw_glyph((unifont_drawctx *)((int)&ctx->u + 4),xfi,x,y,glyphindex_00)" identifier (argument_list "((unifont_drawctx *)((int)&ctx->u + 4),xfi,x,y,glyphindex_00)" ( (cast_expression "(unifont_drawctx *)((int)&ctx->u + 4)" ( (type_descriptor "unifont_drawctx *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ctx->u + 4)" ( (binary_expression "(int)&ctx->u + 4" (cast_expression "(int)&ctx->u" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ctx->u" & (field_expression "ctx->u" identifier -> field_identifier))) + number_literal) ))) , identifier , identifier , identifier , identifier ))) ;) (expression_statement "iVar2 = XTextWidth(xfi->xfs,pbVar3,1);" (assignment_expression "iVar2 = XTextWidth(xfi->xfs,pbVar3,1)" identifier = (call_expression "XTextWidth(xfi->xfs,pbVar3,1)" identifier (argument_list "(xfi->xfs,pbVar3,1)" ( (field_expression "xfi->xfs" identifier -> field_identifier) , identifier , number_literal )))) ;) (expression_statement "x = x + iVar2;" (assignment_expression "x = x + iVar2" identifier = (binary_expression "x + iVar2" identifier + identifier)) ;) })) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(glyphindex != pbVar3)" ( (binary_expression "glyphindex != pbVar3" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0004be30(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 int param_5,int param_6,int param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  \n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  if (0 < param_7) {\n    pbVar4 = (byte *)(param_5 + param_6);\n    do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0004be30(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 int param_5,int param_6,int param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  \n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  if (0 < param_7) {\n    pbVar4 = (byte *)(param_5 + param_6);\n    do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0004be30(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 int param_5,int param_6,int param_7)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 int param_5,int param_6,int param_7)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  \n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  if (0 < param_7) {\n    pbVar4 = (byte *)(param_5 + param_6);\n    do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (expression_statement "uVar1 = gdk_display_get_default();" (assignment_expression "uVar1 = gdk_display_get_default()" identifier = (call_expression "gdk_display_get_default()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = gdk_x11_display_get_xdisplay(uVar1);" (assignment_expression "uVar1 = gdk_x11_display_get_xdisplay(uVar1)" identifier = (call_expression "gdk_x11_display_get_xdisplay(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (if_statement "if (0 < param_7) {\n    pbVar4 = (byte *)(param_5 + param_6);\n    do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);\n  }" if (parenthesized_expression "(0 < param_7)" ( (binary_expression "0 < param_7" number_literal < identifier) )) (compound_statement "{\n    pbVar4 = (byte *)(param_5 + param_6);\n    do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);\n  }" { (expression_statement "pbVar4 = (byte *)(param_5 + param_6);" (assignment_expression "pbVar4 = (byte *)(param_5 + param_6)" identifier = (cast_expression "(byte *)(param_5 + param_6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + param_6)" ( (binary_expression "param_5 + param_6" identifier + identifier) )))) ;) (do_statement "do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);" do (compound_statement "{\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    }" { (expression_statement "uVar3 = (uint)*pbVar4;" (assignment_expression "uVar3 = (uint)*pbVar4" identifier = (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar2 = FUN_00048d90();" (assignment_expression "iVar2 = FUN_00048d90()" identifier = (call_expression "FUN_00048d90()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }" { (if_statement "if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }" if (parenthesized_expression "(((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0))" ( (binary_expression "((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)" (parenthesized_expression "((int)param_2[3] <= (int)uVar3)" ( (binary_expression "(int)param_2[3] <= (int)uVar3" (cast_expression "(int)param_2[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[3]" identifier [ number_literal ])) <= (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) || (parenthesized_expression "(*(int *)(param_2[2] + uVar3 * 8) == 0)" ( (binary_expression "*(int *)(param_2[2] + uVar3 * 8) == 0" (pointer_expression "*(int *)(param_2[2] + uVar3 * 8)" * (cast_expression "(int *)(param_2[2] + uVar3 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[2] + uVar3 * 8)" ( (binary_expression "param_2[2] + uVar3 * 8" (subscript_expression "param_2[2]" identifier [ number_literal ]) + (binary_expression "uVar3 * 8" identifier * number_literal)) )))) == number_literal) ))) )) (compound_statement "{\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }" { (expression_statement "XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);" (call_expression "XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1)" identifier (argument_list "(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1)" ( identifier , (subscript_expression "param_2[4]" identifier [ number_literal ]) , (subscript_expression "param_2[5]" identifier [ number_literal ]) , (subscript_expression "param_2[8]" identifier [ number_literal ]) , (subscript_expression "param_2[9]" identifier [ number_literal ]) , identifier , number_literal ))) ;) (expression_statement "FUN_0004a4a0();" (call_expression "FUN_0004a4a0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_0004bcd0(param_4,uVar3);" (call_expression "FUN_0004bcd0(param_4,uVar3)" identifier (argument_list "(param_4,uVar3)" ( identifier , identifier ))) ;) (expression_statement "XTextWidth(*param_2,pbVar4,1);" (call_expression "XTextWidth(*param_2,pbVar4,1)" identifier (argument_list "(*param_2,pbVar4,1)" ( (pointer_expression "*param_2" * identifier) , identifier , number_literal ))) ;) })) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((byte *)(param_7 + param_5 + param_6) != pbVar4)" ( (binary_expression "(byte *)(param_7 + param_5 + param_6) != pbVar4" (cast_expression "(byte *)(param_7 + param_5 + param_6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_7 + param_5 + param_6)" ( (binary_expression "param_7 + param_5 + param_6" (binary_expression "param_7 + param_5" identifier + identifier) + identifier) ))) != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) == LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + IDENT) ))) != IDENT) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0004be30(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 int param_5,int param_6,int param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  \n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  if (0 < param_7) {\n    pbVar4 = (byte *)(param_5 + param_6);\n    do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0004be30(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 int param_5,int param_6,int param_7)" (identifier "FUN_0004be30") (parameter_list "(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,\n                 int param_5,int param_6,int param_7)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) (, ",") (parameter_declaration "int param_7" (primitive_type "int") (identifier "param_7")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  \n  uVar1 = gdk_display_get_default();\n  uVar1 = gdk_x11_display_get_xdisplay(uVar1);\n  if (0 < param_7) {\n    pbVar4 = (byte *)(param_5 + param_6);\n    do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);\n  }\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (expression_statement "uVar1 = gdk_display_get_default();" (assignment_expression "uVar1 = gdk_display_get_default()" (identifier "uVar1") (= "=") (call_expression "gdk_display_get_default()" (identifier "gdk_display_get_default") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar1 = gdk_x11_display_get_xdisplay(uVar1);" (assignment_expression "uVar1 = gdk_x11_display_get_xdisplay(uVar1)" (identifier "uVar1") (= "=") (call_expression "gdk_x11_display_get_xdisplay(uVar1)" (identifier "gdk_x11_display_get_xdisplay") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (if_statement "if (0 < param_7) {\n    pbVar4 = (byte *)(param_5 + param_6);\n    do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);\n  }" (if "if") (parenthesized_expression "(0 < param_7)" (( "(") (binary_expression "0 < param_7" (number_literal "0") (< "<") (identifier "param_7")) () ")")) (compound_statement "{\n    pbVar4 = (byte *)(param_5 + param_6);\n    do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);\n  }" ({ "{") (expression_statement "pbVar4 = (byte *)(param_5 + param_6);" (assignment_expression "pbVar4 = (byte *)(param_5 + param_6)" (identifier "pbVar4") (= "=") (cast_expression "(byte *)(param_5 + param_6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + param_6)" (( "(") (binary_expression "param_5 + param_6" (identifier "param_5") (+ "+") (identifier "param_6")) () ")")))) (; ";")) (do_statement "do {\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);" (do "do") (compound_statement "{\n      uVar3 = (uint)*pbVar4;\n      iVar2 = FUN_00048d90();\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }\n      pbVar4 = pbVar4 + 1;\n    }" ({ "{") (expression_statement "uVar3 = (uint)*pbVar4;" (assignment_expression "uVar3 = (uint)*pbVar4" (identifier "uVar3") (= "=") (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar4"))) (; ";")) (expression_statement "iVar2 = FUN_00048d90();" (assignment_expression "iVar2 = FUN_00048d90()" (identifier "iVar2") (= "=") (call_expression "FUN_00048d90()" (identifier "FUN_00048d90") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }\n        FUN_0004bcd0(param_4,uVar3);\n        XTextWidth(*param_2,pbVar4,1);\n      }" ({ "{") (if_statement "if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }" (if "if") (parenthesized_expression "(((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0))" (( "(") (binary_expression "((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)" (parenthesized_expression "((int)param_2[3] <= (int)uVar3)" (( "(") (binary_expression "(int)param_2[3] <= (int)uVar3" (cast_expression "(int)param_2[3]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3"))) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_2[2] + uVar3 * 8) == 0)" (( "(") (binary_expression "*(int *)(param_2[2] + uVar3 * 8) == 0" (pointer_expression "*(int *)(param_2[2] + uVar3 * 8)" (* "*") (cast_expression "(int *)(param_2[2] + uVar3 * 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[2] + uVar3 * 8)" (( "(") (binary_expression "param_2[2] + uVar3 * 8" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (+ "+") (binary_expression "uVar3 * 8" (identifier "uVar3") (* "*") (number_literal "8"))) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);\n          FUN_0004a4a0();\n        }" ({ "{") (expression_statement "XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);" (call_expression "XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1)" (identifier "XDrawImageString") (argument_list "(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1)" (( "(") (identifier "uVar1") (, ",") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (, ",") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (, ",") (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]")) (, ",") (subscript_expression "param_2[9]" (identifier "param_2") ([ "[") (number_literal "9") (] "]")) (, ",") (identifier "pbVar4") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "FUN_0004a4a0();" (call_expression "FUN_0004a4a0()" (identifier "FUN_0004a4a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0004bcd0(param_4,uVar3);" (call_expression "FUN_0004bcd0(param_4,uVar3)" (identifier "FUN_0004bcd0") (argument_list "(param_4,uVar3)" (( "(") (identifier "param_4") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "XTextWidth(*param_2,pbVar4,1);" (call_expression "XTextWidth(*param_2,pbVar4,1)" (identifier "XTextWidth") (argument_list "(*param_2,pbVar4,1)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "pbVar4") (, ",") (number_literal "1") () ")"))) (; ";")) (} "}"))) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((byte *)(param_7 + param_5 + param_6) != pbVar4)" (( "(") (binary_expression "(byte *)(param_7 + param_5 + param_6) != pbVar4" (cast_expression "(byte *)(param_7 + param_5 + param_6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_7 + param_5 + param_6)" (( "(") (binary_expression "param_7 + param_5 + param_6" (binary_expression "param_7 + param_5" (identifier "param_7") (+ "+") (identifier "param_5")) (+ "+") (identifier "param_6")) () ")"))) (!= "!=") (identifier "pbVar4")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1
               (type_1 *ctx,type_2 *xfi,int var_12,int y,void *vstring,int var_4,
               int var_3)

{
  type_3 uVar1;
  int var_7;
  type_4 *var_13;
  type_5 glyphindex_00;
  type_4 *var_5;
  type_2 *in_stack_ffffffd4;
  
  uVar1 = var_1();
  uVar1 = var_2(uVar1);
  if (0 < var_3) {
    var_13 = (type_4 *)((int)vstring + var_4 + var_3);
    var_5 = (type_4 *)((int)vstring + var_4);
    do {
      glyphindex_00 = (type_5)*var_5;
      var_7 = var_6(xfi->xfs,'\0',*var_5);
      if (var_7 != 0) {
        if ((xfi->nglyphs <= (int)glyphindex_00) ||
           (xfi->glyphcache[glyphindex_00].surface == (type_6 *)0x0)) {
          var_8(uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,var_5,1);
          var_9(in_stack_ffffffd4,(int)var_13);
        }
        var_10((type_1 *)((int)&ctx->u + 4),xfi,var_12,y,glyphindex_00);
        var_7 = var_11(xfi->xfs,var_5,1);
        var_12 = var_12 + var_7;
      }
      var_5 = var_5 + 1;
    } while (var_13 != var_5);
  }
  return;
}


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

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

void MASKED(undefined4 param_1,undefined4 *param_2,undefined4 param_3,undefined4 param_4,
                 int param_5,int param_6,int param_7)

{
  undefined4 uVar1;
  int iVar2;
  uint uVar3;
  byte *pbVar4;
  
  uVar1 = gdk_display_get_default();
  uVar1 = gdk_x11_display_get_xdisplay(uVar1);
  if (0 < param_7) {
    pbVar4 = (byte *)(param_5 + param_6);
    do {
      uVar3 = (uint)*pbVar4;
      iVar2 = FUN_00048d90();
      if (iVar2 != 0) {
        if (((int)param_2[3] <= (int)uVar3) || (*(int *)(param_2[2] + uVar3 * 8) == 0)) {
          XDrawImageString(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar4,1);
          FUN_0004a4a0();
        }
        FUN_0004bcd0(param_4,uVar3);
        XTextWidth(*param_2,pbVar4,1);
      }
      pbVar4 = pbVar4 + 1;
    } while ((byte *)(param_7 + param_5 + param_6) != pbVar4);
  }
  return;
}

