user: 这段汇编代码用C语言表示是什么样的？

```asm
<quantum_frac_approx>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x44(%rbp)
  mov    -0x38(%rbp),%rax
  mov    (%rax),%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  mov    -0x40(%rbp),%rax
  mov    (%rax),%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x8(%rbp)
  movss  -0x8(%rbp),%xmm0
  movss  %xmm0,-0x24(%rbp)
  movl   $0x0,-0x20(%rbp)
  movl   $0x1,-0x1c(%rbp)
  movl   $0x1,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  movl   $0x0,-0xc(%rbp)
L10:
  pxor   %xmm1,%xmm1
  cvtss2sd -0x24(%rbp),%xmm1
  movsd  D14(%rip),%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x4(%rbp)
  pxor   %xmm0,%xmm0
  cvtss2sd -0x24(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x4(%rbp),%xmm1
  movsd  D14(%rip),%xmm2
  subsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x24(%rbp)
  movss  D10(%rip),%xmm0
  divss  -0x24(%rbp),%xmm0
  movss  %xmm0,-0x24(%rbp)
  mov    -0x4(%rbp),%eax
  imul   -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %eax,%edx
  mov    -0x44(%rbp),%eax
  mov    $0x1,%esi
  mov    %eax,%ecx
  shl    %cl,%esi
  mov    %esi,%eax
  cmp    %eax,%edx
  jg     L23
  mov    -0x4(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x4(%rbp),%eax
  imul   -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x18(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x10(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0xc(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd -0x8(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movq   D7(%rip),%xmm1
  andpd  %xmm1,%xmm0
  mov    -0x44(%rbp),%eax
  mov    $0x2,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  pxor   %xmm2,%xmm2
  cvtsi2sd %eax,%xmm2
  movsd  D23(%rip),%xmm1
  divsd  %xmm2,%xmm1
  comisd %xmm1,%xmm0
  ja     L10
  jmp    L13
L23:
  nop
L13:
  mov    -0x38(%rbp),%rax
  mov    -0x10(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x40(%rbp),%rax
  mov    -0xc(%rbp),%edx
  mov    %edx,(%rax)
  nop
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D14
type: f64
name: disassemble_data
arguments: tag: D10
type: f32
name: disassemble_data
arguments: tag: D7
type: qword
name: disassemble_data
arguments: tag: D23
type: byte[8]

tool: D14: 5e-06

tool: D10: 1

tool: D7: 9223372036854775807

tool: {"D23": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

assistant: ```c
void quantum_frac_approx(int *a, int *b, int width) {
  float f = (float)*a / *b;
  float g = f;
  int i, num2 = 0, den2 = 1, num1 = 1, den1 = 0, num = 0, den = 0;
  do {
    i = (int)(g + 0.000005);
    g -= i - 0.000005;
    g = 1.0 / g;
    if (i * den1 + den2 > 1 << width)
      break;
    num = i * num1 + num2;
    den = i * den1 + den2;
    num2 = num1;
    den2 = den1;
    num1 = num;
    den1 = den;
  } while (fabs(((double)num / den) - f) > 1.0 / (2 * (1 << width)));
  *a = num;
  *b = den;
  return;
}
```