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

```asm
<main>:
  endbr64
  push   %r15
  lea    D32(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  lea    D5(%rip),%r12
  push   %rbp
  push   %rbx
  sub    $0x678,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x668(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x18(%rsp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  lea    D46(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x1c(%rsp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  mov    0x18(%rsp),%ecx
  mov    0x1c(%rsp),%eax
  test   %ecx,%ecx
  jle    L69
  lea    0x74(%rsp),%rdx
  mov    $0x1,%ebp
  lea    D33(%rip),%r14
  mov    %rdx,0x8(%rsp)
  test   %eax,%eax
  jle    L18
  nopl   (%rax)
L199:
  mov    0x8(%rsp),%rbx
  mov    $0x1,%r15d
  nopl   0x0(%rax,%rax,1)
L144:
  mov    %r15d,%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  add    $0x1,%r15d
  call   <scanf@plt>
  mov    0x1c(%rsp),%eax
  add    $0x4,%rbx
  cmp    %r15d,%eax
  jge    L144
  mov    0x18(%rsp),%ecx
  add    $0x1,%ebp
  cmp    %ebp,%ecx
  jl     L18
  addq   $0x50,0x8(%rsp)
  test   %eax,%eax
  jg     L199
L18:
  mov    %eax,%esi
  add    $0x1,%esi
  js     L49
L67:
  lea    0x1(%rcx),%edx
  movslq %edx,%rdx
  lea    (%rdx,%rdx,4),%rdi
  shl    $0x4,%rdi
  lea    -0x4(%rdi),%r8
  cmp    $0x8,%r8
  jbe    L301
  cmp    $0x3,%esi
  jbe    L301
  lea    0x1(%rsi),%r8d
  pcmpeqd %xmm0,%xmm0
  lea    0x20(%rsp,%rdi,1),%rdi
  mov    %r8d,%r9d
  movaps %xmm0,0x20(%rsp)
  shr    $0x2,%r9d
  movaps %xmm0,(%rdi)
  cmp    $0x1,%r9d
  je     L3
  movaps %xmm0,0x30(%rsp)
  movaps %xmm0,0x10(%rdi)
  cmp    $0x2,%r9d
  je     L3
  movaps %xmm0,0x40(%rsp)
  movaps %xmm0,0x20(%rdi)
  cmp    $0x3,%r9d
  je     L3
  movaps %xmm0,0x50(%rsp)
  movaps %xmm0,0x30(%rdi)
  cmp    $0x4,%r9d
  je     L3
  movaps %xmm0,0x60(%rsp)
  movaps %xmm0,0x40(%rdi)
L3:
  mov    %r8d,%edi
  and    $0xfffffffc,%edi
  and    $0x3,%r8d
  je     L49
  imul   $0x14,%rdx,%rdx
  movslq %edi,%r8
  movl   $0xffffffff,0x20(%rsp,%r8,4)
  add    %rdx,%r8
  movl   $0xffffffff,0x20(%rsp,%r8,4)
  lea    0x1(%rdi),%r8d
  cmp    %r8d,%esi
  jl     L49
  movslq %r8d,%r8
  add    $0x2,%edi
  movl   $0xffffffff,0x20(%rsp,%r8,4)
  add    %rdx,%r8
  movl   $0xffffffff,0x20(%rsp,%r8,4)
  cmp    %edi,%esi
  jl     L49
  movslq %edi,%rdi
  add    %rdi,%rdx
  movl   $0xffffffff,0x20(%rsp,%rdi,4)
  movl   $0xffffffff,0x20(%rsp,%rdx,4)
L49:
  test   %ecx,%ecx
  jle    L216
  sub    $0x1,%ecx
  lea    0x70(%rsp),%rbp
  lea    (%rcx,%rcx,4),%rcx
  mov    %rbp,%rdx
  shl    $0x4,%rcx
  lea    0xc0(%rsp,%rcx,1),%rdi
  movslq %esi,%rcx
  nopl   0x0(%rax)
L25:
  movl   $0xffffffff,(%rdx)
  movl   $0xffffffff,(%rdx,%rcx,4)
  add    $0x50,%rdx
  cmp    %rdx,%rdi
  jne    L25
  mov    %rbp,%r14
  mov    $0x1,%ebx
  lea    0x20(%rsp),%r12
  test   %eax,%eax
  jle    L85
  nop
L113:
  mov    $0x1,%r15d
  cs nopw 0x0(%rax,%rax,1)
L44:
  mov    %r15d,%edx
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <find_position@plt>
  cmp    $0x1,%eax
  je     L165
  mov    0x1c(%rsp),%eax
  add    $0x1,%r15
  cmp    %r15d,%eax
  jge    L44
  mov    0x18(%rsp),%edx
  add    $0x1,%ebx
  cmp    %ebx,%edx
  jl     L173
L43:
  add    $0x50,%r14
  test   %eax,%eax
  jg     L113
L85:
  mov    $0x1,%r13d
  lea    D27(%rip),%r12
  nopl   0x0(%rax,%rax,1)
L209:
  mov    $0x1,%ebx
  test   %eax,%eax
  jle    L24
  nopl   0x0(%rax)
L106:
  mov    0x0(%rbp,%rbx,4),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %ebx,0x1c(%rsp)
  jge    L106
L24:
  mov    $0xa,%edi
  add    $0x1,%r13d
  add    $0x50,%rbp
  call   <putchar@plt>
  cmp    %r13d,0x18(%rsp)
  jl     L216
  mov    0x1c(%rsp),%eax
  jmp    L209
  nop
L165:
  add    $0x1,%r13d
  mov    0x1c(%rsp),%eax
  mov    %r13d,(%r14,%r15,4)
  add    $0x1,%r15
  cmp    %r15d,%eax
  jge    L44
  mov    0x18(%rsp),%edx
  add    $0x1,%ebx
  cmp    %ebx,%edx
  jge    L43
L173:
  test   %edx,%edx
  jg     L85
L216:
  mov    0x668(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L63
  add    $0x678,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L301:
  lea    0x20(%rsp),%r8
  xor    %edx,%edx
  add    %r8,%rdi
  nopl   0x0(%rax)
L102:
  movl   $0xffffffff,(%r8,%rdx,4)
  movl   $0xffffffff,(%rdi,%rdx,4)
  add    $0x1,%rdx
  cmp    %edx,%esi
  jge    L102
  jmp    L49
L69:
  mov    %eax,%esi
  add    $0x1,%esi
  jns    L67
  jmp    L216
L63:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D32
data_type: string
name: retrieve_data
arguments: label: D5
data_type: string
name: retrieve_data
arguments: label: D46
data_type: string
name: retrieve_data
arguments: label: D33
data_type: string
name: retrieve_data
arguments: label: D27
data_type: string

tool: D32: Digite quantidade de linhas: 

tool: D5: %d

tool: D46: 
Digite a quantidade de colunas: 

tool: D33: Digite o elemento MATRIZ[%d][%d]: 

tool: D27: %d	

assistant: ```c
int main(int argc, const char *arqv[]) {
  int mat[20][20], line, col;
  int i, j, cont;
  printf("Digite quantidade de linhas: ");
  scanf("%d", &line);
  printf("\nDigite a quantidade de colunas: ");
  scanf("%d", &col);
  for (i = 1; i <= line; i++) {
    for (j = 1; j <= col; j++) {
      printf("Digite o elemento MATRIZ[%d][%d]: ", i, j);
      scanf("%d", &mat[i][j]);
    }
  }
  for (j = 0; j <= col + 1; j++) {
    mat[0][j] = -1;
    mat[line + 1][j] = -1;
  }
  for (i = 1; i <= line; i++) {
    mat[i][0] = -1;
    mat[i][col + 1] = -1;
  }
  for (i = 1; i <= line; i++) {
    for (j = 1; j <= col; j++) {
      if (find_position(mat, i, j) == 1) {
        cont++;
        mat[i][j] = cont;
      }
    }
  }
  for (i = 1; i <= line; i++) {
    for (j = 1; j <= col; j++) {
      printf("%d\t", mat[i][j]);
    }
    printf("\n");
  }
}
```