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

```asm
<reflect2>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%r15d
  mov    %edx,%eax
  mov    %ecx,-0x20(%rsp)
  mov    0x38(%rsp),%edx
  mov    %esi,%r14d
  imul   %eax,%r14d
  test   %ecx,%ecx
  jle    L280
  mov    %ecx,%r11d
  lea    -0x1(%rsi),%ebx
  mov    %r14d,%esi
  sub    %r15d,%esi
  test   %r8d,%r8d
  mov    $0x0,%ecx
  cmovg  %esi,%ecx
  mov    %ecx,-0x1c(%rsp)
  lea    -0x1(%r11),%esi
L173:
  lea    -0x1(%r8),%ecx
  test   %r8d,%r8d
  mov    $0xffffffff,%r11d
  cmovs  %r8d,%r11d
  add    $0x1,%r11d
  test   %r8d,%r8d
  cmovg  %ecx,%r11d
  imul   %r15d,%r11d
  cmpl   $0x0,-0x20(%rsp)
  js     L292
  lea    -0x1(%r15),%r10d
  mov    %r10d,%ecx
  shr    $0x1f,%ecx
  add    %r10d,%ecx
  sar    %ecx
  mov    %ecx,-0x14(%rsp)
L329:
  test   %r8d,%r8d
  js     L226
  lea    -0x1(%rax),%ecx
  mov    %ecx,%eax
  shr    $0x1f,%eax
  add    %ecx,%eax
  sar    %eax
  mov    %eax,-0x8(%rsp)
L96:
  test   %r14d,%r14d
  jle    L7
  mov    %r9,%rax
  lea    -0x1(%r14),%ecx
  lea    0x8(%r9,%rcx,8),%rcx
L192:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %rcx,%rax
  jne    L192
L7:
  test   %edx,%edx
  jne    L317
  sub    -0x1c(%rsp),%r11d
  test   %r8d,%r8d
  cmovg  %r15d,%edx
  sub    %edx,%r11d
  test   %r14d,%r14d
  jle    L232
  movslq %r15d,%rax
  shl    $0x3,%rax
  mov    %rax,-0x28(%rsp)
  lea    -0x1(%r15),%eax
  lea    0x8(%rdi,%rax,8),%r8
  mov    $0x0,%r13d
  sub    %ebx,%esi
  mov    %esi,-0x18(%rsp)
  not    %rax
  shl    $0x3,%rax
  mov    %rax,-0x10(%rsp)
  mov    $0x1,%r12d
  mov    %ebx,%ebp
  not    %ebp
  mov    %r14d,-0x14(%rsp)
  jmp    L156
L292:
  mov    %r15d,%ecx
  shr    $0x1f,%ecx
  add    %r15d,%ecx
  sar    %ecx
  mov    %ecx,-0x14(%rsp)
  jmp    L329
L226:
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  mov    %eax,-0x8(%rsp)
  jmp    L96
L67:
  test   %edx,%edx
  cmove  %r12d,%edx
  mov    %edx,%eax
  neg    %eax
  cmovs  %edx,%eax
  mov    %ebx,%esi
  sub    %eax,%esi
  lea    0x1(%rsi),%edi
  add    %ebp,%eax
  cmp    $0xffffffff,%esi
  cmovge %edi,%eax
  add    %r10d,%eax
  cltq
  lea    (%r9,%rax,8),%rax
  movsd  (%rax),%xmm0
  addsd  (%rcx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%edx
  add    $0x8,%rcx
  cmp    %r8,%rcx
  jne    L67
L72:
  add    %r15d,%r11d
  add    -0x28(%rsp),%r8
  cmp    -0x14(%rsp),%r14d
  jge    L232
L156:
  mov    %r13d,%eax
  test   %r11d,%r11d
  cmove  %r15d,%r11d
  cmpl   $0x0,-0x20(%rsp)
  setg   %cl
  movzbl %cl,%ecx
  mov    -0x18(%rsp),%edx
  sub    %ecx,%edx
  add    %r15d,%r13d
  mov    %r13d,%r14d
  cmp    %eax,%r13d
  jle    L72
  mov    -0x10(%rsp),%rax
  lea    (%rax,%r8,1),%rcx
  mov    %r11d,%esi
  neg    %esi
  cmovs  %r11d,%esi
  mov    -0x1c(%rsp),%eax
  sub    %esi,%eax
  add    %r15d,%eax
  mov    %eax,%r10d
  neg    %r10d
  cmovs  %eax,%r10d
  jmp    L67
L317:
  mov    %r11d,%eax
  neg    %eax
  mov    %r11d,%ecx
  cmovns %eax,%ecx
  mov    %ecx,-0x18(%rsp)
  mov    %esi,%eax
  neg    %eax
  cmovns %eax,%esi
  mov    -0x1c(%rsp),%edx
  mov    %edx,%r12d
  sub    %ecx,%r12d
  sub    %r14d,%edx
  mov    %edx,-0x28(%rsp)
  cmp    %ecx,%r14d
  jle    L25
  mov    -0x14(%rsp),%eax
  add    %eax,%eax
  lea    (%rsi,%rbx,1),%edx
  mov    %edx,%ecx
  sub    %eax,%ecx
  sub    $0x1,%ecx
  mov    %ecx,-0x10(%rsp)
  mov    %ebx,%ebp
  sub    %r15d,%ebp
  sub    %edx,%eax
  lea    0x1(%rbx,%rax,1),%r14d
  mov    -0x20(%rsp),%r13d
  mov    %r8d,-0x4(%rsp)
  jmp    L155
L234:
  sub    %r15d,%r12d
  cmp    -0x28(%rsp),%r12d
  jle    L30
L155:
  mov    -0x18(%rsp),%eax
  lea    (%rax,%r12,1),%r11d
  mov    %ebx,%edx
  sub    %esi,%edx
  cmp    %esi,%r15d
  jle    L23
  mov    %r11d,%r10d
  neg    %r10d
  cmovs  %r11d,%r10d
  mov    %r12d,%r8d
  neg    %r8d
  cmovs  %r12d,%r8d
L174:
  lea    (%rsi,%rdx,1),%ecx
  mov    %ecx,%eax
  neg    %eax
  cmovs  %ecx,%eax
  add    %r10d,%eax
  cltq
  lea    (%r9,%rax,8),%rcx
  mov    %edx,%eax
  neg    %eax
  cmovs  %edx,%eax
  add    %r8d,%eax
  cltq
  movsd  (%rcx),%xmm0
  addsd  (%rdi,%rax,8),%xmm0
  movsd  %xmm0,(%rcx)
  sub    $0x1,%edx
  cmp    %ebp,%edx
  jg     L174
L23:
  test   %r13d,%r13d
  je     L234
  mov    -0x10(%rsp),%eax
  cmp    %ebp,%eax
  jle    L234
  mov    %eax,%edx
  mov    %r11d,%r10d
  neg    %r10d
  cmovs  %r11d,%r10d
  mov    %r12d,%r8d
  neg    %r8d
  cmovs  %r12d,%r8d
L332:
  lea    (%r14,%rdx,1),%ecx
  mov    %ecx,%eax
  neg    %eax
  cmovs  %ecx,%eax
  add    %r10d,%eax
  cltq
  lea    (%r9,%rax,8),%rcx
  mov    %edx,%eax
  neg    %eax
  cmovs  %edx,%eax
  add    %r8d,%eax
  cltq
  movsd  (%rcx),%xmm0
  addsd  (%rdi,%rax,8),%xmm0
  movsd  %xmm0,(%rcx)
  sub    $0x1,%edx
  cmp    %ebp,%edx
  jg     L332
  jmp    L234
L30:
  mov    -0x4(%rsp),%r8d
L25:
  test   %r8d,%r8d
  je     L232
  mov    -0x8(%rsp),%eax
  imul   %r15d,%eax
  add    %eax,%eax
  mov    -0x1c(%rsp),%r14d
  mov    %r14d,%edx
  sub    %eax,%edx
  mov    -0x18(%rsp),%eax
  add    %edx,%eax
  sub    %r15d,%eax
  cmp    -0x28(%rsp),%eax
  jle    L232
  mov    -0x14(%rsp),%edx
  add    %edx,%edx
  lea    (%rsi,%rbx,1),%ecx
  mov    %ecx,%r8d
  sub    %edx,%r8d
  lea    -0x1(%r8),%r11d
  mov    %r11d,-0x18(%rsp)
  mov    %eax,%ebp
  sub    %eax,%r14d
  mov    %ebx,%r11d
  sub    %r15d,%r11d
  sub    %ecx,%edx
  lea    0x1(%rbx,%rdx,1),%r13d
  mov    %r14d,-0x1c(%rsp)
  mov    -0x20(%rsp),%r14d
  jmp    L60
L248:
  sub    %r15d,%ebp
  cmp    -0x28(%rsp),%ebp
  jle    L232
L60:
  mov    -0x1c(%rsp),%eax
  lea    (%rax,%rbp,1),%r12d
  mov    %ebx,%edx
  sub    %esi,%edx
  cmp    %esi,%r15d
  jle    L143
  mov    %r12d,%r10d
  neg    %r10d
  cmovs  %r12d,%r10d
  mov    %ebp,%r8d
  neg    %r8d
  cmovs  %ebp,%r8d
L140:
  lea    (%rsi,%rdx,1),%ecx
  mov    %ecx,%eax
  neg    %eax
  cmovs  %ecx,%eax
  add    %r10d,%eax
  cltq
  lea    (%r9,%rax,8),%rcx
  mov    %edx,%eax
  neg    %eax
  cmovs  %edx,%eax
  add    %r8d,%eax
  cltq
  movsd  (%rcx),%xmm0
  addsd  (%rdi,%rax,8),%xmm0
  movsd  %xmm0,(%rcx)
  sub    $0x1,%edx
  cmp    %r11d,%edx
  jg     L140
L143:
  test   %r14d,%r14d
  je     L248
  mov    -0x18(%rsp),%eax
  cmp    %r11d,%eax
  jle    L248
  mov    %eax,%edx
  mov    %r12d,%r10d
  neg    %r10d
  cmovs  %r12d,%r10d
  mov    %ebp,%r8d
  neg    %r8d
  cmovs  %ebp,%r8d
L43:
  lea    0x0(%r13,%rdx,1),%ecx
  mov    %ecx,%eax
  neg    %eax
  cmovs  %ecx,%eax
  add    %r10d,%eax
  cltq
  lea    (%r9,%rax,8),%rcx
  mov    %edx,%eax
  neg    %eax
  cmovs  %edx,%eax
  add    %r8d,%eax
  cltq
  movsd  (%rcx),%xmm0
  addsd  (%rdi,%rax,8),%xmm0
  movsd  %xmm0,(%rcx)
  sub    $0x1,%edx
  cmp    %r11d,%edx
  jg     L43
  jmp    L248
L280:
  mov    %r14d,%esi
  sub    %r15d,%esi
  test   %r8d,%r8d
  mov    $0x0,%ecx
  cmovg  %esi,%ecx
  mov    %ecx,-0x1c(%rsp)
  mov    -0x20(%rsp),%ebx
  test   %ebx,%ebx
  mov    $0xffffffff,%esi
  cmovs  %ebx,%esi
  add    $0x1,%esi
  mov    $0x0,%ebx
  jmp    L173
L232:
  mov    $0x0,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int reflect2(filt, x_dim, y_dim, x_pos, y_pos, result, r_or_e)
register double *filt, *result;
register int x_dim;
int y_dim, x_pos, y_pos, r_or_e;
{
  int filt_sz = x_dim * y_dim;
  register int y_filt, x_filt, y_res, x_res;
  register int x_base = (x_pos > 0) ? (x_dim - 1) : 0;
  register int y_base = x_dim * ((y_pos > 0) ? (y_dim - 1) : 0);
  int x_overhang = (x_pos > 0) ? (x_pos - 1) : ((x_pos < 0) ? (x_pos + 1) : 0);
  int y_overhang = x_dim * ((y_pos > 0) ? (y_pos - 1) : ((y_pos < 0) ? (y_pos + 1) : 0));
  int i;
  int mx_pos = (x_pos < 0) ? (x_dim / 2) : ((x_dim - 1) / 2);
  int my_pos = x_dim * ((y_pos < 0) ? (y_dim / 2) : ((y_dim - 1) / 2));
  for (i = 0; i < filt_sz; i++)
    result[i] = 0.0;
  if (r_or_e == 0)
    for (y_filt = 0, y_res = (y_overhang - y_base) - ((y_pos > 0) ? x_dim : 0); y_filt < filt_sz; y_filt += x_dim, y_res += x_dim) {
      if (y_res == 0)
        y_res += x_dim;
      for (x_filt = y_filt, x_res = (x_overhang - x_base) - ((x_pos > 0) ? 1 : 0); x_filt < y_filt + x_dim; x_filt++, x_res++) {
        if (x_res == 0)
          x_res++;
        result[(((y_base - (((y_res) >= 0) ? (y_res) : (-(y_res))) + x_dim) >= 0) ? (y_base - (((y_res) >= 0) ? (y_res) : (-(y_res))) + x_dim) : (-(y_base - (((y_res) >= 0) ? (y_res) : (-(y_res))) + x_dim))) + (((x_base - (((x_res) >= 0) ? (x_res) : (-(x_res))) + 1) >= 0) ? (x_base - (((x_res) >= 0) ? (x_res) : (-(x_res))) + 1) : (-(x_base - (((x_res) >= 0) ? (x_res) : (-(x_res))) + 1)))] += filt[x_filt];
      }
    }
  else {
    y_overhang = (((y_overhang) >= 0) ? (y_overhang) : (-(y_overhang)));
    x_overhang = (((x_overhang) >= 0) ? (x_overhang) : (-(x_overhang)));
    for (y_res = y_base, y_filt = y_base - y_overhang; y_filt > y_base - filt_sz; y_filt -= x_dim, y_res -= x_dim) {
      for (x_res = x_base, x_filt = x_base - x_overhang; x_filt > x_base - x_dim; x_res--, x_filt--)
        result[(((y_res) >= 0) ? (y_res) : (-(y_res))) + (((x_res) >= 0) ? (x_res) : (-(x_res)))] += filt[(((y_filt) >= 0) ? (y_filt) : (-(y_filt))) + (((x_filt) >= 0) ? (x_filt) : (-(x_filt)))];
      if (x_pos != 0)
        for (x_res = x_base, x_filt = x_base - 2 * mx_pos + x_overhang - 1; x_filt > x_base - x_dim; x_res--, x_filt--)
          result[(((y_res) >= 0) ? (y_res) : (-(y_res))) + (((x_res) >= 0) ? (x_res) : (-(x_res)))] += filt[(((y_filt) >= 0) ? (y_filt) : (-(y_filt))) + (((x_filt) >= 0) ? (x_filt) : (-(x_filt)))];
    }
    if (y_pos != 0)
      for (y_res = y_base, y_filt = y_base - 2 * my_pos + y_overhang - x_dim; y_filt > y_base - filt_sz; y_filt -= x_dim, y_res -= x_dim) {
        for (x_res = x_base, x_filt = x_base - x_overhang; x_filt > x_base - x_dim; x_res--, x_filt--)
          result[(((y_res) >= 0) ? (y_res) : (-(y_res))) + (((x_res) >= 0) ? (x_res) : (-(x_res)))] += filt[(((y_filt) >= 0) ? (y_filt) : (-(y_filt))) + (((x_filt) >= 0) ? (x_filt) : (-(x_filt)))];
        if (x_pos != 0)
          for (x_res = x_base, x_filt = x_base - 2 * mx_pos + x_overhang - 1; x_filt > x_base - x_dim; x_res--, x_filt--)
            result[(((y_res) >= 0) ? (y_res) : (-(y_res))) + (((x_res) >= 0) ? (x_res) : (-(x_res)))] += filt[(((y_filt) >= 0) ? (y_filt) : (-(y_filt))) + (((x_filt) >= 0) ? (x_filt) : (-(x_filt)))];
      }
  }
  return (0);
}
```