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

```asm
<si_sprintf>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %rdi,%rbp
  movsd  %xmm0,0x8(%rsp)
  mov    %esi,%ebx
  mov    %edx,%r12d
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  mov    D214(%rip),%r14
  test   $0x2,%dl
  jne    L34
  mov    D281(%rip),%r14
L34:
  cmp    $0x1,%ebx
  setg   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  cmp    $0x18,%ebx
  setle  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  pxor   %xmm0,%xmm0
  movsd  0x8(%rsp),%xmm5
  comisd %xmm5,%xmm0
  ja     L377
  test   $0x4,%r12b
  je     L181
  movb   $0x2b,0x0(%rbp)
  sub    $0x1,%ebx
  lea    0x1(%rbp),%rbp
  jmp    L181
L377:
  movb   $0x2d,0x0(%rbp)
  sub    $0x1,%ebx
  xorpd  D21(%rip),%xmm5
  movsd  %xmm5,0x8(%rsp)
  lea    0x1(%rbp),%rbp
L181:
  movslq %ebx,%r13
  movb   $0x0,0x0(%rbp,%r13,1)
  movsd  0x8(%rsp),%xmm4
  ucomisd D260(%rip),%xmm4
  jp     L267
  jne    L267
  pxor   %xmm0,%xmm0
  mov    %ebx,%edx
  lea    D83(%rip),%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
L42:
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L261
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L267:
  movsd  0x8(%rsp),%xmm0
  call   <isnan@plt>
  lea    D140(%rip),%r15
  test   %rax,%rax
  je     L316
L81:
  mov    %ebx,%edx
  mov    $0x21,%esi
  mov    %rbp,%rdi
  call   <memset@plt>
  test   %r15,%r15
  je     L42
L293:
  mov    $0x4,%edx
  cmp    %edx,%ebx
  cmovle %ebx,%edx
  sub    %edx,%ebx
  mov    %ebx,%edi
  shr    $0x1f,%edi
  add    %ebx,%edi
  sar    %edi
  movslq %edi,%rdi
  add    %rbp,%rdi
  mov    %r15,%rsi
  call   <memcpy@plt>
  jmp    L42
L316:
  movsd  0x8(%rsp),%xmm0
  call   <isfinite@plt>
  test   %eax,%eax
  je     L15
  movq   %r14,%xmm2
  mulsd  D206(%rip),%xmm2
  movsd  0x8(%rsp),%xmm6
  comisd %xmm2,%xmm6
  ja     L460
  movq   %r14,%xmm0
  mulsd  D118(%rip),%xmm0
  comisd %xmm0,%xmm6
  jbe    L197
  cmp    $0x3,%ebx
  je     L460
L197:
  movq   %r14,%xmm0
  mulsd  D145(%rip),%xmm0
  movsd  0x8(%rsp),%xmm2
  comisd %xmm0,%xmm2
  jbe    L68
  cmp    $0x2,%ebx
  je     L460
L68:
  xor    $0x1,%r12d
  and    $0x1,%r12d
  movsd  D51(%rip),%xmm0
  movq   %r14,%xmm3
  divsd  %xmm3,%xmm0
  comisd 0x8(%rsp),%xmm0
  jbe    L157
  test   %r12b,%r12b
  jne    L460
L157:
  movsd  D159(%rip),%xmm0
  comisd 0x8(%rsp),%xmm0
  jbe    L177
  test   %r12b,%r12b
  jne    L111
L177:
  movsd  D281(%rip),%xmm0
  mov    $0x0,%eax
  movsd  D311(%rip),%xmm3
  movsd  D265(%rip),%xmm2
  movsd  0x8(%rsp),%xmm7
  comisd D201(%rip),%xmm7
  jbe    L148
L189:
  mulsd  %xmm3,%xmm0
  add    $0x1,%eax
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  0x8(%rsp),%xmm6
  comisd %xmm1,%xmm6
  ja     L189
L148:
  cmp    %eax,%ebx
  jge    L427
  movsd  D290(%rip),%xmm0
  cmp    $0x3,%ebx
  jg     L349
  movsd  D289(%rip),%xmm0
L349:
  mov    $0x1,%eax
  movsd  D38(%rip),%xmm1
  lea    D169(%rip),%rcx
  movsd  0x8(%rsp),%xmm2
  comisd %xmm0,%xmm2
  jbe    L222
L282:
  movsd  0x8(%rsp),%xmm7
  divsd  %xmm1,%xmm7
  movsd  %xmm7,0x8(%rsp)
  mov    %eax,%edx
  comisd %xmm0,%xmm7
  jbe    L467
  add    $0x1,%rax
  cmpb   $0x0,(%rax,%rcx,1)
  jne    L282
L467:
  movslq %edx,%rdx
  lea    D286(%rip),%rax
  movzbl (%rax,%rdx,1),%eax
L365:
  test   %al,%al
  je     L351
  movsd  0x8(%rsp),%xmm3
  ucomisd D260(%rip),%xmm3
  jp     L77
  je     L42
L77:
  cmp    $0x23,%al
  je     L427
  sub    $0x1,%ebx
  movslq %ebx,%rdx
  mov    %al,0x0(%rbp,%rdx,1)
L427:
  lea    0x10(%rsp),%rdi
  movsd  0x8(%rsp),%xmm0
  mov    %ebx,%edx
  lea    D46(%rip),%rsi
  call   <sprintf@plt>
  cmpb   $0x30,0x10(%rsp)
  je     L401
  lea    0x10(%rsp),%rsi
  mov    %ebx,%edx
  mov    %rbp,%rdi
  call   <memcpy@plt>
L404:
  cmp    $0x1,%ebx
  jne    L42
  movsd  0x8(%rsp),%xmm3
  comisd D49(%rip),%xmm3
  jbe    L42
  movb   $0x21,0x0(%rbp)
  jmp    L42
L460:
  lea    0x10(%rsp),%r12
  movsd  0x8(%rsp),%xmm0
  mov    %ebx,%edx
  lea    D270(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  mov    $0x65,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L357
  cmpb   $0x30,0x2(%rax)
  jne    L0
  lea    0x2(%rax),%r14
L408:
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  lea    0x3(%r12),%rsi
  mov    %r14,%rdi
  call   <memmove@plt>
  cmpb   $0x30,0x2(%r12)
  je     L408
L0:
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%r14d
  cmp    %eax,%ebx
  jge    L43
L357:
  movsd  D281(%rip),%xmm0
  comisd 0x8(%rsp),%xmm0
  lea    D124(%rip),%r15
  lea    D301(%rip),%rax
  cmovbe %rax,%r15
  mov    %ebx,%edx
  mov    $0x21,%esi
  mov    %rbp,%rdi
  call   <memset@plt>
  jmp    L293
L43:
  sub    %eax,%ebx
  mov    %ebx,%edx
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  call   <memcpy@plt>
  movslq %r14d,%rax
  sub    %rax,%r13
  lea    0x0(%rbp,%r13,1),%rdi
  mov    %r14d,%edx
  mov    %r12,%rsi
  call   <memcpy@plt>
  jmp    L42
L111:
  movsd  D274(%rip),%xmm0
  cmp    $0x3,%ebx
  jg     L419
  movsd  D112(%rip),%xmm0
L419:
  lea    D59(%rip),%rdx
  mov    $0x20,%eax
  movsd  D38(%rip),%xmm1
L55:
  comisd 0x8(%rsp),%xmm0
  jbe    L365
  movsd  0x8(%rsp),%xmm3
  mulsd  %xmm1,%xmm3
  movsd  %xmm3,0x8(%rsp)
  add    $0x1,%rdx
  movzbl -0x1(%rdx),%eax
  test   %al,%al
  jne    L55
  mov    $0x0,%r15d
  jmp    L81
L222:
  mov    $0x0,%edx
  jmp    L467
L401:
  lea    0x11(%rsp),%rsi
  mov    %ebx,%edx
  mov    %rbp,%rdi
  call   <memcpy@plt>
  jmp    L404
L15:
  lea    D216(%rip),%r15
  jmp    L81
L351:
  mov    %ebx,%edx
  mov    $0x21,%esi
  mov    %rbp,%rdi
  call   <memset@plt>
  jmp    L42
L261:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D214
data_type: byte[8]
name: parse_data
arguments: label: D281
data_type: f64
name: parse_data
arguments: label: D21
data_type: f32[4]
name: parse_data
arguments: label: D260
data_type: f32[2]
name: parse_data
arguments: label: D83
data_type: string
name: parse_data
arguments: label: D140
data_type: string
name: parse_data
arguments: label: D206
data_type: byte[8]
name: parse_data
arguments: label: D118
data_type: byte[8]
name: parse_data
arguments: label: D145
data_type: byte[8]
name: parse_data
arguments: label: D51
data_type: byte[8]
name: parse_data
arguments: label: D159
data_type: byte[8]
name: parse_data
arguments: label: D311
data_type: f64
name: parse_data
arguments: label: D265
data_type: byte[8]
name: parse_data
arguments: label: D201
data_type: byte[16]
name: parse_data
arguments: label: D290
data_type: f64
name: parse_data
arguments: label: D289
data_type: f64
name: parse_data
arguments: label: D38
data_type: f64
name: parse_data
arguments: label: D169
data_type: string
name: parse_data
arguments: label: D286
data_type: string
name: parse_data
arguments: label: D46
data_type: string
name: parse_data
arguments: label: D49
data_type: f64[2]
name: parse_data
arguments: label: D270
data_type: string
name: parse_data
arguments: label: D124
data_type: string
name: parse_data
arguments: label: D301
data_type: string
name: parse_data
arguments: label: D274
data_type: byte[8]
name: parse_data
arguments: label: D112
data_type: byte[8]
name: parse_data
arguments: label: D59
data_type: string
name: parse_data
arguments: label: D216
data_type: string

tool: {"D214": [0xc0,0xfd,0xdd,0x76,0xd2,0x61,0x85,0x4a]}

tool: D281: 1

tool: {"D21": [0.0,-0.0,0.0,0.0]}

tool: {"D260": [0.0,0.0]}

tool: D83: %*d

tool: D140: NaN!

tool: {"D206": [0x76,0x03,0xaa,0x83,0x68,0xd5,0x89,0x45]}

tool: {"D118": [0xd6,0xfe,0x8d,0xac,0xa9,0x8d,0x54,0x45]}

tool: {"D145": [0x44,0x32,0x0b,0x8a,0x54,0x71,0x20,0x45]}

tool: {"D51": [0x3e,0xec,0x31,0x1b,0x47,0x89,0xf3,0x3a]}

tool: {"D159": [0xba,0x49,0x0c,0x02,0x2b,0x87,0x86,0x3f]}

tool: D311: 10

tool: {"D265": [0x33,0x33,0x33,0x33,0x33,0x33,0xe3,0x3f]}

tool: {"D201": [0x9a,0x99,0x99,0x99,0x99,0x99,0xd9,0x3f,0x00,0x00,0x00,0x00,0x00,0x40,0x8f,0x40]}

tool: D290: 999.4

tool: D289: 99.4

tool: D38: 1000

tool: 

tool: D286:  kMGTPEZYXWVUSRQONLJIHFDCBA

tool: D46: %.*f

tool: {"D49": [9.4,-0.0]}

tool: D270: %.*e

tool: D124: Low!

tool: D301: Huge

tool: {"D274": [0xb3,0xea,0x73,0xb5,0x15,0xfb,0xef,0x3f]}

tool: {"D112": [0x35,0xef,0x38,0x45,0x47,0x72,0xb9,0x3f]}

tool: D59: munpfazyxwvtsrqoljihgedcb

tool: D216: inf!

assistant: ```c
void si_sprintf(char *buff, double ival, int n_places, const int flags) {
  int i;
  char prefix = '#';
  const char *err_msg = NULL;
  const bool use_si_prefixes = !(flags & 1);
  const bool use_extended_prefixes = (flags & 2);
  const double extender = (use_extended_prefixes ? 1e+51 : 1);
  assert(n_places > 1);
  assert(n_places < 25);
  if (ival < 0.) {
    *buff++ = '-';
    n_places--;
    ival = -ival;
  } else if (flags & 4) {
    *buff++ = '+';
    n_places--;
  }
  buff[n_places] = '\0';
  if (!ival)
    sprintf(buff, "%*d", n_places, 0);
  else if (isnan(ival))
    err_msg = "NaN!";
  else if (!isfinite(ival))
    err_msg = "inf!";
  else if (ival > 999.39e+24 * extender || (ival > 99.39e+24 * extender && n_places == 3) || (ival > 9.939e+24 * extender && n_places == 2) || (ival < 1.01e-24 / extender && use_si_prefixes)) {
    char tbuff[100], *tptr;
    int len;
    sprintf(tbuff, "%.*e", n_places, ival);
    tptr = strchr(tbuff, 'e');
    if (tptr) {
      while (tptr[2] == '0')
        memmove(tptr + 2, tptr + 3, strlen(tptr + 2));
      len = strlen(tptr);
      if (len <= n_places) {
        memcpy(buff, tbuff, n_places - len);
        memcpy(buff + n_places - len, tptr, len);
        ival = 0.;
      }
    }
    if (ival)
      err_msg = (ival < 1. ? "Low!" : "Huge");
  } else if (ival < .011 && use_si_prefixes) {
    const char *lower_prefixes = " munpfazyxwvtsrqoljihgedcb";
    const double limit = (n_places > 3 ? .9994 : .0994);
    for (i = 0; lower_prefixes[i] && ival < limit; i++)
      ival *= 1000.;
    prefix = lower_prefixes[i];
  } else {
    double top_val = 1.;
    for (i = 0; ival > top_val - .6; i++)
      top_val *= 10.;
    if (i > n_places) {
      const char *prefixes = " kMGTPEZYXWVUSRQONLJIHFDCBA";
      const double limit = (n_places > 3 ? 999.4 : 99.4);
      for (i = 0; ival > limit && prefixes[i]; i++)
        ival /= 1000.;
      prefix = prefixes[i];
    }
  }
  if (!prefix || err_msg) {
    memset(buff, '!', n_places);
    if (err_msg) {
      const int len = (n_places > 4 ? 4 : n_places);
      memcpy(buff + (n_places - len) / 2, err_msg, len);
    }
  } else if (ival) {
    char tbuff[100];
    if (prefix != '#') {
      n_places--;
      buff[n_places] = prefix;
    }
    sprintf(tbuff, "%.*f", n_places, ival);
    if (*tbuff == '0')
      memcpy(buff, tbuff + 1, n_places);
    else
      memcpy(buff, tbuff, n_places);
    if (n_places == 1 && ival > 9.4)
      *buff = '!';
  }
}
```