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

```asm
<plot_hexagon>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%rbp
  mov    %esi,%r15d
  mov    %edx,(%rsp)
  mov    %ecx,%r12d
  mov    %r8d,%r14d
  mov    %r9d,0xc(%rsp)
  mov    %esi,%eax
  sub    %ecx,%eax
  sub    %r9d,%eax
  sub    %ecx,%edx
  sub    %r9d,%edx
  mov    %eax,%edi
  and    $0x1,%edi
  mov    %edi,0x8(%rsp)
  mov    %edx,%esi
  and    $0x1,%esi
  mov    %esi,0x4(%rsp)
  mov    %edx,%r13d
  shr    $0x1f,%r13d
  add    %edx,%r13d
  sar    %r13d
  lea    0x1(%r13),%edx
  mov    %edx,%r8d
  shr    $0x1f,%r8d
  add    %edx,%r8d
  sar    %r8d
  add    %r14d,%r8d
  mov    %eax,%ebx
  shr    $0x1f,%ebx
  add    %eax,%ebx
  sar    %ebx
  add    %ecx,%ebx
  mov    %ebx,%r9d
  cmp    $0x5,%eax
  jle    L107
  cmp    $0x13,%eax
  jle    L198
  test   %edi,%edi
  jne    L107
L198:
  lea    -0x1(%rbx),%r9d
L107:
  sub    $0x8,%rsp
  push   %r14
  mov    %r12d,%ecx
  mov    0x10(%rsp),%edx
  mov    %r15d,%esi
  mov    %rbp,%rdi
  call   <plot_hexline@plt>
  lea    0x0(%r13,%r14,1),%edi
  add    0x14(%rsp),%edi
  add    $0x10,%rsp
  cmp    %edi,%r14d
  jge    L115
  mov    %r14d,0x4(%rsp)
  mov    %r15d,%r10d
  imul   %r14d,%r10d
  mov    %r10d,%r8d
  mov    %r14d,%r9d
  mov    $0x0,%esi
  add    0x8(%rsp),%ebx
  lea    0x1(%r12),%r11d
  mov    $0x1,%r13d
  mov    %r10d,0x8(%rsp)
  jmp    L56
L171:
  lea    (%r10,%rax,1),%ecx
  movslq %ecx,%rcx
  movb   $0x31,0x0(%rbp,%rcx,1)
  mov    %r13d,%esi
L275:
  lea    0x1(%rax),%ecx
  cmp    %ebx,%eax
  je     L195
  mov    %ecx,%eax
L206:
  cmp    $0xffffffff,%edx
  jne    L171
  lea    (%r10,%rax,1),%ecx
  movslq %ecx,%rcx
  cmpb   $0x31,0x0(%rbp,%rcx,1)
  cmove  %eax,%edx
  jmp    L275
L122:
  movslq %r12d,%rax
  movslq %r8d,%rdx
  add    %rbp,%rdx
L110:
  movb   $0x31,(%rdx,%rax,1)
  add    $0x1,%rax
  cmp    %eax,%ebx
  jg     L110
  jmp    L139
L77:
  add    $0x1,%rax
  cmp    %eax,%ebx
  jle    L257
L104:
  cmpb   $0x31,(%rdx,%rax,1)
  jne    L77
  mov    %r8d,%ecx
  sub    %eax,%ecx
  movslq %ecx,%rcx
  movb   $0x31,0x0(%rbp,%rcx,1)
  jmp    L77
L257:
  add    $0x1,%r9d
  add    %r15d,%esi
  cmp    %edi,%r9d
  je     L42
L225:
  cmp    %ebx,%r12d
  jge    L257
  lea    (%r11,%rsi,1),%edx
  movslq %r12d,%rax
  movslq %edx,%rdx
  add    %rbp,%rdx
  lea    -0x1(%rsi),%r8d
  jmp    L104
L42:
  mov    (%rsp),%eax
  sub    0x50(%rsp),%eax
  mov    %eax,%ecx
  imul   %r15d,%ecx
  lea    -0x1(%rax),%r8d
  mov    %r8d,%eax
  imul   %r15d,%eax
  lea    (%rax,%r12,1),%r8d
  sub    %ecx,%r8d
  movslq %r12d,%r9
  jmp    L102
L150:
  mov    0x8(%rsp),%r10d
  mov    0x4(%rsp),%esi
  add    $0x1,%esi
  imul   %r15d,%esi
  mov    %r12d,%eax
  mov    0xc(%rsp),%edx
  sub    %edx,%eax
  add    %eax,%esi
  mov    %r14d,%r9d
  sub    %r12d,%edx
  mov    %edx,%r11d
  sub    %r15d,%r11d
  jmp    L225
L280:
  add    $0x1,%rax
  add    $0x1,%edx
  cmp    %edx,%ecx
  je     L236
L88:
  cmpb   $0x31,(%rax)
  jne    L280
  movslq %edx,%rsi
  movb   $0x31,0x0(%rbp,%rsi,1)
  jmp    L280
L236:
  add    $0x1,%r14d
  sub    %r15d,%ecx
  add    %r15d,%r10d
  cmp    %edi,%r14d
  je     L115
L102:
  cmp    %r12d,%r15d
  jle    L236
  movslq %r10d,%rax
  add    %r9,%rax
  add    %rbp,%rax
  lea    (%rcx,%r8,1),%edx
  jmp    L88
L195:
  cmp    $0xffffffff,%edx
  jne    L139
  test   %esi,%esi
  jne    L122
L139:
  add    $0x1,%r9d
  add    %r15d,%r8d
  cmp    %edi,%r9d
  je     L150
L56:
  mov    %r11d,%eax
  mov    $0xffffffff,%edx
  lea    -0x1(%r8),%r10d
  cmp    %ebx,%r12d
  jl     L206
  jmp    L139
L115:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void plot_hexagon(unsigned char *scaled_hexagon, const int hex_width, const int hex_height, const int hx_start, const int hy_start, const int hx_end, const int hy_end) {
  int line, i;
  int not_top;
  const int hx_width = hex_width - hx_start - hx_end;
  const int hy_height = hex_height - hx_start - hx_end;
  const int hx_width_odd = hx_width & 1;
  const int hy_height_odd = hy_height & 1;
  const int hx_radius = hx_width / 2;
  const int hy_radius = hy_height / 2;
  int start_y = hy_start + (hy_radius + 1) / 2;
  int end_x = hx_start + hx_radius;
  if (hx_radius > 2 && (hx_radius < 10 || !hx_width_odd)) {
    end_x--;
  }
  plot_hexline(scaled_hexagon, hex_width, hex_height, hx_start, start_y, end_x, hy_start);
  not_top = 0;
  for (line = hy_start; line < hy_start + hy_radius + hy_height_odd; line++) {
    int first = -1;
    for (i = hx_start; i < hx_start + hx_radius + hx_width_odd; i++) {
      if (first != -1) {
        scaled_hexagon[(hex_width * line) + i] = '1';
        not_top = 1;
      } else if (scaled_hexagon[(hex_width * line) + i] == '1') {
        first = i + 1;
      }
    }
    if (not_top && first == -1) {
      for (i = hx_start; i < hx_start + hx_radius + hx_width_odd; i++) {
        scaled_hexagon[(hex_width * line) + i] = '1';
      }
    }
  }
  for (line = hy_start; line < hy_start + hy_radius + hy_height_odd; line++) {
    for (i = hx_start; i < hx_start + hx_radius + hx_width_odd; i++) {
      if (scaled_hexagon[(hex_width * line) + i] == '1') {
        scaled_hexagon[(hex_width * line) + hex_width - hx_end - (i - hx_start + 1)] = '1';
      }
    }
  }
  for (line = hy_start; line < hy_start + hy_radius + hy_height_odd; line++) {
    for (i = hx_start; i < hex_width; i++) {
      if (scaled_hexagon[(hex_width * line) + i] == '1') {
        scaled_hexagon[(hex_width * (hex_height - hy_end - (line - hy_start + 1))) + i] = '1';
      }
    }
  }
}
```