user: 请从给定的汇编指令推导出C源代码:

```asm
<number>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rsi,0x18(%rsp)
  mov    %ecx,0x8(%rsp)
  mov    %r8d,0xc(%rsp)
  mov    %r9d,%r12d
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  test   $0x40,%r9b
  lea    D17(%rip),%r15
  lea    D2(%rip),%rax
  cmovne %rax,%r15
  mov    %r9d,%eax
  and    $0xfffffffe,%eax
  test   $0x10,%r9b
  cmovne %eax,%r12d
  lea    -0x2(%rdx),%eax
  cmp    $0x22,%eax
  ja     L6
  mov    %rdi,%rbx
  mov    %edx,%r13d
  mov    %r12d,%eax
  and    $0x1,%eax
  cmp    $0x1,%eax
  sbb    %r14d,%r14d
  and    $0xfffffff0,%r14d
  add    $0x30,%r14d
  test   $0x2,%r12b
  je     L181
  mov    %rsi,%rax
  test   %rsi,%rsi
  js     L216
  test   $0x4,%r12b
  je     L342
  subl   $0x1,0x8(%rsp)
  movb   $0x2b,0x13(%rsp)
  jmp    L108
L216:
  neg    %rax
  mov    %rax,0x18(%rsp)
  sub    $0x1,%ecx
  mov    %ecx,0x8(%rsp)
  mov    %r12d,%eax
  and    $0x20,%eax
  mov    %eax,0x14(%rsp)
  jne    L43
  movb   $0x2d,0x13(%rsp)
L174:
  mov    $0x1,%ebp
  lea    0x18(%rsp),%rax
  mov    %rax,(%rsp)
L121:
  mov    %r13d,%esi
  mov    (%rsp),%rdi
  call   <do_div@plt>
  mov    %ebp,%edi
  movzbl (%r15,%rax,1),%eax
  mov    %al,0x1f(%rsp,%rbp,1)
  add    $0x1,%rbp
  cmpq   $0x0,0x18(%rsp)
  jne    L121
  jmp    L198
L342:
  movb   $0x0,0x13(%rsp)
  test   $0x8,%r12b
  je     L108
  subl   $0x1,0x8(%rsp)
  movb   $0x20,0x13(%rsp)
  jmp    L108
L181:
  movb   $0x0,0x13(%rsp)
L108:
  mov    %r12d,%eax
  and    $0x20,%eax
  mov    %eax,0x14(%rsp)
  je     L45
L122:
  cmp    $0x10,%r13d
  je     L149
  cmp    $0x8,%r13d
  sete   %al
  movzbl %al,%eax
  sub    %eax,0x8(%rsp)
L45:
  cmpq   $0x0,0x18(%rsp)
  jne    L174
  movb   $0x30,0x20(%rsp)
  mov    $0x1,%edi
L198:
  mov    0xc(%rsp),%eax
  cmp    %eax,%edi
  mov    %eax,%edx
  cmovge %edi,%edx
  mov    0x8(%rsp),%r8d
  sub    %edx,%r8d
  test   $0x11,%r12b
  jne    L79
  lea    -0x1(%r8),%eax
  test   %r8d,%r8d
  jle    L296
  mov    %r8d,%ecx
  add    %rbx,%rcx
  mov    %rbx,%rax
L104:
  add    $0x1,%rax
  movb   $0x20,-0x1(%rax)
  cmp    %rcx,%rax
  jne    L104
  mov    %r8d,%r8d
  add    %r8,%rbx
  mov    $0xffffffff,%r8d
L79:
  movzbl 0x13(%rsp),%eax
  test   %al,%al
  je     L286
  mov    %al,(%rbx)
  lea    0x1(%rbx),%rbx
L286:
  cmpl   $0x0,0x14(%rsp)
  je     L87
  cmp    $0x8,%r13d
  je     L339
  cmp    $0x10,%r13d
  je     L128
L87:
  test   $0x10,%r12b
  jne    L330
  lea    -0x1(%r8),%eax
  test   %r8d,%r8d
  jle    L258
  mov    %r8d,%ecx
  add    %rbx,%rcx
  mov    %rbx,%rax
L160:
  add    $0x1,%rax
  mov    %r14b,-0x1(%rax)
  cmp    %rcx,%rax
  jne    L160
  mov    %r8d,%r8d
  add    %r8,%rbx
  mov    $0xffffffff,%r8d
L330:
  cmp    %edx,%edi
  jge    L280
  sub    %edi,%edx
  lea    -0x1(%rdx),%eax
  lea    0x1(%rbx,%rax,1),%rcx
L170:
  add    $0x1,%rbx
  movb   $0x30,-0x1(%rbx)
  cmp    %rcx,%rbx
  jne    L170
L177:
  test   %edi,%edi
  jle    L223
  movslq %edi,%rax
  lea    0x20(%rsp,%rax,1),%rdx
  mov    %edi,%r9d
  add    %rcx,%r9
  mov    %rcx,%rax
L324:
  add    $0x1,%rax
  movzbl -0x1(%rdx),%esi
  mov    %sil,-0x1(%rax)
  sub    $0x1,%rdx
  cmp    %r9,%rax
  jne    L324
  mov    %edi,%edi
  add    %rdi,%rcx
L223:
  test   %r8d,%r8d
  jle    L175
  mov    %r8d,%edx
  add    %rcx,%rdx
  mov    %rcx,%rax
L331:
  add    $0x1,%rax
  movb   $0x20,-0x1(%rax)
  cmp    %rdx,%rax
  jne    L331
  mov    %r8d,%r8d
  add    %r8,%rcx
L175:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L325
  mov    %rcx,%rax
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L43:
  movb   $0x2d,0x13(%rsp)
  jmp    L122
L149:
  subl   $0x2,0x8(%rsp)
  jmp    L45
L296:
  mov    %eax,%r8d
  jmp    L79
L339:
  movb   $0x30,(%rbx)
  lea    0x1(%rbx),%rbx
  jmp    L87
L128:
  movb   $0x30,(%rbx)
  movzbl 0x21(%r15),%eax
  mov    %al,0x1(%rbx)
  lea    0x2(%rbx),%rbx
  jmp    L87
L258:
  mov    %eax,%r8d
  jmp    L330
L280:
  mov    %rbx,%rcx
  jmp    L177
L6:
  mov    $0x0,%ecx
  jmp    L175
L325:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D17
datatype: string
name: extract_symbolic_data
arguments: label: D2
datatype: string

tool: D17: 0123456789abcdefghijklmnopqrstuvwxyz

tool: D2: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ

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