user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<cvt_num_field>:
  endbr64
  mov    %rsi,%r9
  mov    $0x2b,%eax
  test   %rdi,%rdi
  jns    L112
  neg    %rdi
  mov    $0x2d,%eax
L112:
  mov    %al,(%r9)
  mov    $0x3,%ecx
  movabs $0xcccccccccccccccd,%r10
  cmp    $0x270f,%rdi
  jle    L91
  nopl   0x0(%rax,%rax,1)
L122:
  mov    %rdi,%rax
  mov    %rdi,%rsi
  mul    %r10
  mov    %ecx,%eax
  sub    $0x1,%ecx
  mov    %rdx,%r8
  shr    $0x3,%r8
  mov    %r8,%rdi
  cmp    $0x1869f,%rsi
  jg     L122
  test   %ecx,%ecx
  jg     L106
  mov    %ecx,%esi
  mov    $0xaaaaaaab,%r10d
  neg    %esi
  mov    %esi,%edx
  imul   %r10,%rdx
  shr    $0x21,%rdx
  add    $0x1,%edx
  cmp    $0x8,%esi
  jbe    L111
  movd   %eax,%xmm4
  mov    %edx,%esi
  xor    %eax,%eax
  movdqa D17(%rip),%xmm3
  pshufd $0x0,%xmm4,%xmm0
  movdqa D7(%rip),%xmm2
  paddd  D21(%rip),%xmm0
  shr    $0x2,%esi
  nopl   (%rax)
L105:
  movdqa %xmm0,%xmm1
  add    $0x1,%eax
  paddd  %xmm3,%xmm0
  paddd  %xmm2,%xmm1
  cmp    %eax,%esi
  jne    L105
  mov    %edx,%eax
  pshufd $0xff,%xmm1,%xmm1
  and    $0xfffffffc,%eax
  movd   %xmm1,%esi
  lea    (%rax,%rax,2),%r10d
  add    %r10d,%ecx
  cmp    %edx,%eax
  je     L64
L111:
  lea    0x3(%rcx),%esi
  test   %esi,%esi
  jg     L64
  lea    0x6(%rcx),%esi
  add    $0x9,%ecx
  test   %esi,%esi
  cmovle %ecx,%esi
L64:
  mov    %r8,%rdx
  mov    $0x2,%r10d
  movabs $0x20c49ba5e353f7cf,%rcx
  shr    $0x3,%rdx
  sub    %esi,%r10d
  mov    %rdx,%rax
  mul    %rcx
  shr    $0x4,%rdx
  add    $0x30,%edx
  mov    %dl,0x1(%r9)
  cmp    $0x3,%esi
  jne    L86
L7:
  mov    %rdi,%rdx
  movb   $0x2e,0x2(%r9)
  mov    $0xfffffffe,%r8d
  movabs $0x20c49ba5e353f7cf,%rcx
  movabs $0x28f5c28f5c28f5c3,%rsi
  shr    $0x3,%rdx
  mov    %rdx,%rax
  mul    %rcx
  mov    %rdx,%rcx
  shr    $0x4,%rcx
  imul   $0x3e8,%rcx,%rax
  sub    %rax,%rdi
  mov    %rdi,%rdx
  mov    %rdi,%rcx
  mov    $0x4,%edi
  shr    $0x2,%rdx
  mov    %rdx,%rax
  mul    %rsi
  shr    $0x2,%rdx
  add    $0x30,%edx
  mov    %dl,0x3(%r9)
L89:
  movabs $0x28f5c28f5c28f5c3,%rsi
  mov    %rcx,%rdx
  shr    $0x2,%rdx
  mov    %rdx,%rax
  mul    %rsi
  mov    %rdx,%rsi
  and    $0xfffffffffffffffc,%rdx
  shr    $0x2,%rsi
  add    %rsi,%rdx
  lea    (%rdx,%rdx,4),%rax
  movabs $0xcccccccccccccccd,%rdx
  shl    $0x2,%rax
  sub    %rax,%rcx
  mov    %rcx,%rsi
  movslq %edi,%rcx
  mov    %rsi,%rax
  mul    %rdx
  lea    0x1(%rdi),%eax
  shr    $0x3,%rdx
  add    $0x30,%edx
  mov    %dl,(%r9,%rcx,1)
  test   %r8d,%r8d
  jne    L83
  cltq
  add    $0x2,%edi
  movb   $0x2e,(%r9,%rax,1)
