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

```asm
<main>:
  endbr64
  push   %rbp
  lea    D37(%rip),%rdi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  lea    -0x40(%rbp),%rdx
  lea    -0x44(%rbp),%rsi
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <scanf@plt>
  movslq -0x40(%rbp),%rcx
  mov    %rsp,%rsi
  lea    0x0(,%rcx,8),%rdx
  mov    %rcx,%rax
  mov    %rdx,-0x60(%rbp)
  movslq -0x44(%rbp),%rdx
  mov    %rdx,%rdi
  imul   %rcx,%rdx
  lea    0xf(,%rdx,8),%rdx
  mov    %rdx,%r8
  mov    %rdx,%rcx
  and    $0xfffffffffffff000,%r8
  and    $0xfffffffffffffff0,%rcx
  sub    %r8,%rsi
  cmp    %rsi,%rsp
  je     L167
L189:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L189
L167:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L123
L204:
  mov    %rsp,-0x68(%rbp)
  mov    %rdx,%rcx
  mov    %rsp,%rsi
  and    $0xfffffffffffff000,%rdx
  and    $0xfffffffffffffff0,%rcx
  sub    %rdx,%rsi
L186:
  cmp    %rsi,%rsp
  je     L138
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L186
L123:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L204
L138:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L66
L1:
  mov    %rsp,-0x70(%rbp)
  test   %edi,%edi
  jle    L226
  mov    -0x60(%rbp),%rdx
  xor    %r13d,%r13d
  xor    %r12d,%r12d
  lea    D29(%rip),%rbx
  shr    $0x3,%rdx
  mov    %rdx,-0x58(%rbp)
  test   %eax,%eax
  jle    L332
  nop
L254:
  mov    -0x68(%rbp),%rax
  xor    %r15d,%r15d
  lea    (%rax,%r13,8),%r14
  nopl   0x0(%rax,%rax,1)
L112:
  mov    %r14,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x1,%r15d
  call   <scanf@plt>
  mov    -0x40(%rbp),%eax
  add    $0x8,%r14
  cmp    %r15d,%eax
  jg     L112
  mov    -0x44(%rbp),%edi
  add    $0x1,%r12d
  cmp    %edi,%r12d
  jge    L137
  add    -0x58(%rbp),%r13
  test   %eax,%eax
  jg     L254
L332:
  add    $0x1,%r12d
  cmp    %r12d,%edi
  jle    L137
  movslq %eax,%rcx
  movslq %edi,%rdx
  mov    %rsp,%rsi
  imul   %rcx,%rdx
  lea    0x0(,%rcx,4),%r13
  lea    0xf(,%rdx,4),%rdx
  mov    %rdx,%rcx
  and    $0xfffffffffffff000,%rdx
  and    $0xfffffffffffffff0,%rcx
  sub    %rdx,%rsi
L43:
  cmp    %rsi,%rsp
  je     L104
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L43
L104:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  je     L117
  orq    $0x0,-0x8(%rsp,%rcx,1)
L117:
  mov    %rsp,%r14
L171:
  movl   $0x0,-0x58(%rbp)
  shr    $0x2,%r13
  lea    D11(%rip),%r12
L341:
  test   %eax,%eax
  jle    L335
  xor    %r15d,%r15d
  lea    -0x3c(%rbp),%rbx
  nop
L291:
  mov    %rbx,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    -0x3c(%rbp),%eax
  test   %eax,%eax
  jne    L17
  mov    -0x40(%rbp),%eax
  add    $0x1,%r15d
  cmp    %r15d,%eax
  jg     L291
  mov    -0x44(%rbp),%edi
L301:
  addl   $0x1,-0x58(%rbp)
  mov    -0x58(%rbp),%edx
  cmp    %edx,%edi
  jg     L341
L209:
  test   %edi,%edi
  jg     L214
  cs nopw 0x0(%rax,%rax,1)
L226:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x70(%rbp),%r9
  mov    -0x68(%rbp),%r8
  xor    %esi,%esi
  mov    -0x40(%rbp),%ecx
  mov    -0x44(%rbp),%edx
  xor    %edi,%edi
  call   <djikstras@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L235
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   (%rax)
L17:
  movslq -0x44(%rbp),%rsi
  movslq -0x40(%rbp),%rcx
  add    $0x1,%r15d
  mov    %rsi,%rdi
  imul   %r13,%rsi
  mov    %rcx,%rax
  add    %rsi,%rcx
  movl   $0x1,(%r14,%rcx,4)
  cmp    %r15d,%eax
  jg     L291
  jmp    L301
  nopw   0x0(%rax,%rax,1)
L335:
  mov    -0x58(%rbp),%r15d
  add    $0x1,%r15d
  cmp    %edi,%r15d
  jge    L209
L214:
  mov    -0x68(%rbp),%rbx
  xor    %r13d,%r13d
  lea    D1(%rip),%r12
  nop
L143:
  xor    %r14d,%r14d
  test   %eax,%eax
  jle    L108
  nopw   0x0(%rax,%rax,1)
L334:
  mov    (%rbx,%r14,8),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%r14
  call   <printf@plt>
  cmp    %r14d,-0x40(%rbp)
  jg     L334
L108:
  mov    $0xa,%edi
  add    $0x1,%r13d
  call   <putchar@plt>
  add    -0x60(%rbp),%rbx
  cmp    %r13d,-0x44(%rbp)
  jle    L226
  mov    -0x40(%rbp),%eax
  jmp    L143
L66:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L1
L137:
  movslq %eax,%rcx
  movslq %edi,%rdx
  mov    %rsp,%rsi
  imul   %rcx,%rdx
  lea    0x0(,%rcx,4),%r13
  lea    0xf(,%rdx,4),%rcx
  mov    %rcx,%rdx
  and    $0xfffffffffffff000,%rcx
  and    $0xfffffffffffffff0,%rdx
  sub    %rcx,%rsi
L12:
  cmp    %rsi,%rsp
  je     L89
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L12
L235:
  call   <__stack_chk_fail@plt>
L89:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L346
  orq    $0x0,-0x8(%rsp,%rdx,1)
L346:
  mov    %rsp,%r14
  test   %edi,%edi
  jg     L171
  jmp    L226
```

tool_calls: name: unpack_data
arguments: label: D37
datatype: string
name: unpack_data
arguments: label: D29
datatype: string
name: unpack_data
arguments: label: D11
datatype: string
name: unpack_data
arguments: label: D1
datatype: string

tool: D37: %d %d

tool: D29:  %ld

tool: D11: %d

tool: D1: %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;
}
```