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

```asm
<repeat>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebp
  mov    %edx,%esi
  mov    %ecx,%eax
  mov    0x38(%rsp),%r11d
  test   %ecx,%ecx
  jle    L279
  lea    -0x1(%rbp),%r14d
  test   %r8d,%r8d
  jle    L340
  lea    -0x1(%rdx),%ebx
  imul   %ebp,%ebx
L165:
  sub    $0x1,%eax
  mov    %eax,-0xc(%rsp)
L463:
  lea    -0x1(%r8),%edx
  test   %r8d,%r8d
  mov    $0xffffffff,%eax
  cmovs  %r8d,%eax
  add    $0x1,%eax
  test   %r8d,%r8d
  cmovg  %edx,%eax
  imul   %ebp,%eax
  mov    %ebp,%r10d
  imul   %esi,%r10d
  test   %r10d,%r10d
  jle    L228
  mov    %r9,%rdx
  lea    -0x1(%r10),%ecx
  lea    0x8(%r9,%rcx,8),%rcx
L444:
  movq   $0x0,(%rdx)
  add    $0x8,%rdx
  cmp    %rcx,%rdx
  jne    L444
  test   %r11d,%r11d
  jne    L382
  movslq %ebp,%rdx
  lea    0x0(,%rdx,8),%rbx
  mov    %rbx,-0x18(%rsp)
  mov    %eax,%r8d
  mov    $0x0,%r15d
  mov    %ebp,%ebx
  sub    %eax,%ebx
  mov    %ebx,-0x8(%rsp)
  mov    -0xc(%rsp),%ebx
  lea    (%rbx,%rbp,1),%edx
  sub    %eax,%edx
  mov    %edx,-0x4(%rsp)
  mov    %r10d,%r14d
  sub    %ebp,%r14d
  lea    -0x1(%rbp),%r13d
  jmp    L319
L340:
  mov    $0x0,%ebx
  jmp    L165
L101:
  add    %esi,%eax
  cltq
  lea    (%r9,%rax,8),%rax
  movsd  (%rax),%xmm0
  addsd  (%rcx),%xmm0
  movsd  %xmm0,(%rax)
  add    $0x1,%edx
  add    $0x8,%rcx
  cmp    %ebx,%edx
  je     L136
L142:
  mov    %r11d,%eax
  test   %r8d,%r8d
  js     L335
  cmp    %r8d,%r10d
  mov    %r12d,%eax
  cmovle %r14d,%eax
L335:
  mov    %r11d,%esi
  test   %edx,%edx
  js     L101
  cmp    %edx,%ebp
  mov    %edx,%esi
  cmovle %r13d,%esi
  jmp    L101
L136:
  add    %ebp,%r8d
  add    %ebp,%r15d
  add    -0x18(%rsp),%rdi
  cmp    %r15d,%r10d
  jle    L392
L319:
  mov    -0x8(%rsp),%eax
  add    %r8d,%eax
  cmp    %r15d,%eax
  jle    L136
  mov    -0x4(%rsp),%eax
  lea    (%rax,%r8,1),%ebx
  sub    %r15d,%ebx
  mov    %rdi,%rcx
  mov    -0xc(%rsp),%edx
  mov    %r8d,%r12d
  jmp    L142
L382:
  mov    %ebp,%edx
  shr    $0x1f,%edx
  add    %ebp,%edx
  sar    %edx
  mov    %edx,-0x18(%rsp)
  mov    %ebx,%ecx
  sub    %eax,%ecx
  mov    %esi,%edx
  shr    $0x1f,%edx
  add    %esi,%edx
  sar    %edx
  imul   %ebp,%edx
  cmp    %edx,%ecx
  je     L380
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,-0x8(%rsp)
  mov    %ebx,%r11d
  sub    %eax,%r11d
  sub    %r10d,%ebx
  cmp    %r10d,%eax
  jge    L392
  mov    %r14d,%r15d
  mov    -0xc(%rsp),%eax
  sub    %eax,%r15d
  mov    %eax,%r12d
  neg    %r12d
  cmovs  %eax,%r12d
  mov    %r14d,%esi
  sub    %ebp,%esi
  jmp    L401
L425:
  lea    (%rdx,%r12,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    %esi,%edx
  jg     L425
L217:
  sub    %ebp,%r11d
  cmp    %ebx,%r11d
  jle    L392
L401:
  mov    -0x8(%rsp),%eax
  add    %r11d,%eax
  cmp    -0x18(%rsp),%r15d
  je     L157
  mov    %r14d,%edx
  sub    %r12d,%edx
  cmp    %ebp,%r12d
  jge    L217
  mov    %eax,%r10d
  neg    %r10d
  cmovs  %eax,%r10d
  mov    %r11d,%r8d
  neg    %r8d
  cmovs  %r11d,%r8d
  jmp    L425
L157:
  mov    %r14d,%r10d
  sub    %r12d,%r10d
  mov    %eax,%r13d
  neg    %r13d
  cmovs  %eax,%r13d
  mov    %r11d,%r8d
  neg    %r8d
  cmovs  %r11d,%r8d
  cmp    %ebp,%r12d
  jl     L219
  jmp    L217
L59:
  mov    %edx,%eax
  neg    %eax
  cmovs  %edx,%eax
  add    %r13d,%eax
  cltq
  lea    (%r9,%rax,8),%rcx
  mov    %r10d,%edx
L88:
  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    %esi,%edx
  jne    L88
L312:
  sub    $0x1,%r10d
  cmp    %esi,%r10d
  jle    L217
L219:
  lea    (%r10,%r12,1),%edx
  cmp    %r10d,%esi
  jl     L59
  jmp    L312
L380:
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,-0x4(%rsp)
  mov    %ebx,%esi
  sub    %eax,%esi
  mov    %esi,-0x8(%rsp)
  sub    %r10d,%ebx
  mov    %ebx,%r13d
  mov    %r14d,%r15d
  mov    -0xc(%rsp),%ebx
  sub    %ebx,%r15d
  mov    %ebx,%r11d
  neg    %r11d
  cmovs  %ebx,%r11d
  mov    %r14d,%esi
  sub    %ebp,%esi
  cmp    %r10d,%eax
  jl     L55
  jmp    L392
L287:
  mov    %r14d,%r10d
  sub    %r11d,%r10d
  mov    %r12d,%r8d
  neg    %r8d
  cmovs  %r12d,%r8d
  cmp    %ebp,%r11d
  jl     L260
L387:
  sub    %ebp,%r12d
  cmp    %r13d,%r12d
  jle    L50
L421:
  cmp    -0x18(%rsp),%r15d
  je     L287
  mov    %r14d,%edx
  sub    %r11d,%edx
  cmp    %ebp,%r11d
  jge    L387
  mov    %r12d,%r8d
  neg    %r8d
  cmovs  %r12d,%r8d
L209:
  lea    (%rdx,%r11,1),%ecx
  mov    %ecx,%eax
  neg    %eax
  cmovs  %ecx,%eax
  add    %ebx,%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    %esi,%edx
  jg     L209
  jmp    L387
L23:
  mov    %edx,%eax
  neg    %eax
  cmovs  %edx,%eax
  add    %ebx,%eax
  cltq
  lea    (%r9,%rax,8),%rcx
  mov    %r10d,%edx
L202:
  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    %esi,%edx
  jne    L202
L362:
  sub    $0x1,%r10d
  cmp    %esi,%r10d
  jle    L387
L260:
  lea    (%r11,%r10,1),%edx
  cmp    %r10d,%esi
  jl     L23
  jmp    L362
L50:
  sub    %ebp,-0x8(%rsp)
  mov    -0x8(%rsp),%eax
  cmp    %r13d,%eax
  jle    L392
L55:
  mov    -0x8(%rsp),%ecx
  mov    %ecx,%eax
  add    -0x4(%rsp),%eax
  mov    %ecx,%r12d
  mov    %eax,%ebx
  neg    %ebx
  cmovs  %eax,%ebx
  cmp    %ecx,%r13d
  jl     L421
  jmp    L50
L228:
  test   %r11d,%r11d
  je     L392
  mov    %ebp,%edx
  shr    $0x1f,%edx
  add    %ebp,%edx
  sar    %edx
  mov    %edx,-0x18(%rsp)
  mov    %ebx,%ecx
  sub    %eax,%ecx
  mov    %esi,%edx
  shr    $0x1f,%edx
  add    %esi,%edx
  sar    %edx
  imul   %ebp,%edx
  cmp    %edx,%ecx
  je     L380
L392:
  mov    $0x0,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L279:
  mov    $0x0,%ebx
  test   %r8d,%r8d
  jle    L36
  lea    -0x1(%rdx),%ebx
  imul   %ebp,%ebx
L36:
  test   %eax,%eax
  mov    $0xffffffff,%edx
  cmovns %edx,%eax
  add    $0x1,%eax
  mov    %eax,-0xc(%rsp)
  mov    $0x0,%r14d
  jmp    L463
```

