user: Translate the below assembly code into C programming language:

```asm
<number>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x100,%rsp
  mov    %rdi,-0xd8(%rbp)
  mov    %rsi,-0xe0(%rbp)
  mov    %rdx,-0xe8(%rbp)
  mov    %ecx,-0xec(%rbp)
  mov    %r8d,-0xf0(%rbp)
  mov    %r9d,-0xf4(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movabs $0x3736353433323130,%rax
  movabs $0x6665646362613938,%rdx
  mov    %rax,-0xb0(%rbp)
  mov    %rdx,-0xa8(%rbp)
  movabs $0x6e6d6c6b6a696867,%rax
  movabs $0x767574737271706f,%rdx
  mov    %rax,-0xa0(%rbp)
  mov    %rdx,-0x98(%rbp)
  movl   $0x7a797877,-0x90(%rbp)
  movb   $0x0,-0x8c(%rbp)
  movabs $0x3736353433323130,%rax
  movabs $0x4645444342413938,%rdx
  mov    %rax,-0x80(%rbp)
  mov    %rdx,-0x78(%rbp)
  movabs $0x4e4d4c4b4a494847,%rax
  movabs $0x565554535251504f,%rdx
  mov    %rax,-0x70(%rbp)
  mov    %rdx,-0x68(%rbp)
  movl   $0x5a595857,-0x60(%rbp)
  movb   $0x0,-0x5c(%rbp)
  mov    0x10(%rbp),%eax
  and    $0x40,%eax
  test   %eax,%eax
  je     L74
  lea    -0x80(%rbp),%rax
  jmp    L26
L74:
  lea    -0xb0(%rbp),%rax
L26:
  mov    %rax,-0xb8(%rbp)
  mov    0x10(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  je     L152
  andl   $0xfffffffe,0x10(%rbp)
L152:
  cmpl   $0x1,-0xec(%rbp)
  jle    L196
  cmpl   $0x24,-0xec(%rbp)
  jle    L421
L196:
  mov    $0x0,%eax
  jmp    L332
L421:
  mov    0x10(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L293
  mov    $0x30,%eax
  jmp    L62
L293:
  mov    $0x20,%eax
L62:
  mov    %al,-0xc1(%rbp)
  movb   $0x0,-0xc2(%rbp)
  mov    0x10(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L1
  cmpq   $0x0,-0xe8(%rbp)
  jns    L125
  movb   $0x2d,-0xc2(%rbp)
  negq   -0xe8(%rbp)
  subl   $0x1,-0xf0(%rbp)
  jmp    L1
L125:
  mov    0x10(%rbp),%eax
  and    $0x4,%eax
  test   %eax,%eax
  je     L390
  movb   $0x2b,-0xc2(%rbp)
  subl   $0x1,-0xf0(%rbp)
  jmp    L1
L390:
  mov    0x10(%rbp),%eax
  and    $0x8,%eax
  test   %eax,%eax
  je     L1
  movb   $0x20,-0xc2(%rbp)
  subl   $0x1,-0xf0(%rbp)
L1:
  mov    0x10(%rbp),%eax
  and    $0x20,%eax
  test   %eax,%eax
  je     L485
  cmpl   $0x10,-0xec(%rbp)
  jne    L281
  subl   $0x2,-0xf0(%rbp)
  jmp    L485
L281:
  cmpl   $0x8,-0xec(%rbp)
  jne    L485
  subl   $0x1,-0xf0(%rbp)
L485:
  movl   $0x0,-0xc0(%rbp)
  cmpq   $0x0,-0xe8(%rbp)
  jne    L109
  mov    -0xc0(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc0(%rbp)
  cltq
  movb   $0x30,-0x50(%rbp,%rax,1)
  jmp    L71
L165:
  mov    -0xe8(%rbp),%rax
  mov    -0xec(%rbp),%edx
  mov    %edx,%ecx
  mov    $0x0,%edx
  div    %rcx
  mov    %rdx,%rax
  mov    %eax,-0xbc(%rbp)
  mov    -0xe8(%rbp),%rax
  mov    -0xec(%rbp),%edx
  mov    %edx,%esi
  mov    $0x0,%edx
  div    %rsi
  mov    %rax,-0xe8(%rbp)
  mov    -0xbc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xb8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xc0(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc0(%rbp)
  movzbl (%rcx),%edx
  cltq
  mov    %dl,-0x50(%rbp,%rax,1)
L109:
  cmpq   $0x0,-0xe8(%rbp)
  jne    L165
L71:
  mov    -0xc0(%rbp),%eax
  cmp    -0xf4(%rbp),%eax
  jle    L355
  mov    -0xc0(%rbp),%eax
  mov    %eax,-0xf4(%rbp)
L355:
  mov    -0xf4(%rbp),%eax
  sub    %eax,-0xf0(%rbp)
  mov    0x10(%rbp),%eax
  and    $0x11,%eax
  test   %eax,%eax
  jne    L13
  jmp    L5
L25:
  mov    -0xd8(%rbp),%rax
  cmp    -0xe0(%rbp),%rax
  ja     L429
  mov    -0xd8(%rbp),%rax
  movb   $0x20,(%rax)
L429:
  addq   $0x1,-0xd8(%rbp)
L5:
  mov    -0xf0(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0xf0(%rbp)
  test   %eax,%eax
  jg     L25
L13:
  cmpb   $0x0,-0xc2(%rbp)
  je     L441
  mov    -0xd8(%rbp),%rax
  cmp    -0xe0(%rbp),%rax
  ja     L50
  mov    -0xd8(%rbp),%rax
  movzbl -0xc2(%rbp),%edx
  mov    %dl,(%rax)
L50:
  addq   $0x1,-0xd8(%rbp)
L441:
  mov    0x10(%rbp),%eax
  and    $0x20,%eax
  test   %eax,%eax
  je     L461
  cmpl   $0x8,-0xec(%rbp)
  jne    L150
  mov    -0xd8(%rbp),%rax
  cmp    -0xe0(%rbp),%rax
  ja     L271
  mov    -0xd8(%rbp),%rax
  movb   $0x30,(%rax)
L271:
  addq   $0x1,-0xd8(%rbp)
  jmp    L461
L150:
  cmpl   $0x10,-0xec(%rbp)
  jne    L461
  mov    -0xd8(%rbp),%rax
  cmp    -0xe0(%rbp),%rax
  ja     L340
  mov    -0xd8(%rbp),%rax
  movb   $0x30,(%rax)
L340:
  addq   $0x1,-0xd8(%rbp)
  mov    -0xd8(%rbp),%rax
  cmp    -0xe0(%rbp),%rax
  ja     L408
  mov    -0xb8(%rbp),%rax
  add    $0x21,%rax
  movzbl (%rax),%edx
  mov    -0xd8(%rbp),%rax
  mov    %dl,(%rax)
L408:
  addq   $0x1,-0xd8(%rbp)
L461:
  mov    0x10(%rbp),%eax
  and    $0x10,%eax
  test   %eax,%eax
  jne    L346
  jmp    L462
L161:
  mov    -0xd8(%rbp),%rax
  cmp    -0xe0(%rbp),%rax
  ja     L131
  mov    -0xd8(%rbp),%rax
  movzbl -0xc1(%rbp),%edx
  mov    %dl,(%rax)
L131:
  addq   $0x1,-0xd8(%rbp)
L462:
  mov    -0xf0(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0xf0(%rbp)
  test   %eax,%eax
  jg     L161
  jmp    L346
L397:
  mov    -0xd8(%rbp),%rax
  cmp    -0xe0(%rbp),%rax
  ja     L143
  mov    -0xd8(%rbp),%rax
  movb   $0x30,(%rax)
L143:
  addq   $0x1,-0xd8(%rbp)
L346:
  mov    -0xf4(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0xf4(%rbp)
  cmp    %eax,-0xc0(%rbp)
  jl     L397
  jmp    L195
L53:
  mov    -0xd8(%rbp),%rax
  cmp    -0xe0(%rbp),%rax
  ja     L69
  mov    -0xc0(%rbp),%eax
  cltq
  movzbl -0x50(%rbp,%rax,1),%edx
  mov    -0xd8(%rbp),%rax
  mov    %dl,(%rax)
L69:
  addq   $0x1,-0xd8(%rbp)
L195:
  mov    -0xc0(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0xc0(%rbp)
  test   %eax,%eax
  jg     L53
  jmp    L406
L325:
  mov    -0xd8(%rbp),%rax
  cmp    -0xe0(%rbp),%rax
  ja     L156
  mov    -0xd8(%rbp),%rax
  movb   $0x20,(%rax)
L156:
  addq   $0x1,-0xd8(%rbp)
L406:
  mov    -0xf0(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0xf0(%rbp)
  test   %eax,%eax
  jg     L325
  mov    -0xd8(%rbp),%rax
L332:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L110
  call   <__stack_chk_fail@plt>
L110:
  leave
  ret
```

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;
}
```