user: Demonstrate the C code that generates the assembly output below:

```asm
<test>:
  endbr64
  push   %r15
  mov    %edi,%eax
  push   %r14
  mov    %edi,%r14d
  push   %r13
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  mov    %edx,%ebp
  mov    %esi,%edx
  push   %rbx
  sub    $0x48,%rsp
  neg    %eax
  cmovs  %edi,%eax
  neg    %edx
  cmovs  %esi,%edx
  cmp    %edx,%eax
  cmovl  %edx,%eax
  mov    %eax,%edx
  shl    $0x8,%edx
  lea    0xc(%rax,%rdx,1),%r8d
  mov    %ebp,%eax
  neg    %eax
  cmovs  %ebp,%eax
  lea    (%r8,%rax,1),%r13d
  lea    0x0(,%r13,8),%edi
  call   <__builtin_alloca@plt>
  mov    %rax,0x18(%rsp)
  mov    %rax,%rdx
  xor    %eax,%eax
  nopl   0x0(%rax)
L110:
  pxor   %xmm0,%xmm0
  add    $0x8,%rdx
  cvtsi2sd %eax,%xmm0
  add    $0x1,%eax
  movsd  %xmm0,-0x8(%rdx)
  cmp    %eax,%r13d
  jne    L110
  mov    $0x6,%eax
  mov    %eax,%r10d
  sub    %ebp,%r10d
  test   %ebp,%ebp
  cmovs  %r10d,%eax
  mov    %eax,%r8d
  mov    $0x0,%eax
  cmovs  %eax,%ebp
  lea    0x6(%rbp),%eax
  mov    %eax,0x4(%rsp)
  test   %r14d,%r14d
  js     L151
  test   %r12d,%r12d
  js     L144
  movslq 0x4(%rsp),%rax
  mov    0x18(%rsp),%rdi
  mov    %r8d,0x28(%rsp)
  lea    (%rdi,%rax,8),%rsi
  mov    %rax,0x20(%rsp)
  movslq %r8d,%rax
  lea    (%rdi,%rax,8),%rdi
L222:
  mov    %r12d,%ecx
  mov    %r14d,%edx
  xor    %ebx,%ebx
  mov    $0x1,%r15d
  call   <f@plt>
  mov    0x28(%rsp),%r8d
L405:
  movslq %r15d,%rax
  mov    0x18(%rsp),%rsi
  xor    %ebp,%ebp
  mov    %rax,0x38(%rsp)
  lea    0x0(,%rax,8),%rdi
  movslq %ebx,%rax
  lea    (%rsi,%rax,8),%rcx
  movslq %r12d,%rax
  shl    $0x3,%rax
  mov    %rax,0x30(%rsp)
  mov    0x4(%rsp),%eax
  add    $0x101,%eax
  mov    %eax,0x2c(%rsp)
  nopl   0x0(%rax)
L160:
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebx,%xmm0
  cmp    $0x101,%ebp
  je     L91
  mov    %r14d,%eax
  imul   %ebp,%eax
  add    %r8d,%eax
  cmp    %ebx,%eax
  je     L77
L91:
  ucomisd (%rcx),%xmm0
  jp     L96
  jne    L96
  add    %r15d,%ebx
  cmp    %ebx,%r13d
  je     L195
L70:
  add    %rdi,%rcx
  cmp    $0x101,%ebp
  jne    L160
  movslq %ebx,%rbx
  jmp    L66
  nopl   0x0(%rax)
L144:
  mov    %r12d,%eax
  mov    0x18(%rsp),%rcx
  mov    %r8d,0x28(%rsp)
  shl    $0x8,%eax
  sub    %eax,0x4(%rsp)
  movslq 0x4(%rsp),%rax
  mov    %rax,0x20(%rsp)
  lea    (%rcx,%rax,8),%rsi
  movslq %r8d,%rax
  lea    (%rcx,%rax,8),%rdi
  jmp    L222
  cs nopw 0x0(%rax,%rax,1)
L96:
  xor    %eax,%eax
  add    %r15d,%ebx
  mov    %rdi,0x10(%rsp)
  mov    %rcx,0x8(%rsp)
  mov    %r8d,0x28(%rsp)
  call   <abort@plt>
  mov    0x28(%rsp),%r8d
  mov    0x8(%rsp),%rcx
  mov    0x10(%rsp),%rdi
  cmp    %ebx,%r13d
  jne    L70
L195:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L77:
  test   %r14d,%r14d
  je     L38
  mov    %r12d,%edx
  imul   %ebp,%edx
  add    0x4(%rsp),%edx
  test   %r14d,%r14d
  js     L103
  cmp    %ebx,%edx
  setl   %al
L257:
  test   %al,%al
  je     L28
  mov    0x18(%rsp),%rax
  movslq %edx,%rdx
  addsd  (%rax,%rdx,8),%xmm0
L403:
  ucomisd (%rcx),%xmm0
  jp     L328
  jne    L328
L213:
  add    $0x1,%ebp
L365:
  add    %r15d,%ebx
  cmp    %ebx,%r13d
  je     L195
  add    %rdi,%rcx
  jmp    L160
L28:
  pxor   %xmm1,%xmm1
  cvtsi2sd %edx,%xmm1
  addsd  %xmm1,%xmm0
  jmp    L403
  nopw   0x0(%rax,%rax,1)
L103:
  cmp    %ebx,%edx
  setg   %al
  jmp    L257
  nopw   0x0(%rax,%rax,1)
L328:
  xor    %eax,%eax
  mov    %rdi,0x10(%rsp)
  mov    %rcx,0x8(%rsp)
  mov    %r8d,0x28(%rsp)
  call   <abort@plt>
  mov    0x10(%rsp),%rdi
  mov    0x8(%rsp),%rcx
  mov    0x28(%rsp),%r8d
  jmp    L213
  nopw   0x0(%rax,%rax,1)
L38:
  cmp    $0x1,%r12d
  jne    L301
  mov    0x4(%rsp),%eax
  mov    0x18(%rsp),%rsi
  add    %ebp,%eax
  movslq %ebp,%rbp
  add    0x20(%rsp),%rbp
  lea    (%rsi,%rbp,8),%rdx
  mov    0x2c(%rsp),%esi
  jmp    L97
  nopw   0x0(%rax,%rax,1)
L63:
  addsd  (%rdx),%xmm0
L11:
  add    $0x1,%eax
  add    $0x8,%rdx
  cmp    %esi,%eax
  je     L94
L97:
  cmp    %ebx,%eax
  jl     L63
  je     L370
  pxor   %xmm1,%xmm1
  add    $0x8,%rdx
  cvtsi2sd %eax,%xmm1
  add    $0x1,%eax
  addsd  %xmm1,%xmm0
  cmp    %esi,%eax
  jne    L97
L94:
  ucomisd (%rcx),%xmm0
  jp     L65
  mov    $0x101,%ebp
  je     L365
L65:
  xor    %eax,%eax
  mov    %rdi,0x10(%rsp)
  mov    $0x101,%ebp
  mov    %rcx,0x8(%rsp)
  mov    %r8d,0x28(%rsp)
  call   <abort@plt>
  mov    0x28(%rsp),%r8d
  mov    0x8(%rsp),%rcx
  mov    0x10(%rsp),%rdi
  jmp    L365
  nopl   0x0(%rax)
L370:
  addsd  %xmm0,%xmm0
  jmp    L11
  cs nopw 0x0(%rax,%rax,1)
L151:
  mov    %r14d,%eax
  shl    $0x8,%eax
  sub    %eax,%r8d
  test   %r12d,%r12d
  js     L259
  movslq 0x4(%rsp),%rax
  mov    0x18(%rsp),%rcx
  mov    %r14d,%edx
  mov    %r8d,0x28(%rsp)
  lea    (%rcx,%rax,8),%rsi
  mov    %rax,0x20(%rsp)
  movslq %r8d,%rax
  lea    (%rcx,%rax,8),%rdi
  mov    %r12d,%ecx
  call   <f@plt>
  mov    0x28(%rsp),%r8d
L16:
  lea    -0x1(%r13),%ebx
  mov    $0xffffffff,%r15d
  mov    $0xffffffff,%r13d
  jmp    L405
  nopw   0x0(%rax,%rax,1)
L259:
  mov    %r12d,%eax
  mov    0x18(%rsp),%rdi
  mov    %r12d,%ecx
  mov    %r14d,%edx
  shl    $0x8,%eax
  sub    %eax,0x4(%rsp)
  movslq 0x4(%rsp),%rax
  mov    %r8d,0x28(%rsp)
  lea    (%rdi,%rax,8),%rsi
  mov    %rax,0x20(%rsp)
  movslq %r8d,%rax
  lea    (%rdi,%rax,8),%rdi
  call   <f@plt>
  mov    0x28(%rsp),%r8d
  jmp    L16
L301:
  mov    %r12d,%edx
  mov    0x4(%rsp),%eax
  mov    0x18(%rsp),%rsi
  imul   %ebp,%edx
  add    %edx,%eax
  movslq %edx,%rdx
  add    0x20(%rsp),%rdx
  lea    (%rsi,%rdx,8),%rdx
  mov    0x30(%rsp),%rsi
  jmp    L270
  nopw   0x0(%rax,%rax,1)
L316:
  addsd  (%rdx),%xmm0
L202:
  add    $0x1,%ebp
  add    %r12d,%eax
  add    %rsi,%rdx
  cmp    $0x101,%ebp
  je     L94
L270:
  cmp    %ebx,%eax
  jl     L316
  je     L212
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  addsd  %xmm1,%xmm0
  jmp    L202
  nopl   (%rax)
L212:
  addsd  %xmm0,%xmm0
  jmp    L202
```

