user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<float2string>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  movss  %xmm0,-0x54(%rbp)
  mov    %edi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x48(%rbp)
  movl   $0x0,-0x44(%rbp)
  movl   $0x0,-0x40(%rbp)
  mov    -0x60(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  pxor   %xmm0,%xmm0
  comiss -0x54(%rbp),%xmm0
  jbe    L87
  movl   $0x1,-0x48(%rbp)
  movss  -0x54(%rbp),%xmm0
  movss  D20(%rip),%xmm1
  xorps  %xmm1,%xmm0
  movss  %xmm0,-0x54(%rbp)
L87:
  movl   $0x0,-0x40(%rbp)
  jmp    L57
L39:
  movss  -0x54(%rbp),%xmm1
  movss  D13(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x54(%rbp)
  addl   $0x1,-0x40(%rbp)
L57:
  mov    -0x40(%rbp),%eax
  cmp    -0x58(%rbp),%eax
  jl     L39
  movss  -0x54(%rbp),%xmm0
  addss  %xmm0,%xmm0
  cvttss2si %xmm0,%rax
  mov    %rax,-0x28(%rbp)
  movss  -0x54(%rbp),%xmm0
  movss  D4(%rip),%xmm2
  movaps %xmm0,%xmm1
  divss  %xmm2,%xmm1
  mov    -0x28(%rbp),%rax
  cqto
  shr    $0x3f,%rdx
  add    %rdx,%rax
  and    $0x1,%eax
  sub    %rdx,%rax
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm0
  addss  %xmm1,%xmm0
  cvttss2si %xmm0,%rax
  mov    %rax,-0x38(%rbp)
  jmp    L79
L72:
  cmpl   $0x0,-0x58(%rbp)
  jle    L49
  mov    -0x44(%rbp),%eax
  cmp    -0x58(%rbp),%eax
  jne    L49
  mov    -0x44(%rbp),%eax
  cltq
  movb   $0x2e,-0x20(%rbp,%rax,1)
  addl   $0x1,-0x44(%rbp)
  jmp    L79
L49:
  mov    -0x38(%rbp),%rcx
  movabs $0x6666666666666667,%rdx
  mov    %rcx,%rax
  imul   %rdx
  mov    %rdx,%rax
  sar    $0x2,%rax
  mov    %rcx,%rsi
  sar    $0x3f,%rsi
  sub    %rsi,%rax
  mov    %rax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  sub    %rax,%rcx
  mov    %rcx,%rdx
  mov    %edx,-0x3c(%rbp)
  mov    -0x3c(%rbp),%eax
  add    $0x30,%eax
  mov    %eax,%edx
  mov    -0x44(%rbp),%eax
  cltq
  mov    %dl,-0x20(%rbp,%rax,1)
  mov    -0x38(%rbp),%rcx
  movabs $0x6666666666666667,%rdx
  mov    %rcx,%rax
  imul   %rdx
  mov    %rdx,%rax
  sar    $0x2,%rax
  sar    $0x3f,%rcx
  mov    %rcx,%rdx
  sub    %rdx,%rax
  mov    %rax,-0x38(%rbp)
  addl   $0x1,-0x44(%rbp)
L79:
  cmpq   $0x0,-0x38(%rbp)
  jne    L72
  cmpl   $0x0,-0x48(%rbp)
  je     L70
  mov    -0x30(%rbp),%rax
  movb   $0x2d,(%rax)
  addq   $0x1,-0x30(%rbp)
L70:
  mov    -0x30(%rbp),%rax
  movb   $0x0,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L15
  call   <__stack_chk_fail@plt>
L15:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D20
type_guessed: byte[4]
name: retrieve_data
arguments: tag: D13
type_guessed: byte[4]
name: retrieve_data
arguments: tag: D4
type_guessed: byte[4]

tool: {"D20": [0x00,0x00,0x00,0x80]}

tool: {"D13": [0x00,0x00,0x20,0x41]}

tool: {"D4": [0x00,0x00,0x00,0x40]}

assistant: ```c
void float2string(float value, int decimal, char *valuestring) {
  int neg = 0;
  char tempstr[20];
  int i = 0;
  int j = 0;
  int c;
  long int val1, val2;
  char *tempstring;
  tempstring = valuestring;
  if (value < 0) {
    neg = 1;
    value = -value;
  }
  for (j = 0; j < decimal; ++j) {
    value = value * 10;
  }
  val1 = (value * 2);
  val2 = (value / 2) + (val1 % 2);
  while (val2 != 0) {
    if ((decimal > 0) && (i == decimal)) {
      tempstr[i] = (char)(0x2E);
      ++i;
    } else {
      c = (val2 % 10);
      tempstr[i] = (char)(c + 0x30);
      val2 = val2 / 10;
      ++i;
    }
  }
  if (neg) {
    *tempstring = '-';
    ++tempstring;
  }
  *tempstring = '\0';
}
```