user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<XDrawVString>:
  endbr64
  push   %r15
  mov    %esi,%r15d
  mov    %r9,%rsi
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  mov    %r9,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    0x78(%rsp),%r12
  mov    %edx,0x1c(%rsp)
  mov    %ecx,0x20(%rsp)
  mov    %r12,%rdi
  mov    %r8d,0x24(%rsp)
  call   <FontTextWidth@plt>
  mov    %r12,%rdi
  mov    %eax,(%rsp)
  mov    %rax,%rbx
  call   <FontHeight@plt>
  mov    (%rsp),%edx
  mov    %r15d,%esi
  mov    %r13,%rdi
  mov    $0x1,%r8d
  mov    %eax,%ecx
  mov    %r15d,0x18(%rsp)
  mov    %rax,%r14
  mov    %eax,0x8(%rsp)
  call   <XCreatePixmap@plt>
  mov    (%rsp),%r10d
  mov    0x18(%rsp),%esi
  mov    %r13,%rdi
  mov    0x8(%rsp),%r11d
  mov    $0x1,%r8d
  mov    %eax,%r15d
  mov    %r10d,%ecx
  mov    %r10d,0x2c(%rsp)
  mov    %r11d,%edx
  mov    %r11d,0x28(%rsp)
  call   <XCreatePixmap@plt>
  xor    %ecx,%ecx
  xor    %edx,%edx
  mov    %r15d,%esi
  mov    %r13,%rdi
  mov    %r15d,0x8(%rsp)
  mov    %eax,0xc(%rsp)
  call   <XCreateGC@plt>
  xor    %edx,%edx
  mov    %r13,%rdi
  mov    %eax,%esi
  mov    %eax,%r15d
  call   <XSetBackground@plt>
  mov    (%r12),%edx
  mov    %r15d,%esi
  mov    %r13,%rdi
  mov    %r12,0x10(%rsp)
  call   <XSetFont@plt>
  xor    %edx,%edx
  mov    %r15d,%esi
  mov    %r13,%rdi
  call   <XSetForeground@plt>
  sub    $0x8,%rsp
  xor    %r8d,%r8d
  xor    %ecx,%ecx
  push   %r14
  mov    0x18(%rsp),%esi
  mov    %ebx,%r9d
  mov    %r15d,%edx
  mov    %r13,%rdi
  call   <XFillRectangle@plt>
  mov    0x1c(%rsp),%esi
  xor    %r8d,%r8d
  xor    %ecx,%ecx
  mov    %r14d,%r9d
  mov    %r15d,%edx
  mov    %r13,%rdi
  mov    %ebx,(%rsp)
  call   <XFillRectangle@plt>
  mov    $0x1,%edx
  mov    %r15d,%esi
  mov    %r13,%rdi
  call   <XSetForeground@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    0x20(%rsp),%rdi
  mov    %eax,%r12d
  call   <FontAscent@plt>
  mov    0x18(%rsp),%esi
  mov    %rbp,%r9
  xor    %ecx,%ecx
  mov    %eax,%r8d
  mov    %r15d,%edx
  mov    %r13,%rdi
  mov    %r12d,(%rsp)
  call   <XDrawImageString@plt>
  mov    %ebx,%eax
  lea    0xe(%rbx),%edi
  mov    $0x1,%esi
  add    $0x7,%eax
  cmovns %eax,%edi
  sar    $0x3,%edi
  imul   %r14d,%edi
  call   <XtCalloc@plt>
  mov    D36(%rip),%r12
  mov    %r13,%rdi
  mov    %rax,0x10(%rsp)
  mov    (%r12),%ebp
  call   <DefaultScreen@plt>
  mov    %r13,%rdi
  mov    %eax,%esi
  call   <DefaultVisual@plt>
  push   $0x0
  xor    %r8d,%r8d
  mov    %ebp,%ecx
  push   $0x8
  mov    %eax,%esi
  mov    $0x1,%edx
  mov    %r13,%rdi
  push   %r14
  push   %rbx
  mov    0x30(%rsp),%r9
  call   <XCreateImage@plt>
  add    $0x28,%rsp
  xor    %ecx,%ecx
  xor    %edx,%edx
  mov    %rax,%rbp
  mov    D28(%rip),%rax
  mov    %r14d,%r9d
  mov    %ebx,%r8d
  mov    %r13,%rdi
  movq   (%rax),%xmm0
  punpcklqdq %xmm0,%xmm0
  movups %xmm0,0x18(%rbp)
  push   $0x0
  push   $0x0
  push   %rbp
  mov    (%r12),%eax
  push   %rax
  push   $0x1
  mov    0x38(%rsp),%esi
  call   <XGetSubImage@plt>
  mov    %r14d,%eax
  add    $0x30,%rsp
  lea    0xe(%r14),%edi
  add    $0x7,%eax
  mov    $0x1,%esi
  cmovns %eax,%edi
  sar    $0x3,%edi
  imul   %ebx,%edi
  call   <XtCalloc@plt>
  mov    %r13,%rdi
  mov    (%r12),%r12d
  mov    %rax,(%rsp)
  call   <DefaultScreen@plt>
  mov    %r13,%rdi
  mov    %eax,%esi
  call   <DefaultVisual@plt>
  push   $0x0
  mov    %r12d,%ecx
  xor    %r8d,%r8d
  push   $0x8
  mov    %eax,%esi
  mov    $0x1,%edx
  mov    %r13,%rdi
  push   %rbx
  push   %r14
  mov    0x20(%rsp),%r9
  call   <XCreateImage@plt>
  add    $0x20,%rsp
  mov    %rax,%r12
  mov    D28(%rip),%rax
  movq   (%rax),%xmm0
  punpcklqdq %xmm0,%xmm0
  movups %xmm0,0x18(%r12)
  test   %r14d,%r14d
  jle    L36
  xor    %esi,%esi
  test   %ebx,%ebx
  mov    0x28(%rsp),%r11d
  mov    0x2c(%rsp),%r10d
  mov    $0x80,%edi
  lea    -0x1(%rbx),%r14d
  jle    L36
  nopl   0x0(%rax)
