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

```asm
<fold_dotstream>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %esi,%ebp
  mov    %edx,%r13d
  mov    %rcx,%r14
  test   $0x1,%dl
  jne    L58
  movl   $0x0,0x18(%rsp)
  mov    $0x0,%r15d
  test   %esi,%esi
  jg     L150
L48:
  sub    $0x1,%r13d
  imul   %ebp,%r13d
  movslq %r13d,%rdx
  mov    0x18(%rsp),%edi
  movslq %edi,%rax
  mov    0x10(%rsp),%rsi
  movzbl (%rsi,%rax,1),%eax
  mov    %al,-0x1(%r14,%rdx,1)
  sub    %ebp,%r13d
  lea    0x1(%rdi),%eax
  cltq
  movzbl (%rsi,%rax,1),%ecx
  movslq %r13d,%rax
  mov    %cl,(%r14,%rax,1)
  lea    0x2(%rdi),%eax
  cltq
  movzbl (%rsi,%rax,1),%ecx
  lea    0x0(%r13,%rbp,2),%eax
  cltq
  mov    %cl,-0x2(%r14,%rax,1)
  lea    0x3(%rdi),%eax
  cltq
  movzbl (%rsi,%rax,1),%eax
  mov    %al,0x1(%r14,%rdx,1)
  lea    0x4(%rdi),%eax
  cltq
  movzbl (%rsi,%rax,1),%eax
  movslq %ebp,%rbp
  mov    %al,-0x1(%r14,%rbp,1)
  lea    0x5(%rdi),%eax
  cltq
  movzbl (%rsi,%rax,1),%eax
  mov    %al,(%r14)
  jmp    L68
L58:
  test   %edx,%edx
  jle    L121
  lea    -0x1(%rdx),%eax
  imul   %esi,%eax
  mov    %eax,%r15d
  movl   $0x0,0x1c(%rsp)
  movl   $0x0,0x18(%rsp)
  mov    $0x0,%r12d
  jmp    L114
L189:
  mov    0x18(%rsp),%esi
  movslq %esi,%rax
  mov    0x10(%rsp),%rcx
  movzbl (%rcx,%rax,1),%edx
  mov    0xc(%rsp),%eax
  add    %r15d,%eax
  cltq
  mov    %dl,(%r14,%rax,1)
  add    $0x1,%esi
  mov    %esi,0x18(%rsp)
  jmp    L140
L203:
  lea    (%rbx,%r15,1),%eax
  cltq
  movb   $0x20,(%r14,%rax,1)
L140:
  add    $0x1,%ebx
  cmp    %ebx,%ebp
  je     L153
L103:
  mov    %ebx,0xc(%rsp)
  lea    (%r12,%rbx,1),%eax
  test   $0x1,%al
  jne    L203
  mov    %r13d,%ecx
  mov    %ebp,%edx
  mov    %r12d,%esi
  mov    %ebx,%edi
  call   <is_corner@plt>
  test   %rax,%rax
  je     L189
  mov    0xc(%rsp),%eax
  add    0x1c(%rsp),%eax
  cltq
  movb   $0x43,(%r14,%rax,1)
  jmp    L140
L153:
  add    $0x1,%r12d
  sub    %ebp,%r15d
  add    %ebp,0x1c(%rsp)
  cmp    %r12d,%r13d
  je     L0
L114:
  mov    $0x0,%ebx
  test   %ebp,%ebp
  jg     L103
  jmp    L153
L121:
  movl   $0x0,0x18(%rsp)
L0:
  mov    0x18(%rsp),%ecx
  movslq %ecx,%rax
  mov    0x10(%rsp),%rsi
  movzbl (%rsi,%rax,1),%edx
  movslq %ebp,%rax
  mov    %dl,-0x2(%r14,%rax,1)
  imul   %ebp,%r13d
  lea    0x1(%rcx),%eax
  cltq
  movzbl (%rsi,%rax,1),%edx
  movslq %r13d,%rax
  mov    %dl,-0x2(%r14,%rax,1)
  lea    0x2(%rcx),%eax
  cltq
  movzbl (%rsi,%rax,1),%edx
  lea    0x0(%rbp,%rbp,1),%eax
  cltq
  mov    %dl,-0x1(%r14,%rax,1)
  sub    %ebp,%r13d
  movslq %r13d,%rdx
  lea    0x3(%rcx),%eax
  cltq
  movzbl (%rsi,%rax,1),%eax
  mov    %al,-0x1(%r14,%rdx,1)
  lea    0x4(%rcx),%eax
  cltq
  movzbl (%rsi,%rax,1),%eax
  mov    %al,(%r14)
  lea    0x5(%rcx),%eax
  cltq
  movzbl (%rsi,%rax,1),%eax
  mov    %al,(%r14,%rdx,1)
L68:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L194:
  mov    0x18(%rsp),%edi
  movslq %edi,%rax
  mov    0x10(%rsp),%rcx
  movzbl (%rcx,%rax,1),%edx
  movslq %r12d,%rax
  mov    %dl,(%r14,%rax,1)
  add    $0x1,%edi
  mov    %edi,0x18(%rsp)
  jmp    L142
L80:
  movslq %r12d,%rax
  movb   $0x20,(%r14,%rax,1)
L142:
  add    $0x1,%ebx
  add    %ebp,%r12d
  cmp    %ebx,%r13d
  je     L16
L43:
  mov    0xc(%rsp),%eax
  add    %ebx,%eax
  test   $0x1,%al
  jne    L80
  mov    %r13d,%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r15d,%edi
  call   <is_corner@plt>
  test   %rax,%rax
  je     L194
  movslq %r12d,%rax
  movb   $0x43,(%r14,%rax,1)
  jmp    L142
L16:
  add    $0x1,%r15d
  cmp    %r15d,%ebp
  je     L48
L150:
  mov    %r15d,0xc(%rsp)
  mov    %r15d,%r12d
  mov    $0x0,%ebx
  test   %r13d,%r13d
  jg     L43
  jmp    L16
```

