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

```asm
<parse_float>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xa0,%rsp
  movsd  %xmm0,-0x88(%rbp)
  mov    %rdi,-0x90(%rbp)
  mov    %esi,%eax
  mov    %edx,-0x98(%rbp)
  mov    %al,-0x94(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x68(%rbp)
  movl   $0x0,-0x70(%rbp)
  cmpb   $0x47,-0x94(%rbp)
  je     L184
  cmpb   $0x45,-0x94(%rbp)
  jne    L274
L184:
  movl   $0x1,-0x70(%rbp)
  movzbl -0x94(%rbp),%eax
  add    $0x20,%eax
  mov    %al,-0x94(%rbp)
L274:
  cmpb   $0x67,-0x94(%rbp)
  jne    L73
  lea    -0x60(%rbp),%rcx
  lea    -0x7c(%rbp),%rdx
  lea    -0x80(%rbp),%rsi
  mov    -0x98(%rbp),%edi
  mov    -0x88(%rbp),%rax
  movq   %rax,%xmm0
  call   <ecvtbuf@plt>
  mov    %rax,-0x68(%rbp)
  mov    -0x80(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x6c(%rbp)
  cmpl   $0xfffffffc,-0x6c(%rbp)
  jl     L291
  mov    -0x98(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jg     L224
L291:
  movb   $0x65,-0x94(%rbp)
  subl   $0x1,-0x98(%rbp)
  jmp    L73
L224:
  movb   $0x66,-0x94(%rbp)
  mov    -0x80(%rbp),%eax
  sub    %eax,-0x98(%rbp)
L73:
  cmpb   $0x65,-0x94(%rbp)
  jne    L18
  mov    -0x98(%rbp),%eax
  lea    0x1(%rax),%edi
  lea    -0x60(%rbp),%rcx
  lea    -0x7c(%rbp),%rdx
  lea    -0x80(%rbp),%rsi
  mov    -0x88(%rbp),%rax
  movq   %rax,%xmm0
  call   <ecvtbuf@plt>
  mov    %rax,-0x68(%rbp)
  mov    -0x7c(%rbp),%eax
  test   %eax,%eax
  je     L32
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x90(%rbp)
  movb   $0x2d,(%rax)
L32:
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x90(%rbp)
  mov    -0x68(%rbp),%rdx
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  cmpl   $0x0,-0x98(%rbp)
  jle    L194
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x90(%rbp)
  movb   $0x2e,(%rax)
L194:
  mov    -0x68(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    -0x98(%rbp),%edx
  mov    -0x90(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <ee_bufcpy@plt>
  mov    -0x98(%rbp),%eax
  cltq
  add    %rax,-0x90(%rbp)
  cmpl   $0x0,-0x70(%rbp)
  je     L68
  mov    $0x45,%ecx
  jmp    L31
L68:
  mov    $0x65,%ecx
L31:
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x90(%rbp)
  mov    %cl,(%rax)
  mov    -0x80(%rbp),%eax
  test   %eax,%eax
  jne    L285
  pxor   %xmm0,%xmm0
  ucomisd -0x88(%rbp),%xmm0
  jp     L244
  pxor   %xmm0,%xmm0
  ucomisd -0x88(%rbp),%xmm0
  jne    L244
  movl   $0x0,-0x78(%rbp)
  jmp    L325
L244:
  movl   $0xffffffff,-0x78(%rbp)
  jmp    L325
L285:
  mov    -0x80(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x78(%rbp)
L325:
  cmpl   $0x0,-0x78(%rbp)
  jns    L351
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x90(%rbp)
  movb   $0x2d,(%rax)
  negl   -0x78(%rbp)
  jmp    L273
L351:
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x90(%rbp)
  movb   $0x2b,(%rax)
L273:
  mov    -0x78(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  mov    %edx,%ecx
  sub    %eax,%ecx
  mov    %ecx,%eax
  lea    0x30(%rax),%edx
  mov    -0x90(%rbp),%rax
  add    $0x2,%rax
  mov    %dl,(%rax)
  mov    -0x78(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x78(%rbp)
  mov    -0x78(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  mov    %edx,%ecx
  sub    %eax,%ecx
  mov    %ecx,%eax
  lea    0x30(%rax),%edx
  mov    -0x90(%rbp),%rax
  add    $0x1,%rax
  mov    %dl,(%rax)
  mov    -0x78(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x78(%rbp)
  mov    -0x78(%rbp),%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %edx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  add    %eax,%eax
  mov    %edx,%ecx
  sub    %eax,%ecx
  mov    %ecx,%eax
  add    $0x30,%eax
  mov    %eax,%edx
  mov    -0x90(%rbp),%rax
  mov    %dl,(%rax)
  addq   $0x3,-0x90(%rbp)
  jmp    L209
L18:
  cmpb   $0x66,-0x94(%rbp)
  jne    L209
  lea    -0x60(%rbp),%rcx
  lea    -0x7c(%rbp),%rdx
  lea    -0x80(%rbp),%rsi
  mov    -0x98(%rbp),%edi
  mov    -0x88(%rbp),%rax
  movq   %rax,%xmm0
  call   <fcvtbuf@plt>
  mov    %rax,-0x68(%rbp)
  mov    -0x7c(%rbp),%eax
  test   %eax,%eax
  je     L336
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x90(%rbp)
  movb   $0x2d,(%rax)
L336:
  mov    -0x68(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L317
  mov    -0x80(%rbp),%eax
  test   %eax,%eax
  jg     L129
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x90(%rbp)
  movb   $0x30,(%rax)
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x90(%rbp)
  movb   $0x2e,(%rax)
  movl   $0x0,-0x74(%rbp)
  jmp    L86
L24:
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x90(%rbp)
  movb   $0x30,(%rax)
  addl   $0x1,-0x74(%rbp)
L86:
  mov    -0x80(%rbp),%eax
  neg    %eax
  cmp    %eax,-0x74(%rbp)
  jl     L24
  jmp    L34
L167:
  mov    -0x68(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x68(%rbp)
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x90(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L34:
  mov    -0x68(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L167
  jmp    L209
L129:
  movl   $0x0,-0x74(%rbp)
  jmp    L359
L42:
  mov    -0x74(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x74(%rbp)
  mov    -0x80(%rbp),%edx
  cmp    %edx,%eax
  jne    L284
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x90(%rbp)
  movb   $0x2e,(%rax)
L284:
  mov    -0x68(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x68(%rbp)
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x90(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L359:
  mov    -0x68(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L42
  jmp    L209
L317:
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x90(%rbp)
  movb   $0x30,(%rax)
  cmpl   $0x0,-0x98(%rbp)
  jle    L209
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x90(%rbp)
  movb   $0x2e,(%rax)
  movl   $0x0,-0x74(%rbp)
  jmp    L263
L323:
  mov    -0x90(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x90(%rbp)
  movb   $0x30,(%rax)
  addl   $0x1,-0x74(%rbp)
L263:
  mov    -0x74(%rbp),%eax
  cmp    -0x98(%rbp),%eax
  jl     L323
L209:
  mov    -0x90(%rbp),%rax
  movb   $0x0,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L70
  call   <__stack_chk_fail@plt>
L70:
  leave
  ret
```

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';
}
```