
/* 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 *pbVar3;
  uint uVar4;
  code *pcVar5;
  code *pcVar6;
  
  uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();
  uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);
  if (0 < length) {
    pbVar3 = (byte *)((int)vstring + start);
    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);
    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);
    do {
      uVar4 = (uint)*pbVar3;
      iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);
      if (iVar2 != 0) {
        if ((xfi->nglyphs <= (int)uVar4) ||
           (xfi->glyphcache[uVar4].surface == (cairo_surface_t *)0x0)) {
          (*(code *)PTR_XDrawImageString_00122600)
                    (uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);
          (*pcVar5)(xfi,uVar4);
        }
        (*pcVar6)(ctx,xfi,x,y,uVar4);
        iVar2 = (*(code *)PTR_XTextWidth_00122718)(xfi->xfs,pbVar3,1);
        x = x + iVar2;
      }
      pbVar3 = pbVar3 + 1;
    } while (pbVar3 != (byte *)((int)vstring + start + length));
  }
  return;
}



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

{
  undefined4 uVar1;
  int iVar2;
  byte *pbVar3;
  uint uVar4;
  code *pcVar5;
  code *pcVar6;
  
  uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();
  uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);
  if (0 < param_7) {
    pbVar3 = (byte *)(param_5 + param_6);
    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);
    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);
    do {
      uVar4 = (uint)*pbVar3;
      iVar2 = FUN_000b8588(*param_2,0,uVar4);
      if (iVar2 != 0) {
        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {
          (*(code *)PTR_XDrawImageString_00122600)
                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);
          (*pcVar5)(param_2,uVar4);
        }
        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);
        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);
        param_3 = param_3 + iVar2;
      }
      pbVar3 = pbVar3 + 1;
    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));
  }
  return;
}


lui gp,0x7
addiu gp,gp,-0x1afc
addu gp,gp,t9
addiu sp,sp,-0x58
sw ra,0x54(sp)
sw s8,0x50(sp)
sw s7,0x4c(sp)
sw s6,0x48(sp)
sw s5,0x44(sp)
sw s4,0x40(sp)
sw s3,0x3c(sp)
sw s2,0x38(sp)
sw s1,0x34(sp)
sw s0,0x30(sp)
sw gp,0x20(sp)
sw a0,0x58(sp)
or s1,a1,zero
or s5,a2,zero
sw a3,0x64(sp)
lw s2,0x68(sp)
lw s4,0x6c(sp)
lw s3,0x70(sp)
lw t9,-0x6ec4(gp)
jalr t9
_nop
lw gp,0x20(sp)
or a0,v0,zero
lw t9,-0x7330(gp)
jalr t9
_nop
lw gp,0x20(sp)
blez s3,0x000baf48
_sw v0,0x2c(sp)
addu s0,s2,s4
addu s2,s2,s3
addu s4,s2,s4
lw s6,-0x760c(gp)
addiu s6,s6,-0x7a78
lw v0,-0x760c(gp)
addiu s8,v0,-0x54bc
lw v0,-0x760c(gp)
b 0x000baef4
_addiu s7,v0,-0x57a8
li v0,0x1
sw v0,0x18(sp)
sw s3,0x14(sp)
lw v0,0x24(s1)
sw v0,0x10(sp)
lw a3,0x20(s1)
lw a2,0x14(s1)
lw a1,0x10(s1)
lw a0,0x2c(sp)
lw t9,-0x6cb0(gp)
jalr t9
_nop
lw gp,0x20(sp)
or a1,s2,zero
or a0,s1,zero
or t9,s7,zero
jalr t9
_nop
lw gp,0x20(sp)
sw s2,0x10(sp)
lw a3,0x64(sp)
or a2,s5,zero
or a1,s1,zero
lw a0,0x58(sp)
or t9,s8,zero
jalr t9
_nop
lw gp,0x20(sp)
li a2,0x1
or a1,s3,zero
lw a0,0x0(s1)
lw t9,-0x6b98(gp)
jalr t9
_nop
lw gp,0x20(sp)
addu s5,s5,v0
addiu s0,s0,0x1
beq s0,s4,0x000baf4c
_lw ra,0x54(sp)
lbu s2,0x0(s0)
or a2,s2,zero
or a1,zero,zero
lw a0,0x0(s1)
or t9,s6,zero
bal 0x000b8588
_nop
lw gp,0x20(sp)
beq v0,zero,0x000baee8
_or s3,s0,zero
lw v0,0xc(s1)
slt v0,s2,v0
beq v0,zero,0x000bae58
_sll v1,s2,0x3
lw v0,0x8(s1)
addu v0,v0,v1
lw v0,0x0(v0)
bne v0,zero,0x000baea4
_li v0,0x1
b 0x000bae60
_sw v0,0x18(sp)
lw ra,0x54(sp)
lw s8,0x50(sp)
lw s7,0x4c(sp)
lw s6,0x48(sp)
lw s5,0x44(sp)
lw s4,0x40(sp)
lw s3,0x3c(sp)
lw s2,0x38(sp)
lw s1,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x58
(translation_unit "void FUN_000badac(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 int param_6,int param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  byte *pbVar3;\n  uint uVar4;\n  code *pcVar5;\n  code *pcVar6;\n  \n  uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();\n  uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);\n  if (0 < param_7) {\n    pbVar3 = (byte *)(param_5 + param_6);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));\n  }\n  return;\n}\n\n" (function_definition "void FUN_000badac(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 int param_6,int param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  byte *pbVar3;\n  uint uVar4;\n  code *pcVar5;\n  code *pcVar6;\n  \n  uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();\n  uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);\n  if (0 < param_7) {\n    pbVar3 = (byte *)(param_5 + param_6);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000badac(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 int param_6,int param_7)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 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 "int param_3" primitive_type 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  byte *pbVar3;\n  uint uVar4;\n  code *pcVar5;\n  code *pcVar6;\n  \n  uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();\n  uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);\n  if (0 < param_7) {\n    pbVar3 = (byte *)(param_5 + param_6);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();" (assignment_expression "uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)()" identifier = (call_expression "(*(code *)PTR_gdk_display_get_default_001223ec)()" (parenthesized_expression "(*(code *)PTR_gdk_display_get_default_001223ec)" ( (pointer_expression "*(code *)PTR_gdk_display_get_default_001223ec" * (cast_expression "(code *)PTR_gdk_display_get_default_001223ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);" (assignment_expression "uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1)" identifier = (call_expression "(*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1)" (parenthesized_expression "(*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)" ( (pointer_expression "*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80" * (cast_expression "(code *)PTR_gdk_x11_display_get_xdisplay_00121f80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier )))) ;) (if_statement "if (0 < param_7) {\n    pbVar3 = (byte *)(param_5 + param_6);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));\n  }" if (parenthesized_expression "(0 < param_7)" ( (binary_expression "0 < param_7" number_literal < identifier) )) (compound_statement "{\n    pbVar3 = (byte *)(param_5 + param_6);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));\n  }" { (expression_statement "pbVar3 = (byte *)(param_5 + param_6);" (assignment_expression "pbVar3 = (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) )))) ;) (expression_statement "pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);" (assignment_expression "pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc)" identifier = (cast_expression "(code *)(PTR_LAB_00121ca4 + -0x54bc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00121ca4 + -0x54bc)" ( (binary_expression "PTR_LAB_00121ca4 + -0x54bc" identifier + number_literal) )))) ;) (expression_statement "pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);" (assignment_expression "pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8)" identifier = (cast_expression "(code *)(PTR_LAB_00121ca4 + -0x57a8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00121ca4 + -0x57a8)" ( (binary_expression "PTR_LAB_00121ca4 + -0x57a8" identifier + number_literal) )))) ;) (do_statement "do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));" do (compound_statement "{\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    }" { (expression_statement "uVar4 = (uint)*pbVar3;" (assignment_expression "uVar4 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar2 = FUN_000b8588(*param_2,0,uVar4);" (assignment_expression "iVar2 = FUN_000b8588(*param_2,0,uVar4)" identifier = (call_expression "FUN_000b8588(*param_2,0,uVar4)" identifier (argument_list "(*param_2,0,uVar4)" ( (pointer_expression "*param_2" * identifier) , number_literal , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }" { (if_statement "if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }" if (parenthesized_expression "(((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0))" ( (binary_expression "((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)" (parenthesized_expression "((int)param_2[3] <= (int)uVar4)" ( (binary_expression "(int)param_2[3] <= (int)uVar4" (cast_expression "(int)param_2[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[3]" identifier [ number_literal ])) <= (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) || (parenthesized_expression "(*(int *)(param_2[2] + uVar4 * 8) == 0)" ( (binary_expression "*(int *)(param_2[2] + uVar4 * 8) == 0" (pointer_expression "*(int *)(param_2[2] + uVar4 * 8)" * (cast_expression "(int *)(param_2[2] + uVar4 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[2] + uVar4 * 8)" ( (binary_expression "param_2[2] + uVar4 * 8" (subscript_expression "param_2[2]" identifier [ number_literal ]) + (binary_expression "uVar4 * 8" identifier * number_literal)) )))) == number_literal) ))) )) (compound_statement "{\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }" { (expression_statement "(*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);" (call_expression "(*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1)" (parenthesized_expression "(*(code *)PTR_XDrawImageString_00122600)" ( (pointer_expression "*(code *)PTR_XDrawImageString_00122600" * (cast_expression "(code *)PTR_XDrawImageString_00122600" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,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 "(*pcVar5)(param_2,uVar4);" (call_expression "(*pcVar5)(param_2,uVar4)" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "(param_2,uVar4)" ( identifier , identifier ))) ;) })) (expression_statement "(*pcVar6)(param_1,param_2,param_3,param_4,uVar4);" (call_expression "(*pcVar6)(param_1,param_2,param_3,param_4,uVar4)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(param_1,param_2,param_3,param_4,uVar4)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);" (assignment_expression "iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1)" identifier = (call_expression "(*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1)" (parenthesized_expression "(*(code *)PTR_XTextWidth_00122718)" ( (pointer_expression "*(code *)PTR_XTextWidth_00122718" * (cast_expression "(code *)PTR_XTextWidth_00122718" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_2,pbVar3,1)" ( (pointer_expression "*param_2" * identifier) , identifier , number_literal )))) ;) (expression_statement "param_3 = param_3 + iVar2;" (assignment_expression "param_3 = param_3 + iVar2" identifier = (binary_expression "param_3 + iVar2" identifier + identifier)) ;) })) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar3 != (byte *)(param_5 + param_7 + param_6))" ( (binary_expression "pbVar3 != (byte *)(param_5 + param_7 + param_6)" identifier != (cast_expression "(byte *)(param_5 + param_7 + param_6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + param_7 + param_6)" ( (binary_expression "param_5 + param_7 + param_6" (binary_expression "param_5 + param_7" identifier + identifier) + identifier) )))) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* 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 *pbVar3;\n  uint uVar4;\n  code *pcVar5;\n  code *pcVar6;\n  \n  uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();\n  uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);\n  if (0 < length) {\n    pbVar3 = (byte *)((int)vstring + start);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);\n      if (iVar2 != 0) {\n        if ((xfi->nglyphs <= (int)uVar4) ||\n           (xfi->glyphcache[uVar4].surface == (cairo_surface_t *)0x0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          (*pcVar5)(xfi,uVar4);\n        }\n        (*pcVar6)(ctx,xfi,x,y,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)((int)vstring + start + length));\n  }\n  return;\n}\n\n" 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 *pbVar3;\n  uint uVar4;\n  code *pcVar5;\n  code *pcVar6;\n  \n  uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();\n  uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);\n  if (0 < length) {\n    pbVar3 = (byte *)((int)vstring + start);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);\n      if (iVar2 != 0) {\n        if ((xfi->nglyphs <= (int)uVar4) ||\n           (xfi->glyphcache[uVar4].surface == (cairo_surface_t *)0x0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          (*pcVar5)(xfi,uVar4);\n        }\n        (*pcVar6)(ctx,xfi,x,y,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)((int)vstring + start + length));\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 *pbVar3;\n  uint uVar4;\n  code *pcVar5;\n  code *pcVar6;\n  \n  uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();\n  uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);\n  if (0 < length) {\n    pbVar3 = (byte *)((int)vstring + start);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);\n      if (iVar2 != 0) {\n        if ((xfi->nglyphs <= (int)uVar4) ||\n           (xfi->glyphcache[uVar4].surface == (cairo_surface_t *)0x0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          (*pcVar5)(xfi,uVar4);\n        }\n        (*pcVar6)(ctx,xfi,x,y,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)((int)vstring + start + length));\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();" (assignment_expression "uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)()" identifier = (call_expression "(*(code *)PTR_gdk_display_get_default_001223ec)()" (parenthesized_expression "(*(code *)PTR_gdk_display_get_default_001223ec)" ( (pointer_expression "*(code *)PTR_gdk_display_get_default_001223ec" * (cast_expression "(code *)PTR_gdk_display_get_default_001223ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);" (assignment_expression "uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1)" identifier = (call_expression "(*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1)" (parenthesized_expression "(*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)" ( (pointer_expression "*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80" * (cast_expression "(code *)PTR_gdk_x11_display_get_xdisplay_00121f80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier )))) ;) (if_statement "if (0 < length) {\n    pbVar3 = (byte *)((int)vstring + start);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);\n      if (iVar2 != 0) {\n        if ((xfi->nglyphs <= (int)uVar4) ||\n           (xfi->glyphcache[uVar4].surface == (cairo_surface_t *)0x0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          (*pcVar5)(xfi,uVar4);\n        }\n        (*pcVar6)(ctx,xfi,x,y,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)((int)vstring + start + length));\n  }" if (parenthesized_expression "(0 < length)" ( (binary_expression "0 < length" number_literal < identifier) )) (compound_statement "{\n    pbVar3 = (byte *)((int)vstring + start);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);\n      if (iVar2 != 0) {\n        if ((xfi->nglyphs <= (int)uVar4) ||\n           (xfi->glyphcache[uVar4].surface == (cairo_surface_t *)0x0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          (*pcVar5)(xfi,uVar4);\n        }\n        (*pcVar6)(ctx,xfi,x,y,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)((int)vstring + start + length));\n  }" { (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) )))) ;) (expression_statement "pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);" (assignment_expression "pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc)" identifier = (cast_expression "(code *)(PTR_LAB_00121ca4 + -0x54bc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00121ca4 + -0x54bc)" ( (binary_expression "PTR_LAB_00121ca4 + -0x54bc" identifier + number_literal) )))) ;) (expression_statement "pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);" (assignment_expression "pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8)" identifier = (cast_expression "(code *)(PTR_LAB_00121ca4 + -0x57a8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00121ca4 + -0x57a8)" ( (binary_expression "PTR_LAB_00121ca4 + -0x57a8" identifier + number_literal) )))) ;) (do_statement "do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);\n      if (iVar2 != 0) {\n        if ((xfi->nglyphs <= (int)uVar4) ||\n           (xfi->glyphcache[uVar4].surface == (cairo_surface_t *)0x0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          (*pcVar5)(xfi,uVar4);\n        }\n        (*pcVar6)(ctx,xfi,x,y,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)((int)vstring + start + length));" do (compound_statement "{\n      uVar4 = (uint)*pbVar3;\n      iVar2 = x11_font_has_glyph(xfi->xfs,'\0',*pbVar3);\n      if (iVar2 != 0) {\n        if ((xfi->nglyphs <= (int)uVar4) ||\n           (xfi->glyphcache[uVar4].surface == (cairo_surface_t *)0x0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          (*pcVar5)(xfi,uVar4);\n        }\n        (*pcVar6)(ctx,xfi,x,y,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    }" { (expression_statement "uVar4 = (uint)*pbVar3;" (assignment_expression "uVar4 = (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)uVar4) ||\n           (xfi->glyphcache[uVar4].surface == (cairo_surface_t *)0x0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          (*pcVar5)(xfi,uVar4);\n        }\n        (*pcVar6)(ctx,xfi,x,y,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(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)uVar4) ||\n           (xfi->glyphcache[uVar4].surface == (cairo_surface_t *)0x0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          (*pcVar5)(xfi,uVar4);\n        }\n        (*pcVar6)(ctx,xfi,x,y,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(xfi->xfs,pbVar3,1);\n        x = x + iVar2;\n      }" { (if_statement "if ((xfi->nglyphs <= (int)uVar4) ||\n           (xfi->glyphcache[uVar4].surface == (cairo_surface_t *)0x0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          (*pcVar5)(xfi,uVar4);\n        }" if (parenthesized_expression "((xfi->nglyphs <= (int)uVar4) ||\n           (xfi->glyphcache[uVar4].surface == (cairo_surface_t *)0x0))" ( (binary_expression "(xfi->nglyphs <= (int)uVar4) ||\n           (xfi->glyphcache[uVar4].surface == (cairo_surface_t *)0x0)" (parenthesized_expression "(xfi->nglyphs <= (int)uVar4)" ( (binary_expression "xfi->nglyphs <= (int)uVar4" (field_expression "xfi->nglyphs" identifier -> field_identifier) <= (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) || (parenthesized_expression "(xfi->glyphcache[uVar4].surface == (cairo_surface_t *)0x0)" ( (binary_expression "xfi->glyphcache[uVar4].surface == (cairo_surface_t *)0x0" (field_expression "xfi->glyphcache[uVar4].surface" (subscript_expression "xfi->glyphcache[uVar4]" (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          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);\n          (*pcVar5)(xfi,uVar4);\n        }" { (expression_statement "(*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1);" (call_expression "(*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,pbVar3,1)" (parenthesized_expression "(*(code *)PTR_XDrawImageString_00122600)" ( (pointer_expression "*(code *)PTR_XDrawImageString_00122600" * (cast_expression "(code *)PTR_XDrawImageString_00122600" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) 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 "(*pcVar5)(xfi,uVar4);" (call_expression "(*pcVar5)(xfi,uVar4)" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "(xfi,uVar4)" ( identifier , identifier ))) ;) })) (expression_statement "(*pcVar6)(ctx,xfi,x,y,uVar4);" (call_expression "(*pcVar6)(ctx,xfi,x,y,uVar4)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(ctx,xfi,x,y,uVar4)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "iVar2 = (*(code *)PTR_XTextWidth_00122718)(xfi->xfs,pbVar3,1);" (assignment_expression "iVar2 = (*(code *)PTR_XTextWidth_00122718)(xfi->xfs,pbVar3,1)" identifier = (call_expression "(*(code *)PTR_XTextWidth_00122718)(xfi->xfs,pbVar3,1)" (parenthesized_expression "(*(code *)PTR_XTextWidth_00122718)" ( (pointer_expression "*(code *)PTR_XTextWidth_00122718" * (cast_expression "(code *)PTR_XTextWidth_00122718" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) 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 "(pbVar3 != (byte *)((int)vstring + start + length))" ( (binary_expression "pbVar3 != (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) )))) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000badac(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 int param_6,int param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  byte *pbVar3;\n  uint uVar4;\n  code *pcVar5;\n  code *pcVar6;\n  \n  uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();\n  uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);\n  if (0 < param_7) {\n    pbVar3 = (byte *)(param_5 + param_6);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));\n  }\n  return;\n}\n\n" (function_definition "void FUN_000badac(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 int param_6,int param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  byte *pbVar3;\n  uint uVar4;\n  code *pcVar5;\n  code *pcVar6;\n  \n  uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();\n  uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);\n  if (0 < param_7) {\n    pbVar3 = (byte *)(param_5 + param_6);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000badac(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 int param_6,int param_7)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 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 "int param_3" primitive_type 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  byte *pbVar3;\n  uint uVar4;\n  code *pcVar5;\n  code *pcVar6;\n  \n  uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();\n  uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);\n  if (0 < param_7) {\n    pbVar3 = (byte *)(param_5 + param_6);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));\n  }\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();" (assignment_expression "uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)()" identifier = (call_expression "(*(code *)PTR_gdk_display_get_default_001223ec)()" (parenthesized_expression "(*(code *)PTR_gdk_display_get_default_001223ec)" ( (pointer_expression "*(code *)PTR_gdk_display_get_default_001223ec" * (cast_expression "(code *)PTR_gdk_display_get_default_001223ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);" (assignment_expression "uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1)" identifier = (call_expression "(*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1)" (parenthesized_expression "(*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)" ( (pointer_expression "*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80" * (cast_expression "(code *)PTR_gdk_x11_display_get_xdisplay_00121f80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier )))) ;) (if_statement "if (0 < param_7) {\n    pbVar3 = (byte *)(param_5 + param_6);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));\n  }" if (parenthesized_expression "(0 < param_7)" ( (binary_expression "0 < param_7" number_literal < identifier) )) (compound_statement "{\n    pbVar3 = (byte *)(param_5 + param_6);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));\n  }" { (expression_statement "pbVar3 = (byte *)(param_5 + param_6);" (assignment_expression "pbVar3 = (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) )))) ;) (expression_statement "pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);" (assignment_expression "pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc)" identifier = (cast_expression "(code *)(PTR_LAB_00121ca4 + -0x54bc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00121ca4 + -0x54bc)" ( (binary_expression "PTR_LAB_00121ca4 + -0x54bc" identifier + number_literal) )))) ;) (expression_statement "pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);" (assignment_expression "pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8)" identifier = (cast_expression "(code *)(PTR_LAB_00121ca4 + -0x57a8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00121ca4 + -0x57a8)" ( (binary_expression "PTR_LAB_00121ca4 + -0x57a8" identifier + number_literal) )))) ;) (do_statement "do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));" do (compound_statement "{\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    }" { (expression_statement "uVar4 = (uint)*pbVar3;" (assignment_expression "uVar4 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar2 = FUN_000b8588(*param_2,0,uVar4);" (assignment_expression "iVar2 = FUN_000b8588(*param_2,0,uVar4)" identifier = (call_expression "FUN_000b8588(*param_2,0,uVar4)" identifier (argument_list "(*param_2,0,uVar4)" ( (pointer_expression "*param_2" * identifier) , number_literal , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }" { (if_statement "if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }" if (parenthesized_expression "(((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0))" ( (binary_expression "((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)" (parenthesized_expression "((int)param_2[3] <= (int)uVar4)" ( (binary_expression "(int)param_2[3] <= (int)uVar4" (cast_expression "(int)param_2[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[3]" identifier [ number_literal ])) <= (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) || (parenthesized_expression "(*(int *)(param_2[2] + uVar4 * 8) == 0)" ( (binary_expression "*(int *)(param_2[2] + uVar4 * 8) == 0" (pointer_expression "*(int *)(param_2[2] + uVar4 * 8)" * (cast_expression "(int *)(param_2[2] + uVar4 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[2] + uVar4 * 8)" ( (binary_expression "param_2[2] + uVar4 * 8" (subscript_expression "param_2[2]" identifier [ number_literal ]) + (binary_expression "uVar4 * 8" identifier * number_literal)) )))) == number_literal) ))) )) (compound_statement "{\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }" { (expression_statement "(*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);" (call_expression "(*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1)" (parenthesized_expression "(*(code *)PTR_XDrawImageString_00122600)" ( (pointer_expression "*(code *)PTR_XDrawImageString_00122600" * (cast_expression "(code *)PTR_XDrawImageString_00122600" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,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 "(*pcVar5)(param_2,uVar4);" (call_expression "(*pcVar5)(param_2,uVar4)" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "(param_2,uVar4)" ( identifier , identifier ))) ;) })) (expression_statement "(*pcVar6)(param_1,param_2,param_3,param_4,uVar4);" (call_expression "(*pcVar6)(param_1,param_2,param_3,param_4,uVar4)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(param_1,param_2,param_3,param_4,uVar4)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);" (assignment_expression "iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1)" identifier = (call_expression "(*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1)" (parenthesized_expression "(*(code *)PTR_XTextWidth_00122718)" ( (pointer_expression "*(code *)PTR_XTextWidth_00122718" * (cast_expression "(code *)PTR_XTextWidth_00122718" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_2,pbVar3,1)" ( (pointer_expression "*param_2" * identifier) , identifier , number_literal )))) ;) (expression_statement "param_3 = param_3 + iVar2;" (assignment_expression "param_3 = param_3 + iVar2" identifier = (binary_expression "param_3 + iVar2" identifier + identifier)) ;) })) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar3 != (byte *)(param_5 + param_7 + param_6))" ( (binary_expression "pbVar3 != (byte *)(param_5 + param_7 + param_6)" identifier != (cast_expression "(byte *)(param_5 + param_7 + param_6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + param_7 + param_6)" ( (binary_expression "param_5 + param_7 + param_6" (binary_expression "param_5 + param_7" 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (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 ( (pointer_expression * IDENT) , LIT , IDENT )))) ;) (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 (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + IDENT) )))) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_000badac(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 int param_6,int param_7)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  byte *pbVar3;\n  uint uVar4;\n  code *pcVar5;\n  code *pcVar6;\n  \n  uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();\n  uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);\n  if (0 < param_7) {\n    pbVar3 = (byte *)(param_5 + param_6);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000badac(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 int param_6,int param_7)" (identifier "FUN_000badac") (parameter_list "(undefined4 param_1,undefined4 *param_2,int param_3,undefined4 param_4,int param_5,\n                 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 "int param_3" (primitive_type "int") (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  byte *pbVar3;\n  uint uVar4;\n  code *pcVar5;\n  code *pcVar6;\n  \n  uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();\n  uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);\n  if (0 < param_7) {\n    pbVar3 = (byte *)(param_5 + param_6);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));\n  }\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "code *pcVar5;" (type_identifier "code") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "code *pcVar6;" (type_identifier "code") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (expression_statement "uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();" (assignment_expression "uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)()" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_gdk_display_get_default_001223ec)()" (parenthesized_expression "(*(code *)PTR_gdk_display_get_default_001223ec)" (( "(") (pointer_expression "*(code *)PTR_gdk_display_get_default_001223ec" (* "*") (cast_expression "(code *)PTR_gdk_display_get_default_001223ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_gdk_display_get_default_001223ec"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);" (assignment_expression "uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1)" (parenthesized_expression "(*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)" (( "(") (pointer_expression "*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80" (* "*") (cast_expression "(code *)PTR_gdk_x11_display_get_xdisplay_00121f80" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_gdk_x11_display_get_xdisplay_00121f80"))) () ")")) (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (if_statement "if (0 < param_7) {\n    pbVar3 = (byte *)(param_5 + param_6);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));\n  }" (if "if") (parenthesized_expression "(0 < param_7)" (( "(") (binary_expression "0 < param_7" (number_literal "0") (< "<") (identifier "param_7")) () ")")) (compound_statement "{\n    pbVar3 = (byte *)(param_5 + param_6);\n    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);\n    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);\n    do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));\n  }" ({ "{") (expression_statement "pbVar3 = (byte *)(param_5 + param_6);" (assignment_expression "pbVar3 = (byte *)(param_5 + param_6)" (identifier "pbVar3") (= "=") (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")) () ")")))) (; ";")) (expression_statement "pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);" (assignment_expression "pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc)" (identifier "pcVar6") (= "=") (cast_expression "(code *)(PTR_LAB_00121ca4 + -0x54bc)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00121ca4 + -0x54bc)" (( "(") (binary_expression "PTR_LAB_00121ca4 + -0x54bc" (identifier "PTR_LAB_00121ca4") (+ "+") (number_literal "-0x54bc")) () ")")))) (; ";")) (expression_statement "pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);" (assignment_expression "pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8)" (identifier "pcVar5") (= "=") (cast_expression "(code *)(PTR_LAB_00121ca4 + -0x57a8)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00121ca4 + -0x57a8)" (( "(") (binary_expression "PTR_LAB_00121ca4 + -0x57a8" (identifier "PTR_LAB_00121ca4") (+ "+") (number_literal "-0x57a8")) () ")")))) (; ";")) (do_statement "do {\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));" (do "do") (compound_statement "{\n      uVar4 = (uint)*pbVar3;\n      iVar2 = FUN_000b8588(*param_2,0,uVar4);\n      if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }\n      pbVar3 = pbVar3 + 1;\n    }" ({ "{") (expression_statement "uVar4 = (uint)*pbVar3;" (assignment_expression "uVar4 = (uint)*pbVar3" (identifier "uVar4") (= "=") (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3"))) (; ";")) (expression_statement "iVar2 = FUN_000b8588(*param_2,0,uVar4);" (assignment_expression "iVar2 = FUN_000b8588(*param_2,0,uVar4)" (identifier "iVar2") (= "=") (call_expression "FUN_000b8588(*param_2,0,uVar4)" (identifier "FUN_000b8588") (argument_list "(*param_2,0,uVar4)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (number_literal "0") (, ",") (identifier "uVar4") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\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)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }\n        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);\n        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);\n        param_3 = param_3 + iVar2;\n      }" ({ "{") (if_statement "if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }" (if "if") (parenthesized_expression "(((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0))" (( "(") (binary_expression "((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)" (parenthesized_expression "((int)param_2[3] <= (int)uVar4)" (( "(") (binary_expression "(int)param_2[3] <= (int)uVar4" (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)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4"))) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_2[2] + uVar4 * 8) == 0)" (( "(") (binary_expression "*(int *)(param_2[2] + uVar4 * 8) == 0" (pointer_expression "*(int *)(param_2[2] + uVar4 * 8)" (* "*") (cast_expression "(int *)(param_2[2] + uVar4 * 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[2] + uVar4 * 8)" (( "(") (binary_expression "param_2[2] + uVar4 * 8" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (+ "+") (binary_expression "uVar4 * 8" (identifier "uVar4") (* "*") (number_literal "8"))) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          (*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);\n          (*pcVar5)(param_2,uVar4);\n        }" ({ "{") (expression_statement "(*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);" (call_expression "(*(code *)PTR_XDrawImageString_00122600)\n                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1)" (parenthesized_expression "(*(code *)PTR_XDrawImageString_00122600)" (( "(") (pointer_expression "*(code *)PTR_XDrawImageString_00122600" (* "*") (cast_expression "(code *)PTR_XDrawImageString_00122600" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_XDrawImageString_00122600"))) () ")")) (argument_list "(uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,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 "pbVar3") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "(*pcVar5)(param_2,uVar4);" (call_expression "(*pcVar5)(param_2,uVar4)" (parenthesized_expression "(*pcVar5)" (( "(") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) () ")")) (argument_list "(param_2,uVar4)" (( "(") (identifier "param_2") (, ",") (identifier "uVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "(*pcVar6)(param_1,param_2,param_3,param_4,uVar4);" (call_expression "(*pcVar6)(param_1,param_2,param_3,param_4,uVar4)" (parenthesized_expression "(*pcVar6)" (( "(") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) () ")")) (argument_list "(param_1,param_2,param_3,param_4,uVar4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);" (assignment_expression "iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1)" (parenthesized_expression "(*(code *)PTR_XTextWidth_00122718)" (( "(") (pointer_expression "*(code *)PTR_XTextWidth_00122718" (* "*") (cast_expression "(code *)PTR_XTextWidth_00122718" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_XTextWidth_00122718"))) () ")")) (argument_list "(*param_2,pbVar3,1)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "pbVar3") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "param_3 = param_3 + iVar2;" (assignment_expression "param_3 = param_3 + iVar2" (identifier "param_3") (= "=") (binary_expression "param_3 + iVar2" (identifier "param_3") (+ "+") (identifier "iVar2"))) (; ";")) (} "}"))) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pbVar3 != (byte *)(param_5 + param_7 + param_6))" (( "(") (binary_expression "pbVar3 != (byte *)(param_5 + param_7 + param_6)" (identifier "pbVar3") (!= "!=") (cast_expression "(byte *)(param_5 + param_7 + param_6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + param_7 + param_6)" (( "(") (binary_expression "param_5 + param_7 + param_6" (binary_expression "param_5 + param_7" (identifier "param_5") (+ "+") (identifier "param_7")) (+ "+") (identifier "param_6")) () ")")))) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1
               (type_1 *ctx,type_2 *xfi,int var_7,int y,void *vstring,int var_2,
               int var_1)

{
  type_3 uVar1;
  int var_6;
  type_4 *var_4;
  type_5 uVar4;
  type_6 *pcVar5;
  type_6 *pcVar6;
  
  uVar1 = (*(type_6 *)PTR_gdk_display_get_default_001223ec)();
  uVar1 = (*(type_6 *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);
  if (0 < var_1) {
    var_4 = (type_4 *)((int)vstring + var_2);
    pcVar6 = (type_6 *)(var_3 + -0x54bc);
    pcVar5 = (type_6 *)(var_3 + -0x57a8);
    do {
      uVar4 = (type_5)*var_4;
      var_6 = var_5(xfi->xfs,'\0',*var_4);
      if (var_6 != 0) {
        if ((xfi->nglyphs <= (int)uVar4) ||
           (xfi->glyphcache[uVar4].surface == (type_7 *)0x0)) {
          (*(type_6 *)PTR_XDrawImageString_00122600)
                    (uVar1,xfi->pixmap,xfi->gc,xfi->pixoriginx,xfi->pixoriginy,var_4,1);
          (*pcVar5)(xfi,uVar4);
        }
        (*pcVar6)(ctx,xfi,var_7,y,uVar4);
        var_6 = (*(type_6 *)PTR_XTextWidth_00122718)(xfi->xfs,var_4,1);
        var_7 = var_7 + var_6;
      }
      var_4 = var_4 + 1;
    } while (var_4 != (type_4 *)((int)vstring + var_2 + var_1));
  }
  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: (primitive_type) 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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (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)))))) (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: (number_literal)))))) (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: (number_literal)))))) (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 (pointer_expression argument: (identifier)) (number_literal) (identifier))))) (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (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))))))))) (return_statement))))

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

{
  undefined4 uVar1;
  int iVar2;
  byte *pbVar3;
  uint uVar4;
  code *pcVar5;
  code *pcVar6;
  
  uVar1 = (*(code *)PTR_gdk_display_get_default_001223ec)();
  uVar1 = (*(code *)PTR_gdk_x11_display_get_xdisplay_00121f80)(uVar1);
  if (0 < param_7) {
    pbVar3 = (byte *)(param_5 + param_6);
    pcVar6 = (code *)(PTR_LAB_00121ca4 + -0x54bc);
    pcVar5 = (code *)(PTR_LAB_00121ca4 + -0x57a8);
    do {
      uVar4 = (uint)*pbVar3;
      iVar2 = FUN_000b8588(*param_2,0,uVar4);
      if (iVar2 != 0) {
        if (((int)param_2[3] <= (int)uVar4) || (*(int *)(param_2[2] + uVar4 * 8) == 0)) {
          (*(code *)PTR_XDrawImageString_00122600)
                    (uVar1,param_2[4],param_2[5],param_2[8],param_2[9],pbVar3,1);
          (*pcVar5)(param_2,uVar4);
        }
        (*pcVar6)(param_1,param_2,param_3,param_4,uVar4);
        iVar2 = (*(code *)PTR_XTextWidth_00122718)(*param_2,pbVar3,1);
        param_3 = param_3 + iVar2;
      }
      pbVar3 = pbVar3 + 1;
    } while (pbVar3 != (byte *)(param_5 + param_7 + param_6));
  }
  return;
}