assistant: ```c
int repeat(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;
{
  register int y_filt, x_filt, y_res, x_res, y_tmp, x_tmp;
  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 filt_sz = x_dim * y_dim;
  int mx_pos = (x_dim / 2);
  int my_pos = x_dim * (y_dim / 2);
  int i;
  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_filt < filt_sz; y_filt += x_dim, y_res += x_dim)
      for (x_filt = y_filt, x_res = x_overhang; x_filt < y_filt + x_dim; x_filt++, x_res++)
        result[((y_res >= 0) ? ((y_res < filt_sz) ? y_res : (filt_sz - x_dim)) : 0) + ((x_res >= 0) ? ((x_res < x_dim) ? x_res : (x_dim - 1)) : 0)] += filt[x_filt];
  else {
    if ((y_base - y_overhang) != my_pos)
      for (y_res = y_base, y_filt = y_base - (((y_overhang) >= 0) ? (y_overhang) : (-(y_overhang))); y_filt > y_base - filt_sz; y_filt -= x_dim, y_res -= x_dim)
        if ((x_base - x_overhang) != mx_pos)
          for (x_res = x_base, x_filt = x_base - (((x_overhang) >= 0) ? (x_overhang) : (-(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)))];
        else
          for (x_res = x_base, x_filt = x_base - (((x_overhang) >= 0) ? (x_overhang) : (-(x_overhang))); x_filt > x_base - x_dim; x_filt--, x_res--)
            for (x_tmp = x_filt; x_tmp > x_base - x_dim; x_tmp--)
              result[(((y_res) >= 0) ? (y_res) : (-(y_res))) + (((x_res) >= 0) ? (x_res) : (-(x_res)))] += filt[(((y_filt) >= 0) ? (y_filt) : (-(y_filt))) + (((x_tmp) >= 0) ? (x_tmp) : (-(x_tmp)))];
    else
      for (y_res = y_base, y_filt = y_base - (((y_overhang) >= 0) ? (y_overhang) : (-(y_overhang))); y_filt > y_base - filt_sz; y_filt -= x_dim, y_res -= x_dim)
        for (y_tmp = y_filt; y_tmp > y_base - filt_sz; y_tmp -= x_dim)
          if ((x_base - x_overhang) != mx_pos)
            for (x_res = x_base, x_filt = x_base - (((x_overhang) >= 0) ? (x_overhang) : (-(x_overhang))); x_filt > x_base - x_dim; x_filt--, x_res--)
              result[(((y_res) >= 0) ? (y_res) : (-(y_res))) + (((x_res) >= 0) ? (x_res) : (-(x_res)))] += filt[(((y_tmp) >= 0) ? (y_tmp) : (-(y_tmp))) + (((x_filt) >= 0) ? (x_filt) : (-(x_filt)))];
          else
            for (x_res = x_base, x_filt = x_base - (((x_overhang) >= 0) ? (x_overhang) : (-(x_overhang))); x_filt > x_base - x_dim; x_filt--, x_res--)
              for (x_tmp = x_filt; x_tmp > x_base - x_dim; x_tmp--)
                result[(((y_res) >= 0) ? (y_res) : (-(y_res))) + (((x_res) >= 0) ? (x_res) : (-(x_res)))] += filt[(((y_tmp) >= 0) ? (y_tmp) : (-(y_tmp))) + (((x_tmp) >= 0) ? (x_tmp) : (-(x_tmp)))];
  }
  return (0);
}
```