assistant: ```c
void __attribute__((weak, optimize("no-tree-vectorize"))) test(int n, int m, int offset) {
  int abs_n = (n < 0 ? -n : n);
  int abs_m = (m < 0 ? -m : m);
  int max_i = (abs_n > abs_m ? abs_n : abs_m);
  int abs_offset = (offset < 0 ? -offset : offset);
  int size = 6 * 2 + max_i * 257 + abs_offset;
  double *array = (double *)__builtin_alloca(size * sizeof(double));
  for (int i = 0; i < size; ++i)
    array[i] = i;
  int base_x = offset < 0 ? 6 - offset : 6;
  int base_y = offset < 0 ? 6 : 6 + offset;
  int start_x = n < 0 ? base_x - n * (257 - 1) : base_x;
  int start_y = m < 0 ? base_y - m * (257 - 1) : base_y;
  f(&array[start_x], &array[start_y], n, m);
  int j = 0;
  int start = (n < 0 ? size - 1 : 0);
  int end = (n < 0 ? -1 : size);
  int inc = (n < 0 ? -1 : 1);
  for (int i = start; i != end; i += inc) {
    if (j == 257 || i != start_x + j * n) {
      if (array[i] != i)
        abort();
    } else if (n == 0) {
      double sum = i;
      for (; j < 257; j++) {
        int next_y = start_y + j * m;
        if (n >= 0 ? next_y < i : next_y > i)
          sum += array[next_y];
        else if (next_y == i)
          sum += sum;
        else
          sum += next_y;
      }
      if (array[i] != sum)
        abort();
    } else {
      int next_y = start_y + j * m;
      double base = i;
      if (n >= 0 ? next_y < i : next_y > i)
        base += array[next_y];
      else
        base += next_y;
      if (array[i] != base)
        abort();
      j += 1;
    }
  }
}
```