assistant: ```c
void fold_dotstream(char dot_stream[], int width, int height, char dot_array[]) {
  int column, row;
  int input_position = 0;
  if (height % 2) {
    for (row = 0; row < height; row++) {
      for (column = 0; column < width; column++) {
        if (!((column + row) % 2)) {
          if (is_corner(column, row, width, height)) {
            dot_array[(row * width) + column] = 'C';
          } else {
            dot_array[((height - row - 1) * width) + column] = dot_stream[input_position];
            input_position++;
          }
        } else {
          dot_array[((height - row - 1) * width) + column] = ' ';
        }
      }
    }
    dot_array[width - 2] = dot_stream[input_position];
    input_position++;
    dot_array[(height * width) - 2] = dot_stream[input_position];
    input_position++;
    dot_array[(width * 2) - 1] = dot_stream[input_position];
    input_position++;
    dot_array[((height - 1) * width) - 1] = dot_stream[input_position];
    input_position++;
    dot_array[0] = dot_stream[input_position];
    input_position++;
    dot_array[(height - 1) * width] = dot_stream[input_position];
  } else {
    for (column = 0; column < width; column++) {
      for (row = 0; row < height; row++) {
        if (!((column + row) % 2)) {
          if (is_corner(column, row, width, height)) {
            dot_array[(row * width) + column] = 'C';
          } else {
            dot_array[(row * width) + column] = dot_stream[input_position];
            input_position++;
          }
        } else {
          dot_array[(row * width) + column] = ' ';
        }
      }
    }
    dot_array[((height - 1) * width) - 1] = dot_stream[input_position];
    input_position++;
    dot_array[(height - 2) * width] = dot_stream[input_position];
    input_position++;
    dot_array[(height * width) - 2] = dot_stream[input_position];
    input_position++;
    dot_array[((height - 1) * width) + 1] = dot_stream[input_position];
    input_position++;
    dot_array[width - 1] = dot_stream[input_position];
    input_position++;
    dot_array[0] = dot_stream[input_position];
  }
}
```