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

```asm
<number>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xc8,%rsp
  mov    %rdx,%r10
  mov    %r8d,(%rsp)
  mov    %r9d,0x4(%rsp)
  mov    0x100(%rsp),%ebx
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  movabs $0x3736353433323130,%rax
  movabs $0x6665646362613938,%rdx
  mov    %rax,0x10(%rsp)
  mov    %rdx,0x18(%rsp)
  movabs $0x6e6d6c6b6a696867,%rax
  movabs $0x767574737271706f,%rdx
  mov    %rax,0x20(%rsp)
  mov    %rdx,0x28(%rsp)
  movl   $0x7a797877,0x30(%rsp)
  movb   $0x0,0x34(%rsp)
  movabs $0x3736353433323130,%rax
  movabs $0x4645444342413938,%rdx
  mov    %rax,0x40(%rsp)
  mov    %rdx,0x48(%rsp)
  movabs $0x4e4d4c4b4a494847,%rax
  movabs $0x565554535251504f,%rdx
  mov    %rax,0x50(%rsp)
  mov    %rdx,0x58(%rsp)
  movl   $0x5a595857,0x60(%rsp)
  movb   $0x0,0x64(%rsp)
  lea    0x10(%rsp),%rax
  lea    0x40(%rsp),%r12
  test   $0x40,%bl
  cmove  %rax,%r12
  mov    %ebx,%eax
  and    $0xfffffffe,%eax
  test   $0x10,%bl
  cmovne %eax,%ebx
  lea    -0x2(%rcx),%eax
  cmp    $0x22,%eax
  ja     L82
  mov    %ecx,%r13d
  mov    %ebx,%eax
  and    $0x1,%eax
  cmp    $0x1,%eax
  sbb    %r14d,%r14d
  and    $0xfffffff0,%r14d
  add    $0x30,%r14d
  test   $0x2,%bl
  je     L168
  test   %r10,%r10
  js     L201
  test   $0x4,%bl
  je     L525
  subl   $0x1,(%rsp)
  movb   $0x2b,0xb(%rsp)
  jmp    L34
L201:
  neg    %r10
  sub    $0x1,%r8d
  mov    %r8d,(%rsp)
  mov    %ebx,%eax
  and    $0x20,%eax
  mov    %eax,0xc(%rsp)
  jne    L68
  movb   $0x2d,0xb(%rsp)
L109:
  mov    $0x1,%r8d
  mov    %r13d,%ecx
  lea    0x6f(%rsp),%r15
L313:
  mov    %r10,%rbp
  mov    %r10,%rax
  mov    $0x0,%edx
  div    %rcx
  mov    %rax,%r9
  mov    %rax,%r10
  mov    %r8d,%r11d
  mov    %rbp,%rax
  mov    $0x0,%edx
  div    %rcx
  movslq %edx,%rdx
  movzbl (%r12,%rdx,1),%eax
  mov    %al,(%r15,%r8,1)
  add    $0x1,%r8
  test   %r9,%r9
  jne    L313
  jmp    L378
L525:
  movb   $0x0,0xb(%rsp)
  test   $0x8,%bl
  je     L34
  subl   $0x1,(%rsp)
  movb   $0x20,0xb(%rsp)
  jmp    L34
L168:
  movb   $0x0,0xb(%rsp)
L34:
  mov    %ebx,%eax
  and    $0x20,%eax
  mov    %eax,0xc(%rsp)
  je     L35
L317:
  cmp    $0x10,%r13d
  je     L99
  cmp    $0x8,%r13d
  sete   %al
  movzbl %al,%eax
  sub    %eax,(%rsp)
L35:
  test   %r10,%r10
  jne    L109
  movb   $0x30,0x70(%rsp)
  mov    $0x1,%r11d
L378:
  mov    0x4(%rsp),%eax
  cmp    %eax,%r11d
  mov    %eax,%edx
  cmovge %r11d,%edx
  mov    (%rsp),%ecx
  sub    %edx,%ecx
  test   $0x11,%bl
  jne    L125
  lea    -0x1(%rcx),%eax
  test   %ecx,%ecx
  jle    L465
  mov    %ecx,%r8d
  add    %rdi,%r8
  mov    %rdi,%rax
  jmp    L126
L68:
  movb   $0x2d,0xb(%rsp)
  jmp    L317
L99:
  subl   $0x2,(%rsp)
  jmp    L35
L472:
  add    $0x1,%rax
  cmp    %r8,%rax
  je     L135
L126:
  cmp    %rax,%rsi
  jb     L472
  movb   $0x20,(%rax)
  jmp    L472
L135:
  mov    %ecx,%ecx
  add    %rcx,%rdi
  mov    $0xffffffff,%ecx
L125:
  movzbl 0xb(%rsp),%eax
  test   %al,%al
  je     L501
  cmp    %rsi,%rdi
  ja     L308
  mov    %al,(%rdi)
L308:
  add    $0x1,%rdi
L501:
  cmpl   $0x0,0xc(%rsp)
  je     L415
  cmp    $0x8,%r13d
  je     L248
  cmp    $0x10,%r13d
  je     L226
L415:
  test   $0x10,%bl
  jne    L535
  lea    -0x1(%rcx),%eax
  test   %ecx,%ecx
  jle    L328
  mov    %ecx,%r8d
  add    %rdi,%r8
  mov    %rdi,%rax
  jmp    L546
L465:
  mov    %eax,%ecx
  jmp    L125
L248:
  cmp    %rsi,%rdi
  ja     L510
  movb   $0x30,(%rdi)
L510:
  add    $0x1,%rdi
  jmp    L415
L226:
  cmp    %rsi,%rdi
  ja     L556
  movb   $0x30,(%rdi)
L556:
  lea    0x1(%rdi),%rax
  cmp    %rax,%rsi
  jb     L178
  movzbl 0x21(%r12),%eax
  mov    %al,0x1(%rdi)
L178:
  add    $0x2,%rdi
  jmp    L415
L412:
  add    $0x1,%rax
  cmp    %r8,%rax
  je     L2
L546:
  cmp    %rax,%rsi
  jb     L412
  mov    %r14b,(%rax)
  jmp    L412
L2:
  mov    %ecx,%ecx
  add    %rcx,%rdi
  mov    $0xffffffff,%ecx
L535:
  cmp    %r11d,%edx
  jle    L27
  sub    %r11d,%edx
  lea    -0x1(%rdx),%eax
  lea    0x1(%rdi,%rax,1),%r8
  jmp    L403
L361:
  add    $0x1,%rdi
  cmp    %r8,%rdi
  je     L238
L403:
  cmp    %rdi,%rsi
  jb     L361
  movb   $0x30,(%rdi)
  jmp    L361
L328:
  mov    %eax,%ecx
  jmp    L535
L27:
  mov    %rdi,%r8
L238:
  test   %r11d,%r11d
  jle    L144
  movslq %r11d,%rax
  lea    0x70(%rsp,%rax,1),%rdx
  mov    %r11d,%edi
  add    %r8,%rdi
  mov    %r8,%rax
  jmp    L65
L209:
  add    $0x1,%rax
  sub    $0x1,%rdx
  cmp    %rdi,%rax
  je     L167
L65:
  cmp    %rax,%rsi
  jb     L209
  movzbl -0x1(%rdx),%r9d
  mov    %r9b,(%rax)
  jmp    L209
L167:
  mov    %r11d,%r11d
  add    %r11,%r8
L144:
  test   %ecx,%ecx
  jle    L281
  mov    %ecx,%edx
  add    %r8,%rdx
  mov    %r8,%rax
  jmp    L92
L10:
  add    $0x1,%rax
  cmp    %rdx,%rax
  je     L430
L92:
  cmp    %rax,%rsi
  jb     L10
  movb   $0x20,(%rax)
  jmp    L10
L430:
  mov    %ecx,%ecx
  add    %rcx,%r8
L281:
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L112
  mov    %r8,%rax
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L82:
  mov    $0x0,%r8d
  jmp    L281
L112:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
char *number(char *buf, char *end, long long num, int base, int size, int precision, int type) {
  char c, sign, tmp[66];
  const char *digits;
  const char small_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
  const char large_digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  int i;
  digits = (type & 64) ? large_digits : small_digits;
  if (type & 16)
    type &= ~1;
  if (base < 2 || base > 36)
    return 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 & 32) {
    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;
      })];
  if (i > precision)
    precision = i;
  size -= precision;
  if (!(type & (1 + 16))) {
    while (size-- > 0) {
      if (buf <= end)
        *buf = ' ';
      ++buf;
    }
  }
  if (sign) {
    if (buf <= end)
      *buf = sign;
    ++buf;
  }
  if (type & 32) {
    if (base == 8) {
      if (buf <= end)
        *buf = '0';
      ++buf;
    } else if (base == 16) {
      if (buf <= end)
        *buf = '0';
      ++buf;
      if (buf <= end)
        *buf = digits[33];
      ++buf;
    }
  }
  if (!(type & 16)) {
    while (size-- > 0) {
      if (buf <= end)
        *buf = c;
      ++buf;
    }
  }
  while (i < precision--) {
    if (buf <= end)
      *buf = '0';
    ++buf;
  }
  while (i-- > 0) {
    if (buf <= end)
      *buf = tmp[i];
    ++buf;
  }
  while (size-- > 0) {
    if (buf <= end)
      *buf = ' ';
    ++buf;
  }
  return buf;
}
```