user: Demonstrate the C code that generates the assembly output below:

```asm
<dtostrf>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %edi,%r13d
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x18,%rsp
  movsd  %xmm0,(%rsp)
  call   <isnan@plt>
  movsd  (%rsp),%xmm0
  test   %rax,%rax
  jne    L48
  movsd  %xmm0,(%rsp)
  call   <isinf@plt>
  movsd  (%rsp),%xmm0
  test   %rax,%rax
  jne    L10
  movsbl %r13b,%edx
  movzbl %bpl,%r14d
  test   %bpl,%bpl
  je     L169
  lea    0x1(%r14),%eax
  pxor   %xmm1,%xmm1
  sub    %eax,%edx
  comisd %xmm0,%xmm1
  ja     L79
  xor    %r13d,%r13d
L197:
  movsd  D99(%rip),%xmm1
  movsd  D92(%rip),%xmm2
  xor    %eax,%eax
  cs nopw 0x0(%rax,%rax,1)
L42:
  mulsd  %xmm2,%xmm1
  add    $0x1,%eax
  cmp    %al,%bl
  ja     L42
  movsd  D61(%rip),%xmm3
  divsd  %xmm1,%xmm3
L126:
  addsd  %xmm3,%xmm0
  mov    $0x1,%r15d
  movapd %xmm2,%xmm1
  comisd %xmm2,%xmm0
  jb     L62
  nopl   0x0(%rax,%rax,1)
L194:
  movapd %xmm1,%xmm3
  add    $0x1,%r15d
  mulsd  %xmm2,%xmm1
  comisd %xmm1,%xmm0
  jae    L194
  divsd  %xmm3,%xmm0
L62:
  mov    %edx,%eax
  sub    %r15d,%eax
  lea    -0x1(%rax),%edx
  test   %eax,%eax
  jle    L108
  lea    0x1(%rdx),%rbx
  mov    $0x20,%esi
  mov    %r12,%rdi
  movsd  %xmm2,0x8(%rsp)
  mov    %rbx,%rdx
  movsd  %xmm0,(%rsp)
  call   <memset@plt>
  movsd  (%rsp),%xmm0
  movsd  0x8(%rsp),%xmm2
  lea    (%r12,%rbx,1),%rdx
L95:
  test   %r13d,%r13d
  je     L190
  movb   $0x2d,(%rdx)
  add    $0x1,%rdx
L190:
  test   %bpl,%bpl
  lea    -0x1(%r15,%r14,1),%ecx
  setne  %r8b
  jmp    L60
  xchg   %ax,%ax
L1:
  test   %ecx,%ecx
  jle    L58
L41:
  sub    $0x1,%ecx
  mov    %rsi,%rdx
L60:
  cvttsd2si %xmm0,%eax
  mov    $0x9,%esi
  pxor   %xmm1,%xmm1
  cmp    %esi,%eax
  cmovg  %esi,%eax
  lea    0x1(%rdx),%rsi
  cvtsi2sd %eax,%xmm1
  mov    %eax,%edi
  or     $0x30,%edi
  mov    %dil,(%rdx)
  subsd  %xmm1,%xmm0
  mulsd  %xmm2,%xmm0
  cmp    %r14d,%ecx
  jne    L1
  test   %r8b,%r8b
  je     L1
  movb   $0x2e,0x1(%rdx)
  lea    0x2(%rdx),%rsi
  jmp    L41
  nopl   0x0(%rax)
L169:
  pxor   %xmm1,%xmm1
  comisd %xmm0,%xmm1
  jbe    L99
  xorpd  D15(%rip),%xmm0
  movsd  D27(%rip),%xmm3
  sub    $0x1,%edx
  mov    $0x1,%r13d
  movsd  D92(%rip),%xmm2
  jmp    L126
  nopl   0x0(%rax)
L58:
  movb   $0x0,0x1(%rdx)
L97:
  add    $0x18,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L48:
  lea    D95(%rip),%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  jmp    L97
  nopl   0x0(%rax)
L10:
  lea    D78(%rip),%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  jmp    L97
  nopl   0x0(%rax)
L108:
  mov    %r12,%rdx
  jmp    L95
  nopl   0x0(%rax,%rax,1)
L99:
  movsd  D27(%rip),%xmm3
  movsd  D92(%rip),%xmm2
  xor    %r13d,%r13d
  jmp    L126
L79:
  xorpd  D15(%rip),%xmm0
  sub    $0x1,%edx
  mov    $0x1,%r13d
  jmp    L197
```

tool_calls: name: unpack_data
arguments: label: D99
type_infered: f64
name: unpack_data
arguments: label: D92
type_infered: f64
name: unpack_data
arguments: label: D61
type_infered: f64
name: unpack_data
arguments: label: D15
type_infered: f32[4]
name: unpack_data
arguments: label: D27
type_infered: f32[2]
name: unpack_data
arguments: label: D95
type_infered: string
name: unpack_data
arguments: label: D78
type_infered: string

tool: D99: 2

tool: D92: 10

tool: D61: 1

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

tool: {"D27": [0.0,1.75]}

tool: D95: nan

tool: D78: inf

assistant: ```c
char *dtostrf(double number, signed char width, unsigned char prec, char *s) {
  bool negative = false;
  if (isnan(number)) {
    strcpy(s, "nan");
    return s;
  }
  if (isinf(number)) {
    strcpy(s, "inf");
    return s;
  }
  char *out = s;
  int fillme = width;
  if (prec > 0) {
    fillme -= (prec + 1);
  }
  if (number < 0.0) {
    negative = true;
    fillme--;
    number = -number;
  }
  double rounding = 2.0;
  for (uint8_t i = 0; i < prec; ++i)
    rounding *= 10.0;
  rounding = 1.0 / rounding;
  number += rounding;
  double tenpow = 1.0;
  int digitcount = 1;
  while (number >= 10.0 * tenpow) {
    tenpow *= 10.0;
    digitcount++;
  }
  number /= tenpow;
  fillme -= digitcount;
  while (fillme-- > 0) {
    *out++ = ' ';
  }
  if (negative)
    *out++ = '-';
  digitcount += prec;
  int8_t digit = 0;
  while (digitcount-- > 0) {
    digit = (int8_t)number;
    if (digit > 9)
      digit = 9;
    *out++ = (char)('0' | digit);
    if ((digitcount == prec) && (prec > 0)) {
      *out++ = '.';
    }
    number -= digit;
    number *= 10.0;
  }
  *out = 0;
  return s;
}
```