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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x31000(%rsp),%r11
L159:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L159
  sub    $0x2f8,%rsp
  mov    $0x32,%ecx
  mov    %fs:0x28,%rax
  mov    %rax,0x312e8(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%rdi
  movl   $0x0,0xc(%rsp)
  lea    0x30f00(%rsp),%r13
  mov    %rdi,(%rsp)
  rep stos %rax,%es:(%rdi)
  lea    0x2c(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    0x28(%rsp),%rax
  mov    %rax,0x10(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L20:
  mov    0x18(%rsp),%rdx
  mov    0x10(%rsp),%rsi
  lea    D4(%rip),%rdi
  call   <scanf@plt>
  test   %rax,%rax
  jle    L14
  mov    (%rsp),%rdi
  mov    $0x190,%edx
  xor    %esi,%esi
  xor    %ebx,%ebx
  lea    0x18860(%rsp),%rbp
  call   <memset@plt>
  xor    %eax,%eax
  addl   $0x1,0xc(%rsp)
  call   <getchar@plt>
  mov    0x28(%rsp),%ecx
  test   %ecx,%ecx
  jle    L122
  nopl   (%rax)
L7:
  mov    %rbp,%rdi
  add    $0x1,%ebx
  add    $0x3e8,%rbp
  call   <gets@plt>
  cmp    %ebx,0x28(%rsp)
  jg     L7
L122:
  mov    0x2c(%rsp),%edx
  mov    $0xffffffff,%r14d
  test   %edx,%edx
  jle    L24
  movl   $0x0,0x8(%rsp)
  mov    (%rsp),%rbp
  lea    0x1c0(%rsp),%r12
  mov    $0xffffffff,%r14d
  nopl   0x0(%rax)
L101:
  mov    %r12,%rdi
  call   <gets@plt>
  mov    0x28(%rsp),%eax
  test   %eax,%eax
  jle    L58
  lea    0x18860(%rsp),%rbx
  xor    %r15d,%r15d
  nopw   0x0(%rax,%rax,1)
L18:
  mov    %r13,%rsi
  mov    %r12,%rdi
  add    $0x1,%r15d
  call   <strdown@plt>
  mov    %rbx,%rsi
  add    $0x3e8,%rbx
  mov    %eax,%edi
  call   <my_strstr@plt>
  add    0x0(%rbp),%eax
  mov    %eax,0x0(%rbp)
  cmp    %r15d,0x28(%rsp)
  jg     L18
L134:
  cmp    %eax,%r14d
  cmovl  %eax,%r14d
  addl   $0x1,0x8(%rsp)
  add    $0x4,%rbp
  mov    0x8(%rsp),%eax
  add    $0x3e8,%r12
  cmp    %eax,0x2c(%rsp)
  jg     L101
L24:
  mov    0xc(%rsp),%esi
  lea    D7(%rip),%rdi
  lea    0x1c0(%rsp),%rbp
  xor    %ebx,%ebx
  call   <printf@plt>
  mov    0x2c(%rsp),%eax
  test   %eax,%eax
  jle    L128
L133:
  mov    (%rsp),%rcx
  cmp    %r14d,(%rcx,%rbx,4)
  je     L26
  add    $0x1,%rbx
  add    $0x3e8,%rbp
  cmp    %ebx,%eax
  jg     L133
L128:
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L20
  nopl   0x0(%rax,%rax,1)
L26:
  mov    %rbp,%rdi
  add    $0x1,%rbx
  add    $0x3e8,%rbp
  call   <puts@plt>
  mov    0x2c(%rsp),%eax
  cmp    %ebx,%eax
  jg     L133
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L20
  nopw   0x0(%rax,%rax,1)
L58:
  mov    0x0(%rbp),%eax
  jmp    L134
L14:
  mov    0x312e8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x312f8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D4
datatype: string
name: retrieve_data
arguments: data_label: D7
datatype: string

tool: D4: %d%d

tool: D7: Excuse Set #%d


assistant: ```c
main() {
  char s[100][1000];
  char key[100][1000];
  char temp[1000];
  int i, j, k = 0, l, m, n, max, a[100] = {0};
  while (scanf("%d%d", &m, &n) > 0) {
    memset(a, 0, sizeof(a));
    max = -1;
    k++;
    getchar();
    for (i = 0; i < m; i++)
      gets(key[i]);
    for (j = 0; j < n; j++) {
      gets(s[j]);
      for (i = 0; i < m; i++)
        a[j] += my_strstr(strdown(s[j], temp), key[i]);
      if (a[j] > max)
        max = a[j];
    }
    printf("Excuse Set #%d\n", k);
    for (j = 0; j < n; j++)
      if (a[j] == max)
        puts(s[j]);
    putchar('\n');
  }
  return 0;
}
```