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

```asm
<plot_hexagon>:
  endbr64
  push   %r15
  mov    %esi,%eax
  push   %r14
  sub    %ecx,%eax
  push   %r13
  sub    %r9d,%eax
  mov    %r8d,%r13d
  push   %r12
  mov    %eax,%r14d
  mov    %esi,%r12d
  push   %rbp
  and    $0x1,%r14d
  mov    %rdi,%rbp
  push   %rbx
  mov    %eax,%ebx
  shr    $0x1f,%ebx
  add    %eax,%ebx
  sub    $0x28,%rsp
  sar    %ebx
  mov    %edx,0x14(%rsp)
  sub    %ecx,%edx
  add    %ecx,%ebx
  sub    %r9d,%edx
  mov    %r9d,0x1c(%rsp)
  mov    %ebx,%r9d
  mov    %edx,%r10d
  mov    %edx,%r15d
  shr    $0x1f,%r10d
  and    $0x1,%r15d
  add    %edx,%r10d
  sar    %r10d
  lea    0x1(%r10),%edx
  mov    %edx,%r8d
  shr    $0x1f,%r8d
  add    %edx,%r8d
  sar    %r8d
  add    %r13d,%r8d
  cmp    $0x5,%eax
  jle    L101
  cmp    $0x13,%eax
  jle    L13
  test   %r14d,%r14d
  je     L13
L101:
  mov    %r10d,0x8(%rsp)
  sub    $0x8,%rsp
  mov    %r12d,%esi
  mov    %rbp,%rdi
  push   %r13
  mov    0x24(%rsp),%edx
  mov    %ecx,0x1c(%rsp)
  call   <plot_hexline@plt>
  mov    0x18(%rsp),%r10d
  pop    %rax
  pop    %rdx
  add    %r13d,%r10d
  add    %r10d,%r15d
  cmp    %r15d,%r13d
  jge    L141
  mov    0xc(%rsp),%ecx
  add    %r14d,%ebx
  mov    %r13d,%r14d
  mov    %r13d,0x18(%rsp)
  mov    %ebx,%eax
  imul   %r12d,%r14d
  xor    %r9d,%r9d
  sub    %ecx,%eax
  sub    $0x1,%eax
  mov    %eax,0x10(%rsp)
  mov    %r12d,%eax
  mov    %r13d,%r12d
  mov    %r15d,%r13d
  mov    %eax,%r8d
  mov    %ecx,%r15d
  nopl   0x0(%rax,%rax,1)
L150:
  mov    %r15d,%esi
  mov    $0xffffffff,%edx
  movslq %r14d,%rdi
  cmp    %ebx,%r15d
  jge    L23
L173:
  lea    (%r14,%rsi,1),%r10d
  lea    0x1(%rsi),%eax
  movslq %r10d,%r10
  add    %rbp,%r10
  cmp    $0xffffffff,%edx
  je     L153
  movb   $0x31,(%r10)
  cmp    %eax,%ebx
  jg     1080 <plot_hexagon.cold>
  mov    %edx,%esi
  mov    $0x1,%r9d
  jmp    L148
  nopl   0x0(%rax)
L153:
  movslq %esi,%rdx
  mov    %eax,%esi
  add    %rdi,%rdx
  add    %rbp,%rdx
  cmpb   $0x31,(%rdx)
  je     L247
L232:
  add    $0x1,%rdx
  cmp    %eax,%ebx
  jle    L235
  add    $0x1,%eax
  cmpb   $0x31,(%rdx)
  mov    %eax,%esi
  jne    L232
L247:
  cmp    %eax,%ebx
  jg     L55
L148:
  cmp    $0xffffffff,%esi
  sete   %al
L7:
  test   %r9d,%r9d
  je     L23
  test   %al,%al
  je     L23
  mov    0x10(%rsp),%edx
  movslq %r14d,%rax
  movslq %r15d,%rdi
  mov    $0x31,%esi
  add    %rax,%rdi
  mov    %r8d,0xc(%rsp)
  add    $0x1,%rdx
  add    %rbp,%rdi
  mov    %r9d,0x8(%rsp)
  call   <memset@plt>
  mov    0xc(%rsp),%r8d
  mov    0x8(%rsp),%r9d
L23:
  add    $0x1,%r12d
  add    %r8d,%r14d
  cmp    %r13d,%r12d
  jne    L150
  mov    %r15d,%ecx
  mov    %r8d,%r12d
  mov    %r13d,%r15d
  mov    0x18(%rsp),%r13d
  cmp    %ebx,%ecx
  jge    L20
  mov    %r8d,%eax
  movslq %r8d,%r10
  mov    %ecx,%r8d
  sub    0x1c(%rsp),%r8d
  imul   %r13d,%eax
  add    %r12d,%r8d
  mov    %r13d,%r9d
  movslq %ecx,%r11
  movslq %eax,%rsi
  add    %eax,%r8d
  add    %rbp,%rsi
  nopl   (%rax)
L200:
  mov    %r11,%rax
  lea    -0x1(%r8),%edi
  nop
L243:
  cmpb   $0x31,(%rsi,%rax,1)
  jne    L177
  mov    %edi,%edx
  sub    %eax,%edx
  movslq %edx,%rdx
  movb   $0x31,0x0(%rbp,%rdx,1)
L177:
  add    $0x1,%rax
  cmp    %eax,%ebx
  jg     L243
  add    $0x1,%r9d
  add    %r10,%rsi
  add    %r12d,%r8d
  cmp    %r15d,%r9d
  jne    L200
L20:
  cmp    %ecx,%r12d
  jle    L141
  mov    0x14(%rsp),%eax
  sub    0x60(%rsp),%eax
  mov    %r12d,%edi
  movslq %ecx,%rdx
  mov    %eax,%esi
  imul   %r13d,%edi
  lea    -0x1(%rax),%r8d
  movslq %r12d,%r9
  mov    %r8d,%eax
  imul   %r12d,%esi
  imul   %r12d,%eax
  movslq %edi,%rdi
  add    %rdx,%rdi
  lea    (%rax,%rcx,1),%r8d
  add    %rbp,%rdi
  sub    %esi,%r8d
  nopl   0x0(%rax)
L237:
  lea    (%rsi,%r8,1),%eax
  mov    %rdi,%rdx
  nop
L114:
  cmpb   $0x31,(%rdx)
  jne    L136
  movslq %eax,%rcx
  movb   $0x31,0x0(%rbp,%rcx,1)
L136:
  add    $0x1,%eax
  add    $0x1,%rdx
  cmp    %eax,%esi
  jne    L114
  add    $0x1,%r13d
  sub    %r12d,%esi
  add    %r9,%rdi
  cmp    %r15d,%r13d
  jne    L237
L141:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L55:
  mov    %esi,%edx
  jmp    L173
  nopw   0x0(%rax,%rax,1)
L235:
  mov    $0x1,%eax
  jmp    L7
L13:
  lea    -0x1(%rbx),%r9d
  jmp    L101
```

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