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

```asm
<gen_ucsbT_stf>:
  endbr64
  push   %r15
  mov    %r9,%r15
  push   %r14
  mov    %rdi,%r14
  mov    %rdx,%rdi
  push   %r13
  mov    %ecx,%r13d
  push   %r12
  mov    %rsi,%r12
  mov    %ecx,%esi
  push   %rbp
  mov    %r8,%rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x38,%rsp
  call   <zapit@plt>
  movss  (%r12),%xmm6
  movss  (%r15),%xmm3
  movss  0x0(%rbp),%xmm1
  mulss  %xmm3,%xmm6
  movaps %xmm6,%xmm0
  movss  %xmm6,0xc(%rsp)
  divss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  addsd  D63(%rip),%xmm0
  cvttsd2si %xmm0,%r12d
  cmp    %r13d,%r12d
  cmovg  %r13d,%r12d
  test   %r12d,%r12d
  jle    L1
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm3,%xmm3
  lea    -0x1(%r12),%eax
  mov    %r12d,%r13d
  cvtss2sd 0xc(%rsp),%xmm2
  mulsd  D73(%rip),%xmm2
  movss  0xc(%rsp),%xmm6
  mov    %rax,0x28(%rsp)
  xor    %r15d,%r15d
  divsd  %xmm3,%xmm2
  cvtsd2ss %xmm2,%xmm2
  movaps %xmm2,%xmm7
  subss  %xmm2,%xmm6
  addss  %xmm2,%xmm7
  movss  %xmm6,0x24(%rsp)
  movss  %xmm7,0x18(%rsp)
  jmp    L3
  nopl   (%rax)
L36:
  movss  0x18(%rsp),%xmm5
  comiss %xmm0,%xmm5
  ja     L10
  movss  0xc(%rsp),%xmm7
  pxor   %xmm1,%xmm1
  comiss %xmm0,%xmm7
  ja     L62
L78:
  movss  %xmm1,(%rbx,%r15,4)
  add    $0x1,%r15
  cmp    %r13,%r15
  je     L76
L27:
  movss  0x0(%rbp),%xmm1
L3:
  pxor   %xmm0,%xmm0
  cvtsi2ss %r15d,%xmm0
  mulss  %xmm1,%xmm0
  comiss %xmm0,%xmm2
  jbe    L36
  mulss  D127(%rip),%xmm0
  movss  %xmm2,0x20(%rsp)
  movaps %xmm0,%xmm1
  divss  %xmm2,%xmm1
  movaps %xmm1,%xmm0
  movss  %xmm1,0x1c(%rsp)
  call   <cos@plt>
  movss  0x1c(%rsp),%xmm1
  mulss  D52(%rip),%xmm1
  movsd  %xmm0,0x10(%rsp)
  movaps %xmm1,%xmm0
  call   <sin@plt>
  movsd  D12(%rip),%xmm1
  movsd  0x10(%rsp),%xmm3
  movapd %xmm0,%xmm4
  movss  0x20(%rsp),%xmm2
  mulsd  %xmm1,%xmm3
  mulsd  D56(%rip),%xmm4
  subsd  %xmm3,%xmm1
  addsd  %xmm4,%xmm1
  cvtsd2ss %xmm1,%xmm1
  movss  %xmm1,(%rbx,%r15,4)
  add    $0x1,%r15
  cmp    %r13,%r15
  jne    L27
L76:
  mov    0x28(%rsp),%rax
  movss  0x0(%rbp),%xmm2
  pxor   %xmm0,%xmm0
  lea    0x4(%rbx,%rax,4),%rdx
  mov    %rbx,%rax
  nopl   0x0(%rax)
L113:
  movss  (%rax),%xmm1
  add    $0x4,%rax
  mulss  %xmm2,%xmm1
  addss  %xmm1,%xmm0
  cmp    %rdx,%rax
  jne    L113
  pxor   %xmm6,%xmm6
  comiss %xmm0,%xmm6
  jae    L1
  movss  (%r14),%xmm1
  divss  %xmm0,%xmm1
  nopl   0x0(%rax,%rax,1)
L123:
  movss  (%rbx),%xmm0
  add    $0x4,%rbx
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x4(%rbx)
  cmp    %rdx,%rbx
  jne    L123
  jmp    L98
  nopl   0x0(%rax,%rax,1)
L10:
  movaps %xmm0,%xmm3
  movss  %xmm2,0x1c(%rsp)
  mulss  D127(%rip),%xmm0
  subss  %xmm2,%xmm3
  mulss  D127(%rip),%xmm3
  divss  0x24(%rsp),%xmm3
  movss  %xmm3,0x20(%rsp)
  divss  %xmm2,%xmm0
  call   <cos@plt>
  movss  0x20(%rsp),%xmm3
  movsd  %xmm0,0x10(%rsp)
  movaps %xmm3,%xmm0
  call   <cos@plt>
  movsd  0x10(%rsp),%xmm1
  movss  0x1c(%rsp),%xmm2
  movapd %xmm0,%xmm3
  movsd  D12(%rip),%xmm0
  mulsd  D1(%rip),%xmm3
  mulsd  %xmm1,%xmm0
  movsd  D44(%rip),%xmm1
  subsd  %xmm0,%xmm1
  addsd  %xmm3,%xmm1
  cvtsd2ss %xmm1,%xmm1
  jmp    L78
  nopl   0x0(%rax,%rax,1)
L62:
  subss  %xmm2,%xmm0
  mulss  D127(%rip),%xmm0
  movss  %xmm2,0x10(%rsp)
  divss  0x24(%rsp),%xmm0
  call   <cos@plt>
  pxor   %xmm1,%xmm1
  movss  0x10(%rsp),%xmm2
  mulsd  D1(%rip),%xmm0
  addsd  D1(%rip),%xmm0
  cvtsd2ss %xmm0,%xmm1
  jmp    L78
L1:
  xor    %r12d,%r12d
L98:
  add    $0x38,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D63
data_type: f64
name: retrieve_data
arguments: tag: D73
data_type: f64
name: retrieve_data
arguments: tag: D127
data_type: f32
name: retrieve_data
arguments: tag: D52
data_type: byte[4]
name: retrieve_data
arguments: tag: D12
data_type: f64
name: retrieve_data
arguments: tag: D56
data_type: f64
name: retrieve_data
arguments: tag: D1
data_type: f64
name: retrieve_data
arguments: tag: D44
data_type: f64

tool: D63: 0.5

tool: D73: 0.13

tool: D127: 3.141592654

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

tool: D12: 0.7

tool: D56: 0.6

tool: D1: 0.3

tool: D44: 1

assistant: ```c
int gen_ucsbT_stf(float *slip, float *t0, float *stf, int nt, float *dt, float *beta) {
  int it, nstf;
  float tau, tau1, tau2, tau1x2, arg1, arg2;
  float sum, t, alpha;
  float pi = 3.141592654;
  zapit(stf, nt);
  tau = (*beta) * (*t0);
  tau1 = 0.13 * tau / (*beta);
  tau2 = tau - tau1;
  tau1x2 = 2.0 * tau1;
  nstf = (int)((tau) / (*dt) + 0.5);
  if (nstf > nt)
    nstf = nt;
  if (nstf == 0)
    return (0);
  for (it = 0; it < nstf; it++) {
    t = it * (*dt);
    alpha = 0.0;
    if (t < tau1) {
      arg1 = pi * t / tau1;
      arg2 = 0.5 * arg1;
      alpha = 0.7 - 0.7 * cos(arg1) + 0.6 * sin(arg2);
    } else if (t < tau1x2) {
      arg1 = pi * t / tau1;
      arg2 = pi * (t - tau1) / tau2;
      alpha = 1.0 - 0.7 * cos(arg1) + 0.3 * cos(arg2);
    } else if (t < tau) {
      arg1 = pi * (t - tau1) / tau2;
      alpha = 0.3 + 0.3 * cos(arg1);
    }
    stf[it] = alpha;
  }
  sum = 0.0;
  for (it = 0; it < nstf; it++)
    sum = sum + (*dt) * stf[it];
  if (sum <= 0.0)
    return (0);
  sum = (*slip) / sum;
  for (it = 0; it < nstf; it++)
    stf[it] = stf[it] * sum;
  return (nstf);
}
```