user: Demonstrate the C code that generates the assembly output below:

```asm
<PrintAlign>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %edi,-0x58(%rbp)
  mov    %esi,-0x5c(%rbp)
  mov    %edx,%r13d
  mov    %rcx,-0x50(%rbp)
  mov    %r9,%r12
  mov    %r9,-0x68(%rbp)
  mov    0x18(%rbp),%r15
  mov    %r8b,-0x5d(%rbp)
  movzbl 0x10(%rbp),%r14d
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %r15,%rsi
  mov    $0x0,%ebx
  mov    %ebx,%edi
  call   <va_start@plt>
  mov    %ebx,%ecx
  mov    -0x50(%rbp),%rdx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <vsnprintf@plt>
  mov    %eax,-0x44(%rbp)
  mov    %ebx,%ecx
  mov    %r12,%rdx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <vsnprintf@plt>
  mov    %eax,%r12d
  mov    %ebx,%ecx
  mov    %r15,%rdx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <vsnprintf@plt>
  mov    %eax,-0x48(%rbp)
  mov    %ebx,%edi
  call   <va_end@plt>
  mov    %r12d,%ebx
  shr    $0x1f,%ebx
  mov    %ebx,%eax
  add    %r12d,%eax
  sar    %eax
  mov    %r13d,%edx
  shr    $0x1f,%edx
  add    %r13d,%edx
  sar    %edx
  mov    -0x44(%rbp),%ecx
  add    %eax,%ecx
  cmp    %edx,%ecx
  jg     L28
  add    -0x48(%rbp),%eax
  cmp    %eax,%edx
  jge    L9
L28:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L13
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L9:
  mov    -0x5c(%rbp),%esi
  mov    -0x58(%rbp),%edi
  call   <move@plt>
  mov    %r15,%rsi
  mov    $0x0,%ebx
  mov    %ebx,%edi
  call   <va_start@plt>
  mov    %rsp,-0x58(%rbp)
  mov    -0x44(%rbp),%ecx
  lea    0x1(%rcx),%esi
  movslq %esi,%rax
  add    $0xf,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L156:
  cmp    %rdx,%rsp
  je     L149
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L156
L149:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L98
  orq    $0x0,-0x8(%rsp,%rax,1)
L98:
  mov    $0x0,%ebx
  mov    %ebx,%ecx
  mov    -0x50(%rbp),%rdx
  mov    %rsp,%rdi
  call   <vsnprintf@plt>
  mov    %rsp,%rdi
  call   <addstr@plt>
  mov    -0x58(%rbp),%rsp
  sub    %r12d,%r13d
  mov    %r13d,-0x50(%rbp)
  mov    %r13d,%eax
  shr    $0x1f,%eax
  add    %r13d,%eax
  sar    %eax
  mov    %eax,-0x58(%rbp)
  mov    %eax,%ebx
  sub    -0x44(%rbp),%ebx
  je     L54
  movsbl -0x5d(%rbp),%r13d
L141:
  mov    %r13d,%edi
  call   <addch@plt>
  sub    $0x1,%ebx
  jne    L141
L54:
  mov    %rsp,%r13
  lea    0x1(%r12),%esi
  movslq %esi,%rax
  add    $0xf,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L58:
  cmp    %rdx,%rsp
  je     L66
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L58
L66:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L10
  orq    $0x0,-0x8(%rsp,%rax,1)
L10:
  mov    $0x0,%ebx
  mov    %ebx,%ecx
  mov    -0x68(%rbp),%rdx
  mov    %rsp,%rdi
  call   <vsnprintf@plt>
  mov    %rsp,%rdi
  call   <addstr@plt>
  mov    %r13,%rsp
  mov    -0x58(%rbp),%ebx
  sub    -0x48(%rbp),%ebx
  mov    -0x50(%rbp),%eax
  and    $0x1,%eax
  cmp    $0x1,%eax
  sbb    $0xffffffff,%ebx
  test   %ebx,%ebx
  je     L78
  movsbl %r14b,%r14d
L50:
  mov    %r14d,%edi
  call   <addch@plt>
  sub    $0x1,%ebx
  jne    L50
L78:
  mov    %rsp,%r12
  mov    -0x48(%rbp),%esi
  add    $0x1,%esi
  movslq %esi,%rax
  add    $0xf,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L56:
  cmp    %rdx,%rsp
  je     L59
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L56
L59:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L73
  orq    $0x0,-0x8(%rsp,%rax,1)
L73:
  mov    $0x0,%ebx
  mov    %ebx,%ecx
  mov    %r15,%rdx
  mov    %rsp,%rdi
  call   <vsnprintf@plt>
  mov    %rsp,%rdi
  call   <addstr@plt>
  mov    %r12,%rsp
  jmp    L28
L13:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void PrintAlign(int Row, int Col, int Width, const char *Left, char Pad1, const char *Mid, char Pad2, const char *Right, ...) {
  int lLen, mLen, rLen;
  int times;
  va_list args;
  va_start(args, Right);
  lLen = vsnprintf(NULL, 0, Left, args);
  mLen = vsnprintf(NULL, 0, Mid, args);
  rLen = vsnprintf(NULL, 0, Right, args);
  va_end(args);
  if (lLen + mLen / 2 > Width / 2 || mLen / 2 + rLen > Width / 2) {
    return;
  }
  move(Row, Col);
  va_start(args, Right);
  {
    char tmp[lLen + 1];
    vsnprintf(tmp, lLen + 1, Left, args);
    addstr(tmp);
  }
  times = (Width - mLen) / 2 - lLen;
  while (times--)
    addch(Pad1);
  {
    char tmp[mLen + 1];
    vsnprintf(tmp, mLen + 1, Mid, args);
    addstr(tmp);
  }
  times = (Width - mLen) / 2 - rLen;
  if ((Width - mLen) % 2)
    times++;
  while (times--)
    addch(Pad2);
  {
    char tmp[rLen + 1];
    vsnprintf(tmp, rLen + 1, Right, args);
    addstr(tmp);
  }
}
```