user: 请将以下的汇编代码转换成C语言代码:

```asm
<to_string>:
  endbr64
  movslq %esi,%rdx
  sub    $0x28,%rsp
  mov    %rdi,%rcx
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  imul   $0x66666667,%rdx,%rdx
  mov    %esi,%eax
  sar    $0x1f,%eax
  sar    $0x22,%rdx
  sub    %eax,%edx
  lea    (%rdx,%rdx,4),%edi
  mov    %edx,%eax
  add    %edi,%edi
  sub    %edi,%esi
  mov    %esi,%edx
  neg    %esi
  cmovs  %edx,%esi
  add    $0x30,%esi
  mov    %sil,(%rsp)
  test   %eax,%eax
  je     L196
  movslq %eax,%rdx
  mov    %eax,%edi
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%edi
  sar    $0x22,%rdx
  sub    %edi,%edx
  lea    (%rdx,%rdx,4),%r8d
  mov    %edx,%edi
  add    %r8d,%r8d
  sub    %r8d,%eax
  mov    %eax,%edx
  neg    %eax
  cmovs  %edx,%eax
  add    $0x30,%eax
  mov    %al,0x1(%rsp)
  test   %edi,%edi
  je     L37
  movslq %edi,%rax
  mov    %edi,%edx
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  lea    (%rax,%rax,4),%edx
  mov    %eax,%r8d
  mov    %edi,%eax
  add    %edx,%edx
  sub    %edx,%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  add    $0x30,%eax
  mov    %al,0x2(%rsp)
  test   %r8d,%r8d
  je     L180
  movslq %r8d,%rax
  mov    %r8d,%edx
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  lea    (%rax,%rax,4),%edx
  mov    %eax,%edi
  mov    %r8d,%eax
  add    %edx,%edx
  sub    %edx,%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  add    $0x30,%eax
  mov    %al,0x3(%rsp)
  test   %edi,%edi
  je     L120
  movslq %edi,%rax
  mov    %edi,%edx
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  lea    (%rax,%rax,4),%r8d
  mov    %eax,%edx
  mov    %edi,%eax
  add    %r8d,%r8d
  sub    %r8d,%eax
  mov    %eax,%edi
  neg    %edi
  cmovns %edi,%eax
  add    $0x30,%eax
  mov    %al,0x4(%rsp)
  test   %edx,%edx
  je     L233
  movslq %edx,%rax
  mov    %edx,%edi
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%edi
  sar    $0x22,%rax
  sub    %edi,%eax
  lea    (%rax,%rax,4),%r8d
  mov    %eax,%edi
  mov    %edx,%eax
  add    %r8d,%r8d
  sub    %r8d,%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  add    $0x30,%eax
  mov    %al,0x5(%rsp)
  test   %edi,%edi
  je     L148
  movslq %edi,%rax
  mov    %edi,%edx
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  lea    (%rax,%rax,4),%r8d
  mov    %eax,%edx
  mov    %edi,%eax
  add    %r8d,%r8d
  sub    %r8d,%eax
  mov    %eax,%edi
  neg    %edi
  cmovns %edi,%eax
  add    $0x30,%eax
  mov    %al,0x6(%rsp)
  test   %edx,%edx
  je     L159
  movslq %edx,%rax
  mov    %edx,%edi
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%edi
  sar    $0x22,%rax
  sub    %edi,%eax
  lea    (%rax,%rax,4),%r8d
  mov    %eax,%edi
  mov    %edx,%eax
  add    %r8d,%r8d
  sub    %r8d,%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  add    $0x30,%eax
  mov    %al,0x7(%rsp)
  test   %edi,%edi
  je     L124
  movslq %edi,%rax
  mov    %edi,%edx
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  lea    (%rax,%rax,4),%r8d
  mov    %eax,%edx
  mov    %edi,%eax
  add    %r8d,%r8d
  sub    %r8d,%eax
  mov    %eax,%edi
  neg    %edi
  cmovns %edi,%eax
  add    $0x30,%eax
  mov    %al,0x8(%rsp)
  test   %edx,%edx
  je     L68
  mov    %edx,%eax
  neg    %eax
  cmovs  %edx,%eax
  mov    $0x7,%edx
  add    $0x30,%eax
  mov    %al,0x9(%rsp)
  movzwl 0x8(%rsp),%eax
  rol    $0x8,%ax
  mov    %ax,(%rcx)
  mov    $0x9,%eax
L22:
  movslq %edx,%rdi
  movzbl (%rsp,%rdi,1),%edi
  mov    %dil,0x2(%rcx)
  lea    -0x1(%rdx),%edi
  test   %edx,%edx
  je     L229
  movslq %edi,%rdi
  movzbl (%rsp,%rdi,1),%edi
  mov    %dil,0x3(%rcx)
  lea    -0x2(%rdx),%edi
  cmp    $0x1,%edx
  je     L229
  movslq %edi,%rdi
  movzbl (%rsp,%rdi,1),%edi
  mov    %dil,0x4(%rcx)
  lea    -0x3(%rdx),%edi
  cmp    $0x2,%edx
  je     L229
  movslq %edi,%rdi
  movzbl (%rsp,%rdi,1),%edi
  mov    %dil,0x5(%rcx)
  lea    -0x4(%rdx),%edi
  cmp    $0x3,%edx
  je     L229
  movslq %edi,%rdi
  movzbl (%rsp,%rdi,1),%edi
  mov    %dil,0x6(%rcx)
  lea    -0x5(%rdx),%edi
  cmp    $0x4,%edx
  je     L229
  movslq %edi,%rdi
  movzbl (%rsp,%rdi,1),%edi
  mov    %dil,0x7(%rcx)
  lea    -0x6(%rdx),%edi
  cmp    $0x5,%edx
  je     L229
  movslq %edi,%rdx
  movzbl (%rsp,%rdx,1),%edx
  mov    %dl,0x8(%rcx)
  test   %edi,%edi
  je     L229
  mov    %sil,0x9(%rcx)
L229:
  add    $0x1,%eax
  cltq
  movb   $0x0,(%rcx,%rax,1)
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L262
  add    $0x28,%rsp
  ret
L148:
  mov    $0x5,%eax
  nopl   (%rax)
L30:
  movslq %eax,%rdx
  movzbl (%rsp,%rdx,1),%edx
  mov    %dl,(%rcx)
  lea    -0x1(%rax),%edx
  movslq %edx,%rdx
  movzbl (%rsp,%rdx,1),%edx
  mov    %dl,0x1(%rcx)
  lea    -0x2(%rax),%edx
  cmp    $0x1,%eax
  jne    L22
  jmp    L229
  nopl   0x0(%rax)
L196:
  mov    %sil,(%rcx)
  jmp    L229
  nopl   (%rax)
L37:
  mov    $0x1,%eax
  jmp    L30
L180:
  mov    $0x2,%eax
  jmp    L30
L120:
  mov    $0x3,%eax
  jmp    L30
L233:
  mov    $0x4,%eax
  jmp    L30
L159:
  mov    $0x6,%eax
  jmp    L30
L124:
  mov    $0x7,%eax
  jmp    L30
L68:
  mov    $0x8,%eax
  jmp    L30
L262:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void to_string(char *buff, int number) {
  char inv_buff[16];
  int offset = 0;
  int m10;
  int i = 0;
  do {
    m10 = number % 10;
    m10 = (m10 < 0) ? -m10 : m10;
    inv_buff[offset++] = (char)('0' + m10);
    number = number / 10;
  } while (number);
  offset--;
  for (i = 0; offset >= 0; offset--, i++)
    buff[i] = inv_buff[offset];
  buff[i] = '\0';
}
```