user: 下面的汇编指令对应的C源代码是什么：

```asm
<reflect2>:
  endbr64
  push   %r15
  mov    %ecx,%eax
  push   %r14
  mov    %rdi,%r14
  push   %r13
  mov    %esi,%r13d
  push   %r12
  imul   %edx,%r13d
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x18,%rsp
  test   %ecx,%ecx
  jle    L16
  lea    -0x1(%rsi),%ebp
  mov    %r13d,%esi
  xor    %ecx,%ecx
  sub    %ebx,%esi
  test   %r8d,%r8d
  cmovg  %esi,%ecx
  sub    %ebx,%eax
  sub    $0x1,%eax
  mov    %ecx,0x4(%rsp)
  mov    %eax,(%rsp)
L13:
  mov    %r8d,%eax
  lea    0x1(%r8),%r12d
  sub    %edx,%eax
  sub    $0x1,%eax
  test   %r8d,%r8d
  cmovg  %eax,%r12d
  imul   %ebx,%r12d
  test   %r13d,%r13d
  jle    L38
  movslq %r13d,%rdx
  mov    %r9,%rdi
  xor    %esi,%esi
  movslq %ebx,%r15
  shl    $0x3,%rdx
  shl    $0x3,%r15
  call   <memset@plt>
  mov    $0xfffffffffffffff8,%rdx
  mov    %ebp,%r11d
  mov    %rax,%r9
  lea    -0x1(%rbx),%eax
  not    %r11d
  shl    $0x3,%rax
  sub    %rax,%rdx
  lea    0x8(%r14,%rax,1),%r8
  xor    %r14d,%r14d
  mov    %rdx,0x8(%rsp)
  nopl   0x0(%rax,%rax,1)
L31:
  test   %r12d,%r12d
  mov    %r14d,%eax
  cmove  %ebx,%r12d
  add    %ebx,%r14d
  cmp    %eax,%r14d
  jle    L71
  mov    %r12d,%edx
  mov    0x4(%rsp),%eax
  neg    %edx
  cmovs  %r12d,%edx
  sub    %edx,%eax
  mov    (%rsp),%edx
  add    %ebx,%eax
  mov    %eax,%r10d
  neg    %r10d
  cmovs  %eax,%r10d
  mov    0x8(%rsp),%rax
  lea    (%rax,%r8,1),%rcx
  jmp    L30
  nopl   0x0(%rax,%rax,1)
L61:
  mov    %edx,%eax
  neg    %eax
  cmovs  %edx,%eax
  add    $0x1,%edx
L14:
  mov    %ebp,%esi
  sub    %eax,%esi
  add    %r11d,%eax
  lea    0x1(%rsi),%edi
  cmp    $0xffffffff,%esi
  cmovge %edi,%eax
  add    $0x8,%rcx
  add    %r10d,%eax
  cltq
  lea    (%r9,%rax,8),%rax
  movsd  (%rax),%xmm0
  addsd  -0x8(%rcx),%xmm0
  movsd  %xmm0,(%rax)
  cmp    %rcx,%r8
  je     L71
L30:
  test   %edx,%edx
  jne    L61
  mov    $0x2,%edx
  mov    $0x1,%eax
  jmp    L14
  nopl   0x0(%rax)
L71:
  add    %ebx,%r12d
  add    %r15,%r8
  cmp    %r13d,%r14d
  jl     L31
L38:
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L16:
  mov    %r13d,%esi
  xor    %ecx,%ecx
  sub    %ebx,%esi
  test   %r8d,%r8d
  cmovg  %esi,%ecx
  add    $0x1,%eax
  xor    %ebp,%ebp
  mov    %eax,(%rsp)
  mov    %ecx,0x4(%rsp)
  jmp    L13
```

assistant: ```c
int reflect2(filt, x_dim, y_dim, x_pos, y_pos, result, f_or_e)
register double *filt, *result;
register int x_dim;
int y_dim, x_pos, y_pos, f_or_e;
{
  register int y_filt, x_filt, y_edge, x_edge;
  register int x_base = (x_pos > 0) ? (x_dim - 1) : 0;
  register int y_base = (y_pos > 0) ? (x_dim * (y_dim - 1)) : 0;
  int filt_sz = x_dim * y_dim;
  int x_edge_dist = (x_pos > 0) ? (x_pos - x_dim - 1) : (x_pos + 1);
  int y_edge_dist = x_dim * ((y_pos > 0) ? (y_pos - y_dim - 1) : (y_pos + 1));
  int i;
  for (i = 0; i < filt_sz; i++)
    result[i] = 0.0;
  for (y_filt = 0, y_edge = y_edge_dist; y_filt < filt_sz; y_filt += x_dim, y_edge += x_dim) {
    if (y_edge == 0)
      y_edge += x_dim;
    for (x_filt = y_filt, x_edge = x_edge_dist; x_filt < y_filt + x_dim; x_filt++, x_edge++) {
      if (x_edge == 0)
        x_edge++;
      result[(((y_base - (((y_edge) >= 0) ? (y_edge) : (-(y_edge))) + x_dim) >= 0) ? (y_base - (((y_edge) >= 0) ? (y_edge) : (-(y_edge))) + x_dim) : (-(y_base - (((y_edge) >= 0) ? (y_edge) : (-(y_edge))) + x_dim))) + (((x_base - (((x_edge) >= 0) ? (x_edge) : (-(x_edge))) + 1) >= 0) ? (x_base - (((x_edge) >= 0) ? (x_edge) : (-(x_edge))) + 1) : (-(x_base - (((x_edge) >= 0) ? (x_edge) : (-(x_edge))) + 1)))] += filt[x_filt];
    }
  }
  return (0);
}
```