L32:
  mov    %esi,%ecx
  mov    %esi,%r8d
  mov    %edi,%eax
  mov    %r11d,(%rsp)
  and    $0x7,%ecx
  sar    $0x3,%r8d
  sar    %cl,%eax
  movslq %r8d,%r8
  mov    %eax,%r9d
  xor    %eax,%eax
  nopl   0x0(%rax)
L45:
  mov    0x8(%rbp),%edx
  mov    %eax,%ecx
  mov    %edi,%r11d
  sar    $0x3,%ecx
  imul   %esi,%edx
  movslq %ecx,%rcx
  movslq %edx,%rdx
  add    0x0(%rbp),%rdx
  movsbl (%rdx,%rcx,1),%edx
  mov    %eax,%ecx
  and    $0x7,%ecx
  sar    %cl,%r11d
  test   %r11d,%edx
  je     L34
  mov    %r14d,%edx
  sub    %eax,%edx
  imul   0x8(%r12),%edx
  movslq %edx,%rdx
  add    %r8,%rdx
  add    (%r12),%rdx
  or     %r9b,(%rdx)
L34:
  add    $0x1,%eax
  cmp    %eax,%r10d
  jne    L45
  mov    (%rsp),%r11d
  add    $0x1,%esi
  cmp    %esi,%r11d
  jne    L32
L36:
  mov    0x10(%rsp),%rdi
  call   <FontAscent@plt>
  mov    0x20(%rsp),%r14d
  mov    %r12,%rcx
  mov    %r15d,%edx
  mov    0x24(%rsp),%r10d
  mov    %r13,%rdi
  sub    %eax,%r14d
  mov    $0x0,%eax
  cmovs  %eax,%r14d
  mov    0x10(%r12),%eax
  sub    %ebx,%r10d
  xor    %r9d,%r9d
  mov    %r10d,(%rsp)
  xor    %r8d,%r8d
  push   %rax
  mov    0xc(%r12),%eax
  push   %rax
  push   $0x0
  push   $0x0
  mov    0x2c(%rsp),%esi
  call   <XPutImage@plt>
  mov    0x3c(%rsp),%ebx
  add    $0x20,%rsp
  mov    %r13,%rdi
  mov    D24(%rip),%rax
  mov    %ebx,%esi
  mov    (%rax),%edx
  call   <XSetFillStyle@plt>
  mov    0xc(%rsp),%edx
  mov    %ebx,%esi
  mov    %r13,%rdi
  call   <XSetStipple@plt>
  mov    (%rsp),%ecx
  mov    %r14d,%edx
  mov    %ebx,%esi
  mov    %r13,%rdi
  call   <XSetTSOrigin@plt>
  mov    0x10(%r12),%eax
  sub    $0x8,%rsp
  mov    %ebx,%edx
  mov    0xc(%r12),%r9d
  mov    %r14d,%ecx
  mov    %r13,%rdi
  push   %rax
  mov    0x10(%rsp),%r8d
  mov    0x28(%rsp),%esi
  call   <XFillRectangle@plt>
  mov    D38(%rip),%rax
  mov    %ebx,%esi
  mov    %r13,%rdi
  mov    (%rax),%edx
  call   <XSetFillStyle@plt>
  mov    %r15d,%esi
  mov    %r13,%rdi
  call   <XFreeGC@plt>
  mov    %rbp,%rdi
  call   <XDestroyImage@plt>
  mov    %r12,%rdi
  call   <XDestroyImage@plt>
  mov    0x18(%rsp),%esi
  mov    %r13,%rdi
  call   <XFreePixmap@plt>
  mov    0x1c(%rsp),%esi
  add    $0x48,%rsp
  mov    %r13,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1200 <XFreePixmap@plt>
```

assistant: ```c
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);
}
```