user: Translate the below assembly code into C programming language:

```asm
<pftoa>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  movss  %xmm0,-0x34(%rbp)
  mov    %rdi,-0x40(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x20(%rbp)
  movss  -0x34(%rbp),%xmm0
  movss  %xmm0,-0x28(%rbp)
  movzwl -0x28(%rbp),%eax
  movzwl %ax,%eax
  mov    %rax,-0x18(%rbp)
  movzbl -0x26(%rbp),%eax
  and    $0x7f,%eax
  movzbl %al,%eax
  shl    $0x10,%rax
  add    %rax,-0x18(%rbp)
  addq   $0x800000,-0x18(%rbp)
  movzwl -0x26(%rbp),%eax
  shr    $0x7,%ax
  and    $0xff,%ah
  sub    $0x7f,%eax
  mov    %al,-0x29(%rbp)
  cmpb   $0x12,-0x29(%rbp)
  jle    L165
  mov    -0x40(%rbp),%rax
  movb   $0x49,(%rax)
  mov    -0x40(%rbp),%rax
  add    $0x1,%rax
  movb   $0x6e,(%rax)
  mov    -0x40(%rbp),%rax
  add    $0x2,%rax
  movb   $0x66,(%rax)
  mov    -0x40(%rbp),%rax
  add    $0x3,%rax
  movb   $0x0,(%rax)
  jmp    L184
L165:
  cmpb   $0xfd,-0x29(%rbp)
  jge    L27
  mov    -0x40(%rbp),%rax
  movb   $0x30,(%rax)
  mov    -0x40(%rbp),%rax
  add    $0x1,%rax
  movb   $0x0,(%rax)
  jmp    L184
L27:
  movl   $0x0,-0x20(%rbp)
  movzbl -0x25(%rbp),%eax
  and    $0xffffff80,%eax
  test   %al,%al
  je     L215
  mov    -0x40(%rbp),%rax
  movb   $0x2d,(%rax)
  addl   $0x1,-0x20(%rbp)
L215:
  movsbl -0x29(%rbp),%edx
  mov    $0x17,%eax
  sub    %edx,%eax
  mov    -0x18(%rbp),%rdx
  mov    %eax,%ecx
  shr    %cl,%rdx
  mov    %rdx,%rax
  mov    %eax,-0x1c(%rbp)
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x1c(%rbp),%eax
  mov    $0xa,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <itoa@plt>
  movl   $0x0,-0x24(%rbp)
  jmp    L78
L229:
  mov    -0x24(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L56
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  jmp    L117
L56:
  addl   $0x1,-0x24(%rbp)
L78:
  cmpl   $0x7,-0x24(%rbp)
  jle    L229
L117:
  cmpl   $0x5,-0x20(%rbp)
  jg     L167
  mov    -0x20(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x20(%rbp)
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movb   $0x2e,(%rax)
  movsbl -0x29(%rbp),%edx
  mov    $0x14,%eax
  sub    %edx,%eax
  mov    -0x18(%rbp),%rdx
  mov    %eax,%ecx
  shr    %cl,%rdx
  mov    %rdx,%rax
  and    $0x7,%eax
  cmp    $0x7,%rax
  ja     L89
  lea    0x0(,%rax,4),%rdx
  lea    D10(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D10(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  movb   $0x30,-0xb(%rbp)
  movb   $0x30,-0xa(%rbp)
  movb   $0x30,-0x9(%rbp)
  jmp    L89
  movb   $0x31,-0xb(%rbp)
  movb   $0x32,-0xa(%rbp)
  movb   $0x35,-0x9(%rbp)
  jmp    L89
  movb   $0x32,-0xb(%rbp)
  movb   $0x35,-0xa(%rbp)
  movb   $0x30,-0x9(%rbp)
  jmp    L89
  movb   $0x33,-0xb(%rbp)
  movb   $0x37,-0xa(%rbp)
  movb   $0x35,-0x9(%rbp)
  jmp    L89
  movb   $0x35,-0xb(%rbp)
  movb   $0x30,-0xa(%rbp)
  movb   $0x30,-0x9(%rbp)
  jmp    L89
  movb   $0x36,-0xb(%rbp)
  movb   $0x32,-0xa(%rbp)
  movb   $0x35,-0x9(%rbp)
  jmp    L89
  movb   $0x37,-0xb(%rbp)
  movb   $0x35,-0xa(%rbp)
  movb   $0x30,-0x9(%rbp)
  jmp    L89
  movb   $0x38,-0xb(%rbp)
  movb   $0x37,-0xa(%rbp)
  movb   $0x35,-0x9(%rbp)
  nop
L89:
  movl   $0x0,-0x24(%rbp)
  jmp    L55
L157:
  cmpl   $0x6,-0x20(%rbp)
  jg     L73
  mov    -0x20(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x20(%rbp)
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rax,%rdx
  mov    -0x24(%rbp),%eax
  cltq
  movzbl -0xb(%rbp,%rax,1),%eax
  mov    %al,(%rdx)
L73:
  addl   $0x1,-0x24(%rbp)
L55:
  cmpl   $0x2,-0x24(%rbp)
  jle    L157
  mov    -0x20(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L184
L167:
  nop
L184:
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L64
  call   <__stack_chk_fail@plt>
L64:
  leave
  ret
```

