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

```asm
<test>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %edi,-0x64(%rbp)
  mov    %esi,-0x68(%rbp)
  mov    %edx,-0x6c(%rbp)
  mov    -0x64(%rbp),%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,-0x50(%rbp)
  mov    -0x68(%rbp),%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0x4c(%rbp),%edx
  mov    -0x50(%rbp),%eax
  cmp    %eax,%edx
  cmovge %edx,%eax
  mov    %eax,-0x48(%rbp)
  mov    -0x6c(%rbp),%eax
  mov    %eax,%edx
  neg    %edx
  cmovns %edx,%eax
  mov    %eax,-0x44(%rbp)
  mov    -0x48(%rbp),%eax
  mov    %eax,%edx
  shl    $0x8,%edx
  add    %edx,%eax
  lea    0xc(%rax),%edx
  mov    -0x44(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x40(%rbp)
  mov    -0x40(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <__builtin_alloca@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x5c(%rbp)
  jmp    L295
L344:
  mov    -0x5c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x5c(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x5c(%rbp)
L295:
  mov    -0x5c(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L344
  cmpl   $0x0,-0x6c(%rbp)
  jns    L259
  mov    $0x6,%eax
  sub    -0x6c(%rbp),%eax
  jmp    L273
L259:
  mov    $0x6,%eax
L273:
  mov    %eax,-0x3c(%rbp)
  mov    -0x6c(%rbp),%eax
  mov    $0x0,%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  add    $0x6,%eax
  mov    %eax,-0x38(%rbp)
  cmpl   $0x0,-0x64(%rbp)
  jns    L166
  mov    -0x64(%rbp),%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  sub    %edx,%eax
  jmp    L230
L166:
  mov    -0x3c(%rbp),%eax
L230:
  mov    %eax,-0x34(%rbp)
  cmpl   $0x0,-0x68(%rbp)
  jns    L72
  mov    -0x68(%rbp),%eax
  shl    $0x8,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%eax
  sub    %edx,%eax
  jmp    L206
L72:
  mov    -0x38(%rbp),%eax
L206:
  mov    %eax,-0x30(%rbp)
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x68(%rbp),%edx
  mov    -0x64(%rbp),%eax
  mov    %edx,%ecx
  mov    %eax,%edx
  call   <f@plt>
  movl   $0x0,-0x58(%rbp)
  cmpl   $0x0,-0x64(%rbp)
  jns    L352
  mov    -0x40(%rbp),%eax
  sub    $0x1,%eax
  jmp    L242
L352:
  mov    $0x0,%eax
L242:
  mov    %eax,-0x2c(%rbp)
  cmpl   $0x0,-0x64(%rbp)
  js     L337
  mov    -0x40(%rbp),%eax
  jmp    L75
L337:
  mov    $0xffffffff,%eax
L75:
  mov    %eax,-0x28(%rbp)
  cmpl   $0x0,-0x64(%rbp)
  jns    L48
  mov    $0xffffffff,%eax
  jmp    L338
L48:
  mov    $0x1,%eax
L338:
  mov    %eax,-0x24(%rbp)
  mov    -0x2c(%rbp),%eax
  mov    %eax,-0x54(%rbp)
  jmp    L268
L84:
  cmpl   $0x101,-0x58(%rbp)
  je     L81
  mov    -0x58(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0x54(%rbp)
  je     L228
L81:
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x54(%rbp),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L103
  ucomisd %xmm1,%xmm0
  je     L256
L103:
  mov    $0x0,%eax
  call   <abort@plt>
  jmp    L256
L228:
  cmpl   $0x0,-0x64(%rbp)
  jne    L367
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x54(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  jmp    L49
L15:
  mov    -0x58(%rbp),%eax
  imul   -0x68(%rbp),%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x1c(%rbp)
  cmpl   $0x0,-0x64(%rbp)
  js     L50
  mov    -0x1c(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  setl   %al
  jmp    L135
L50:
  mov    -0x1c(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  setg   %al
L135:
  test   %al,%al
  je     L181
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  jmp    L323
L181:
  mov    -0x1c(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jne    L35
  movsd  -0x18(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  jmp    L323
L35:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x1c(%rbp),%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
L323:
  addl   $0x1,-0x58(%rbp)
L49:
  cmpl   $0x100,-0x58(%rbp)
  jle    L15
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  ucomisd -0x18(%rbp),%xmm0
  jp     L279
  ucomisd -0x18(%rbp),%xmm0
  je     L256
L279:
  mov    $0x0,%eax
  call   <abort@plt>
  jmp    L256
L367:
  mov    -0x58(%rbp),%eax
  imul   -0x68(%rbp),%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x20(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x54(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  cmpl   $0x0,-0x64(%rbp)
  js     L365
  mov    -0x20(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  setl   %al
  jmp    L176
L365:
  mov    -0x20(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  setg   %al
L176:
  test   %al,%al
  je     L156
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  jmp    L200
L156:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x20(%rbp),%xmm0
  movsd  -0x10(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
L200:
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  ucomisd -0x10(%rbp),%xmm0
  jp     L333
  ucomisd -0x10(%rbp),%xmm0
  je     L272
L333:
  mov    $0x0,%eax
  call   <abort@plt>
L272:
  addl   $0x1,-0x58(%rbp)
L256:
  mov    -0x24(%rbp),%eax
  add    %eax,-0x54(%rbp)
L268:
  mov    -0x54(%rbp),%eax
  cmp    -0x28(%rbp),%eax
  jne    L84
  nop
  nop
  leave
  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;
    }
  }
}
```