user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<boxBlurH_4>:
  endbr64
  push   %r15
  lea    0x1(%r8,%r8,1),%eax
  pxor   %xmm0,%xmm0
  push   %r14
  cvtsi2sd %eax,%xmm0
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  movsd  D5(%rip),%xmm1
  mov    %rdi,0x40(%rsp)
  divsd  %xmm0,%xmm1
  mov    %rsi,0x58(%rsp)
  mov    %edx,0x4c(%rsp)
  mov    %ecx,0x70(%rsp)
  mov    %r8d,0x28(%rsp)
  movsd  %xmm1,0x8(%rsp)
  test   %ecx,%ecx
  jle    L54
  movslq %r8d,%rax
  movslq %edx,%rcx
  pxor   %xmm7,%xmm7
  mov    %rsi,%r13
  lea    0x1(%rax),%ebx
  mov    %ecx,%edx
  lea    -0x1(%rax),%esi
  mov    %rcx,0x88(%rsp)
  cvtsi2sd %ebx,%xmm7
  sub    %eax,%edx
  mov    %ebx,0x74(%rsp)
  lea    (%rdi,%rax,4),%r12
  lea    0x0(,%rcx,4),%rbx
  lea    0x4(%rdi),%rcx
  mov    %edx,0x68(%rsp)
  sub    %eax,%edx
  mov    %rsi,0x98(%rsp)
  add    %rbx,%rdi
  lea    (%rcx,%rsi,4),%rsi
  mov    %rbx,0x80(%rsp)
  mov    %rcx,0x60(%rsp)
  mov    %rsi,0x50(%rsp)
  mov    %rdi,0x78(%rsp)
  mov    %eax,0x3c(%rsp)
  movq   $0x0,0x30(%rsp)
  movl   $0x0,0x2c(%rsp)
  movl   $0x0,0x38(%rsp)
  mov    %edx,0x6c(%rsp)
  movsd  %xmm7,0x90(%rsp)
L66:
  mov    0x2c(%rsp),%eax
  pxor   %xmm4,%xmm4
  pxor   %xmm5,%xmm5
  mov    0x28(%rsp),%edx
  mov    0x40(%rsp),%rdi
  mov    0x78(%rsp),%rcx
  mov    %eax,0x48(%rsp)
  mov    0x30(%rsp),%rax
  movslq 0x3c(%rsp),%rbp
  cvtsi2sdl (%rdi,%rax,4),%xmm4
  cvtsi2sdl -0x4(%rcx,%rax,4),%xmm5
  movsd  %xmm4,0x18(%rsp)
  mulsd  0x90(%rsp),%xmm4
  movsd  %xmm5,0x20(%rsp)
  movapd %xmm4,%xmm1
  test   %edx,%edx
  jle    L104
  mov    0x50(%rsp),%rdx
  lea    (%rdi,%rax,4),%rax
  nopl   (%rax)
L4:
  pxor   %xmm0,%xmm0
  add    $0x4,%rax
  cvtsi2sdl -0x4(%rax),%xmm0
  addsd  %xmm0,%xmm1
  cmp    %rax,%rdx
  jne    L4
L98:
  mov    0x3c(%rsp),%eax
  xor    %r14d,%r14d
  mov    %r14,%rbx
  lea    0x1(%rax),%r15d
  mov    0x2c(%rsp),%eax
  lea    0x1(%rax),%ebp
  nopl   0x0(%rax,%rax,1)
