user: 请将以下的汇编代码转换成C语言代码：

```asm
<sweep_v>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xc8,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %esi,%ebp
  mov    %edx,%ebx
  mov    %ecx,%r15d
  movaps %xmm0,%xmm5
  mov    %r8d,%r12d
  movss  %xmm1,0x18(%rsp)
  movss  %xmm2,(%rsp)
  movss  %xmm3,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  movss  D153(%rip),%xmm4
  movss  %xmm4,0x70(%rsp)
  movss  D51(%rip),%xmm3
  movss  %xmm3,0x74(%rsp)
  movl   $0x3e4ccccd,0x78(%rsp)
  movss  D301(%rip),%xmm1
  movss  %xmm1,0x7c(%rsp)
  movl   $0x3ecccccd,0x80(%rsp)
  movl   $0x3f000000,0x84(%rsp)
  movl   $0x3f19999a,0x88(%rsp)
  movss  D228(%rip),%xmm0
  movss  %xmm0,0x8c(%rsp)
  movss  %xmm4,0x30(%rsp)
  movl   $0x3d8f5c29,0x34(%rsp)
  movss  %xmm3,0x38(%rsp)
  movl   $0x3e19999a,0x3c(%rsp)
  movss  %xmm1,0x40(%rsp)
  movss  %xmm0,0x44(%rsp)
  movss  D204(%rip),%xmm4
  movss  %xmm4,0x90(%rsp)
  movss  D312(%rip),%xmm3
  movss  %xmm3,0x94(%rsp)
  movl   $0x43960000,0x98(%rsp)
  movss  D333(%rip),%xmm1
  movss  %xmm1,0x9c(%rsp)
  movl   $0x43fa0000,0xa0(%rsp)
  movl   $0x44160000,0xa4(%rsp)
  movl   $0x442f0000,0xa8(%rsp)
  movss  D271(%rip),%xmm0
  movss  %xmm0,0xac(%rsp)
  movl   $0x44610000,0xb0(%rsp)
  movl   $0x41200000,0x50(%rsp)
  movl   $0x41c80000,0x54(%rsp)
  movl   $0x42480000,0x58(%rsp)
  movss  %xmm4,0x5c(%rsp)
  movss  %xmm3,0x60(%rsp)
  movss  %xmm1,0x64(%rsp)
  movss  %xmm0,0x68(%rsp)
  mov    %esi,%edx
  imul   %ebx,%edx
  test   %edx,%edx
  jle    L268
  mov    %rdi,%rax
  lea    -0x1(%rdx),%edx
  lea    0x4(%rdi,%rdx,4),%rdx
L311:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L311
L268:
  test   %ebp,%ebp
  je     L155
  test   %ebx,%ebx
  je     L155
  movss  0x8(%rsp),%xmm3
  ucomiss D162(%rip),%xmm3
  jp     L365
  jne    L365
  movss  (%rsp),%xmm2
  ucomiss D162(%rip),%xmm2
  jp     L358
  jne    L358
  movss  D6(%rip),%xmm4
  movss  %xmm4,0x8(%rsp)
  movss  %xmm4,(%rsp)
  jmp    L221
L365:
  movss  (%rsp),%xmm7
  ucomiss D162(%rip),%xmm7
  jp     L142
  movd   %xmm7,%eax
  cmove  D6(%rip),%eax
  mov    %eax,(%rsp)
L142:
  movss  (%rsp),%xmm2
  movss  0x8(%rsp),%xmm4
  ucomiss %xmm4,%xmm2
  jp     L127
  jne    L127
L221:
  pxor   %xmm0,%xmm0
  cvtss2sd 0x8(%rsp),%xmm0
  addsd  D88(%rip),%xmm0
  pxor   %xmm6,%xmm6
  cvtsd2ss %xmm0,%xmm6
  movss  %xmm6,0x8(%rsp)
L127:
  test   %r15d,%r15d
  jne    L76
  lea    0x0(%rbp,%rbp,2),%eax
  add    %eax,%eax
  lea    0x7(%rax),%r9d
  cmovns %eax,%r9d
  lea    0xf(%rbx),%r8d
  test   %ebx,%ebx
  cmovns %ebx,%r8d
  lea    0x7(%rbp),%ecx
  test   %ebp,%ebp
  cmovns %ebp,%ecx
  sar    $0x3,%ecx
  sub    $0x8,%rsp
  push   %r12
  push   $0x0
  imul   $0xe,%ebx,%edx
  lea    0xf(%rdx),%eax
  test   %edx,%edx
  cmovns %edx,%eax
  sar    $0x4,%eax
  push   %rax
  movaps %xmm5,%xmm2
  movss  0x28(%rsp),%xmm1
  movss  0x20(%rsp),%xmm0
  sar    $0x3,%r9d
  sar    $0x4,%r8d
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    0x30(%rsp),%rdi
  call   <draw_sweep_1@plt>
  add    $0x20,%rsp
L161:
  test   %r12d,%r12d
  jne    L141
  lea    0x7(%rbp),%eax
  test   %ebp,%ebp
  cmovns %ebp,%eax
  sar    $0x3,%eax
  lea    -0x3c(%rax),%esi
  mov    %esi,0x28(%rsp)
  lea    0xf(%rbx),%edx
  test   %ebx,%ebx
  cmovns %ebx,%edx
  sar    $0x4,%edx
  mov    %edx,0x20(%rsp)
  imul   $0xe,%ebx,%ecx
  lea    0xf(%rcx),%edx
  test   %ecx,%ecx
  cmovns %ecx,%edx
  sar    $0x4,%edx
  mov    %edx,0x24(%rsp)
  sub    $0xf,%eax
  mov    %eax,0x1c(%rsp)
  lea    0x70(%rsp),%r12
  lea    0x90(%rsp),%r14
  movss  0x8(%rsp),%xmm5
  subss  (%rsp),%xmm5
  movss  %xmm5,0x8(%rsp)
  mov    %r15d,0x2c(%rsp)
  jmp    L86
L76:
  lea    0x0(%rbp,%rbp,2),%eax
  add    %eax,%eax
  lea    0x7(%rax),%r9d
  cmovns %eax,%r9d
  lea    0xf(%rbx),%r8d
  test   %ebx,%ebx
  cmovns %ebx,%r8d
  lea    0x7(%rbp),%ecx
  test   %ebp,%ebp
  cmovns %ebp,%ecx
  sar    $0x3,%ecx
  sub    $0x8,%rsp
  push   %r12
  push   $0x0
  imul   $0xe,%ebx,%edx
  lea    0xf(%rdx),%eax
  test   %edx,%edx
  cmovns %edx,%eax
  sar    $0x4,%eax
  push   %rax
  movaps %xmm5,%xmm2
  movss  0x28(%rsp),%xmm1
  movss  0x20(%rsp),%xmm0
  sar    $0x3,%r9d
  sar    $0x4,%r8d
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    0x30(%rsp),%rdi
  call   <draw_sweep_2@plt>
  add    $0x20,%rsp
  jmp    L161
L158:
  add    $0x4,%r12
  cmp    %r14,%r12
  je     L15
L86:
  mov    (%r12),%r13d
  movd   %r13d,%xmm0
  subss  (%rsp),%xmm0
  divss  0x8(%rsp),%xmm0
  pxor   %xmm4,%xmm4
  comiss %xmm4,%xmm0
  jb     L158
  movss  D278(%rip),%xmm3
  comiss %xmm0,%xmm3
  jb     L158
  pxor   %xmm1,%xmm1
  cvtsi2ssl 0x24(%rsp),%xmm1
  mulss  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ssl 0x20(%rsp),%xmm1
  addss  %xmm1,%xmm0
  cvttss2si %xmm0,%r15d
  sub    $0x8,%rsp
  push   $0x3
  movsd  D36(%rip),%xmm0
  mov    $0xa,%r9d
  mov    %r15d,%r8d
  mov    0x2c(%rsp),%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    0x20(%rsp),%rdi
  call   <draw_rectangle@plt>
  lea    D232(%rip),%rax
  mov    %rax,(%rsp)
  movsd  D36(%rip),%xmm1
  movd   %r13d,%xmm0
  mov    $0x6,%r9d
  lea    0x6(%r15),%r8d
  mov    0x38(%rsp),%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    0x20(%rsp),%rdi
  call   <dispF@plt>
  add    $0x10,%rsp
  jmp    L158
L15:
  mov    0x2c(%rsp),%r15d
  lea    0x0(,%rbp,8),%edx
  sub    %ebp,%edx
  lea    0x7(%rdx),%eax
  cmovns %edx,%eax
  sar    $0x3,%eax
  lea    0xa(%rax),%esi
  mov    %esi,0x2c(%rsp)
  add    $0x5,%eax
  mov    %eax,0x28(%rsp)
  lea    0x90(%rsp),%r12
  lea    0xb4(%rsp),%r14
  mov    %ebp,0x1c(%rsp)
  jmp    L63
L198:
  add    $0x4,%r12
  cmp    %r14,%r12
  je     L155
L63:
  mov    (%r12),%ebp
  pxor   %xmm1,%xmm1
  cvtsi2ss %ebx,%xmm1
  movd   %ebp,%xmm0
  divss  %xmm1,%xmm0
  test   %r15d,%r15d
  jne    L131
  mulss  0x18(%rsp),%xmm0
L131:
  subss  (%rsp),%xmm0
  divss  0x8(%rsp),%xmm0
  pxor   %xmm5,%xmm5
  comiss %xmm5,%xmm0
  jb     L198
  movss  D278(%rip),%xmm2
  comiss %xmm0,%xmm2
  jb     L198
  pxor   %xmm1,%xmm1
  cvtsi2ssl 0x24(%rsp),%xmm1
  mulss  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ssl 0x20(%rsp),%xmm1
  addss  %xmm1,%xmm0
  cvttss2si %xmm0,%r13d
  sub    $0x8,%rsp
  push   $0x3
  movsd  D36(%rip),%xmm0
  mov    $0xa,%r9d
  mov    %r13d,%r8d
  mov    0x38(%rsp),%ecx
  mov    %ebx,%edx
  mov    0x2c(%rsp),%esi
  mov    0x20(%rsp),%rdi
  call   <draw_rectangle@plt>
  lea    D69(%rip),%rax
  mov    %rax,(%rsp)
  movsd  D36(%rip),%xmm1
  movd   %ebp,%xmm0
  mov    $0x6,%r9d
  lea    0x6(%r13),%r8d
  mov    0x3c(%rsp),%ecx
  mov    %ebx,%edx
  mov    0x2c(%rsp),%esi
  mov    0x20(%rsp),%rdi
  call   <dispF@plt>
  add    $0x10,%rsp
  jmp    L198
L141:
  pxor   %xmm1,%xmm1
  cvtss2sd (%rsp),%xmm1
  movsd  D162(%rip),%xmm0
  movapd %xmm0,%xmm6
  divsd  %xmm1,%xmm6
  movsd  %xmm6,(%rsp)
  pxor   %xmm1,%xmm1
  cvtss2sd 0x8(%rsp),%xmm1
  divsd  %xmm1,%xmm0
  subsd  %xmm6,%xmm0
  movsd  %xmm0,0x8(%rsp)
  lea    0x7(%rbp),%eax
  test   %ebp,%ebp
  cmovns %ebp,%eax
  sar    $0x3,%eax
  lea    -0x3c(%rax),%esi
  mov    %esi,0x2c(%rsp)
  lea    0xf(%rbx),%edx
  test   %ebx,%ebx
  cmovns %ebx,%edx
  sar    $0x4,%edx
  mov    %edx,0x20(%rsp)
  imul   $0xe,%ebx,%ecx
  lea    0xf(%rcx),%edx
  test   %ecx,%ecx
  cmovns %ecx,%edx
  sar    $0x4,%edx
  mov    %edx,0x24(%rsp)
  sub    $0xf,%eax
  mov    %eax,0x28(%rsp)
  lea    0x30(%rsp),%r12
  lea    0x48(%rsp),%r13
  jmp    L171
L140:
  add    $0x4,%r12
  cmp    %r13,%r12
  je     L150
L171:
  movss  (%r12),%xmm2
  movss  %xmm2,0x1c(%rsp)
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm2,%xmm1
  movsd  D162(%rip),%xmm0
  divsd  %xmm1,%xmm0
  subsd  (%rsp),%xmm0
  divsd  0x8(%rsp),%xmm0
  cvtsd2ss %xmm0,%xmm0
  pxor   %xmm5,%xmm5
  comiss %xmm5,%xmm0
  jb     L140
  movss  D278(%rip),%xmm6
  comiss %xmm0,%xmm6
  jb     L140
  pxor   %xmm1,%xmm1
  cvtsi2ssl 0x24(%rsp),%xmm1
  mulss  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ssl 0x20(%rsp),%xmm1
  addss  %xmm1,%xmm0
  cvttss2si %xmm0,%r14d
  sub    $0x8,%rsp
  push   $0x3
  movsd  D36(%rip),%xmm0
  mov    $0xa,%r9d
  mov    %r14d,%r8d
  mov    0x38(%rsp),%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    0x20(%rsp),%rdi
  call   <draw_rectangle@plt>
  lea    D232(%rip),%rax
  mov    %rax,(%rsp)
  movsd  D36(%rip),%xmm1
  movss  0x2c(%rsp),%xmm0
  mov    $0x6,%r9d
  lea    0x6(%r14),%r8d
  mov    0x3c(%rsp),%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    0x20(%rsp),%rdi
  call   <dispF@plt>
  add    $0x10,%rsp
  jmp    L140
L150:
  lea    0x0(,%rbp,8),%edx
  sub    %ebp,%edx
  lea    0x7(%rdx),%eax
  cmovns %edx,%eax
  sar    $0x3,%eax
  lea    0xa(%rax),%esi
  mov    %esi,0x2c(%rsp)
  add    $0x5,%eax
  mov    %eax,0x28(%rsp)
  lea    0x50(%rsp),%r12
  lea    0x6c(%rsp),%r14
  mov    %ebp,0x1c(%rsp)
  jmp    L220
L330:
  pxor   %xmm1,%xmm1
  cvtsi2ssl 0x24(%rsp),%xmm1
  mulss  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ssl 0x20(%rsp),%xmm1
  addss  %xmm1,%xmm0
  cvttss2si %xmm0,%r13d
  sub    $0x8,%rsp
  push   $0x3
  movsd  D36(%rip),%xmm0
  mov    $0xa,%r9d
  mov    %r13d,%r8d
  mov    0x38(%rsp),%ecx
  mov    %ebx,%edx
  mov    0x2c(%rsp),%esi
  mov    0x20(%rsp),%rdi
  call   <draw_rectangle@plt>
  lea    D69(%rip),%rax
  mov    %rax,(%rsp)
  movsd  D36(%rip),%xmm1
  movd   %ebp,%xmm0
  mov    $0x6,%r9d
  lea    0x6(%r13),%r8d
  mov    0x3c(%rsp),%ecx
  mov    %ebx,%edx
  mov    0x2c(%rsp),%esi
  mov    0x20(%rsp),%rdi
  call   <dispF@plt>
  add    $0x10,%rsp
L306:
  add    $0x4,%r12
  cmp    %r14,%r12
  je     L155
L220:
  mov    (%r12),%ebp
  pxor   %xmm1,%xmm1
  cvtsi2ss %ebx,%xmm1
  movd   %ebp,%xmm0
  divss  %xmm1,%xmm0
  test   %r15d,%r15d
  jne    L274
  mulss  0x18(%rsp),%xmm0
L274:
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D162(%rip),%xmm0
  divsd  %xmm1,%xmm0
  subsd  (%rsp),%xmm0
  divsd  0x8(%rsp),%xmm0
  cvtsd2ss %xmm0,%xmm0
  pxor   %xmm6,%xmm6
  comiss %xmm6,%xmm0
  jb     L306
  movss  D278(%rip),%xmm4
  comiss %xmm0,%xmm4
  jb     L306
  jmp    L330
L358:
  movss  D6(%rip),%xmm7
  movss  %xmm7,0x8(%rsp)
  jmp    L142
L155:
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L244
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L244:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D153
data_type: f32
name: read_data
arguments: data_label: D51
data_type: f32
name: read_data
arguments: data_label: D301
data_type: f32
name: read_data
arguments: data_label: D228
data_type: f32
name: read_data
arguments: data_label: D204
data_type: f32
name: read_data
arguments: data_label: D312
data_type: f32
name: read_data
arguments: data_label: D333
data_type: f32
name: read_data
arguments: data_label: D271
data_type: f32
name: read_data
arguments: data_label: D162
data_type: f64
name: read_data
arguments: data_label: D6
data_type: byte[4]
name: read_data
arguments: data_label: D88
data_type: byte[8]
name: read_data
arguments: data_label: D278
data_type: byte[4]
name: read_data
arguments: data_label: D36
data_type: f64
name: read_data
arguments: data_label: D232
data_type: string
name: read_data
arguments: data_label: D69
data_type: string

tool: D153: 0.05

tool: D51: 0.1

tool: D301: 0.3

tool: D228: 0.7

tool: D204: 100

tool: D312: 200

tool: D333: 400

tool: D271: 800

tool: D162: 1

tool: {"D6": [0xcc,0xbc,0x8c,0x2b]}

tool: {"D88": [0x11,0xea,0x2d,0x81,0x99,0x97,0x71,0x3d]}

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

tool: D36: 0.9

tool: D232: %5.2f

tool: D69: %4.0f

assistant: ```c
void sweep_v(float *sl, int w, int h, int a, float amp, int lps, float ar, float sf, float ef) {
  float xl, nf;
  float lf1[] = {0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7};
  float lf2[] = {0.05, 0.07, 0.1, 0.15, 0.3, 0.7};
  float lf3[] = {100.0, 200.0, 300.0, 400.0, 500.0, 600.0, 700.0, 800.0, 900.0};
  float lf4[] = {10.0, 25.0, 50.0, 100.0, 200.0, 400.0, 800.0};
  int i, x, y;
  for (x = 0; x < w * h; x++)
    sl[x] = 0.0;
  if ((w == 0) || (h == 0))
    return;
  if (ef == 0.0)
    ef = 1.0E-12;
  if (sf == 0.0)
    sf = 1.0E-12;
  if (ef == sf)
    ef = ef + 1E-12;
  if (a == 0)
    draw_sweep_1(sl, w, h, w / 8, h / 16, 6 * w / 8, 14 * h / 16, sf, ef, amp, 0, lps);
  else
    draw_sweep_2(sl, w, h, w / 8, h / 16, 6 * w / 8, 14 * h / 16, sf, ef, amp, 0, lps);
  if (lps == 0) {
    for (i = 0; i < sizeof(lf1) / sizeof(float); i++) {
      xl = (lf1[i] - sf) / (ef - sf);
      if ((xl >= 0.0) && (xl <= 1.0)) {
        x = w / 8 - 60;
        y = h / 16 + xl * (14 * h / 16);
        draw_rectangle(sl, w, h, w / 8 - 15, y, 10, 3, 0.9);
        dispF(sl, w, h, x, y + 6, 6, lf1[i], "%5.2f", 0.9);
      }
    }
    for (i = 0; i < sizeof(lf3) / sizeof(float); i++) {
      nf = lf3[i] / (float)h;
      if (a == 0)
        nf = nf * ar;
      xl = (nf - sf) / (ef - sf);
      if ((xl >= 0.0) && (xl <= 1.0)) {
        x = 7 * w / 8 + 10;
        y = h / 16 + xl * (14 * h / 16);
        draw_rectangle(sl, w, h, 7 * w / 8 + 5, y, 10, 3, 0.9);
        dispF(sl, w, h, x, y + 6, 6, lf3[i], "%4.0f", 0.9);
      }
    }
  } else {
    for (i = 0; i < sizeof(lf2) / sizeof(float); i++) {
      xl = (1.0 / lf2[i] - 1.0 / sf) / (1.0 / ef - 1.0 / sf);
      if ((xl >= 0.0) && (xl <= 1.0)) {
        x = w / 8 - 60;
        y = h / 16 + xl * (14 * h / 16);
        draw_rectangle(sl, w, h, w / 8 - 15, y, 10, 3, 0.9);
        dispF(sl, w, h, x, y + 6, 6, lf2[i], "%5.2f", 0.9);
      }
    }
    for (i = 0; i < sizeof(lf4) / sizeof(float); i++) {
      nf = lf4[i] / (float)h;
      if (a == 0)
        nf = nf * ar;
      xl = (1.0 / nf - 1.0 / sf) / (1.0 / ef - 1.0 / sf);
      if ((xl >= 0.0) && (xl <= 1.0)) {
        x = 7 * w / 8 + 10;
        y = h / 16 + xl * (14 * h / 16);
        draw_rectangle(sl, w, h, 7 * w / 8 + 5, y, 10, 3, 0.9);
        dispF(sl, w, h, x, y + 6, 6, lf4[i], "%4.0f", 0.9);
      }
    }
  }
}
```