#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */
typedef struct TYPE_12__ TYPE_2__;
typedef struct TYPE_11__ TYPE_1__;

/* Type definitions */
struct TYPE_11__ {
  char *data;
  int bytes_per_line;
  int width;
  int height;
  void *bitmap_bit_order;
  void *byte_order;
};
typedef TYPE_1__ XImage;
struct TYPE_12__ {
  int /*<<< orphan*/ fid;
};
typedef TYPE_2__ XFontStruct;
typedef int /*<<< orphan*/ Window;
typedef int /*<<< orphan*/ Pixmap;
typedef int /*<<< orphan*/ GC;
typedef int /*<<< orphan*/ Display;

/* Variables and functions */
int /*<<< orphan*/ DefaultScreen(int /*<<< orphan*/ *);
int /*<<< orphan*/ DefaultVisual(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ FillSolid;
int /*<<< orphan*/ FillStippled;
scalar_t__ FontAscent(TYPE_2__ *);
scalar_t__ FontHeight(TYPE_2__ *);
scalar_t__ FontTextWidth(TYPE_2__ *, char *);
void *MSBFirst;
int /*<<< orphan*/ XCreateGC(int /*<<< orphan*/ *, int /*<<< orphan*/, long,
                             int /*<<< orphan*/ *);
TYPE_1__ *XCreateImage(int /*<<< orphan*/ *, int /*<<< orphan*/, int,
                       int /*<<< orphan*/, int /*<<< orphan*/, char *, int, int,
                       int, int /*<<< orphan*/);
int /*<<< orphan*/ XCreatePixmap(int /*<<< orphan*/ *, int /*<<< orphan*/, int,
                                 int, int);
int /*<<< orphan*/ XDestroyImage(TYPE_1__ *);
int /*<<< orphan*/ XDrawImageString(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                    int /*<<< orphan*/, int /*<<< orphan*/, int,
                                    char *, int /*<<< orphan*/);
int /*<<< orphan*/ XFillRectangle(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                  int /*<<< orphan*/, int, int, int, int);
int /*<<< orphan*/ XFreeGC(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ XFreePixmap(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ XGetSubImage(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                int /*<<< orphan*/, int /*<<< orphan*/, int,
                                int, long, int /*<<< orphan*/, TYPE_1__ *,
                                int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ XPutImage(int /*<<< orphan*/ *, int /*<<< orphan*/,
                             int /*<<< orphan*/, TYPE_1__ *, int /*<<< orphan*/,
                             int /*<<< orphan*/, int /*<<< orphan*/,
                             int /*<<< orphan*/, int, int);
int /*<<< orphan*/ XSetBackground(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                  int /*<<< orphan*/);
int /*<<< orphan*/ XSetFillStyle(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                 int /*<<< orphan*/);
int /*<<< orphan*/ XSetFont(int /*<<< orphan*/ *, int /*<<< orphan*/,
                            int /*<<< orphan*/);
int /*<<< orphan*/ XSetForeground(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                  int);
int /*<<< orphan*/ XSetStipple(int /*<<< orphan*/ *, int /*<<< orphan*/,
                               int /*<<< orphan*/);
int /*<<< orphan*/ XSetTSOrigin(int /*<<< orphan*/ *, int /*<<< orphan*/, int,
                                int);
int /*<<< orphan*/ XYPixmap;
scalar_t__ XtCalloc(int, int);
int /*<<< orphan*/ strlen(char *);
void XDrawVString(Display *display, Window win, GC gc, int x, int y, char *str,
                  int len, XFontStruct *f) {
  XImage *before, *after;
  char *dest, *source;
  int xloop, yloop, xdest, ydest;
  Pixmap pix, rotpix;
  int width, height;
  GC drawGC;
  width = (int)FontTextWidth(f, str);
  height = (int)FontHeight(f);
  pix = XCreatePixmap(display, win, width, height, 1);
  rotpix = XCreatePixmap(display, win, height, width, 1);
  drawGC = XCreateGC(display, pix, 0L, NULL);
  XSetBackground(display, drawGC, 0);
  XSetFont(display, drawGC, f->fid);
  XSetForeground(display, drawGC, 0);
  XFillRectangle(display, pix, drawGC, 0, 0, width, height);
  XFillRectangle(display, rotpix, drawGC, 0, 0, height, width);
  XSetForeground(display, drawGC, 1);
  XDrawImageString(display, pix, drawGC, 0, (int)FontAscent(f), str,
                   strlen(str));
  source = (char *)XtCalloc((((width + 7) / 8) * height), 1);
  before = XCreateImage(display, DefaultVisual(display, DefaultScreen(display)),
                        1, XYPixmap, 0, source, width, height, 8, 0);
  before->byte_order = before->bitmap_bit_order = MSBFirst;
  XGetSubImage(display, pix, 0, 0, width, height, 1L, XYPixmap, before, 0, 0);
  source = (char *)XtCalloc((((height + 7) / 8) * width), 1);
  after = XCreateImage(display, DefaultVisual(display, DefaultScreen(display)),
                       1, XYPixmap, 0, source, height, width, 8, 0);
  after->byte_order = after->bitmap_bit_order = MSBFirst;
  for (yloop = 0; yloop < height; yloop++) {
    for (xloop = 0; xloop < width; xloop++) {
      source = before->data + (xloop / 8) + (yloop * before->bytes_per_line);
      if (*source & (128 >> (xloop % 8))) {
        dest = after->data + (yloop / 8) +
               ((width - 1 - xloop) * after->bytes_per_line);
        *dest |= (128 >> (yloop % 8));
      }
    }
  }
  xdest = x - (int)FontAscent(f);
  if (xdest < 0)
    xdest = 0;
  ydest = y - width;
  XPutImage(display, rotpix, drawGC, after, 0, 0, 0, 0, after->width,
            after->height);
  XSetFillStyle(display, gc, FillStippled);
  XSetStipple(display, gc, rotpix);
  XSetTSOrigin(display, gc, xdest, ydest);
  XFillRectangle(display, win, gc, xdest, ydest, after->width, after->height);
  XSetFillStyle(display, gc, FillSolid);
  XFreeGC(display, drawGC);
  XDestroyImage(before);
  XDestroyImage(after);
  XFreePixmap(display, pix);
  XFreePixmap(display, rotpix);
}


x86 assembly (clang, -O0):
<XDrawVString>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
mov    0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   10a0 <FontTextWidth@plt>
mov    %eax,-0x5c(%rbp)
mov    0x18(%rbp),%rdi
call   1130 <FontHeight@plt>
mov    %eax,-0x60(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x5c(%rbp),%edx
mov    -0x60(%rbp),%ecx
mov    $0x1,%r8d
call   1170 <XCreatePixmap@plt>
mov    %eax,-0x54(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x60(%rbp),%edx
mov    -0x5c(%rbp),%ecx
mov    $0x1,%r8d
call   1170 <XCreatePixmap@plt>
mov    %eax,-0x58(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x54(%rbp),%esi
xor    %eax,%eax
mov    %eax,%ecx
mov    %rcx,%rdx
call   10f0 <XCreateGC@plt>
mov    %eax,-0x64(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x64(%rbp),%esi
xor    %edx,%edx
call   1190 <XSetBackground@plt>
mov    -0x8(%rbp),%rdi
mov    -0x64(%rbp),%esi
mov    0x18(%rbp),%rax
mov    (%rax),%edx
call   1090 <XSetFont@plt>
mov    -0x8(%rbp),%rdi
mov    -0x64(%rbp),%esi
xor    %edx,%edx
call   1110 <XSetForeground@plt>
mov    -0x8(%rbp),%rdi
mov    -0x54(%rbp),%esi
mov    -0x64(%rbp),%edx
mov    -0x5c(%rbp),%r9d
mov    -0x60(%rbp),%eax
xor    %r8d,%r8d
mov    %r8d,%ecx
mov    %eax,(%rsp)
call   1060 <XFillRectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0x58(%rbp),%esi
mov    -0x64(%rbp),%edx
mov    -0x60(%rbp),%r9d
mov    -0x5c(%rbp),%eax
xor    %r8d,%r8d
mov    %r8d,%ecx
mov    %eax,(%rsp)
call   1060 <XFillRectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0x64(%rbp),%esi
mov    $0x1,%edx
call   1110 <XSetForeground@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    -0x54(%rbp),%eax
mov    %eax,-0x9c(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x98(%rbp)
mov    0x18(%rbp),%rdi
call   1030 <FontAscent@plt>
mov    %eax,-0x94(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    -0x20(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0xa8(%rbp),%rdi
mov    -0x9c(%rbp),%esi
mov    -0x98(%rbp),%edx
mov    -0x94(%rbp),%r8d
mov    -0x90(%rbp),%r9
xor    %ecx,%ecx
mov    %eax,(%rsp)
call   10b0 <XDrawImageString@plt>
mov    -0x5c(%rbp),%eax
add    $0x7,%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
imul   -0x60(%rbp),%edi
mov    $0x1,%esi
call   1100 <XtCalloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x8(%rbp),%rdi
call   1150 <DefaultScreen@plt>
mov    -0x88(%rbp),%rdi
mov    %eax,%esi
call   1180 <DefaultVisual@plt>
mov    -0x80(%rbp),%rdi
mov    %eax,%esi
mov    0x2b88(%rip),%rax
mov    (%rax),%ecx
mov    -0x40(%rbp),%r9
mov    -0x5c(%rbp),%r10d
mov    -0x60(%rbp),%eax
mov    $0x1,%edx
xor    %r8d,%r8d
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
movl   $0x8,0x10(%rsp)
movl   $0x0,0x18(%rsp)
call   1160 <XCreateImage@plt>
mov    %rax,-0x28(%rbp)
mov    0x2b63(%rip),%rax
mov    (%rax),%rcx
mov    -0x28(%rbp),%rax
mov    %rcx,0x18(%rax)
mov    -0x28(%rbp),%rax
mov    %rcx,0x20(%rax)
mov    -0x8(%rbp),%rdi
mov    -0x54(%rbp),%esi
mov    -0x5c(%rbp),%r8d
mov    -0x60(%rbp),%r9d
mov    0x2b22(%rip),%rax
mov    (%rax),%r10d
mov    -0x28(%rbp),%rax
xor    %ecx,%ecx
mov    %ecx,%edx
movq   $0x1,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0x20(%rsp)
call   10d0 <XGetSubImage@plt>
mov    -0x60(%rbp),%eax
add    $0x7,%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
imul   -0x5c(%rbp),%edi
mov    $0x1,%esi
call   1100 <XtCalloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
call   1150 <DefaultScreen@plt>
mov    -0x78(%rbp),%rdi
mov    %eax,%esi
call   1180 <DefaultVisual@plt>
mov    -0x70(%rbp),%rdi
mov    %eax,%esi
mov    0x2a9d(%rip),%rax
mov    (%rax),%ecx
mov    -0x40(%rbp),%r9
mov    -0x60(%rbp),%r10d
mov    -0x5c(%rbp),%eax
mov    $0x1,%edx
xor    %r8d,%r8d
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
movl   $0x8,0x10(%rsp)
movl   $0x0,0x18(%rsp)
call   1160 <XCreateImage@plt>
mov    %rax,-0x30(%rbp)
mov    0x2a78(%rip),%rax
mov    (%rax),%rcx
mov    -0x30(%rbp),%rax
mov    %rcx,0x18(%rax)
mov    -0x30(%rbp),%rax
mov    %rcx,0x20(%rax)
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x60(%rbp),%eax
jge    169a <XDrawVString+0x42a>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jge    1687 <XDrawVString+0x417>
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0xb8(%rbp)
mov    -0x44(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xb8(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    -0x48(%rbp),%ecx
mov    -0x28(%rbp),%rdx
imul   0x8(%rdx),%ecx
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0xac(%rbp)
mov    -0x44(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    -0xac(%rbp),%eax
mov    %edx,%ecx
mov    $0x80,%edx
sar    %cl,%edx
mov    %edx,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1674 <XDrawVString+0x404>
mov    -0x30(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0xc0(%rbp)
mov    -0x48(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xc0(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    -0x5c(%rbp),%ecx
sub    $0x1,%ecx
sub    -0x44(%rbp),%ecx
mov    -0x30(%rbp),%rdx
imul   0x8(%rdx),%ecx
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x48(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %edx,%ecx
mov    $0x80,%edx
sar    %cl,%edx
mov    -0x38(%rbp),%rax
movsbl (%rax),%ecx
or     %edx,%ecx
mov    %cl,(%rax)
jmp    1679 <XDrawVString+0x409>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1595 <XDrawVString+0x325>
jmp    168c <XDrawVString+0x41c>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1582 <XDrawVString+0x312>
mov    -0x14(%rbp),%eax
mov    %eax,-0xc4(%rbp)
mov    0x18(%rbp),%rdi
call   1030 <FontAscent@plt>
mov    %rax,%rcx
mov    -0xc4(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x4c(%rbp)
cmpl   $0x0,-0x4c(%rbp)
jge    16cb <XDrawVString+0x45b>
movl   $0x0,-0x4c(%rbp)
mov    -0x18(%rbp),%eax
sub    -0x5c(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x58(%rbp),%esi
mov    -0x64(%rbp),%edx
mov    -0x30(%rbp),%rcx
mov    -0x30(%rbp),%rax
mov    0xc(%rax),%r10d
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%eax
xor    %r9d,%r9d
mov    %r9d,%r8d
movl   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
call   1120 <XPutImage@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    0x28b6(%rip),%rax
mov    (%rax),%edx
call   10e0 <XSetFillStyle@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0x58(%rbp),%edx
call   10c0 <XSetStipple@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0x4c(%rbp),%edx
mov    -0x50(%rbp),%ecx
call   1040 <XSetTSOrigin@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x4c(%rbp),%ecx
mov    -0x50(%rbp),%r8d
mov    -0x30(%rbp),%rax
mov    0xc(%rax),%r9d
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%eax
mov    %eax,(%rsp)
call   1060 <XFillRectangle@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    0x2868(%rip),%rax
mov    (%rax),%edx
call   10e0 <XSetFillStyle@plt>
mov    -0x8(%rbp),%rdi
mov    -0x64(%rbp),%esi
call   1140 <XFreeGC@plt>
mov    -0x28(%rbp),%rdi
call   1070 <XDestroyImage@plt>
mov    -0x30(%rbp),%rdi
call   1070 <XDestroyImage@plt>
mov    -0x8(%rbp),%rdi
mov    -0x54(%rbp),%esi
call   1080 <XFreePixmap@plt>
mov    -0x8(%rbp),%rdi
mov    -0x58(%rbp),%esi
call   1080 <XFreePixmap@plt>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<XDrawVString>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r9,0x18(%rsp)
mov    %r8d,0x14(%rsp)
mov    %ecx,0x28(%rsp)
mov    %edx,0x2c(%rsp)
mov    %esi,%ebp
mov    %rdi,%rbx
mov    0x78(%rsp),%r14
mov    %r14,%rdi
mov    %r9,%rsi
call   10a0 <FontTextWidth@plt>
mov    %rax,%r13
mov    %r14,%rdi
call   1130 <FontHeight@plt>
mov    %rax,%r12
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r13d,%edx
mov    %r12d,%ecx
mov    $0x1,%r8d
call   1170 <XCreatePixmap@plt>
mov    %eax,%r15d
mov    %rbx,%rdi
mov    %ebp,0x24(%rsp)
mov    %ebp,%esi
mov    %r12d,%edx
mov    %r13d,%ecx
mov    $0x1,%r8d
call   1170 <XCreatePixmap@plt>
mov    %eax,0x8(%rsp)
mov    %rbx,%rdi
mov    %r15d,%esi
mov    %r15d,%ebp
mov    %r15d,0xc(%rsp)
xor    %edx,%edx
xor    %ecx,%ecx
call   10f0 <XCreateGC@plt>
mov    %eax,%r15d
mov    %rbx,%rdi
mov    %eax,%esi
xor    %edx,%edx
call   1190 <XSetBackground@plt>
mov    (%r14),%edx
mov    %rbx,%rdi
mov    %r15d,%esi
call   1090 <XSetFont@plt>
mov    %rbx,%rdi
mov    %r15d,%esi
xor    %edx,%edx
call   1110 <XSetForeground@plt>
sub    $0x8,%rsp
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r15d,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    %r13d,%r9d
push   %r12
call   1060 <XFillRectangle@plt>
add    $0x8,%rsp
mov    %rbx,%rdi
mov    0x10(%rsp),%esi
mov    %r15d,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    %r12d,%r9d
push   %r13
call   1060 <XFillRectangle@plt>
add    $0x10,%rsp
mov    %rbx,%rdi
mov    %r15d,%esi
mov    $0x1,%edx
call   1110 <XSetForeground@plt>
mov    %r14,0x30(%rsp)
mov    %r14,%rdi
call   1030 <FontAscent@plt>
mov    %rax,%rbp
mov    0x18(%rsp),%r14
mov    %r14,%rdi
call   1050 <strlen@plt>
sub    $0x8,%rsp
mov    %rbx,%rdi
mov    0x14(%rsp),%esi
mov    %r15d,0x18(%rsp)
mov    %r15d,%edx
xor    %ecx,%ecx
mov    %ebp,%r8d
mov    %r14,%r9
push   %rax
call   10b0 <XDrawImageString@plt>
add    $0x10,%rsp
lea    0x7(%r13),%eax
lea    0xe(%r13),%edi
test   %eax,%eax
cmovns %eax,%edi
sar    $0x3,%edi
imul   %r12d,%edi
mov    $0x1,%esi
call   1100 <XtCalloc@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
call   1150 <DefaultScreen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1180 <DefaultVisual@plt>
mov    0x2bd5(%rip),%rdx
mov    (%rdx),%ecx
mov    %rdx,%r14
mov    %rbx,%rdi
mov    %eax,%esi
mov    $0x1,%edx
xor    %r8d,%r8d
mov    %rbp,%r9
push   $0x0
push   $0x8
push   %r12
push   %r13
call   1160 <XCreateImage@plt>
add    $0x20,%rsp
mov    %rax,%r15
mov    0x2bbd(%rip),%rbp
mov    0x0(%rbp),%rax
mov    %rax,0x18(%r15)
mov    %rax,0x20(%r15)
mov    (%r14),%eax
sub    $0x8,%rsp
mov    %rbx,%rdi
mov    0x14(%rsp),%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    %r13d,%r8d
mov    %r12d,%r9d
push   $0x0
push   $0x0
push   %r15
push   %rax
push   $0x1
call   10d0 <XGetSubImage@plt>
add    $0x30,%rsp
lea    0x7(%r12),%eax
lea    0xe(%r12),%edi
test   %eax,%eax
cmovns %eax,%edi
sar    $0x3,%edi
imul   %r13d,%edi
mov    $0x1,%esi
call   1100 <XtCalloc@plt>
mov    %rax,%r14
mov    %rbx,%rdi
call   1150 <DefaultScreen@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1180 <DefaultVisual@plt>
mov    0x2b33(%rip),%rcx
mov    (%rcx),%ecx
mov    %rbx,0x18(%rsp)
mov    %rbx,%rdi
mov    %eax,%esi
mov    $0x1,%edx
xor    %r8d,%r8d
mov    %r14,%r9
push   $0x0
push   $0x8
push   %r13
push   %r12
call   1160 <XCreateImage@plt>
add    $0x20,%rsp
mov    %rax,%r14
mov    0x0(%rbp),%rax
mov    %rax,0x18(%r14)
mov    %rax,0x20(%r14)
test   %r12d,%r12d
jle    1555 <XDrawVString+0x2e5>
lea    -0x1(%r13),%r8d
xor    %edx,%edx
jmp    14e8 <XDrawVString+0x278>
nopl   (%rax)
add    $0x1,%edx
cmp    %r12d,%edx
je     1555 <XDrawVString+0x2e5>
test   %r13d,%r13d
jle    14e0 <XDrawVString+0x270>
mov    %edx,%r9d
shr    $0x3,%r9
mov    %edx,%ecx
and    $0x7,%cl
mov    $0x80,%edi
shr    %cl,%edi
xor    %ebx,%ebx
mov    %r8d,%eax
jmp    1518 <XDrawVString+0x2a8>
nopw   0x0(%rax,%rax,1)
add    $0x1,%ebx
add    $0xffffffff,%eax
jae    14e0 <XDrawVString+0x270>
mov    %ebx,%ecx
shr    $0x3,%rcx
add    (%r15),%rcx
movslq 0x8(%r15),%rbp
movslq %edx,%rsi
imul   %rbp,%rsi
movzbl (%rsi,%rcx,1),%esi
mov    %ebx,%ecx
and    $0x7,%cl
shl    %cl,%esi
test   $0x80,%sil
je     1510 <XDrawVString+0x2a0>
mov    (%r14),%rcx
add    %r9,%rcx
movslq 0x8(%r14),%rsi
movslq %eax,%rbp
imul   %rsi,%rbp
or     %dil,0x0(%rbp,%rcx,1)
jmp    1510 <XDrawVString+0x2a0>
mov    0x30(%rsp),%rdi
call   1030 <FontAscent@plt>
mov    0x28(%rsp),%r12d
sub    %eax,%r12d
mov    $0x0,%eax
cmovs  %eax,%r12d
sub    %r13d,0x14(%rsp)
mov    0xc(%r14),%eax
mov    0x10(%r14),%ebp
mov    0x18(%rsp),%rbx
mov    %rbx,%rdi
mov    0x8(%rsp),%r13d
mov    %r13d,%esi
mov    0x10(%rsp),%edx
mov    %r14,%rcx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   %rbp
push   %rax
push   $0x0
push   $0x0
call   1120 <XPutImage@plt>
add    $0x20,%rsp
mov    0x2a28(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    0x2c(%rsp),%ebp
mov    %ebp,%esi
call   10e0 <XSetFillStyle@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r13d,%edx
call   10c0 <XSetStipple@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r12d,%edx
mov    0x14(%rsp),%r13d
mov    %r13d,%ecx
call   1040 <XSetTSOrigin@plt>
mov    0xc(%r14),%r9d
mov    0x10(%r14),%eax
sub    $0x8,%rsp
mov    %rbx,%rdi
mov    0x2c(%rsp),%esi
mov    %ebp,%edx
mov    %r12d,%ecx
mov    %r13d,%r8d
push   %rax
call   1060 <XFillRectangle@plt>
add    $0x10,%rsp
mov    0x29da(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    %ebp,%esi
call   10e0 <XSetFillStyle@plt>
mov    %rbx,%rdi
mov    0x10(%rsp),%esi
call   1140 <XFreeGC@plt>
mov    %r15,%rdi
call   1070 <XDestroyImage@plt>
mov    %r14,%rdi
call   1070 <XDestroyImage@plt>
mov    %rbx,%rdi
mov    0xc(%rsp),%esi
call   1080 <XFreePixmap@plt>
mov    %rbx,%rdi
mov    0x8(%rsp),%esi
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1080 <XFreePixmap@plt>

LLVM IR (-O0):
%struct.TYPE_12__ = type { i32 }
%struct.TYPE_11__ = type { i8*, i32, i32, i32, i8*, i8* }
@XYPixmap = global i32 0
@MSBFirst = global i8* null
@FillStippled = global i32 0
@FillSolid = global i32 0
define void @XDrawVString(i32* %0, i32 %1, i32 %2, i32 %3, i32 %4, i8* %5, i32 %6, %struct.TYPE_12__* %7) {
%9 = alloca i32*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
%15 = alloca i32
%16 = alloca %struct.TYPE_12__*
%17 = alloca %struct.TYPE_11__*
%18 = alloca %struct.TYPE_11__*
%19 = alloca i8*
%20 = alloca i8*
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
store i32* %0, i32** %9
store i32 %1, i32* %10
store i32 %2, i32* %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i8* %5, i8** %14
store i32 %6, i32* %15
store %struct.TYPE_12__* %7, %struct.TYPE_12__** %16
%30 = load %struct.TYPE_12__*, %struct.TYPE_12__** %16
%31 = load i8*, i8** %14
%32 = call i64 @FontTextWidth(%struct.TYPE_12__* %30, i8* %31)
%33 = trunc i64 %32 to i32
store i32 %33, i32* %27
%34 = load %struct.TYPE_12__*, %struct.TYPE_12__** %16
%35 = call i64 @FontHeight(%struct.TYPE_12__* %34)
%36 = trunc i64 %35 to i32
store i32 %36, i32* %28
%37 = load i32*, i32** %9
%38 = load i32, i32* %10
%39 = load i32, i32* %27
%40 = load i32, i32* %28
%41 = call i32 @XCreatePixmap(i32* %37, i32 %38, i32 %39, i32 %40, i32 1)
store i32 %41, i32* %25
%42 = load i32*, i32** %9
%43 = load i32, i32* %10
%44 = load i32, i32* %28
%45 = load i32, i32* %27
%46 = call i32 @XCreatePixmap(i32* %42, i32 %43, i32 %44, i32 %45, i32 1)
store i32 %46, i32* %26
%47 = load i32*, i32** %9
%48 = load i32, i32* %25
%49 = call i32 @XCreateGC(i32* %47, i32 %48, i64 0, i32* null)
store i32 %49, i32* %29
%50 = load i32*, i32** %9
%51 = load i32, i32* %29
%52 = call i32 @XSetBackground(i32* %50, i32 %51, i32 0)
%53 = load i32*, i32** %9
%54 = load i32, i32* %29
%55 = load %struct.TYPE_12__*, %struct.TYPE_12__** %16
%56 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %55, i32 0, i32 0
%57 = load i32, i32* %56
%58 = call i32 @XSetFont(i32* %53, i32 %54, i32 %57)
%59 = load i32*, i32** %9
%60 = load i32, i32* %29
%61 = call i32 @XSetForeground(i32* %59, i32 %60, i32 0)
%62 = load i32*, i32** %9
%63 = load i32, i32* %25
%64 = load i32, i32* %29
%65 = load i32, i32* %27
%66 = load i32, i32* %28
%67 = call i32 @XFillRectangle(i32* %62, i32 %63, i32 %64, i32 0, i32 0, i32 %65, i32 %66)
%68 = load i32*, i32** %9
%69 = load i32, i32* %26
%70 = load i32, i32* %29
%71 = load i32, i32* %28
%72 = load i32, i32* %27
%73 = call i32 @XFillRectangle(i32* %68, i32 %69, i32 %70, i32 0, i32 0, i32 %71, i32 %72)
%74 = load i32*, i32** %9
%75 = load i32, i32* %29
%76 = call i32 @XSetForeground(i32* %74, i32 %75, i32 1)
%77 = load i32*, i32** %9
%78 = load i32, i32* %25
%79 = load i32, i32* %29
%80 = load %struct.TYPE_12__*, %struct.TYPE_12__** %16
%81 = call i64 @FontAscent(%struct.TYPE_12__* %80)
%82 = trunc i64 %81 to i32
%83 = load i8*, i8** %14
%84 = load i8*, i8** %14
%85 = call i32 @strlen(i8* %84)
%86 = call i32 @XDrawImageString(i32* %77, i32 %78, i32 %79, i32 0, i32 %82, i8* %83, i32 %85)
%87 = load i32, i32* %27
%88 = add nsw i32 %87, 7
%89 = sdiv i32 %88, 8
%90 = load i32, i32* %28
%91 = mul nsw i32 %89, %90
%92 = call i64 @XtCalloc(i32 %91, i32 1)
%93 = inttoptr i64 %92 to i8*
store i8* %93, i8** %20
%94 = load i32*, i32** %9
%95 = load i32*, i32** %9
%96 = load i32*, i32** %9
%97 = call i32 @DefaultScreen(i32* %96)
%98 = call i32 @DefaultVisual(i32* %95, i32 %97)
%99 = load i32, i32* @XYPixmap
%100 = load i8*, i8** %20
%101 = load i32, i32* %27
%102 = load i32, i32* %28
%103 = call %struct.TYPE_11__* @XCreateImage(i32* %94, i32 %98, i32 1, i32 %99, i32 0, i8* %100, i32 %101, i32 %102, i32 8, i32 0)
store %struct.TYPE_11__* %103, %struct.TYPE_11__** %17
%104 = load i8*, i8** @MSBFirst
%105 = load %struct.TYPE_11__*, %struct.TYPE_11__** %17
%106 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %105, i32 0, i32 4
store i8* %104, i8** %106
%107 = load %struct.TYPE_11__*, %struct.TYPE_11__** %17
%108 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %107, i32 0, i32 5
store i8* %104, i8** %108
%109 = load i32*, i32** %9
%110 = load i32, i32* %25
%111 = load i32, i32* %27
%112 = load i32, i32* %28
%113 = load i32, i32* @XYPixmap
%114 = load %struct.TYPE_11__*, %struct.TYPE_11__** %17
%115 = call i32 @XGetSubImage(i32* %109, i32 %110, i32 0, i32 0, i32 %111, i32 %112, i64 1, i32 %113, %struct.TYPE_11__* %114, i32 0, i32 0)
%116 = load i32, i32* %28
%117 = add nsw i32 %116, 7
%118 = sdiv i32 %117, 8
%119 = load i32, i32* %27
%120 = mul nsw i32 %118, %119
%121 = call i64 @XtCalloc(i32 %120, i32 1)
%122 = inttoptr i64 %121 to i8*
store i8* %122, i8** %20
%123 = load i32*, i32** %9
%124 = load i32*, i32** %9
%125 = load i32*, i32** %9
%126 = call i32 @DefaultScreen(i32* %125)
%127 = call i32 @DefaultVisual(i32* %124, i32 %126)
%128 = load i32, i32* @XYPixmap
%129 = load i8*, i8** %20
%130 = load i32, i32* %28
%131 = load i32, i32* %27
%132 = call %struct.TYPE_11__* @XCreateImage(i32* %123, i32 %127, i32 1, i32 %128, i32 0, i8* %129, i32 %130, i32 %131, i32 8, i32 0)
store %struct.TYPE_11__* %132, %struct.TYPE_11__** %18
%133 = load i8*, i8** @MSBFirst
%134 = load %struct.TYPE_11__*, %struct.TYPE_11__** %18
%135 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %134, i32 0, i32 4
store i8* %133, i8** %135
%136 = load %struct.TYPE_11__*, %struct.TYPE_11__** %18
%137 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %136, i32 0, i32 5
store i8* %133, i8** %137
store i32 0, i32* %22
br label %138
138: ; preds = %201, %8
%139 = load i32, i32* %22
%140 = load i32, i32* %28
%141 = icmp slt i32 %139, %140
br i1 %141, label %142, label %204
142: ; preds = %138
store i32 0, i32* %21
br label %143
143: ; preds = %197, %142
%144 = load i32, i32* %21
%145 = load i32, i32* %27
%146 = icmp slt i32 %144, %145
br i1 %146, label %147, label %200
147: ; preds = %143
%148 = load %struct.TYPE_11__*, %struct.TYPE_11__** %17
%149 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %148, i32 0, i32 0
%150 = load i8*, i8** %149
%151 = load i32, i32* %21
%152 = sdiv i32 %151, 8
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds i8, i8* %150, i64 %153
%155 = load i32, i32* %22
%156 = load %struct.TYPE_11__*, %struct.TYPE_11__** %17
%157 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %156, i32 0, i32 1
%158 = load i32, i32* %157
%159 = mul nsw i32 %155, %158
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds i8, i8* %154, i64 %160
store i8* %161, i8** %20
%162 = load i8*, i8** %20
%163 = load i8, i8* %162
%164 = sext i8 %163 to i32
%165 = load i32, i32* %21
%166 = srem i32 %165, 8
%167 = ashr i32 128, %166
%168 = and i32 %164, %167
%169 = icmp ne i32 %168, 0
br i1 %169, label %170, label %196
170: ; preds = %147
%171 = load %struct.TYPE_11__*, %struct.TYPE_11__** %18
%172 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %171, i32 0, i32 0
%173 = load i8*, i8** %172
%174 = load i32, i32* %22
%175 = sdiv i32 %174, 8
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds i8, i8* %173, i64 %176
%178 = load i32, i32* %27
%179 = sub nsw i32 %178, 1
%180 = load i32, i32* %21
%181 = sub nsw i32 %179, %180
%182 = load %struct.TYPE_11__*, %struct.TYPE_11__** %18
%183 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %182, i32 0, i32 1
%184 = load i32, i32* %183
%185 = mul nsw i32 %181, %184
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds i8, i8* %177, i64 %186
store i8* %187, i8** %19
%188 = load i32, i32* %22
%189 = srem i32 %188, 8
%190 = ashr i32 128, %189
%191 = load i8*, i8** %19
%192 = load i8, i8* %191
%193 = sext i8 %192 to i32
%194 = or i32 %193, %190
%195 = trunc i32 %194 to i8
store i8 %195, i8* %191
br label %196
196: ; preds = %170, %147
br label %197
197: ; preds = %196
%198 = load i32, i32* %21
%199 = add nsw i32 %198, 1
store i32 %199, i32* %21
br label %143
200: ; preds = %143
br label %201
201: ; preds = %200
%202 = load i32, i32* %22
%203 = add nsw i32 %202, 1
store i32 %203, i32* %22
br label %138
204: ; preds = %138
%205 = load i32, i32* %12
%206 = load %struct.TYPE_12__*, %struct.TYPE_12__** %16
%207 = call i64 @FontAscent(%struct.TYPE_12__* %206)
%208 = trunc i64 %207 to i32
%209 = sub nsw i32 %205, %208
store i32 %209, i32* %23
%210 = load i32, i32* %23
%211 = icmp slt i32 %210, 0
br i1 %211, label %212, label %213
212: ; preds = %204
store i32 0, i32* %23
br label %213
213: ; preds = %212, %204
%214 = load i32, i32* %13
%215 = load i32, i32* %27
%216 = sub nsw i32 %214, %215
store i32 %216, i32* %24
%217 = load i32*, i32** %9
%218 = load i32, i32* %26
%219 = load i32, i32* %29
%220 = load %struct.TYPE_11__*, %struct.TYPE_11__** %18
%221 = load %struct.TYPE_11__*, %struct.TYPE_11__** %18
%222 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %221, i32 0, i32 2
%223 = load i32, i32* %222
%224 = load %struct.TYPE_11__*, %struct.TYPE_11__** %18
%225 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %224, i32 0, i32 3
%226 = load i32, i32* %225
%227 = call i32 @XPutImage(i32* %217, i32 %218, i32 %219, %struct.TYPE_11__* %220, i32 0, i32 0, i32 0, i32 0, i32 %223, i32 %226)
%228 = load i32*, i32** %9
%229 = load i32, i32* %11
%230 = load i32, i32* @FillStippled
%231 = call i32 @XSetFillStyle(i32* %228, i32 %229, i32 %230)
%232 = load i32*, i32** %9
%233 = load i32, i32* %11
%234 = load i32, i32* %26
%235 = call i32 @XSetStipple(i32* %232, i32 %233, i32 %234)
%236 = load i32*, i32** %9
%237 = load i32, i32* %11
%238 = load i32, i32* %23
%239 = load i32, i32* %24
%240 = call i32 @XSetTSOrigin(i32* %236, i32 %237, i32 %238, i32 %239)
%241 = load i32*, i32** %9
%242 = load i32, i32* %10
%243 = load i32, i32* %11
%244 = load i32, i32* %23
%245 = load i32, i32* %24
%246 = load %struct.TYPE_11__*, %struct.TYPE_11__** %18
%247 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %246, i32 0, i32 2
%248 = load i32, i32* %247
%249 = load %struct.TYPE_11__*, %struct.TYPE_11__** %18
%250 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %249, i32 0, i32 3
%251 = load i32, i32* %250
%252 = call i32 @XFillRectangle(i32* %241, i32 %242, i32 %243, i32 %244, i32 %245, i32 %248, i32 %251)
%253 = load i32*, i32** %9
%254 = load i32, i32* %11
%255 = load i32, i32* @FillSolid
%256 = call i32 @XSetFillStyle(i32* %253, i32 %254, i32 %255)
%257 = load i32*, i32** %9
%258 = load i32, i32* %29
%259 = call i32 @XFreeGC(i32* %257, i32 %258)
%260 = load %struct.TYPE_11__*, %struct.TYPE_11__** %17
%261 = call i32 @XDestroyImage(%struct.TYPE_11__* %260)
%262 = load %struct.TYPE_11__*, %struct.TYPE_11__** %18
%263 = call i32 @XDestroyImage(%struct.TYPE_11__* %262)
%264 = load i32*, i32** %9
%265 = load i32, i32* %25
%266 = call i32 @XFreePixmap(i32* %264, i32 %265)
%267 = load i32*, i32** %9
%268 = load i32, i32* %26
%269 = call i32 @XFreePixmap(i32* %267, i32 %268)
ret void
}

LLVM IR (-O2):
%struct.TYPE_12__ = type { i32 }
%struct.TYPE_11__ = type { i8*, i32, i32, i32, i8*, i8* }
@XYPixmap = global i32 0
@MSBFirst = global i8* null
@FillStippled = global i32 0
@FillSolid = global i32 0
define void @XDrawVString(i32* %0, i32 %1, i32 %2, i32 %3, i32 %4, i8* %5, i32 %6, %struct.TYPE_12__* %7) {
%9 = tail call i64 @FontTextWidth(%struct.TYPE_12__* %7, i8* %5)
%10 = trunc i64 %9 to i32
%11 = tail call i64 @FontHeight(%struct.TYPE_12__* %7)
%12 = trunc i64 %11 to i32
%13 = tail call i32 @XCreatePixmap(i32* %0, i32 %1, i32 %10, i32 %12, i32 1)
%14 = tail call i32 @XCreatePixmap(i32* %0, i32 %1, i32 %12, i32 %10, i32 1)
%15 = tail call i32 @XCreateGC(i32* %0, i32 %13, i64 0, i32* null)
%16 = tail call i32 @XSetBackground(i32* %0, i32 %15, i32 0)
%17 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %7, i64 0, i32 0
%18 = load i32, i32* %17
%19 = tail call i32 @XSetFont(i32* %0, i32 %15, i32 %18)
%20 = tail call i32 @XSetForeground(i32* %0, i32 %15, i32 0)
%21 = tail call i32 @XFillRectangle(i32* %0, i32 %13, i32 %15, i32 0, i32 0, i32 %10, i32 %12)
%22 = tail call i32 @XFillRectangle(i32* %0, i32 %14, i32 %15, i32 0, i32 0, i32 %12, i32 %10)
%23 = tail call i32 @XSetForeground(i32* %0, i32 %15, i32 1)
%24 = tail call i64 @FontAscent(%struct.TYPE_12__* %7)
%25 = trunc i64 %24 to i32
%26 = tail call i32 @strlen(i8* %5)
%27 = tail call i32 @XDrawImageString(i32* %0, i32 %13, i32 %15, i32 0, i32 %25, i8* %5, i32 %26)
%28 = add nsw i32 %10, 7
%29 = sdiv i32 %28, 8
%30 = mul nsw i32 %29, %12
%31 = tail call i64 @XtCalloc(i32 %30, i32 1)
%32 = inttoptr i64 %31 to i8*
%33 = tail call i32 @DefaultScreen(i32* %0)
%34 = tail call i32 @DefaultVisual(i32* %0, i32 %33)
%35 = load i32, i32* @XYPixmap
%36 = tail call %struct.TYPE_11__* @XCreateImage(i32* %0, i32 %34, i32 1, i32 %35, i32 0, i8* %32, i32 %10, i32 %12, i32 8, i32 0)
%37 = load i8*, i8** @MSBFirst
%38 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %36, i64 0, i32 4
store i8* %37, i8** %38
%39 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %36, i64 0, i32 5
store i8* %37, i8** %39
%40 = load i32, i32* @XYPixmap
%41 = tail call i32 @XGetSubImage(i32* %0, i32 %13, i32 0, i32 0, i32 %10, i32 %12, i64 1, i32 %40, %struct.TYPE_11__* %36, i32 0, i32 0)
%42 = add nsw i32 %12, 7
%43 = sdiv i32 %42, 8
%44 = mul nsw i32 %43, %10
%45 = tail call i64 @XtCalloc(i32 %44, i32 1)
%46 = inttoptr i64 %45 to i8*
%47 = tail call i32 @DefaultScreen(i32* %0)
%48 = tail call i32 @DefaultVisual(i32* %0, i32 %47)
%49 = load i32, i32* @XYPixmap
%50 = tail call %struct.TYPE_11__* @XCreateImage(i32* %0, i32 %48, i32 1, i32 %49, i32 0, i8* %46, i32 %12, i32 %10, i32 8, i32 0)
%51 = load i8*, i8** @MSBFirst
%52 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %50, i64 0, i32 4
store i8* %51, i8** %52
%53 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %50, i64 0, i32 5
store i8* %51, i8** %53
%54 = icmp sgt i32 %12, 0
br i1 %54, label %55, label %102
55: ; preds = %8
%56 = icmp sgt i32 %10, 0
%57 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %36, i64 0, i32 0
%58 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %36, i64 0, i32 1
%59 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %50, i64 0, i32 0
%60 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %50, i64 0, i32 1
br label %61
61: ; preds = %55, %99
%62 = phi i32 [ 0, %55 ], [ %100, %99 ]
br i1 %56, label %63, label %99
63: ; preds = %61
%64 = lshr i32 %62, 3
%65 = zext i32 %64 to i64
%66 = and i32 %62, 7
%67 = lshr i32 128, %66
%68 = trunc i32 %67 to i8
br label %69
69: ; preds = %63, %96
%70 = phi i32 [ 0, %63 ], [ %97, %96 ]
%71 = load i8*, i8** %57
%72 = lshr i32 %70, 3
%73 = zext i32 %72 to i64
%74 = getelementptr inbounds i8, i8* %71, i64 %73
%75 = load i32, i32* %58
%76 = mul nsw i32 %75, %62
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, i8* %74, i64 %77
%79 = load i8, i8* %78
%80 = zext i8 %79 to i32
%81 = and i32 %70, 7
%82 = lshr i32 128, %81
%83 = and i32 %82, %80
%84 = icmp eq i32 %83, 0
br i1 %84, label %96, label %85
85: ; preds = %69
%86 = load i8*, i8** %59
%87 = getelementptr inbounds i8, i8* %86, i64 %65
%88 = xor i32 %70, -1
%89 = add i32 %88, %10
%90 = load i32, i32* %60
%91 = mul nsw i32 %90, %89
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8, i8* %87, i64 %92
%94 = load i8, i8* %93
%95 = or i8 %94, %68
store i8 %95, i8* %93
br label %96
96: ; preds = %69, %85
%97 = add nuw nsw i32 %70, 1
%98 = icmp eq i32 %97, %10
br i1 %98, label %99, label %69
99: ; preds = %96, %61
%100 = add nuw nsw i32 %62, 1
%101 = icmp eq i32 %100, %12
br i1 %101, label %102, label %61
102: ; preds = %99, %8
%103 = tail call i64 @FontAscent(%struct.TYPE_12__* %7)
%104 = trunc i64 %103 to i32
%105 = sub nsw i32 %3, %104
%106 = icmp sgt i32 %105, 0
%107 = select i1 %106, i32 %105, i32 0
%108 = sub nsw i32 %4, %10
%109 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %50, i64 0, i32 2
%110 = load i32, i32* %109
%111 = getelementptr inbounds %struct.TYPE_11__, %struct.TYPE_11__* %50, i64 0, i32 3
%112 = load i32, i32* %111
%113 = tail call i32 @XPutImage(i32* %0, i32 %14, i32 %15, %struct.TYPE_11__* %50, i32 0, i32 0, i32 0, i32 0, i32 %110, i32 %112)
%114 = load i32, i32* @FillStippled
%115 = tail call i32 @XSetFillStyle(i32* %0, i32 %2, i32 %114)
%116 = tail call i32 @XSetStipple(i32* %0, i32 %2, i32 %14)
%117 = tail call i32 @XSetTSOrigin(i32* %0, i32 %2, i32 %107, i32 %108)
%118 = load i32, i32* %109
%119 = load i32, i32* %111
%120 = tail call i32 @XFillRectangle(i32* %0, i32 %1, i32 %2, i32 %107, i32 %108, i32 %118, i32 %119)
%121 = load i32, i32* @FillSolid
%122 = tail call i32 @XSetFillStyle(i32* %0, i32 %2, i32 %121)
%123 = tail call i32 @XFreeGC(i32* %0, i32 %15)
%124 = tail call i32 @XDestroyImage(%struct.TYPE_11__* %36)
%125 = tail call i32 @XDestroyImage(%struct.TYPE_11__* %50)
%126 = tail call i32 @XFreePixmap(i32* %0, i32 %13)
%127 = tail call i32 @XFreePixmap(i32* %0, i32 %14)
ret void
}