user: Converte this assembly snippet into its equivalent C code:

```asm
<floydAPSP>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %edi,%r14d
  mov    %rsi,%r8
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %edi,%rax
  lea    0x0(,%rax,4),%r10
  imul   %rax,%rax
  shl    $0x2,%rax
  lea    0xf(%rax),%rcx
  mov    %rcx,%rdx
  and    $0xfffffffffffffff0,%rdx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rsi
  sub    %rcx,%rsi
L92:
  cmp    %rsi,%rsp
  je     L211
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L92
L211:
  mov    %rdx,%rcx
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  je     L207
  orq    $0x0,-0x8(%rsp,%rcx,1)
L207:
  mov    %rsp,%rbx
  add    $0xf,%rax
  mov    %rax,%rdx
  and    $0xfffffffffffffff0,%rdx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L37:
  cmp    %rcx,%rsp
  je     L110
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L37
L110:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L31
  orq    $0x0,-0x8(%rsp,%rax,1)
L31:
  mov    %rsp,%r12
  mov    %r10,%r15
  shr    $0x2,%r15
  mov    $0x0,%ecx
  mov    $0x0,%edi
  jmp    L179
L162:
  mov    $0x0,%ecx
L215:
  movslq %ecx,%rsi
  movslq %edi,%rdx
  mov    %rdx,%rax
  imul   %r15,%rax
  add    %rsi,%rax
  imul   %r10,%rdx
  lea    (%r8,%rsi,4),%rsi
  mov    (%rsi,%rdx,1),%edx
  mov    %edx,(%rbx,%rax,4)
  movl   $0x0,(%r12,%rax,4)
  add    $0x1,%ecx
L179:
  cmp    %r14d,%ecx
  jl     L215
  add    $0x1,%edi
  cmp    %edi,%r14d
  jg     L162
  test   %r14d,%r14d
  jle    L220
  lea    -0x1(%r14),%eax
  lea    0x2(%rax),%rdi
  mov    %rdi,-0x60(%rbp)
  lea    0x4(,%rax,4),%rdi
  mov    %rdi,-0x58(%rbp)
  mov    %r15,%rdx
  neg    %rdx
  lea    0x0(,%rdx,4),%rdi
  mov    %rdi,-0x48(%rbp)
  movq   $0x0,-0x50(%rbp)
  mov    $0x1,%r8d
  not    %rax
  lea    0x0(,%rax,4),%r13
  jmp    L227
L112:
  add    $0x4,%rax
  cmp    %rsi,%rax
  je     L148
L77:
  mov    (%rdi,%rax,1),%edx
  add    (%rbx,%rcx,4),%edx
  cmp    %edx,(%rbx,%rax,1)
  jle    L112
  mov    %edx,(%rbx,%rax,1)
  mov    %r8d,(%r12,%rax,1)
  jmp    L112
L148:
  add    $0x1,%r9d
  add    %r10,%rsi
  add    -0x48(%rbp),%rdi
  cmp    %r9d,%r14d
  je     L51
L229:
  lea    0x0(%r13,%rsi,1),%rax
  movslq %r9d,%rcx
  imul   %r15,%rcx
  add    %r11,%rcx
  jmp    L77
L51:
  add    $0x1,%r8
  add    %r10,-0x50(%rbp)
  cmp    -0x60(%rbp),%r8
  je     L220
L227:
  lea    -0x1(%r8),%r11d
  mov    -0x50(%rbp),%rax
  lea    (%rbx,%rax,1),%rdi
  mov    -0x58(%rbp),%rsi
  mov    $0x0,%r9d
  movslq %r11d,%r11
  jmp    L229
L220:
  mov    $0x0,%r13d
  mov    $0x0,%eax
  mov    %r15,-0x48(%rbp)
  mov    %eax,%r15d
  jmp    L169
L230:
  mov    $0x0,%r13d
L81:
  cmp    %r13d,%r15d
  jne    L53
L203:
  add    $0x1,%r13d
L169:
  cmp    %r14d,%r13d
  jl     L81
  add    $0x1,%r15d
  cmp    %r15d,%r14d
  jg     L230
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L175
  mov    $0x0,%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L53:
  movslq %r13d,%rax
  movslq %r15d,%rdx
  imul   -0x48(%rbp),%rdx
  add    %rdx,%rax
  mov    (%rbx,%rax,4),%ecx
  lea    0x1(%r13),%edx
  lea    0x1(%r15),%esi
  mov    (%r12,%rax,4),%r8d
  lea    D6(%rip),%rdi
  call   <printf@plt>
  jmp    L203
L175:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D6
data_type: string

tool: D6: Shortest path between %d and %d is %d via %d


assistant: ```c
int floydAPSP(int n, int G[n][n]) {
  int D[n][n], P[n][n];
  for (int i = 0, j = 0; j < n || (j = 0, ++i) < n; j++) {
    D[i][j] = G[i][j];
    P[i][j] = 0;
  }
  for (int k = 0; k < n; k++) {
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < n; j++) {
        int d = D[i][k] + D[k][j];
        if (D[i][j] > d) {
          D[i][j] = d;
          P[i][j] = k + 1;
        }
      }
    }
  }
  for (int i = 0, j = 0; j < n || (j = 0, ++i) < n; j++) {
    i ^ j &&printf("Shortest path between %d and %d is %d via %d\n", i + 1, j + 1, D[i][j], P[i][j]);
  }
}
```