L88:
  pxor   %xmm0,%xmm0
  lea    (%r15,%rbx,1),%r14d
  cvtsi2sdl (%r12,%rbx,4),%xmm0
  subsd  0x18(%rsp),%xmm0
  addsd  %xmm0,%xmm1
  movsd  0x8(%rsp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm1,0x10(%rsp)
  call   <round@plt>
  lea    0x0(%rbp,%rbx,1),%ecx
  movsd  0x10(%rsp),%xmm1
  mov    %eax,0x0(%r13,%rbx,4)
  add    $0x1,%rbx
  cmp    %ebx,0x28(%rsp)
  jge    L88
  mov    %ecx,%ebx
  movslq %r14d,%rbp
L77:
  mov    0x68(%rsp),%ecx
  cmp    %ecx,0x74(%rsp)
  jge    L87
  mov    0x40(%rsp),%rax
  movslq %ebx,%rcx
  mov    0x60(%rsp),%rdi
  mov    %ebx,0x18(%rsp)
  lea    (%rax,%rbp,4),%r14
  mov    0x58(%rsp),%rax
  mov    %r14,%rbx
  lea    (%rax,%rcx,4),%r15
  mov    0x6c(%rsp),%eax
  sub    $0x2,%eax
  add    %rbp,%rax
  lea    (%rdi,%rax,4),%rdx
  mov    0x30(%rsp),%rax
  mov    %rdx,%rbp
  sub    %rcx,%rax
  mov    %rax,%r14
  cs nopw 0x0(%rax,%rax,1)
L96:
  mov    (%rbx),%eax
  pxor   %xmm0,%xmm0
  sub    (%r15,%r14,4),%eax
  add    $0x4,%rbx
  cvtsi2sd %eax,%xmm0
  add    $0x4,%r15
  addsd  %xmm0,%xmm1
  movsd  0x8(%rsp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm1,0x10(%rsp)
  call   <round@plt>
  movsd  0x10(%rsp),%xmm1
  mov    %eax,-0x4(%r15)
  cmp    %rbx,%rbp
  jne    L96
  mov    0x6c(%rsp),%eax
  mov    0x2c(%rsp),%edi
  mov    0x18(%rsp),%ebx
  sub    $0x1,%eax
  lea    (%rdi,%rax,1),%esi
  add    %eax,%ebx
  mov    %esi,0x48(%rsp)
L87:
  mov    0x68(%rsp),%edx
  cmp    %edx,0x4c(%rsp)
  jle    L12
  movslq 0x48(%rsp),%rax
  mov    0x40(%rsp),%rcx
  movslq %ebx,%rbx
  mov    0x58(%rsp),%rsi
  mov    0x60(%rsp),%rdi
  lea    (%rcx,%rax,4),%rbp
  add    0x98(%rsp),%rax
  lea    (%rsi,%rbx,4),%r14
  lea    (%rdi,%rax,4),%rbx
  nopl   0x0(%rax,%rax,1)
L50:
  pxor   %xmm2,%xmm2
  movsd  0x20(%rsp),%xmm0
  add    $0x4,%rbp
  add    $0x4,%r14
  cvtsi2sdl -0x4(%rbp),%xmm2
  subsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  0x8(%rsp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm1,0x10(%rsp)
  call   <round@plt>
  movsd  0x10(%rsp),%xmm1
  mov    %eax,-0x4(%r14)
  cmp    %rbp,%rbx
  jne    L50
L12:
  mov    0x4c(%rsp),%esi
  add    %esi,0x2c(%rsp)
  add    %esi,0x3c(%rsp)
  mov    0x80(%rsp),%rsi
  addl   $0x1,0x38(%rsp)
  mov    0x38(%rsp),%eax
  add    %rsi,0x50(%rsp)
  add    %rsi,%r12
  add    %rsi,%r13
  mov    0x88(%rsp),%rsi
  add    %rsi,0x30(%rsp)
  cmp    %eax,0x70(%rsp)
  jne    L66
L54:
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L104:
  je     L98
  mov    0x2c(%rsp),%ebx
  jmp    L77
```

tool_calls: name: parse_data
arguments: data_tag: D5
datatype: f64

tool: D5: 1

assistant: ```c
void boxBlurH_4(int *source, int *dest, int w, int h, int r) {
  int i, j;
  double iar = (double)1 / (r + r + 1);
  for (i = 0; i < h; i++) {
    int ti = i * w;
    int li = ti;
    int ri = ti + r;
    double fv = source[ti];
    double lv = source[ti + w - 1];
    double val = (r + 1) * fv;
    for (j = 0; j < r; j++)
      val += source[ti + j];
    for (j = 0; j <= r; j++) {
      val += source[ri++] - fv;
      dest[ti++] = (int)round(val * iar);
    }
    for (j = r + 1; j < w - r; j++) {
      val += source[ri++] - dest[li++];
      dest[ti++] = (int)round(val * iar);
    }
    for (j = w - r; j < w; j++) {
      val += lv - source[li++];
      dest[ti++] = (int)round(val * iar);
    }
  }
}
```