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

```asm
<number>:
  endbr64
  push   %r15
  mov    %rsi,%rax
  push   %r14
  push   %r13
  mov    %r9d,%r13d
  push   %r12
  and    $0x20,%r13d
  mov    %edx,%r12d
  push   %rbp
  push   %rbx
  mov    %r9d,%ebx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rdx
  mov    %rdx,0x68(%rsp)
  xor    %edx,%edx
  and    $0x10,%ebx
  lea    -0x2(%r12),%edx
  mov    %ebx,0x4(%rsp)
  je     L249
  and    $0xfffffffe,%r9d
  cmp    $0xe,%edx
  ja     L122
  mov    %r9d,%r15d
  mov    %ebx,0x8(%rsp)
  mov    $0x20,%r14d
  and    $0x40,%r15d
  test   $0x2,%r9b
  je     L38
L106:
  test   %rax,%rax
  js     L245
  test   $0x4,%r9b
  jne    L337
  and    $0x8,%r9d
  movb   $0x0,0x1b(%rsp)
  je     L188
  movb   $0x20,0x1b(%rsp)
  sub    $0x1,%ecx
  jmp    L188
  nopl   0x0(%rax)
L249:
  cmp    $0xe,%edx
  ja     L122
  mov    %r9d,%edx
  mov    %r9d,%ebx
  mov    %r9d,%r15d
  and    $0x1,%edx
  and    $0x11,%ebx
  cmp    $0x1,%edx
  mov    %ebx,0x8(%rsp)
  sbb    %r14d,%r14d
  and    $0x40,%r15d
  and    $0xfffffff0,%r14d
  add    $0x30,%r14d
  test   $0x2,%r9b
  jne    L106
L38:
  movb   $0x0,0x1b(%rsp)
L188:
  test   %r15d,%r15d
  je     L297
L63:
  cmp    $0x10,%r12d
  je     L76
  xor    %edx,%edx
  cmp    $0x8,%r12d
  sete   %dl
  sub    %edx,%ecx
L297:
  test   %rax,%rax
  jne    L270
  lea    0x20(%rsp),%rax
  movb   $0x30,0x20(%rsp)
  xor    %ebx,%ebx
  mov    $0x1,%ebp
  mov    %rax,0x10(%rsp)
L280:
  cmp    %r8d,%ebp
  mov    0x8(%rsp),%edx
  cmovge %ebp,%r8d
  sub    %r8d,%ecx
  test   %edx,%edx
  jne    L47
  lea    -0x1(%rcx),%edx
  test   %ecx,%ecx
  jle    L235
  add    $0x1,%rdx
  mov    $0x20,%esi
  mov    %r8d,0x1c(%rsp)
  mov    %rdx,0x8(%rsp)
  call   <memset@plt>
  mov    0x8(%rsp),%rdx
  mov    0x1c(%rsp),%r8d
  mov    $0xffffffff,%ecx
  mov    %rax,%rdi
  add    %rdx,%rdi
L47:
  movzbl 0x1b(%rsp),%eax
  test   %al,%al
  je     L153
  mov    %al,(%rdi)
  add    $0x1,%rdi
L153:
  test   %r15d,%r15d
  je     L93
  cmp    $0x8,%r12d
  je     L130
  cmp    $0x10,%r12d
  je     L218
L93:
  mov    0x4(%rsp),%eax
  test   %eax,%eax
  jne    L29
  lea    -0x1(%rcx),%r12d
  test   %ecx,%ecx
  jle    L244
  add    $0x1,%r12
  movsbl %r14b,%esi
  mov    %r8d,0x4(%rsp)
  mov    %r12,%rdx
  call   <memset@plt>
  mov    0x4(%rsp),%r8d
  mov    $0xffffffff,%ecx
  mov    %rax,%rdi
  add    %r12,%rdi
L29:
  cmp    %r8d,%ebp
  jge    L304
  sub    %ebp,%r8d
  mov    $0x30,%esi
  mov    %ecx,0x4(%rsp)
  lea    -0x1(%r8),%ebp
  add    $0x1,%rbp
  mov    %rbp,%rdx
  call   <memset@plt>
  mov    0x4(%rsp),%ecx
  mov    %rax,%rdi
  add    %rbp,%rdi
L304:
  mov    0x10(%rsp),%rsi
  movslq %ebx,%rax
  mov    %rdi,%rdx
  mov    $0x1,%r8d
  add    %rax,%rsi
  nopl   0x0(%rax)
L161:
  movzbl (%rsi),%eax
  add    $0x1,%rdx
  sub    $0x1,%rsi
  mov    %al,-0x1(%rdx)
  mov    %r8d,%eax
  sub    %edx,%eax
  add    %ebx,%eax
  add    %edi,%eax
  test   %eax,%eax
  jg     L161
  add    $0x1,%ebx
  movslq %ebx,%rbx
  lea    (%rdi,%rbx,1),%r8
  test   %ecx,%ecx
  jle    L173
  movslq %ecx,%rbx
  mov    %r8,%rdi
  mov    $0x20,%esi
  mov    %rbx,%rdx
  call   <memset@plt>
  mov    %rax,%r8
  add    %rbx,%r8
L173:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L137
  add    $0x78,%rsp
  mov    %r8,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L245:
  movb   $0x2d,0x1b(%rsp)
  neg    %rax
  sub    $0x1,%ecx
  test   %r15d,%r15d
  jne    L63
L270:
  lea    0x20(%rsp),%rsi
  mov    %ecx,0x1c(%rsp)
  mov    %r12d,%r9d
  xor    %ebp,%ebp
  mov    %rsi,0x10(%rsp)
  lea    D6(%rip),%r11
  xchg   %ax,%ax
L240:
  xor    %edx,%edx
  mov    %rax,%r10
  mov    %ebp,%ebx
  add    $0x1,%rsi
  div    %r9
  add    $0x1,%ebp
  movslq %edx,%rdx
  movzbl (%r11,%rdx,1),%ecx
  or     %r13d,%ecx
  mov    %cl,-0x1(%rsi)
  cmp    %r9,%r10
  jae    L240
  mov    0x1c(%rsp),%ecx
  jmp    L280
  nopl   (%rax)
L337:
  movb   $0x2b,0x1b(%rsp)
  sub    $0x1,%ecx
  jmp    L188
  nopl   (%rax)
L218:
  or     $0x58,%r13d
  movb   $0x30,(%rdi)
  add    $0x2,%rdi
  mov    %r13b,-0x1(%rdi)
  jmp    L93
  nopl   0x0(%rax)
L122:
  xor    %r8d,%r8d
  jmp    L173
L76:
  sub    $0x2,%ecx
  jmp    L297
  nopl   0x0(%rax,%rax,1)
L130:
  movb   $0x30,(%rdi)
  add    $0x1,%rdi
  jmp    L93
L235:
  mov    %edx,%ecx
  jmp    L47
L244:
  mov    %r12d,%ecx
  jmp    L29
L137:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
char *number(char *str, long num, int base, int size, int precision, int type) {
  static const char digits[16] = "0123456789ABCDEF";
  char tmp[66];
  char c, sign, locase;
  int i;
  locase = (type & 32);
  if (type & 16)
    type &= ~1;
  if (base < 2 || base > 16)
    return ((void *)0);
  c = (type & 1) ? '0' : ' ';
  sign = 0;
  if (type & 2) {
    if (num < 0) {
      sign = '-';
      num = -num;
      size--;
    } else if (type & 4) {
      sign = '+';
      size--;
    } else if (type & 8) {
      sign = ' ';
      size--;
    }
  }
  if (type & 64) {
    if (base == 16)
      size -= 2;
    else if (base == 8)
      size--;
  }
  i = 0;
  if (num == 0)
    tmp[i++] = '0';
  else
    while (num != 0)
      tmp[i++] = (digits[({
                    int __res;
                    __res = ((unsigned long)num) % (unsigned)base;
                    num = ((unsigned long)num) / (unsigned)base;
                    __res;
                  })] |
                  locase);
  if (i > precision)
    precision = i;
  size -= precision;
  if (!(type & (1 + 16)))
    while (size-- > 0)
      *str++ = ' ';
  if (sign)
    *str++ = sign;
  if (type & 64) {
    if (base == 8)
      *str++ = '0';
    else if (base == 16) {
      *str++ = '0';
      *str++ = ('X' | locase);
    }
  }
  if (!(type & 16))
    while (size-- > 0)
      *str++ = c;
  while (i < precision--)
    *str++ = '0';
  while (i-- > 0)
    *str++ = tmp[i];
  while (size-- > 0)
    *str++ = ' ';
  return str;
}
```