user: Please show me the C implementation that matches the assembly code listed below:

```asm
<fa_adjust_thr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8,-0x48(%rbp)
  mov    %r9,-0x50(%rbp)
  movss  D7(%rip),%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  D10(%rip),%xmm0
  movss  %xmm0,-0x8(%rbp)
  movss  D30(%rip),%xmm0
  movss  %xmm0,-0x10(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L135
L173:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  movss  -0x10(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L146
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x10(%rbp)
L146:
  addl   $0x1,-0x14(%rbp)
L135:
  mov    -0x14(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L173
  movss  -0x10(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L153
  movss  -0x10(%rbp),%xmm0
  jmp    L201
L153:
  pxor   %xmm0,%xmm0
L201:
  movss  %xmm0,-0x10(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L178
L24:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  comiss %xmm1,%xmm0
  jb     L34
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x48(%rbp),%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  jmp    L64
L34:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm2
  movaps %xmm0,%xmm1
  subss  %xmm2,%xmm1
  movss  D21(%rip),%xmm0
  comiss %xmm1,%xmm0
  jbe    L98
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  -0xc(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x4(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  comiss -0x4(%rbp),%xmm0
  jbe    L1
  movss  -0x4(%rbp),%xmm0
  jmp    L88
L1:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
L88:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  %xmm0,(%rax)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  comiss %xmm1,%xmm0
  jbe    L62
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  jmp    L58
L62:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
L58:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  %xmm0,(%rax)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movss  -0x4(%rbp),%xmm0
  movss  %xmm0,(%rax)
  jmp    L64
L98:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  comiss %xmm1,%xmm0
  jbe    L207
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  -0x10(%rbp),%xmm1
  addss  -0xc(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jbe    L0
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  jmp    L156
L0:
  movss  -0x10(%rbp),%xmm0
  addss  -0xc(%rbp),%xmm0
L156:
  movss  %xmm0,-0x4(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  comiss -0x4(%rbp),%xmm0
  jbe    L108
  movss  -0x4(%rbp),%xmm0
  jmp    L106
L108:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
L106:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  %xmm0,(%rax)
  jmp    L64
L207:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  addss  -0x8(%rbp),%xmm0
  movss  %xmm0,(%rax)
L64:
  addl   $0x1,-0x14(%rbp)
L178:
  mov    -0x14(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L24
  nop
  nop
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D7
type: f32
name: extract_symbolic_data
arguments: data_label: D10
type: byte[4]
name: extract_symbolic_data
arguments: data_label: D30
type: byte[4]
name: extract_symbolic_data
arguments: data_label: D21
type: f32

tool: D7: 4

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

tool: {"D30": [0x80,0x96,0x18,0x4b]}

tool: D21: 15

assistant: ```c
void fa_adjust_thr(int subband_num, float *Px, float *Tm, float *G, float *Ti, float *Ti1) {
  int s;
  float Ti1_tmp;
  float mi;
  float r1, r2;
  r1 = 4.0;
  r2 = 1;
  mi = 10000000;
  for (s = 0; s < subband_num; s++) {
    if (Ti1[s] < mi)
      mi = Ti1[s];
  }
  mi = ((mi) > (0) ? (mi) : (0));
  for (s = 0; s < subband_num; s++) {
    if (Px[s] <= Tm[s]) {
      Ti[s] = Px[s];
    } else {
      if ((Ti[s] - Tm[s]) < 15.0) {
        Ti1_tmp = Ti[s] + r1;
        Ti[s] = ((Ti1_tmp) < (G[s]) ? (Ti1_tmp) : (G[s]));
        Ti[s] = ((Ti[s]) > (Tm[s]) ? (Ti[s]) : (Tm[s]));
        Ti1[s] = Ti1_tmp;
      } else if (Ti[s] < G[s]) {
        Ti1_tmp = ((Ti1[s]) > (mi + r1) ? (Ti1[s]) : (mi + r1));
        Ti[s] = ((Ti1_tmp) < (G[s]) ? (Ti1_tmp) : (G[s]));
      } else {
        Ti[s] += r2;
      }
    }
  }
}
```