user: What is the c source code of the assembly code below?

```asm
<number>:
  endbr64
  push   %r15
  lea    D5(%rip),%r11
  mov    %r9d,%r10d
  mov    %esi,%eax
  push   %r14
  push   %r13
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rdx
  mov    %rdx,0x48(%rsp)
  mov    %r9d,%edx
  and    $0x40,%edx
  cmp    $0x1,%edx
  sbb    %r13d,%r13d
  and    $0xffffffe0,%r13d
  add    $0x78,%r13d
  test   %edx,%edx
  lea    D14(%rip),%rdx
  cmovne %rdx,%r11
  and    $0x10,%r10d
  lea    -0x2(%r12),%edx
  mov    %r10d,0x4(%rsp)
  je     L31
  and    $0xfffffffe,%r9d
  cmp    $0x22,%edx
  ja     L209
  mov    $0x20,%r14d
L184:
  test   $0x2,%r9b
  je     L258
  test   %eax,%eax
  js     L290
L258:
  test   $0x4,%r9b
  jne    L237
  lea    0x0(,%r9,4),%r15d
  and    $0x20,%r15d
  jne    L171
L303:
  and    $0x20,%r9d
  mov    %r9d,0x18(%rsp)
  je     L296
  cmp    $0x10,%r12d
  je     L16
  xor    %edx,%edx
  cmp    $0x8,%r12d
  sete   %dl
  sub    %edx,%ecx
L296:
  test   %eax,%eax
  jne    L277
  lea    0x20(%rsp),%rax
  movb   $0x30,0x20(%rsp)
  xor    %ebx,%ebx
  mov    $0x1,%ebp
  mov    %rax,0x8(%rsp)
L87:
  cmp    %r8d,%ebp
  cmovge %ebp,%r8d
  sub    %r8d,%ecx
  test   %r10d,%r10d
  jne    L244
  lea    -0x1(%rcx),%edx
  test   %ecx,%ecx
  jle    L59
  add    $0x1,%rdx
  mov    $0x20,%esi
  mov    %r8d,0x1c(%rsp)
  mov    %rdx,0x10(%rsp)
  call   <memset@plt>
  mov    0x10(%rsp),%rdx
  mov    0x1c(%rsp),%r8d
  mov    $0xffffffff,%ecx
  mov    %rax,%rdi
  add    %rdx,%rdi
L244:
  test   %r15b,%r15b
  je     L323
  mov    %r15b,(%rdi)
  add    $0x1,%rdi
L323:
  mov    0x18(%rsp),%edx
  test   %edx,%edx
  je     L269
  cmp    $0x8,%r12d
  je     L199
  cmp    $0x10,%r12d
  je     L212
L269:
  mov    0x4(%rsp),%eax
  test   %eax,%eax
  jne    L134
  lea    -0x1(%rcx),%r12d
  test   %ecx,%ecx
  jle    L126
  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
L134:
  cmp    %r8d,%ebp
  jge    L273
  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
L273:
  mov    0x8(%rsp),%rsi
  movslq %ebx,%rax
  mov    %rdi,%rdx
  mov    $0x1,%r8d
  add    %rax,%rsi
  cs nopw 0x0(%rax,%rax,1)
L229:
  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     L229
  add    $0x1,%ebx
  movslq %ebx,%rbx
  lea    (%rdi,%rbx,1),%r8
  test   %ecx,%ecx
  jle    L43
  movslq %ecx,%rbx
  mov    %r8,%rdi
  mov    $0x20,%esi
  mov    %rbx,%rdx
  call   <memset@plt>
  mov    %rax,%r8
  add    %rbx,%r8
L43:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L191
  add    $0x58,%rsp
  mov    %r8,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L31:
  cmp    $0x22,%edx
  ja     L209
  mov    %r9d,%edx
  mov    %r9d,%r10d
  and    $0x1,%edx
  and    $0x11,%r10d
  cmp    $0x1,%edx
  sbb    %r14d,%r14d
  and    $0xfffffff0,%r14d
  add    $0x30,%r14d
  jmp    L184
  nopl   0x0(%rax)
L237:
  mov    $0x2b,%r15d
L171:
  sub    $0x1,%ecx
  jmp    L303
  xchg   %ax,%ax
L277:
  lea    0x20(%rsp),%rsi
  xor    %ebp,%ebp
  xor    %r9d,%r9d
  mov    %rsi,0x8(%rsp)
  nop
L88:
  mov    %r9d,%edx
  mov    %ebp,%ebx
  add    $0x1,%rsi
  add    $0x1,%ebp
  div    %r12d
  movslq %edx,%rdx
  movzbl (%r11,%rdx,1),%edx
  mov    %dl,-0x1(%rsi)
  test   %eax,%eax
  jne    L88
  jmp    L87
  nopl   0x0(%rax,%rax,1)
L212:
  movb   $0x30,(%rdi)
  add    $0x2,%rdi
  mov    %r13b,-0x1(%rdi)
  jmp    L269
  nopl   0x0(%rax,%rax,1)
L209:
  xor    %r8d,%r8d
  jmp    L43
  nopl   0x0(%rax,%rax,1)
L290:
  neg    %eax
  mov    $0x2d,%r15d
  sub    $0x1,%ecx
  jmp    L303
L199:
  movb   $0x30,(%rdi)
  add    $0x1,%rdi
  jmp    L269
  nopl   0x0(%rax)
L16:
  sub    $0x2,%ecx
  jmp    L296
L59:
  mov    %edx,%ecx
  jmp    L244
L126:
  mov    %r12d,%ecx
  jmp    L134
L191:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D5
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D14
type_infered: string

tool: D5: 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ

tool: D14: 0123456789abcdefghijklmnopqrstuvwxyz

assistant: ```c
char *number(char *str, int num, int base, int size, int precision, int type) {
  char c, sign, tmp[36];
  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' : ' ';
  if (type & 2 && num < 0) {
    sign = '-';
    num = -num;
  } else
    sign = (type & 4) ? '+' : ((type & 8) ? ' ' : 0);
  if (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;
        __asm__("divl %4" : "=a"(num), "=d"(__res) : ""(num), "1"(0), "r"(base));
        __res;
      })];
  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;
}
```