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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    -0x40(%rbp),%rdx
  lea    -0x44(%rbp),%rsi
  lea    D10(%rip),%rdi
  call   <scanf@plt>
  movslq -0x40(%rbp),%rcx
  lea    0x0(,%rcx,8),%rax
  mov    %rax,-0x60(%rbp)
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  imul   %rcx,%rdx
  shl    $0x3,%rdx
  lea    0xf(%rdx),%rcx
  mov    %rcx,%rdi
  and    $0xfffffffffffffff0,%rdi
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rsi
  sub    %rcx,%rsi
L117:
  cmp    %rsi,%rsp
  je     L265
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L117
L265:
  mov    %rdi,%rcx
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  je     L92
  orq    $0x0,-0x8(%rsp,%rcx,1)
L92:
  mov    %rsp,-0x58(%rbp)
  add    $0xf,%rdx
  mov    %rdx,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rdx
  mov    %rsp,%rsi
  sub    %rdx,%rsi
L1:
  cmp    %rsi,%rsp
  je     L151
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L1
L151:
  mov    %rcx,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L201
  orq    $0x0,-0x8(%rsp,%rdx,1)
L201:
  mov    %rsp,-0x70(%rbp)
  test   %eax,%eax
  jle    L98
  mov    -0x60(%rbp),%rax
  shr    $0x3,%rax
  mov    %rax,-0x68(%rbp)
  mov    $0x0,%r15d
  mov    $0x0,%r14d
  lea    D29(%rip),%r13
  jmp    L189
L14:
  mov    %r12,%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x1,%ebx
  add    $0x8,%r12
  cmp    %ebx,-0x40(%rbp)
  jg     L14
L91:
  add    $0x1,%r14d
  mov    -0x44(%rbp),%eax
  add    -0x68(%rbp),%r15
  cmp    %r14d,%eax
  jle    L98
L189:
  mov    -0x58(%rbp),%rax
  lea    (%rax,%r15,8),%r12
  mov    $0x0,%ebx
  cmpl   $0x0,-0x40(%rbp)
  jg     L14
  jmp    L91
L98:
  movslq -0x40(%rbp),%r13
  shl    $0x2,%r13
  cltq
  imul   %r13,%rax
  add    $0xf,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L176:
  cmp    %rdx,%rsp
  je     L259
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L176
L259:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L103
  orq    $0x0,-0x8(%rsp,%rax,1)
L103:
  mov    %rsp,%r14
  cmpl   $0x0,-0x44(%rbp)
  jle    L19
  shr    $0x2,%r13
  mov    $0x0,%r15d
  lea    D39(%rip),%r12
  jmp    L68
L87:
  add    $0x1,%ebx
  cmp    %ebx,-0x40(%rbp)
  jle    L20
L239:
  lea    -0x3c(%rbp),%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  cmpl   $0x0,-0x3c(%rbp)
  je     L87
  movslq -0x40(%rbp),%rax
  movslq -0x44(%rbp),%rdx
  imul   %r13,%rdx
  add    %rdx,%rax
  movl   $0x1,(%r14,%rax,4)
  jmp    L87
L20:
  add    $0x1,%r15d
  mov    -0x44(%rbp),%eax
  cmp    %r15d,%eax
  jle    L206
L68:
  mov    $0x0,%ebx
  cmpl   $0x0,-0x40(%rbp)
  jg     L239
  jmp    L20
L206:
  test   %eax,%eax
  jle    L19
  mov    -0x58(%rbp),%r12
  mov    $0x0,%r14d
  lea    D38(%rip),%r13
  jmp    L71
L279:
  mov    (%r12,%rbx,8),%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    %ebx,-0x40(%rbp)
  jg     L279
L184:
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x1,%r14d
  add    -0x60(%rbp),%r12
  cmp    %r14d,-0x44(%rbp)
  jle    L19
L71:
  mov    $0x0,%ebx
  cmpl   $0x0,-0x40(%rbp)
  jg     L279
  jmp    L184
L19:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x70(%rbp),%r9
  mov    -0x58(%rbp),%r8
  mov    -0x40(%rbp),%ecx
  mov    -0x44(%rbp),%edx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <djikstras@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L215
  mov    $0x0,%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L215:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D10
type_guessed: string
name: disassemble_data
arguments: label: D29
type_guessed: string
name: disassemble_data
arguments: label: D39
type_guessed: string
name: disassemble_data
arguments: label: D38
type_guessed: string

tool: D10: %d %d

tool: D29:  %ld

tool: D39: %d

tool: D38: %ld 

assistant: ```c
int main(void) {
  const int m, n;
  int i, j;
  scanf("%d %d", &m, &n);
  long tiles[m][n], rating[m][n], L[m][n];
  for (i = 0; i < m; i++)
    for (j = 0; j < n; j++)
      scanf(" %ld", &tiles[i][j]);
  int att, attraction[m][n];
  for (i = 0; i < m; i++)
    for (j = 0; j < n; j++) {
      scanf("%d", &att);
      if (att)
        attraction[m][n] = true;
    }
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++)
      printf("%ld ", tiles[i][j]);
    printf("\n");
  }
  printf("\n");
  djikstras(0, 0, m, n, tiles, L);
  return 0;
}
```