user: 下面的汇编指令对应的C源代码是什么:

```asm
<tc_cbq_calc_maxidle>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %esi,-0x28(%rbp)
  mov    %edx,-0x2c(%rbp)
  mov    %ecx,-0x30(%rbp)
  mov    %r8d,-0x34(%rbp)
  mov    -0x30(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  pxor   %xmm2,%xmm2
  cvtsi2sd %eax,%xmm2
  movsd  D40(%rip),%xmm0
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  D40(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x2c(%rbp),%eax
  test   %rax,%rax
  js     L76
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L3
L76:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L3:
  mov    -0x24(%rbp),%eax
  test   %rax,%rax
  js     L72
  pxor   %xmm1,%xmm1
  cvtsi2sd %rax,%xmm1
  jmp    L123
L72:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm1,%xmm1
  cvtsi2sd %rdx,%xmm1
  addsd  %xmm1,%xmm1
L123:
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  D40(%rip),%xmm0
  subsd  -0x18(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x24(%rbp),%eax
  cmp    -0x28(%rbp),%eax
  je     L82
  cmpl   $0x0,-0x34(%rbp)
  je     L82
  mov    -0x2c(%rbp),%eax
  test   %rax,%rax
  js     L17
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L122
L17:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L122:
  mov    -0x28(%rbp),%eax
  test   %rax,%rax
  js     L112
  pxor   %xmm1,%xmm1
  cvtsi2sd %rax,%xmm1
  jmp    L18
L112:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm1,%xmm1
  cvtsi2sd %rdx,%xmm1
  addsd  %xmm1,%xmm1
L18:
  divsd  %xmm1,%xmm0
  subsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x34(%rbp),%eax
  test   %rax,%rax
  js     L109
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L83
L109:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L83:
  movq   D10(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  mov    -0x18(%rbp),%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  sub    $0x1,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  -0x8(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x8(%rbp),%xmm0
  comisd -0x20(%rbp),%xmm0
  jbe    L82
  movsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
L82:
  mov    -0x30(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x20(%rbp),%xmm1
  movsd  D48(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <tc_core_time2tick@plt>
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D40
datatype: f64
name: read_data
arguments: tag: D10
datatype: byte[8]
name: read_data
arguments: tag: D48
datatype: byte[8]

tool: D40: 1

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

tool: {"D48": [0x00,0x00,0x00,0x00,0x80,0x84,0x2e,0x41]}

assistant: ```c
unsigned tc_cbq_calc_maxidle(unsigned bndw, unsigned rate, unsigned avpkt, int ewma_log, unsigned maxburst) {
  double maxidle;
  double g = 1.0 - 1.0 / (1 << ewma_log);
  double xmt = (double)avpkt / bndw;
  maxidle = xmt * (1 - g);
  if (bndw != rate && maxburst) {
    double vxmt = (double)avpkt / rate - xmt;
    vxmt *= (pow(g, -(double)maxburst) - 1);
    if (vxmt > maxidle)
      maxidle = vxmt;
  }
  return tc_core_time2tick(maxidle * (1 << ewma_log) * 1000000);
}
```