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

```asm
<vis_grid>:
  endbr64
  push   %r15
  mov    %r9d,%r15d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  test   %edi,%edi
  jle    L92
  mov    %esi,%eax
  mov    %esi,%ebp
  lea    -0x1(%rsi),%r9d
  mov    %edi,%r13d
  shr    $0x2,%eax
  mov    %ebp,%r11d
  mov    %rcx,%r12
  mov    %rdx,%r14
  lea    -0x1(%rax),%esi
  and    $0xfffffffc,%r11d
  xor    %edi,%edi
  xor    %r10d,%r10d
  add    $0x1,%rsi
  xor    %ecx,%ecx
  pxor   %xmm2,%xmm2
  shl    $0x4,%rsi
  xchg   %ax,%ax
L76:
  test   %ebp,%ebp
  jle    L15
  cmp    $0x2,%r9d
  jbe    L10
  movslq %edi,%rdx
  xor    %eax,%eax
  pxor   %xmm1,%xmm1
  shl    $0x2,%rdx
  lea    (%r14,%rdx,1),%rbx
  add    %r12,%rdx
  cs nopw 0x0(%rax,%rax,1)
L44:
  movdqu (%rbx,%rax,1),%xmm0
  movdqu (%rdx,%rax,1),%xmm3
  add    $0x10,%rax
  pcmpeqd %xmm3,%xmm0
  pcmpeqd %xmm2,%xmm0
  psubd  %xmm0,%xmm1
  cmp    %rax,%rsi
  jne    L44
  movdqa %xmm1,%xmm0
  psrldq $0x8,%xmm0
  paddd  %xmm0,%xmm1
  movdqa %xmm1,%xmm0
  psrldq $0x4,%xmm0
  paddd  %xmm0,%xmm1
  movd   %xmm1,%eax
  add    %eax,%ecx
  mov    %r11d,%eax
  cmp    %r11d,%ebp
  je     L15
L51:
  lea    (%rdi,%rax,1),%edx
  movslq %edx,%rdx
  mov    (%r12,%rdx,4),%ebx
  cmp    %ebx,(%r14,%rdx,4)
  setne  %dl
  movzbl %dl,%edx
  add    %edx,%ecx
  lea    0x1(%rax),%edx
  cmp    %ebp,%edx
  jge    L15
  add    %edi,%edx
  movslq %edx,%rdx
  mov    (%r14,%rdx,4),%ebx
  cmp    %ebx,(%r12,%rdx,4)
  setne  %dl
  add    $0x2,%eax
  movzbl %dl,%edx
  add    %edx,%ecx
  cmp    %eax,%ebp
  jle    L15
  add    %edi,%eax
  cltq
  mov    (%r12,%rax,4),%ebx
  cmp    %ebx,(%r14,%rax,4)
  setne  %al
  movzbl %al,%eax
  add    %eax,%ecx
L15:
  add    $0x1,%r10d
  add    %ebp,%edi
  cmp    %r10d,%r13d
  jne    L76
  test   %ecx,%ecx
  je     L92
  mov    %r8,%rdi
  mov    %r15d,%esi
  call   <vfail@plt>
  lea    D29(%rip),%rdi
  call   <printf@plt>
  mov    %r14,%rdx
  mov    %ebp,%esi
  mov    %r13d,%edi
  call   <print_grid@plt>
  lea    D10(%rip),%r14
  mov    %r14,%rdi
  call   <printf@plt>
  lea    D8(%rip),%rdi
  call   <printf@plt>
  mov    %r13d,%edi
  mov    %r12,%rdx
  mov    %ebp,%esi
  call   <print_grid@plt>
  add    $0x8,%rsp
  mov    %r14,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10a0 <printf@plt>
L10:
  xor    %eax,%eax
  jmp    L51
L92:
  add    $0x8,%rsp
  mov    %r15d,%esi
  mov    %r8,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <vok@plt>
```

tool_calls: name: parse_data
arguments: data_label: D29
type: string
name: parse_data
arguments: data_label: D10
type: string
name: parse_data
arguments: data_label: D8
type: string

tool: D29: #          got: 

tool: D10: 


tool: D8: #     expected: 

assistant: ```c
void vis_grid(int x, int y, int *got, int *expect, char *legend, va_list argp) {
  int fail_count = 0;
  for (int i = 0; i < x; ++i)
    for (int j = 0; j < y; ++j)
      if (got[i * y + j] != expect[i * y + j])
        ++fail_count;
  if (fail_count == 0) {
    vok(legend, argp);
  } else {
    vfail(legend, argp);
    printf("#          got: ");
    print_grid(x, y, got);
    printf("\n");
    printf("#     expected: ");
    print_grid(x, y, expect);
    printf("\n");
  }
}
```