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  D2(%rip),%xmm1
  mov    %rdi,0x40(%rsp)
  divsd  %xmm0,%xmm1
  mov    %rsi,0x58(%rsp)
  mov    %edx,0x4c(%rsp)
  mov    %ecx,0x6c(%rsp)
  mov    %r8d,0x28(%rsp)
  movsd  %xmm1,0x8(%rsp)
  test   %ecx,%ecx
  jle    L62
  lea    0x1(%r8),%eax
  pxor   %xmm5,%xmm5
  mov    %edx,%ecx
  mov    %rsi,%r13
  cvtsi2sd %eax,%xmm5
  lea    0x4(%rdi),%rsi
  sub    %r8d,%ecx
  mov    %r8d,0x34(%rsp)
  mov    %eax,0x90(%rsp)
  movslq %edx,%rax
  lea    0x0(,%rax,4),%r9
  mov    %rax,0x78(%rsp)
  movslq %r8d,%rax
  lea    (%rdi,%rax,4),%r12
  lea    -0x1(%r8),%eax
  add    %r9,%rdi
  mov    %ecx,0x68(%rsp)
  lea    (%rsi,%rax,4),%rax
  mov    %r9,0x80(%rsp)
  mov    %rax,0x50(%rsp)
  mov    %ecx,%eax
  sub    %r8d,%eax
  mov    %rsi,0x60(%rsp)
  mov    %eax,0x94(%rsp)
  sub    $0x2,%eax
  mov    %eax,0x98(%rsp)
  lea    -0x1(%rdx),%eax
  sub    %ecx,%eax
  mov    %rdi,0x88(%rsp)
  movq   $0x0,0x38(%rsp)
  movl   $0x0,0x2c(%rsp)
  movl   $0x0,0x30(%rsp)
  mov    %eax,0x9c(%rsp)
  movsd  %xmm5,0x70(%rsp)
  nopl   0x0(%rax,%rax,1)
L61:
  mov    0x2c(%rsp),%eax
  mov    0x88(%rsp),%rcx
  pxor   %xmm0,%xmm0
  pxor   %xmm4,%xmm4
  mov    0x40(%rsp),%rdx
  movsd  0x70(%rsp),%xmm1
  mov    %eax,0x48(%rsp)
  mov    0x38(%rsp),%rax
  movslq 0x34(%rsp),%rbp
  cvtsi2sdl (%rdx,%rax,4),%xmm0
  cvtsi2sdl -0x4(%rcx,%rax,4),%xmm4
  mov    0x28(%rsp),%ecx
  mulsd  %xmm0,%xmm1
  movsd  %xmm0,0x18(%rsp)
  movsd  %xmm4,0x20(%rsp)
  test   %ecx,%ecx
  jle    L17
  lea    (%rdx,%rax,4),%rax
  mov    0x50(%rsp),%rdx
  jmp    L54
  nop
L19:
  pxor   %xmm0,%xmm0
  cvtsi2sdl (%rax),%xmm0
L54:
  add    $0x4,%rax
  addsd  %xmm0,%xmm1
  cmp    %rdx,%rax
  jne    L19
L81:
  mov    0x34(%rsp),%eax
  xor    %r14d,%r14d
  mov    %r14,%rbx
  lea    0x1(%rax),%r15d
  mov    0x2c(%rsp),%eax
  lea    0x1(%rax),%ebp
  nopw   0x0(%rax,%rax,1)
L107:
  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    L107
  mov    %ecx,%ebx
  movslq %r14d,%rbp
L34:
  mov    0x68(%rsp),%ecx
  cmp    %ecx,0x90(%rsp)
  jge    L32
  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    0x98(%rsp),%eax
  add    %rbp,%rax
  lea    (%rdi,%rax,4),%rsi
  mov    0x38(%rsp),%rax
  mov    %rsi,%rbp
  sub    %rcx,%rax
  mov    %rax,%r14
  nopl   0x0(%rax)
L27:
  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    L27
  mov    0x94(%rsp),%eax
  mov    0x2c(%rsp),%ecx
  mov    0x18(%rsp),%ebx
  sub    $0x1,%eax
  lea    (%rax,%rcx,1),%edx
  add    %eax,%ebx
  mov    %edx,0x48(%rsp)
L32:
  mov    0x68(%rsp),%edi
  cmp    %edi,0x4c(%rsp)
  jle    L78
  mov    0x58(%rsp),%rdx
  movslq 0x48(%rsp),%rax
  movslq %ebx,%rbx
  mov    0x40(%rsp),%rdi
  lea    (%rdx,%rbx,4),%r14
  mov    0x9c(%rsp),%edx
  lea    (%rdi,%rax,4),%rbp
  mov    0x60(%rsp),%rdi
  add    %rdx,%rax
  lea    (%rdi,%rax,4),%rbx
L82:
  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    L82
L78:
  mov    0x4c(%rsp),%esi
  add    %esi,0x2c(%rsp)
  add    %esi,0x34(%rsp)
  mov    0x80(%rsp),%rsi
  addl   $0x1,0x30(%rsp)
  mov    0x30(%rsp),%eax
  add    %rsi,0x50(%rsp)
  add    %rsi,%r12
  add    %rsi,%r13
  mov    0x78(%rsp),%rsi
  add    %rsi,0x38(%rsp)
  cmp    %eax,0x6c(%rsp)
  jne    L61
L62:
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L17:
  je     L81
  mov    0x2c(%rsp),%ebx
  jmp    L34
```

tool_calls: name: extract_symbolic_data
arguments: tag: D2
datatype: f64

tool: D2: 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);
    }
  }
}
```