user: What is the c source code of the assembly code below?

```asm
<draw>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  movslq %esi,%r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %edi,-0x74(%rbp)
  mov    %esi,-0x60(%rbp)
  mov    %rsp,%rcx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %edi,%rax
  lea    -0x1(%rax),%r9d
  imul   %r12,%rax
  add    $0xf,%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L110
L31:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L31
L110:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L75
L89:
  mov    -0x60(%rbp),%ecx
  mov    %rsp,-0x48(%rbp)
  test   %ecx,%ecx
  jle    L139
  test   %r9d,%r9d
  js     L139
  mov    -0x60(%rbp),%eax
  mov    $0x4f,%ebx
  xor    %r15d,%r15d
  xor    %r13d,%r13d
  movq   $0x0,-0x50(%rbp)
  mov    %r9d,%r14d
  lea    -0x2(%rax),%ecx
  movslq %ecx,%rcx
  nopw   0x0(%rax,%rax,1)
L94:
  lea    0x1(%rcx),%r8d
  mov    -0x50(%rbp),%rdi
  mov    $0x1,%eax
  movsbl %bl,%esi
  mov    %r8d,%edx
  mov    %rcx,-0x68(%rbp)
  sub    %r15d,%edx
  mov    %r8d,-0x5c(%rbp)
  add    $0x1,%rdx
  cmp    %r8d,%r15d
  mov    %esi,-0x58(%rbp)
  cmovg  %rax,%rdx
  movslq %r15d,%rax
  add    %rax,%rdi
  add    -0x48(%rbp),%rdi
  mov    %rax,-0x70(%rbp)
  call   <memset@plt>
  mov    %r13d,%r10d
  add    $0x1,%r13d
  mov    -0x58(%rbp),%esi
  cmp    %r14d,%r13d
  mov    -0x5c(%rbp),%r8d
  mov    -0x68(%rbp),%rcx
  jg     L166
  movslq %r8d,%rdi
  lea    0x1(%r14),%r11d
  mov    %r13d,%eax
  add    -0x48(%rbp),%rdi
L155:
  movslq %eax,%rdx
  add    $0x1,%eax
  imul   %r12,%rdx
  mov    %bl,(%rdi,%rdx,1)
  cmp    %r11d,%eax
  jne    L155
  cmp    %ecx,%r15d
  jne    L32
  cmp    %r14d,%r13d
  jne    L44
L16:
  cmp    $0x4f,%bl
  sete   %bl
  cmp    %r13d,%r14d
  setge  %dl
  cmp    %ecx,%r15d
  lea    0x4f(%rbx,%rbx,8),%ebx
  setle  %al
  add    %r12,-0x50(%rbp)
  sub    $0x1,%rcx
  test   %al,%dl
  jne    L94
L139:
  mov    -0x74(%rbp),%edx
  test   %edx,%edx
  jle    L136
  mov    -0x60(%rbp),%eax
  mov    -0x48(%rbp),%rcx
  xor    %r15d,%r15d
  lea    D2(%rip),%r13
  sub    $0x1,%eax
  mov    %rax,-0x50(%rbp)
  lea    0x1(%rcx,%rax,1),%rbx
  xchg   %ax,%ax
L26:
  mov    -0x60(%rbp),%eax
  mov    %rbx,%rdx
  sub    -0x50(%rbp),%rdx
  lea    -0x1(%rdx),%r14
  test   %eax,%eax
  jle    L100
  nopw   0x0(%rax,%rax,1)
L180:
  movsbl (%r14),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x1,%r14
  call   <printf@plt>
  cmp    %rbx,%r14
  jne    L180
L100:
  mov    $0xa,%edi
  add    $0x1,%r15d
  add    %r12,%rbx
  call   <putchar@plt>
  cmp    %r15d,-0x74(%rbp)
  jne    L26
L136:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L87
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax,%rax,1)
L166:
  cmp    %ecx,%r15d
  je     L169
  nopl   (%rax)
L32:
  cmp    %ecx,%r15d
  jg     L182
  movslq %r14d,%rdi
  sub    %r15d,%r8d
  mov    %r10d,-0x5c(%rbp)
  imul   %r12,%rdi
  lea    -0x1(%r8),%eax
  mov    %rcx,-0x58(%rbp)
  lea    0x1(%rax),%rdx
  add    %rcx,%rdi
  sub    %rax,%rdi
  add    -0x48(%rbp),%rdi
  call   <memset@plt>
  mov    -0x58(%rbp),%rcx
  mov    -0x5c(%rbp),%r10d
L182:
  lea    -0x1(%r14),%eax
  mov    %r13d,%r14d
  cmp    %eax,%r13d
  je     L16
  mov    %eax,%r14d
  jg     L169
L214:
  mov    -0x70(%rbp),%rsi
  add    -0x48(%rbp),%rsi
  nopl   0x0(%rax,%rax,1)
L101:
  movslq %eax,%rdx
  sub    $0x1,%eax
  imul   %r12,%rdx
  mov    %bl,(%rsi,%rdx,1)
  cmp    %r10d,%eax
  jne    L101
L169:
  add    $0x1,%r15d
  jmp    L16
  nopl   0x0(%rax,%rax,1)
L44:
  mov    %r14d,%eax
  jmp    L214
L75:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L89
L87:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D2
type_infered: string

tool: D2: %c 

assistant: ```c
void draw(int row, int col) {
  int sr = 0, er = row - 1;
  int sc = 0, ec = col - 1;
  char matrix[row][col];
  int i;
  char c = 'O';
  while (sr <= er && sc <= ec) {
    for (int i = sc; i <= ec; i++) {
      matrix[sr][i] = c;
    }
    sr++;
    for (int i = sr; i <= er; i++) {
      matrix[i][ec] = c;
    }
    ec--;
    if (sc != ec) {
      for (int i = ec; i >= sc; i--) {
        matrix[er][i] = c;
      }
      er--;
    }
    if (sr != er) {
      for (int i = er; i >= sr; i--) {
        matrix[i][sc] = c;
      }
      sc++;
    }
    if (c == 'O') {
      c = 'X';
    } else {
      c = 'O';
    }
  }
  for (int i = 0; i < row; i++) {
    for (int j = 0; j < col; j++) {
      printf("%c ", matrix[i][j]);
    }
    printf("\n");
  }
}
```