user: Converte this assembly snippet into its equivalent C code:

```asm
<parse_float>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x88,%rsp
  mov    %fs:0x28,%rdx
  mov    %rdx,0x78(%rsp)
  xor    %edx,%edx
  mov    %esi,%edx
  and    $0xfffffffd,%edx
  cmp    $0x45,%dl
  jne    L269
  lea    0x20(%rsi),%eax
  mov    $0x1,%r12d
  cmp    $0x67,%al
  je     L134
L139:
  cmp    $0x65,%al
  je     L70
  cmp    $0x66,%al
  je     L316
L51:
  movb   $0x0,(%rbx)
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L142
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L269:
  mov    %esi,%eax
  xor    %r12d,%r12d
  cmp    $0x67,%al
  jne    L139
L134:
  lea    0x20(%rsp),%r15
  lea    0x1c(%rsp),%r14
  mov    %ebp,%edi
  movsd  %xmm0,0x8(%rsp)
  lea    0x18(%rsp),%r13
  mov    %r14,%rdx
  mov    %r15,%rcx
  mov    %r13,%rsi
  call   <ecvtbuf@plt>
  mov    0x18(%rsp),%edx
  movsd  0x8(%rsp),%xmm0
  lea    -0x1(%rdx),%eax
  cmp    $0xfffffffc,%eax
  jl     L129
  cmp    %eax,%ebp
  jle    L129
  sub    %edx,%ebp
L151:
  mov    %r14,%rdx
  mov    %r15,%rcx
  mov    %r13,%rsi
  mov    %ebp,%edi
  call   <fcvtbuf@plt>
  mov    0x1c(%rsp),%edx
  mov    %rax,%r12
  test   %edx,%edx
  je     L132
  movb   $0x2d,(%rbx)
  add    $0x1,%rbx
L132:
  movzbl (%r12),%edx
  test   %dl,%dl
  je     L18
  mov    0x18(%rsp),%esi
  test   %esi,%esi
  jle    L211
  lea    0x1(%r12),%rax
  mov    %rbx,%rcx
  neg    %r12d
  jmp    L290
  cs nopw 0x0(%rax,%rax,1)
L50:
  lea    (%r12,%rax,1),%edx
  cmp    %edx,%esi
  jne    L108
  movb   $0x2e,0x1(%rcx)
  lea    0x2(%rcx),%rbx
L108:
  movzbl (%rax),%edx
  mov    %rbx,%rcx
  add    $0x1,%rax
L290:
  mov    %dl,(%rcx)
  add    $0x1,%rbx
  cmpb   $0x0,(%rax)
  jne    L50
  jmp    L51
  nopw   0x0(%rax,%rax,1)
L70:
  lea    0x1(%rbp),%edi
  lea    0x20(%rsp),%r15
  lea    0x1c(%rsp),%r14
  lea    0x18(%rsp),%r13
L116:
  mov    %r15,%rcx
  mov    %r14,%rdx
  mov    %r13,%rsi
  movsd  %xmm0,0x8(%rsp)
  call   <ecvtbuf@plt>
  mov    0x1c(%rsp),%ecx
  movsd  0x8(%rsp),%xmm0
  test   %ecx,%ecx
  jne    L62
L172:
  movzbl (%rax),%edx
  lea    0x1(%rbx),%r13
  mov    %dl,(%rbx)
  test   %ebp,%ebp
  jle    L190
  movb   $0x2e,0x1(%rbx)
  lea    0x2(%rbx),%r13
L190:
  mov    %ebp,%edx
  lea    0x1(%rax),%rsi
  mov    %r13,%rdi
  movslq %ebp,%rbp
  add    %r13,%rbp
  movsd  %xmm0,0x8(%rsp)
  call   <ee_bufcpy@plt>
  cmp    $0x1,%r12d
  sbb    %eax,%eax
  and    $0x20,%eax
  add    $0x45,%eax
  mov    %al,0x0(%rbp)
  mov    0x18(%rsp),%eax
  test   %eax,%eax
  jne    L3
  movsd  0x8(%rsp),%xmm0
  mov    $0x30,%edx
  mov    $0x30,%eax
  ucomisd D9(%rip),%xmm0
  jp     L311
  mov    $0x30,%ecx
  je     L204
L311:
  mov    $0x31,%ecx
L256:
  lea    0x2(%rbp),%rbx
  mov    $0x2d,%esi
  jmp    L179
  nop
L3:
  mov    %eax,%ecx
  sub    $0x1,%ecx
  js     L140
  movslq %ecx,%rax
  mov    %ecx,%edx
  mov    $0xcccccccd,%edi
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  lea    (%rax,%rax,4),%edx
  add    %edx,%edx
  sub    %edx,%ecx
  mov    %eax,%edx
  imul   %rdi,%rdx
  add    $0x30,%ecx
  shr    $0x23,%rdx
  lea    (%rdx,%rdx,4),%esi
  add    %esi,%esi
  sub    %esi,%eax
  mov    %edx,%esi
  imul   %rdi,%rsi
  add    $0x30,%eax
  shr    $0x23,%rsi
  lea    (%rsi,%rsi,4),%esi
  add    %esi,%esi
  sub    %esi,%edx
  add    $0x30,%edx
L204:
  lea    0x2(%rbp),%rbx
  mov    $0x2b,%esi
L179:
  mov    %sil,0x1(%rbp)
  add    $0x3,%rbx
  mov    %cl,-0x1(%rbx)
  mov    %al,-0x2(%rbx)
  mov    %dl,-0x3(%rbx)
  jmp    L51
  cs nopw 0x0(%rax,%rax,1)
L62:
  movb   $0x2d,(%rbx)
  add    $0x1,%rbx
  jmp    L172
  nopl   0x0(%rax)
L129:
  mov    %ebp,%edi
  sub    $0x1,%ebp
  jmp    L116
  nopw   0x0(%rax,%rax,1)
L140:
  mov    $0x1,%ecx
  mov    $0xcccccccd,%edi
  sub    %eax,%ecx
  mov    %ecx,%eax
  imul   %rdi,%rax
  shr    $0x23,%rax
  lea    (%rax,%rax,4),%edx
  add    %edx,%edx
  sub    %edx,%ecx
  mov    %eax,%edx
  imul   %rdi,%rdx
  add    $0x30,%ecx
  shr    $0x23,%rdx
  lea    (%rdx,%rdx,4),%esi
  add    %esi,%esi
  sub    %esi,%eax
  mov    %edx,%esi
  imul   %rdi,%rsi
  add    $0x30,%eax
  shr    $0x23,%rsi
  lea    (%rsi,%rsi,4),%esi
  add    %esi,%esi
  sub    %esi,%edx
  add    $0x30,%edx
  jmp    L256
  nopl   (%rax)
L18:
  movb   $0x30,(%rbx)
  test   %ebp,%ebp
  jle    L227
  movb   $0x2e,0x1(%rbx)
  lea    0x2(%rbx),%rcx
  movslq %ebp,%rbp
  mov    $0x30,%esi
  mov    %rbp,%rdx
  mov    %rcx,%rdi
  call   <memset@plt>
  lea    (%rax,%rbp,1),%rbx
  jmp    L51
  nop
L211:
  mov    $0x2e30,%eax
  lea    0x2(%rbx),%rcx
  mov    %ax,(%rbx)
  je     L177
  mov    %esi,%ebx
  mov    $0x1,%eax
  mov    %rcx,%rdi
  not    %ebx
  add    $0x1,%rbx
  test   %esi,%esi
  mov    $0x30,%esi
  cmovns %rax,%rbx
  mov    %rbx,%rdx
  call   <memset@plt>
  add    %rax,%rbx
L339:
  movzbl (%r12),%eax
  test   %al,%al
  je     L51
  nopl   0x0(%rax)
L288:
  add    $0x1,%r12
  mov    %al,(%rbx)
  add    $0x1,%rbx
  movzbl (%r12),%eax
  test   %al,%al
  jne    L288
  jmp    L51
L227:
  add    $0x1,%rbx
  jmp    L51
L316:
  lea    0x20(%rsp),%r15
  lea    0x1c(%rsp),%r14
  lea    0x18(%rsp),%r13
  jmp    L151
L177:
  mov    %rcx,%rbx
  jmp    L339
L142:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D9
type_infered: f64

tool: D9: 0

assistant: ```c
void parse_float(double value, char *buffer, char fmt, int precision) {
  int decpt, sign, exp, pos;
  char *fdigits = NULL;
  char cvtbuf[80];
  int capexp = 0;
  int magnitude;
  if (fmt == 'G' || fmt == 'E') {
    capexp = 1;
    fmt += 'a' - 'A';
  }
  if (fmt == 'g') {
    fdigits = ecvtbuf(value, precision, &decpt, &sign, cvtbuf);
    magnitude = decpt - 1;
    if (magnitude < -4 || magnitude > precision - 1) {
      fmt = 'e';
      precision -= 1;
    } else {
      fmt = 'f';
      precision -= decpt;
    }
  }
  if (fmt == 'e') {
    fdigits = ecvtbuf(value, precision + 1, &decpt, &sign, cvtbuf);
    if (sign)
      *buffer++ = '-';
    *buffer++ = *fdigits;
    if (precision > 0)
      *buffer++ = '.';
    ee_bufcpy(buffer, fdigits + 1, precision);
    buffer += precision;
    *buffer++ = capexp ? 'E' : 'e';
    if (decpt == 0) {
      if (value == 0.0)
        exp = 0;
      else
        exp = -1;
    } else
      exp = decpt - 1;
    if (exp < 0) {
      *buffer++ = '-';
      exp = -exp;
    } else
      *buffer++ = '+';
    buffer[2] = (exp % 10) + '0';
    exp = exp / 10;
    buffer[1] = (exp % 10) + '0';
    exp = exp / 10;
    buffer[0] = (exp % 10) + '0';
    buffer += 3;
  } else if (fmt == 'f') {
    fdigits = fcvtbuf(value, precision, &decpt, &sign, cvtbuf);
    if (sign)
      *buffer++ = '-';
    if (*fdigits) {
      if (decpt <= 0) {
        *buffer++ = '0';
        *buffer++ = '.';
        for (pos = 0; pos < -decpt; pos++)
          *buffer++ = '0';
        while (*fdigits)
          *buffer++ = *fdigits++;
      } else {
        pos = 0;
        while (*fdigits) {
          if (pos++ == decpt)
            *buffer++ = '.';
          *buffer++ = *fdigits++;
        }
      }
    } else {
      *buffer++ = '0';
      if (precision > 0) {
        *buffer++ = '.';
        for (pos = 0; pos < precision; pos++)
          *buffer++ = '0';
      }
    }
  }
  *buffer = '\0';
}
```