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

```asm
<test>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %edi,%r14d
  mov    %esi,%r15d
  mov    %edx,%ebx
  mov    %edi,%eax
  neg    %eax
  cmovs  %edi,%eax
  mov    %esi,%edx
  neg    %edx
  cmovs  %esi,%edx
  cmp    %edx,%eax
  cmovl  %edx,%eax
  mov    %eax,%edx
  shl    $0x8,%edx
  lea    0xc(%rax,%rdx,1),%r13d
  mov    %ebx,%eax
  neg    %eax
  cmovs  %ebx,%eax
  add    %eax,%r13d
  lea    0x0(,%r13,8),%edi
  call   <__builtin_alloca@plt>
  mov    %rax,0x18(%rsp)
  mov    %rax,%rdx
  mov    $0x0,%eax
L135:
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,(%rdx)
  add    $0x1,%eax
  add    $0x8,%rdx
  cmp    %eax,%r13d
  jne    L135
  mov    $0x6,%eax
  sub    %ebx,%eax
  test   %ebx,%ebx
  mov    $0x6,%edx
  mov    %edx,%esi
  cmovs  %eax,%esi
  mov    $0x0,%eax
  cmovs  %eax,%ebx
  lea    0x6(%rbx),%ecx
  mov    %r14d,%edx
  shl    $0x8,%edx
  mov    %esi,%eax
  sub    %edx,%eax
  test   %r14d,%r14d
  cmovns %esi,%eax
  mov    %eax,%edi
  mov    %eax,0x20(%rsp)
  mov    %r15d,%edx
  shl    $0x8,%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  test   %r15d,%r15d
  cmovns %ecx,%eax
  mov    %eax,0x24(%rsp)
  cltq
  mov    %rax,0x28(%rsp)
  mov    0x18(%rsp),%rcx
  lea    (%rcx,%rax,8),%rsi
  movslq %edi,%rax
  lea    (%rcx,%rax,8),%rdi
  mov    %r15d,%ecx
  mov    %r14d,%edx
  call   <f@plt>
  mov    $0x0,%ebx
  movl   $0x1,0x4(%rsp)
  test   %r14d,%r14d
  js     L219
L113:
  movslq 0x4(%rsp),%rax
  shl    $0x3,%rax
  mov    %rax,0x8(%rsp)
  movslq %ebx,%rax
  mov    0x18(%rsp),%rdi
  lea    (%rdi,%rax,8),%rbp
  movslq %r15d,%rax
  shl    $0x3,%rax
  mov    %rax,0x10(%rsp)
  mov    $0x0,%r12d
  jmp    L9
L219:
  lea    -0x1(%r13),%ebx
  mov    $0xffffffff,%r13d
  movl   $0xffffffff,0x4(%rsp)
  jmp    L113
L265:
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebx,%xmm0
  ucomisd 0x0(%rbp),%xmm0
  jp     L44
  jne    L44
L209:
  add    0x4(%rsp),%ebx
  add    0x8(%rsp),%rbp
  cmp    %ebx,%r13d
  je     L206
L9:
  cmp    $0x101,%r12d
  je     L265
  mov    %r14d,%eax
  imul   %r12d,%eax
  add    0x20(%rsp),%eax
  cmp    %ebx,%eax
  jne    L265
  test   %r14d,%r14d
  je     L128
  mov    %r15d,%edx
  imul   %r12d,%edx
  add    0x24(%rsp),%edx
  test   %r14d,%r14d
  js     L280
  cmp    %ebx,%edx
  setl   %al
L136:
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebx,%xmm0
  test   %al,%al
  jne    L193
  pxor   %xmm1,%xmm1
  cvtsi2sd %edx,%xmm1
  addsd  %xmm1,%xmm0
  jmp    L238
L44:
  mov    $0x0,%eax
  call   <abort@plt>
  jmp    L209
L128:
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebx,%xmm0
  cmp    $0x100,%r12d
  jg     L48
  mov    %r15d,%edx
  imul   %r12d,%edx
  mov    0x24(%rsp),%eax
  add    %edx,%eax
  movslq %edx,%rdx
  add    0x28(%rsp),%rdx
  mov    0x18(%rsp),%rdi
  lea    (%rdi,%rdx,8),%rdx
  jmp    L122
L108:
  je     L127
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  addsd  %xmm1,%xmm0
L235:
  add    $0x1,%r12d
  add    %r15d,%eax
  add    0x10(%rsp),%rdx
  cmp    $0x101,%r12d
  je     L48
L122:
  cmp    %ebx,%eax
  jge    L108
  addsd  (%rdx),%xmm0
  jmp    L235
L127:
  addsd  %xmm0,%xmm0
  jmp    L235
L48:
  ucomisd 0x0(%rbp),%xmm0
  jp     L180
  je     L209
L180:
  mov    $0x0,%eax
  call   <abort@plt>
  jmp    L209
L280:
  cmp    %ebx,%edx
  setg   %al
  jmp    L136
L193:
  movslq %edx,%rdx
  mov    0x18(%rsp),%rax
  addsd  (%rax,%rdx,8),%xmm0
L238:
  ucomisd 0x0(%rbp),%xmm0
  jp     L244
  jne    L244
L71:
  add    $0x1,%r12d
  jmp    L209
L244:
  mov    $0x0,%eax
  call   <abort@plt>
  jmp    L71
L206:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

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