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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %edi,-0x64(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  lea    -0x5c(%rbp),%rax
  mov    %rax,%rsi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x5c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L150:
  cmp    %rdx,%rsp
  je     L8
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L150
L8:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L65
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L65:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x58(%rbp)
  jmp    L140
L111:
  mov    -0x58(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    0x4(%rax),%rdx
  mov    -0x40(%rbp),%rax
  add    %rax,%rdx
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x40(%rbp),%rax
  add    %rcx,%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0x58(%rbp)
L140:
  mov    -0x5c(%rbp),%eax
  cmp    %eax,-0x58(%rbp)
  jl     L111
  movl   $0x0,-0x54(%rbp)
  jmp    L26
L89:
  movl   $0x0,-0x50(%rbp)
  jmp    L35
L148:
  mov    -0x50(%rbp),%eax
  cltd
  shr    $0x1f,%edx
  add    %edx,%eax
  and    $0x1,%eax
  sub    %edx,%eax
  cmp    $0x1,%eax
  jne    L28
  movb   $0x2a,-0x5d(%rbp)
  jmp    L41
L28:
  movb   $0x2e,-0x5d(%rbp)
L41:
  movl   $0x0,-0x4c(%rbp)
  jmp    L125
L27:
  cmpb   $0x2a,-0x5d(%rbp)
  jne    L76
  mov    $0x2e,%edi
  call   <putchar@plt>
  movb   $0x2e,-0x5d(%rbp)
  jmp    L86
L76:
  mov    $0x2a,%edi
  call   <putchar@plt>
  movb   $0x2a,-0x5d(%rbp)
L86:
  addl   $0x1,-0x4c(%rbp)
L125:
  mov    -0x40(%rbp),%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rdx
  mov    0x4(%rax,%rdx,8),%eax
  cmp    %eax,-0x4c(%rbp)
  jl     L27
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x50(%rbp)
L35:
  mov    -0x40(%rbp),%rax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,8),%eax
  cmp    %eax,-0x50(%rbp)
  jl     L148
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x54(%rbp)
L26:
  mov    -0x5c(%rbp),%eax
  cmp    %eax,-0x54(%rbp)
  jl     L89
  mov    $0x0,%eax
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L110
  call   <__stack_chk_fail@plt>
L110:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D2
type_guessed: string
name: retrieve_data
arguments: data_label: D17
type_guessed: string

tool: D2: %d

tool: D17: %d %d

assistant: ```c
int main(int argc, char const *argv[]) {
  int t;
  scanf("%d", &t);
  int input_array[t][2];
  for (int i = 0; i < t; ++i) {
    scanf("%d %d", &input_array[i][0], &input_array[i][1]);
  }
  char before;
  for (int i = 0; i < t; ++i) {
    for (int m = 0; m < input_array[i][0]; ++m) {
      if (m % 2 == 1) {
        before = '*';
      } else {
        before = '.';
      }
      for (int n = 0; n < input_array[i][1]; ++n) {
        if (before == '*') {
          printf("%c", '.');
          before = '.';
        } else {
          printf("%c", '*');
          before = '*';
        }
      }
      printf("\n");
    }
    printf("\n");
  }
  return 0;
}
```