L126:
  movabs $0xcccccccccccccccd,%rdx
  mov    %rsi,%rax
  movslq %edi,%rdi
  mul    %rdx
  shr    $0x3,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rax,%rax
  sub    %rax,%rsi
  add    $0x30,%esi
  mov    %sil,(%r9,%rdi,1)
  ret
L106:
  shr    $0x6,%rdx
  mov    $0x2,%r10d
  movabs $0x20c49ba5e353f7cf,%rsi
  mov    %rdx,%rax
  sub    %ecx,%r10d
  mul    %rsi
  shr    $0x4,%rdx
  lea    0x30(%rdx),%eax
  mov    %al,0x1(%r9)
  nopw   0x0(%rax,%rax,1)
L86:
  movabs $0x20c49ba5e353f7cf,%rcx
  mov    %r8,%rdx
  movabs $0x28f5c28f5c28f5c3,%rsi
  shr    $0x3,%rdx
  mov    %rdx,%rax
  mul    %rcx
  mov    %rdx,%rcx
  shr    $0x4,%rcx
  imul   $0x3e8,%rcx,%rax
  mov    %r8,%rcx
  lea    -0x1(%r10),%r8d
  sub    %rax,%rcx
  mov    %rcx,%rdx
  shr    $0x2,%rdx
  mov    %rdx,%rax
  mul    %rsi
  shr    $0x2,%rdx
  lea    0x30(%rdx),%eax
  mov    %al,0x2(%r9)
  test   %r10d,%r10d
  jne    L100
  lea    (%rdx,%rdx,4),%rax
  movb   $0x2e,0x3(%r9)
  mov    $0x5,%edi
  movabs $0xcccccccccccccccd,%rdx
  lea    (%rax,%rax,4),%rax
  shl    $0x2,%rax
  sub    %rax,%rcx
  mov    %rcx,%rax
  mov    %rcx,%rsi
  mul    %rdx
  shr    $0x3,%rdx
  add    $0x30,%edx
  mov    %dl,0x4(%r9)
  jmp    L126
  nopw   0x0(%rax,%rax,1)
L91:
  movabs $0x20c49ba5e353f7cf,%rcx
  mov    %rdi,%rdx
  shr    $0x3,%rdx
  mov    %rdx,%rax
  mul    %rcx
  shr    $0x4,%rdx
  lea    0x30(%rdx),%eax
  mov    %al,0x1(%r9)
  jmp    L7
L100:
  mov    $0x3,%edi
  jmp    L89
L83:
  mov    %eax,%edi
  jmp    L126
```

tool_calls: name: read_data
arguments: tag: D17
type: byte[16]
name: read_data
arguments: tag: D7
type: byte[16]
name: read_data
arguments: tag: D21
type: byte[16]

tool: {"D17": [0x0c,0x00,0x00,0x00,0x0c,0x00,0x00,0x00,0x0c,0x00,0x00,0x00,0x0c,0x00,0x00,0x00]}

tool: {"D7": [0x03,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x03,0x00,0x00,0x00]}

tool: {"D21": [0xff,0xff,0xff,0xff,0x02,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x08,0x00,0x00,0x00]}

assistant: ```c
void cvt_num_field(long int n, char *s) {
  int dp = 3;
  int d;
  int i = 0;
  if (n < 0) {
    s[i++] = '-';
    n = -n;
  } else {
    s[i++] = '+';
  }
  while (n > 9999) {
    n /= 10;
    dp--;
  }
  while (dp <= 0)
    dp += 3;
  dp = 4 - dp;
  for (d = 1000; d > 0; d /= 10) {
    if (dp-- == 0)
      s[i++] = '.';
    s[i++] = (n / d) + '0';
    n %= d;
  }
  return;
}
```