user: 请从给定的汇编指令推导出C源代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x1c8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,-0x1e8(%rbp)
  lea    -0xb8(%rbp),%rdx
  lea    -0xbc(%rbp),%rax
  mov    %rax,%rsi
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0xb8(%rbp),%esi
  mov    -0xbc(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x98(%rbp)
  movslq %esi,%rax
  mov    %rax,-0x1b0(%rbp)
  movq   $0x0,-0x1a8(%rbp)
  movslq %esi,%rax
  shl    $0x3,%rax
  mov    %rax,-0x1b0(%rbp)
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x90(%rbp)
  movslq %esi,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  movslq %edi,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  mov    %r15,%rdx
  imul   %r12,%rdx
  mov    %r13,%rax
  imul   %r14,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r14,%rax
  mul    %r12
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rax
  mov    %rax,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  movslq %edi,%rax
  mov    %rax,-0xe0(%rbp)
  movq   $0x0,-0xd8(%rbp)
  mov    -0xd0(%rbp),%r10
  mov    -0xc8(%rbp),%r11
  mov    %r11,%rdx
  mov    -0xe0(%rbp),%r8
  mov    -0xd8(%rbp),%r9
  imul   %r8,%rdx
  mov    %r9,%rax
  imul   %r10,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r10,%rax
  mul    %r8
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rdx
  movslq %edi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L337:
  cmp    %rcx,%rsp
  je     L349
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L337
L349:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  mov    %rdx,%rax
  and    $0xfff,%eax
  test   %rax,%rax
  je     L149
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L149:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x88(%rbp)
  mov    -0xb8(%rbp),%esi
  mov    -0xbc(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x80(%rbp)
  movslq %esi,%rax
  mov    %rax,-0x1c0(%rbp)
  movq   $0x0,-0x1b8(%rbp)
  movslq %esi,%rax
  lea    0x0(,%rax,8),%r12
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x78(%rbp)
  movslq %esi,%rax
  mov    %rax,-0xf0(%rbp)
  movq   $0x0,-0xe8(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x100(%rbp)
  movq   $0x0,-0xf8(%rbp)
  mov    -0xf0(%rbp),%r10
  mov    -0xe8(%rbp),%r11
  mov    %r11,%rdx
  mov    -0x100(%rbp),%r8
  mov    -0xf8(%rbp),%r9
  imul   %r8,%rdx
  mov    %r9,%rax
  imul   %r10,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r10,%rax
  mul    %r8
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rax
  mov    %rax,-0x110(%rbp)
  movq   $0x0,-0x108(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x120(%rbp)
  movq   $0x0,-0x118(%rbp)
  mov    -0x110(%rbp),%r10
  mov    -0x108(%rbp),%r11
  mov    %r11,%rdx
  mov    -0x120(%rbp),%r14
  mov    -0x118(%rbp),%r15
  imul   %r14,%rdx
  mov    %r15,%rax
  imul   %r10,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r10,%rax
  mul    %r14
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rdx
  movslq %edi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L229:
  cmp    %rcx,%rsp
  je     L339
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L229
L339:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  mov    %rdx,%rax
  and    $0xfff,%eax
  test   %rax,%rax
  je     L313
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L313:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x70(%rbp)
  mov    -0xb8(%rbp),%esi
  mov    -0xbc(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x68(%rbp)
  movslq %esi,%rax
  mov    %rax,-0x1d0(%rbp)
  movq   $0x0,-0x1c8(%rbp)
  movslq %esi,%rax
  lea    0x0(,%rax,8),%rbx
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x60(%rbp)
  movslq %esi,%rax
  mov    %rax,-0x130(%rbp)
  movq   $0x0,-0x128(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x140(%rbp)
  movq   $0x0,-0x138(%rbp)
  mov    -0x130(%rbp),%r9
  mov    -0x128(%rbp),%r10
  mov    %r10,%rdx
  mov    -0x140(%rbp),%r14
  mov    -0x138(%rbp),%r15
  imul   %r14,%rdx
  mov    %r15,%rax
  imul   %r9,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r9,%rax
  mul    %r14
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rax
  mov    %rax,-0x150(%rbp)
  movq   $0x0,-0x148(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x160(%rbp)
  movq   $0x0,-0x158(%rbp)
  mov    -0x150(%rbp),%r10
  mov    -0x148(%rbp),%r11
  mov    %r11,%rdx
  mov    -0x160(%rbp),%r14
  mov    -0x158(%rbp),%r15
  imul   %r14,%rdx
  mov    %r15,%rax
  imul   %r10,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r10,%rax
  mul    %r14
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rdx
  movslq %edi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L43:
  cmp    %rcx,%rsp
  je     L173
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L43
L173:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  mov    %rdx,%rax
  and    $0xfff,%eax
  test   %rax,%rax
  je     L18
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L18:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x58(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L15
L211:
  movl   $0x0,-0xac(%rbp)
  jmp    L190
L371:
  mov    %rbx,%rdx
  shr    $0x3,%rdx
  mov    -0xac(%rbp),%eax
  movslq %eax,%rcx
  mov    -0xb0(%rbp),%eax
  cltq
  imul   %rdx,%rax
  add    %rcx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0xac(%rbp)
L190:
  mov    -0xb8(%rbp),%eax
  cmp    %eax,-0xac(%rbp)
  jl     L371
  addl   $0x1,-0xb0(%rbp)
L15:
  mov    -0xbc(%rbp),%eax
  cmp    %eax,-0xb0(%rbp)
  jl     L211
  mov    -0xb8(%rbp),%esi
  mov    -0xbc(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x50(%rbp)
  movslq %esi,%rax
  mov    %rax,-0x1e0(%rbp)
  movq   $0x0,-0x1d8(%rbp)
  movslq %esi,%rax
  lea    0x0(,%rax,4),%rbx
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x48(%rbp)
  movslq %esi,%rax
  mov    %rax,-0x170(%rbp)
  movq   $0x0,-0x168(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x180(%rbp)
  movq   $0x0,-0x178(%rbp)
  mov    -0x170(%rbp),%r8
  mov    -0x168(%rbp),%r9
  mov    %r9,%rdx
  mov    -0x180(%rbp),%r14
  mov    -0x178(%rbp),%r15
  imul   %r14,%rdx
  mov    %r15,%rax
  imul   %r8,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r8,%rax
  mul    %r14
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rax
  mov    %rax,-0x190(%rbp)
  movq   $0x0,-0x188(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x1a0(%rbp)
  movq   $0x0,-0x198(%rbp)
  mov    -0x190(%rbp),%r8
  mov    -0x188(%rbp),%r9
  mov    %r9,%rdx
  mov    -0x1a0(%rbp),%r10
  mov    -0x198(%rbp),%r11
  imul   %r10,%rdx
  mov    %r11,%rax
  imul   %r8,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r8,%rax
  mul    %r10
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rdx
  movslq %edi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L218:
  cmp    %rdx,%rsp
  je     L148
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L218
L148:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L344
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L344:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L224
L223:
  movl   $0x0,-0xac(%rbp)
  jmp    L206
L396:
  lea    -0xb4(%rbp),%rax
  mov    %rax,%rsi
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0xb4(%rbp),%eax
  test   %eax,%eax
  je     L51
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0xac(%rbp),%edx
  movslq %edx,%rsi
  mov    -0xb0(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  movl   $0x1,(%rax,%rdx,4)
  jmp    L384
L51:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0xac(%rbp),%edx
  movslq %edx,%rsi
  mov    -0xb0(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  movl   $0x0,(%rax,%rdx,4)
L384:
  addl   $0x1,-0xac(%rbp)
L206:
  mov    -0xb8(%rbp),%eax
  cmp    %eax,-0xac(%rbp)
  jl     L396
  addl   $0x1,-0xb0(%rbp)
L224:
  mov    -0xbc(%rbp),%eax
  cmp    %eax,-0xb0(%rbp)
  jl     L223
  movl   $0x0,-0xb0(%rbp)
  jmp    L228
L202:
  movl   $0x0,-0xac(%rbp)
  jmp    L269
L355:
  movq   $0xffffffffffffffff,-0xa0(%rbp)
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0xac(%rbp),%edx
  movslq %edx,%rsi
  mov    -0xb0(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%eax
  test   %eax,%eax
  je     L185
  mov    -0xb8(%rbp),%ecx
  mov    -0xbc(%rbp),%edx
  mov    -0x88(%rbp),%r8
  mov    -0x58(%rbp),%rdi
  mov    -0xac(%rbp),%esi
  mov    -0xb0(%rbp),%eax
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    %eax,%edi
  call   <djikstras@plt>
  movl   $0x0,-0xa8(%rbp)
  jmp    L130
L365:
  movl   $0x0,-0xa4(%rbp)
  jmp    L165
L175:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0xa4(%rbp),%edx
  movslq %edx,%rsi
  mov    -0xa8(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%eax
  test   %eax,%eax
  je     L102
  mov    -0x1b0(%rbp),%rdi
  mov    %rdi,%rcx
  shr    $0x3,%rcx
  mov    -0x88(%rbp),%rax
  mov    -0xa4(%rbp),%edx
  movslq %edx,%rsi
  mov    -0xa8(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,8),%rax
  cmp    %rax,-0xa0(%rbp)
  jge    L102
  shr    $0x3,%rdi
  mov    %rdi,%rcx
  mov    -0x88(%rbp),%rax
  mov    -0xa4(%rbp),%edx
  movslq %edx,%rsi
  mov    -0xa8(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,8),%rax
  mov    %rax,-0xa0(%rbp)
L102:
  addl   $0x1,-0xa4(%rbp)
L165:
  mov    -0xb8(%rbp),%eax
  cmp    %eax,-0xa4(%rbp)
  jl     L175
  addl   $0x1,-0xa8(%rbp)
L130:
  mov    -0xbc(%rbp),%eax
  cmp    %eax,-0xa8(%rbp)
  jl     L365
L185:
  mov    %r12,%rcx
  shr    $0x3,%rcx
  mov    -0x70(%rbp),%rax
  mov    -0xac(%rbp),%edx
  movslq %edx,%rsi
  mov    -0xb0(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  lea    (%rsi,%rdx,1),%rcx
  mov    -0xa0(%rbp),%rdx
  mov    %rdx,(%rax,%rcx,8)
  addl   $0x1,-0xac(%rbp)
L269:
  mov    -0xb8(%rbp),%eax
  cmp    %eax,-0xac(%rbp)
  jl     L355
  addl   $0x1,-0xb0(%rbp)
L228:
  mov    -0xbc(%rbp),%eax
  cmp    %eax,-0xb0(%rbp)
  jl     L202
  movq   $0xffffffffffffffff,-0xa0(%rbp)
  movl   $0x0,-0xb0(%rbp)
  jmp    L381
L267:
  movl   $0x0,-0xac(%rbp)
  jmp    L63
L377:
  mov    %r12,%rcx
  shr    $0x3,%rcx
  mov    -0x70(%rbp),%rax
  mov    -0xac(%rbp),%edx
  movslq %edx,%rsi
  mov    -0xb0(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,8),%rax
  test   %rax,%rax
  jle    L220
  mov    %r12,%rcx
  shr    $0x3,%rcx
  mov    -0x70(%rbp),%rax
  mov    -0xac(%rbp),%edx
  movslq %edx,%rsi
  mov    -0xb0(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,8),%rax
  cmp    %rax,-0xa0(%rbp)
  jge    L220
  mov    %r12,%rcx
  shr    $0x3,%rcx
  mov    -0x70(%rbp),%rax
  mov    -0xac(%rbp),%edx
  movslq %edx,%rsi
  mov    -0xb0(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,8),%rax
  mov    %rax,-0xa0(%rbp)
L220:
  addl   $0x1,-0xac(%rbp)
L63:
  mov    -0xb8(%rbp),%eax
  cmp    %eax,-0xac(%rbp)
  jl     L377
  addl   $0x1,-0xb0(%rbp)
L381:
  mov    -0xbc(%rbp),%eax
  cmp    %eax,-0xb0(%rbp)
  jl     L267
  mov    -0xa0(%rbp),%rax
  mov    %rax,%rsi
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x1e8(%rbp),%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L93
  call   <__stack_chk_fail@plt>
L93:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: data_tag: D5
type_infered: string
name: read_data
arguments: data_tag: D38
type_infered: string
name: read_data
arguments: data_tag: D19
type_infered: string

tool: D5: %d %d

tool: D38: %ld

tool: D19: %d

assistant: ```c
int main(void) {
  int m, n;
  int i, j;
  scanf("%d %d", &m, &n);
  long L[m][n], rating[m][n];
  long tiles[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[i][j] = true;
      else
        attraction[i][j] = false;
    }
  int a, b;
  long maks;
  for (i = 0; i < m; i++)
    for (j = 0; j < n; j++) {
      maks = -1;
      if (attraction[i][j]) {
        djikstras(i, j, m, n, tiles, L);
        for (a = 0; a < m; a++)
          for (b = 0; b < n; b++)
            if (attraction[a][b])
              if (L[a][b] > maks)
                maks = L[a][b];
      }
      rating[i][j] = maks;
    }
  maks = -1;
  for (i = 0; i < m; i++) {
    for (j = 0; j < n; j++)
      if (rating[i][j] > 0 && rating[i][j] > maks)
        maks = rating[i][j];
  }
  printf("%ld", maks);
  return 0;
}
```