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

```asm
<itoa>:
  endbr64
  sub    $0x38,%rsp
  movdqa D8(%rip),%xmm0
  mov    %edx,%ecx
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movl   $0x5a595857,0x20(%rsp)
  movaps %xmm0,(%rsp)
  movdqa D17(%rip),%xmm0
  movb   $0x0,0x24(%rsp)
  movaps %xmm0,0x10(%rsp)
  test   %edi,%edi
  jle    L139
  xor    %r10d,%r10d
  mov    $0x25,%eax
  cmp    $0x26,%edx
  cmovae %eax,%ecx
L144:
  mov    %edi,%eax
  movb   $0x0,0xb(%rsi)
  cltd
  idiv   %ecx
  test   %edx,%edx
  jle    L385
L214:
  movslq %edx,%rdx
  lea    0xa(%rsi),%r8
  movzbl (%rsp,%rdx,1),%eax
  mov    %al,0xa(%rsi)
  mov    %edi,%eax
  cltd
  idiv   %ecx
  mov    %eax,%edi
  test   %eax,%eax
  je     L445
  cltd
  idiv   %ecx
  mov    %eax,%r9d
  test   %edx,%edx
  jle    L182
L81:
  movslq %edx,%rdx
  lea    0x9(%rsi),%r8
  movzbl (%rsp,%rdx,1),%eax
  mov    %al,0x9(%rsi)
  test   %r9d,%r9d
  je     L243
  mov    %r9d,%eax
  cltd
  idiv   %ecx
  mov    %eax,%edi
  test   %edx,%edx
  jle    L430
L72:
  movslq %edx,%rdx
  lea    0x8(%rsi),%r8
  movzbl (%rsp,%rdx,1),%eax
  mov    %al,0x8(%rsi)
  test   %edi,%edi
  je     L391
  mov    %edi,%eax
  cltd
  idiv   %ecx
  mov    %eax,%r9d
  test   %edx,%edx
  jle    L377
L55:
  movslq %edx,%rdx
  lea    0x7(%rsi),%r8
  movzbl (%rsp,%rdx,1),%eax
  mov    %al,0x7(%rsi)
  test   %r9d,%r9d
  je     L420
  mov    %r9d,%eax
  cltd
  idiv   %ecx
  mov    %eax,%edi
  test   %edx,%edx
  jle    L66
L388:
  movslq %edx,%rdx
  lea    0x6(%rsi),%r8
  movzbl (%rsp,%rdx,1),%eax
  mov    %al,0x6(%rsi)
  test   %edi,%edi
  je     L42
  mov    %edi,%eax
  cltd
  idiv   %ecx
  mov    %eax,%r9d
  test   %edx,%edx
  jle    L102
L230:
  movslq %edx,%rdx
  lea    0x5(%rsi),%r8
  movzbl (%rsp,%rdx,1),%eax
  mov    %al,0x5(%rsi)
  test   %r9d,%r9d
  je     L287
  mov    %r9d,%eax
  cltd
  idiv   %ecx
  mov    %eax,%edi
  test   %edx,%edx
  jle    L200
L51:
  movslq %edx,%rdx
  lea    0x4(%rsi),%r8
  movzbl (%rsp,%rdx,1),%eax
  mov    %al,0x4(%rsi)
  test   %edi,%edi
  je     L174
  mov    %edi,%eax
  cltd
  idiv   %ecx
  mov    %eax,%r9d
  test   %edx,%edx
  jle    L146
L22:
  movslq %edx,%rdx
  lea    0x3(%rsi),%r8
  movzbl (%rsp,%rdx,1),%eax
  mov    %al,0x3(%rsi)
  test   %r9d,%r9d
  je     L344
  mov    %r9d,%eax
  cltd
  idiv   %ecx
  mov    %eax,%edi
  test   %edx,%edx
  jle    L327
L396:
  movslq %edx,%rdx
  lea    0x2(%rsi),%r8
  movzbl (%rsp,%rdx,1),%eax
  mov    %al,0x2(%rsi)
  test   %edi,%edi
  je     L325
  mov    %edi,%eax
  cltd
  idiv   %ecx
  mov    %eax,%r8d
  test   %edx,%edx
  jle    L432
L239:
  movslq %edx,%rdx
  movzbl (%rsp,%rdx,1),%eax
  mov    %al,0x1(%rsi)
  xor    %eax,%eax
  cmp    $0x1,%r8d
  mov    %rsi,%r8
  setb   %al
  adc    $0x0,%r8
L52:
  test   %r10d,%r10d
  jne    L123
L125:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L418
  mov    %r8,%rax
  add    $0x38,%rsp
  ret
  nopl   0x0(%rax)
L123:
  sub    $0x1,%eax
  cltq
  lea    (%rsi,%rax,1),%r8
  movb   $0x2d,(%r8)
  jmp    L125
  nopw   0x0(%rax,%rax,1)
L182:
  neg    %edi
  mov    %edi,%eax
  cltd
  idiv   %ecx
  jmp    L81
  nopl   0x0(%rax)
L430:
  mov    %r9d,%eax
  neg    %eax
  cltd
  idiv   %ecx
  jmp    L72
  nopl   (%rax)
L377:
  mov    %edi,%eax
  neg    %eax
  cltd
  idiv   %ecx
  jmp    L55
  nopl   0x0(%rax)
L66:
  mov    %r9d,%eax
  neg    %eax
  cltd
  idiv   %ecx
  jmp    L388
  nopl   (%rax)
L102:
  mov    %edi,%eax
  neg    %eax
  cltd
  idiv   %ecx
  jmp    L230
  nopl   0x0(%rax)
L200:
  mov    %r9d,%eax
  neg    %eax
  cltd
  idiv   %ecx
  jmp    L51
  nopl   (%rax)
L146:
  mov    %edi,%eax
  neg    %eax
  cltd
  idiv   %ecx
  jmp    L22
  nopl   0x0(%rax)
L327:
  mov    %r9d,%eax
  neg    %eax
  cltd
  idiv   %ecx
  jmp    L396
  nopl   (%rax)
L432:
  mov    %edi,%eax
  neg    %eax
  cltd
  idiv   %ecx
  jmp    L239
  nopl   0x0(%rax)
L139:
  je     L186
  mov    $0x1,%r10d
  cmp    $0x25,%edx
  jbe    L144
  movb   $0x0,0xb(%rsi)
  mov    $0x1,%r10d
  mov    $0x25,%ecx
L385:
  mov    %edi,%eax
  neg    %eax
  cltd
  idiv   %ecx
  jmp    L214
  nopl   0x0(%rax)
L186:
  mov    $0x30,%eax
  lea    0xa(%rsi),%r8
  mov    %ax,0xa(%rsi)
  jmp    L125
L445:
  mov    $0xa,%eax
  jmp    L52
L243:
  mov    $0x9,%eax
  jmp    L52
L391:
  mov    $0x8,%eax
  jmp    L52
L420:
  mov    $0x7,%eax
  jmp    L52
L42:
  mov    $0x6,%eax
  jmp    L52
L287:
  mov    $0x5,%eax
  jmp    L52
L174:
  mov    $0x4,%eax
  jmp    L52
L344:
  mov    $0x3,%eax
  jmp    L52
L325:
  mov    $0x2,%eax
  jmp    L52
L418:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D8
data_type: byte[16]
name: extract_symbolic_data
arguments: label: D17
data_type: byte[16]

tool: {"D8": [0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x41,0x42,0x43,0x44,0x45,0x46]}

tool: {"D17": [0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,0x50,0x51,0x52,0x53,0x54,0x55,0x56]}

assistant: ```c
char *itoa(int i, char *buff, int base) {
  char code[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  int j;
  int val = i;
  int neg = 1;
  if (i > 0) {
    neg = 0;
    i = -i;
  } else if (i == 0) {
    buff[11] = '\0';
    buff[10] = '0';
    return &buff[10];
  }
  if (base > sizeof(code))
    base = sizeof(code);
  buff[11] = '\0';
  for (j = 10; j >= 1; j--) {
    buff[j] = code[val % base > 0 ? val % base : -val % base];
    val /= base;
    if (val == 0)
      break;
  }
  if (neg) {
    buff[--j] = '-';
  }
  return &buff[j];
}
```