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

```asm
<price_to_str>:
  endbr64
  push   %r14
  push   %r13
  cvttss2si %xmm0,%r13d
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rsi,%rbx
  mov    %rcx,%rsi
  mov    %r13d,%edx
  test   %rcx,%rcx
  jne    L8
  pxor   %xmm1,%xmm1
  cvtsi2ss %r13d,%xmm1
  subss  %xmm1,%xmm0
  mulss  D60(%rip),%xmm0
  pxor   %xmm1,%xmm1
  cvttss2si %xmm0,%eax
  movaps %xmm0,%xmm2
  cvtsi2ss %eax,%xmm1
  subss  %xmm1,%xmm2
  movss  D78(%rip),%xmm1
  comiss %xmm2,%xmm1
  jbe    L32
L27:
  pxor   %xmm6,%xmm6
  ucomiss %xmm6,%xmm0
  jp     L58
  je     L26
L58:
  movss  D36(%rip),%xmm4
  movaps %xmm0,%xmm1
  pxor   %xmm2,%xmm2
  pxor   %xmm3,%xmm3
  movsd  D133(%rip),%xmm5
  cvtss2sd %xmm0,%xmm2
  mulss  %xmm4,%xmm1
  mulsd  %xmm5,%xmm2
  cvttss2si %xmm1,%eax
  cvtsi2ss %eax,%xmm3
  cvtss2sd %xmm3,%xmm3
  ucomisd %xmm3,%xmm2
  jp     L86
  mov    $0x8,%eax
  jne    L86
  nopl   0x0(%rax)
L109:
  pxor   %xmm3,%xmm3
  movaps %xmm1,%xmm0
  pxor   %xmm2,%xmm2
  sub    $0x1,%eax
  cvtss2sd %xmm1,%xmm3
  mulss  %xmm4,%xmm1
  mulsd  %xmm5,%xmm3
  cvttss2si %xmm1,%edx
  cvtsi2ss %edx,%xmm2
  cvtss2sd %xmm2,%xmm2
  ucomisd %xmm2,%xmm3
  jp     L77
  je     L109
L77:
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
L84:
  test   %r13d,%r13d
  js     L127
L23:
  cvttss2si %xmm0,%r14d
  movsd  D62(%rip),%xmm0
  mov    %r14d,(%r12)
  call   <pow@plt>
  mov    %r13d,%edx
  mov    %r14d,%ecx
  lea    D8(%rip),%rsi
  mov    %eax,(%rbx)
  xor    %eax,%eax
  mov    %r13d,0x0(%rbp)
  lea    D79(%rip),%r13
  mov    (%rbx),%r8d
  mov    %r13,%rdi
  call   <sprintf@plt>
  pop    %rbx
  mov    %r13,%rax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L32:
  movss  D15(%rip),%xmm3
  movaps %xmm3,%xmm4
  subss  %xmm2,%xmm4
  comiss %xmm4,%xmm1
  jbe    L57
  addss  %xmm3,%xmm0
  jmp    L27
  nopl   (%rax)
L57:
  lea    D58(%rip),%rsi
L8:
  lea    D79(%rip),%r13
  xor    %eax,%eax
  mov    %r13,%rdi
  call   <sprintf@plt>
  movl   $0x0,0x0(%rbp)
  mov    %r13,%rax
  movl   $0x0,(%rbx)
  pop    %rbx
  movl   $0x0,(%r12)
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L26:
  movl   $0x0,(%rbx)
  mov    %r13d,%edx
  lea    D69(%rip),%rsi
  xor    %eax,%eax
  movl   $0x0,(%r12)
  mov    %r13d,0x0(%rbp)
  lea    D79(%rip),%r13
  mov    %r13,%rdi
  call   <sprintf@plt>
  pop    %rbx
  mov    %r13,%rax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L127:
  comiss %xmm0,%xmm6
  jbe    L23
  xorps  D29(%rip),%xmm0
  jmp    L23
  nopl   (%rax)
L86:
  movss  D30(%rip),%xmm1
  jmp    L84
```

tool_calls: name: retrieve_data
arguments: label: D60
type_guessed: f32
name: retrieve_data
arguments: label: D78
type_guessed: byte[4]
name: retrieve_data
arguments: label: D36
type_guessed: byte[4]
name: retrieve_data
arguments: label: D133
type_guessed: f32[2]
name: retrieve_data
arguments: label: D62
type_guessed: f64
name: retrieve_data
arguments: label: D8
type_guessed: string
name: retrieve_data
arguments: label: D15
type_guessed: f32
name: retrieve_data
arguments: label: D58
type_guessed: string
name: retrieve_data
arguments: label: D69
type_guessed: string
name: retrieve_data
arguments: label: D29
type_guessed: byte[16]
name: retrieve_data
arguments: label: D30
type_guessed: byte[4]

tool: D60: 256

tool: {"D78": [0x00,0x00,0x00,0x3b]}

tool: {"D36": [0x00,0x00,0x00,0x3f]}

tool: {"D133": [0.0,1.75]}

tool: D62: 2

tool: D8: %d %d/%d

tool: D15: 1

tool: D58: %f

tool: D69: %d

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

tool: {"D30": [0x00,0x00,0x00,0x41]}

assistant: ```c
char *price_to_str(float price, int *numorator, int *demoninator, int *decimal, char *fltfmt) {
  static char rtn[64];
  int whole = (int)price;
  float dec = ((price) - (float)(int)(price)), numr;
  if (fltfmt) {
    sprintf(rtn, fltfmt, price);
    *numorator = *demoninator = *decimal = 0;
    return rtn;
  }
  numr = dec * 256;
  {
    float rdec = ((numr) - (float)(int)(numr));
    if (rdec < ((1.0 / 256.0) / 2.0))
      ;
    else if ((1 - rdec) < ((1.0 / 256.0) / 2.0))
      ++numr;
    else {
      sprintf(rtn, "%f", price);
      *numorator = *demoninator = *decimal = 0;
      return rtn;
    }
  }
  if (numr != 0) {
    int cnt = 8;
    while ((float)(numr) / 2.0 == (float)(int)(numr / 2)) {
      numr /= 2;
      --cnt;
    }
    if ((whole < 0) && (numr < 0.0))
      numr = -numr;
    *numorator = (int)numr;
    *demoninator = (int)pow(2.0, (float)cnt);
    *decimal = whole;
    sprintf(rtn, "%d %d/%d", whole, (int)numr, *demoninator);
  } else {
    *numorator = *demoninator = 0;
    *decimal = whole;
    sprintf(rtn, "%d", whole);
  }
  return rtn;
}
```