assistant: ```c
void pftoa(float value, char *buffer) {
  union {
    float f;
    struct {
      unsigned int mantissa_lo : 16;
      unsigned int mantissa_hi : 7;
      unsigned int exponent : 8;
      unsigned int sign : 1;
    };
  } helper;
  unsigned long mantissa;
  signed char exponent;
  unsigned int int_part;
  char frac_part[3];
  int i, count = 0;
  helper.f = value;
  mantissa = helper.mantissa_lo;
  mantissa += ((unsigned long)helper.mantissa_hi << 16);
  mantissa += 0x00800000;
  exponent = (signed char)helper.exponent - 127;
  if (exponent > 18) {
    buffer[0] = 'I';
    buffer[1] = 'n';
    buffer[2] = 'f';
    buffer[3] = '\0';
    return;
  }
  if (exponent < -3) {
    buffer[0] = '0';
    buffer[1] = '\0';
    return;
  }
  count = 0;
  if (helper.sign) {
    buffer[0] = '-';
    count++;
  }
  int_part = mantissa >> (23 - exponent);
  itoa(int_part, &buffer[count], 10);
  for (i = 0; i < 8; i++)
    if (buffer[i] == '\0') {
      count = i;
      break;
    }
  if (count > 5)
    return;
  buffer[count++] = '.';
  switch (0x7 & (mantissa >> (20 - exponent))) {
  case 0:
    frac_part[0] = '0';
    frac_part[1] = '0';
    frac_part[2] = '0';
    break;
  case 1:
    frac_part[0] = '1';
    frac_part[1] = '2';
    frac_part[2] = '5';
    break;
  case 2:
    frac_part[0] = '2';
    frac_part[1] = '5';
    frac_part[2] = '0';
    break;
  case 3:
    frac_part[0] = '3';
    frac_part[1] = '7';
    frac_part[2] = '5';
    break;
  case 4:
    frac_part[0] = '5';
    frac_part[1] = '0';
    frac_part[2] = '0';
    break;
  case 5:
    frac_part[0] = '6';
    frac_part[1] = '2';
    frac_part[2] = '5';
    break;
  case 6:
    frac_part[0] = '7';
    frac_part[1] = '5';
    frac_part[2] = '0';
    break;
  case 7:
    frac_part[0] = '8';
    frac_part[1] = '7';
    frac_part[2] = '5';
    break;
  }
  for (i = 0; i < 3; i++)
    if (count < 7)
      buffer[count++] = frac_part[i];
  buffer[count] = '\0';
}
```