user: 这段汇编代码用C语言表示是什么样的？

```asm
<reflect2>:
  endbr64
  push   %r15
  mov    %edx,%eax
  push   %r14
  mov    %r8d,%r14d
  push   %r13
  mov    %rdi,%r13
  mov    %ecx,%edi
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  imul   %edx,%r12d
  push   %rbx
  mov    %esi,%ebx
  sub    $0x38,%rsp
  mov    %ecx,0x10(%rsp)
  test   %ecx,%ecx
  jle    L25
  mov    %r12d,%ecx
  lea    -0x1(%rsi),%ebp
  lea    -0x1(%rdi),%r15d
  xor    %edx,%edx
  sub    %esi,%ecx
  test   %r8d,%r8d
  cmovg  %ecx,%edx
  mov    %edx,0xc(%rsp)
L305:
  test   %r14d,%r14d
  mov    $0xffffffff,%r10d
  lea    -0x1(%r14),%edx
  mov    0x10(%rsp),%esi
  cmovs  %r14d,%r10d
  add    $0x1,%r10d
  test   %r14d,%r14d
  cmovg  %edx,%r10d
  imul   %ebx,%r10d
  test   %esi,%esi
  js     L240
  lea    -0x1(%rbx),%ecx
  mov    %ecx,%edx
  shr    $0x1f,%edx
  add    %ecx,%edx
  sar    %edx
  mov    %edx,0x18(%rsp)
L342:
  test   %r14d,%r14d
  js     L48
  lea    -0x1(%rax),%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  mov    %eax,0x20(%rsp)
L178:
  test   %r12d,%r12d
  jle    L348
  movslq %r12d,%rdx
  mov    %r9,%rdi
  xor    %esi,%esi
  mov    %r10d,0x8(%rsp)
  shl    $0x3,%rdx
  call   <memset@plt>
  mov    0x8(%rsp),%r10d
  mov    %rax,%r9
L348:
  mov    0x70(%rsp),%ecx
  test   %ecx,%ecx
  jne    L140
  sub    0xc(%rsp),%r10d
  mov    %r10d,%eax
  sub    %ebx,%eax
  test   %r14d,%r14d
  cmovg  %eax,%r10d
  test   %r12d,%r12d
  jle    L347
  mov    0x10(%rsp),%edx
  mov    %r15d,%esi
  xor    %eax,%eax
  movslq %ebx,%r14
  sub    %ebp,%esi
  mov    $0xfffffffffffffff8,%r15
  test   %edx,%edx
  setg   %al
  shl    $0x3,%r14
  xor    %r11d,%r11d
  sub    %eax,%esi
  lea    -0x1(%rbx),%eax
  shl    $0x3,%rax
  mov    %esi,0x8(%rsp)
  lea    0x8(%r13,%rax,1),%rdi
  mov    %ebp,%r13d
  sub    %rax,%r15
  not    %r13d
  nopl   0x0(%rax,%rax,1)
L141:
  test   %r10d,%r10d
  mov    %r11d,%eax
  cmove  %ebx,%r10d
  add    %ebx,%r11d
  cmp    %r11d,%eax
  jge    L338
  mov    %r10d,%edx
  mov    0xc(%rsp),%eax
  lea    (%r15,%rdi,1),%rcx
  neg    %edx
  cmovs  %r10d,%edx
  sub    %edx,%eax
  mov    0x8(%rsp),%edx
  add    %ebx,%eax
  mov    %eax,%r8d
  neg    %r8d
  cmovs  %eax,%r8d
  jmp    L262
  nop
L330:
  mov    %edx,%eax
  mov    %ebp,%esi
  neg    %eax
  cmovs  %edx,%eax
  add    $0x1,%edx
  sub    %eax,%esi
  cmp    $0xffffffff,%esi
  jl     L314
L286:
  lea    0x1(%rsi,%r8,1),%eax
L29:
  cltq
  add    $0x8,%rcx
  lea    (%r9,%rax,8),%rax
  movsd  (%rax),%xmm0
  addsd  -0x8(%rcx),%xmm0
  movsd  %xmm0,(%rax)
  cmp    %rcx,%rdi
  je     L338
L262:
  test   %edx,%edx
  jne    L330
  mov    $0x1,%eax
  mov    %ebp,%esi
  mov    $0x2,%edx
  sub    %eax,%esi
  cmp    $0xffffffff,%esi
  jge    L286
L314:
  add    %r13d,%eax
  add    %r8d,%eax
  jmp    L29
  nopl   0x0(%rax,%rax,1)
L338:
  add    %ebx,%r10d
  add    %r14,%rdi
  cmp    %r11d,%r12d
  jg     L141
L347:
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L140:
  mov    %r10d,%eax
  mov    %r10d,%edi
  mov    0xc(%rsp),%ecx
  mov    %r15d,%esi
  neg    %eax
  cmovns %eax,%edi
  mov    %r15d,%eax
  mov    %ecx,%r11d
  neg    %eax
  cmovns %eax,%esi
  sub    %r12d,%ecx
  mov    %edi,0x24(%rsp)
  sub    %edi,%r11d
  mov    %ecx,0x8(%rsp)
  cmp    %edi,%r12d
  jle    L132
  mov    0x18(%rsp),%eax
  lea    0x0(%rbp,%rsi,1),%edx
  mov    %edi,%r12d
  mov    %ebp,0x28(%rsp)
  mov    %edx,%ecx
  mov    %r14d,0x2c(%rsp)
  mov    %ebp,%r10d
  mov    0x10(%rsp),%r14d
  add    %eax,%eax
  sub    %ebx,%r10d
  sub    %eax,%ecx
  sub    %edx,%eax
  lea    -0x1(%rcx),%edi
  lea    0x1(%rbp,%rax,1),%r15d
  mov    %edi,0x1c(%rsp)
  mov    %ebp,%edi
  sub    %esi,%edi
  mov    %edi,0x14(%rsp)
  nop
L117:
  lea    (%r11,%r12,1),%ebp
  mov    %r11d,%edi
  mov    0x14(%rsp),%edx
  mov    %ebp,%r8d
  neg    %r8d
  cmovs  %ebp,%r8d
  neg    %edi
  cmovs  %r11d,%edi
  cmp    %esi,%ebx
  jle    L243
  nop
L302:
  lea    (%rdx,%rsi,1),%ecx
  mov    %ecx,%eax
  neg    %eax
  cmovs  %ecx,%eax
  add    %r8d,%eax
  cltq
  lea    (%r9,%rax,8),%rcx
  mov    %edx,%eax
  neg    %eax
  movsd  (%rcx),%xmm0
  cmovs  %edx,%eax
  sub    $0x1,%edx
  add    %edi,%eax
  cltq
  addsd  0x0(%r13,%rax,8),%xmm0
  movsd  %xmm0,(%rcx)
  cmp    %r10d,%edx
  jg     L302
L243:
  test   %r14d,%r14d
  jne    L125
L248:
  sub    %ebx,%r11d
  cmp    0x8(%rsp),%r11d
  jg     L117
  mov    0x28(%rsp),%ebp
  mov    0x2c(%rsp),%r14d
L132:
  test   %r14d,%r14d
  je     L347
  mov    0x20(%rsp),%eax
  mov    0xc(%rsp),%edi
  imul   %ebx,%eax
  mov    %edi,%r11d
  add    %eax,%eax
  sub    %eax,%r11d
  add    0x24(%rsp),%r11d
  sub    %ebx,%r11d
  cmp    0x8(%rsp),%r11d
  jle    L347
  mov    0x18(%rsp),%eax
  lea    (%rsi,%rbp,1),%edx
  mov    %ebp,%r10d
  mov    %ebp,%r15d
  mov    %edx,%ecx
  sub    %r11d,%edi
  sub    %ebx,%r10d
  sub    %esi,%r15d
  add    %eax,%eax
  mov    %edi,%r12d
  sub    %eax,%ecx
  sub    %edx,%eax
  sub    $0x1,%ecx
  lea    0x1(%rbp,%rax,1),%r14d
  mov    %ecx,0xc(%rsp)
  nopl   (%rax)
L46:
  lea    (%r12,%r11,1),%ebp
  mov    %r11d,%edi
  mov    %r15d,%edx
  mov    %ebp,%r8d
  neg    %r8d
  cmovs  %ebp,%r8d
  neg    %edi
  cmovs  %r11d,%edi
  cmp    %esi,%ebx
  jle    L133
  xchg   %ax,%ax
L124:
  lea    (%rdx,%rsi,1),%ecx
  mov    %ecx,%eax
  neg    %eax
  cmovs  %ecx,%eax
  add    %r8d,%eax
  cltq
  lea    (%r9,%rax,8),%rcx
  mov    %edx,%eax
  neg    %eax
  movsd  (%rcx),%xmm0
  cmovs  %edx,%eax
  sub    $0x1,%edx
  add    %edi,%eax
  cltq
  addsd  0x0(%r13,%rax,8),%xmm0
  movsd  %xmm0,(%rcx)
  cmp    %r10d,%edx
  jg     L124
L133:
  mov    0x10(%rsp),%eax
  test   %eax,%eax
  jne    L333
L323:
  sub    %ebx,%r11d
  cmp    0x8(%rsp),%r11d
  jg     L46
  jmp    L347
  nopl   0x0(%rax)
L125:
  mov    0x1c(%rsp),%edx
  cmp    %r10d,%edx
  jle    L248
  mov    %ebp,%r8d
  mov    %r11d,%edi
  neg    %r8d
  cmovs  %ebp,%r8d
  neg    %edi
  cmovs  %r11d,%edi
L312:
  lea    (%r15,%rdx,1),%ecx
  mov    %ecx,%eax
  neg    %eax
  cmovs  %ecx,%eax
  add    %r8d,%eax
  cltq
  lea    (%r9,%rax,8),%rcx
  mov    %edx,%eax
  neg    %eax
  movsd  (%rcx),%xmm0
  cmovs  %edx,%eax
  sub    $0x1,%edx
  add    %edi,%eax
  cltq
  addsd  0x0(%r13,%rax,8),%xmm0
  movsd  %xmm0,(%rcx)
  cmp    %r10d,%edx
  jg     L312
  jmp    L248
  nopl   0x0(%rax,%rax,1)
L333:
  mov    0xc(%rsp),%edx
  cmp    %r10d,%edx
  jle    L323
  mov    %ebp,%r8d
  mov    %r11d,%edi
  neg    %r8d
  cmovs  %ebp,%r8d
  neg    %edi
  cmovs  %r11d,%edi
  nopl   0x0(%rax)
L233:
  lea    (%r14,%rdx,1),%ecx
  mov    %ecx,%eax
  neg    %eax
  cmovs  %ecx,%eax
  add    %r8d,%eax
  cltq
  lea    (%r9,%rax,8),%rcx
  mov    %edx,%eax
  neg    %eax
  movsd  (%rcx),%xmm0
  cmovs  %edx,%eax
  sub    $0x1,%edx
  add    %edi,%eax
  cltq
  addsd  0x0(%r13,%rax,8),%xmm0
  movsd  %xmm0,(%rcx)
  cmp    %r10d,%edx
  jg     L233
  jmp    L323
  nopl   0x0(%rax,%rax,1)
L25:
  mov    %r12d,%ecx
  xor    %edx,%edx
  sub    %esi,%ecx
  test   %r8d,%r8d
  mov    $0xffffffff,%esi
  cmovg  %ecx,%edx
  test   %edi,%edi
  cmovs  %edi,%esi
  xor    %ebp,%ebp
  mov    %edx,0xc(%rsp)
  lea    0x1(%rsi),%r15d
  jmp    L305
  cs nopw 0x0(%rax,%rax,1)
L48:
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,0x20(%rsp)
  jmp    L178
  nopw   0x0(%rax,%rax,1)
L240:
  mov    %ebx,%edx
  shr    $0x1f,%edx
  add    %ebx,%edx
  sar    %edx
  mov    %edx,0x18(%rsp)
  jmp    L342
```

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