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

```asm
<gds_write_float>:
  endbr64
  push   %r12
  pxor   %xmm5,%xmm5
  xor    %ecx,%ecx
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  comiss %xmm0,%xmm5
  movb   $0x0,0x17(%rsp)
  jbe    L99
  movaps %xmm5,%xmm7
  mov    $0x1,%ecx
  subss  %xmm0,%xmm7
  movaps %xmm7,%xmm0
L99:
  movss  D43(%rip),%xmm2
  movss  D65(%rip),%xmm1
  mov    $0x1,%eax
  comiss %xmm2,%xmm0
  jb     L135
  nopl   0x0(%rax,%rax,1)
L46:
  mulss  %xmm1,%xmm0
  mov    %eax,%edx
  add    $0x1,%eax
  comiss %xmm2,%xmm0
  jae    L46
L104:
  pxor   %xmm6,%xmm6
  ucomiss %xmm6,%xmm0
  jp     L56
  jne    L56
L20:
  lea    -0x40(%rdx),%eax
  add    $0x40,%edx
  test   %ecx,%ecx
  mov    %ebp,%edi
  cmovne %eax,%edx
  lea    0x16(%rsp),%rsi
  movss  %xmm0,0x8(%rsp)
  mov    $0x7,%ebx
  lea    0x17(%rsp),%r12
  mov    %dl,0x16(%rsp)
  mov    $0x1,%edx
  call   <write@plt>
  movss  0x8(%rsp),%xmm0
  jmp    L143
  nopl   0x0(%rax)
L49:
  addss  D17(%rip),%xmm2
  cvttss2si %xmm2,%eax
L9:
  mov    $0x1,%edx
  mov    %r12,%rsi
  mov    %ebp,%edi
  movsd  %xmm1,0x8(%rsp)
  mov    %al,0x17(%rsp)
  call   <write@plt>
  movzbl 0x17(%rsp),%eax
  pxor   %xmm0,%xmm0
  pxor   %xmm4,%xmm4
  movsd  0x8(%rsp),%xmm1
  cvtsi2sd %eax,%xmm0
  addsd  %xmm4,%xmm0
  subsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtsd2ss %xmm1,%xmm0
  sub    $0x1,%ebx
  je     L105
L143:
  pxor   %xmm1,%xmm1
  pxor   %xmm3,%xmm3
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm1
  mulsd  D9(%rip),%xmm1
  comiss %xmm3,%xmm0
  cvttsd2si %xmm1,%eax
  cvtsi2ss %eax,%xmm2
  jae    L49
  subss  D17(%rip),%xmm2
  cvttss2si %xmm2,%eax
  jmp    L9
  nopl   0x0(%rax)
L105:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L14
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L56:
  movss  D65(%rip),%xmm1
  movss  D64(%rip),%xmm2
  lea    -0x1(%rdx),%eax
  comiss %xmm0,%xmm1
  jbe    L20
  nopl   0x0(%rax)
L63:
  mulss  %xmm2,%xmm0
  mov    %eax,%edx
  sub    $0x1,%eax
  comiss %xmm0,%xmm1
  jbe    L20
  mulss  %xmm2,%xmm0
  mov    %eax,%edx
  sub    $0x1,%eax
  comiss %xmm0,%xmm1
  ja     L63
  jmp    L20
  nopl   (%rax)
L135:
  xor    %edx,%edx
  jmp    L104
L14:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D43
datatype: f32
name: retrieve_data
arguments: label: D65
datatype: f32
name: retrieve_data
arguments: label: D17
datatype: f32
name: retrieve_data
arguments: label: D9
datatype: f64
name: retrieve_data
arguments: label: D64
datatype: f32

tool: D43: 1

tool: D65: 0.0625

tool: D17: 1e-06

tool: D9: 256

tool: D64: 16

assistant: ```c
void gds_write_float(int fd, float x) {
  int isNegative;
  int i;
  float real;
  unsigned char exponent, b;
  float G_epsilon;
  b = 0;
  G_epsilon = 0.000001;
  isNegative = 0;
  x = x;
  if (x < 0.0) {
    isNegative = 1;
    x = 0 - x;
  }
  exponent = 0;
  while (x >= 1.0) {
    exponent++;
    x = (x / 16.0);
  }
  if (x != 0) {
    while (x < 0.0625) {
      exponent--;
      x = (x * 16.0);
    }
  }
  if (isNegative) {
    exponent += 192;
  } else {
    exponent += 64;
  }
  write(fd, &exponent, 1);
  for (i = 1; i <= 7; i++) {
    if (x >= 0) {
      b = (int)(x * 256.0) + G_epsilon;
    } else {
      b = (int)(x * 256.0) - G_epsilon;
    }
    write(fd, &b, 1);
    x = x * 256.0 - (b + 0.0);
  }
}
```