user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x220,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x218(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rdx
  lea    0xc(%rsp),%rsi
  lea    D19(%rip),%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%edi
  test   %edi,%edi
  jle    L70
  lea    0xa8(%rsp),%rsi
  lea    0x1(%rdi),%r10d
  mov    $0x1,%ecx
  mov    $0x0,%r9d
  mov    $0xf423f,%r8d
L85:
  mov    $0x1,%eax
L93:
  cmp    %eax,%ecx
  mov    %r8d,%edx
  cmove  %r9d,%edx
  mov    %edx,(%rsi,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%edi
  jge    L93
  add    $0x1,%ecx
  add    $0x28,%rsi
  cmp    %r10d,%ecx
  jne    L85
  cmpl   $0x0,0x10(%rsp)
  jle    L60
L156:
  mov    $0x1,%ebp
  lea    D3(%rip),%r12
L87:
  lea    0x1c(%rsp),%rcx
  lea    0x18(%rsp),%rdx
  lea    0x14(%rsp),%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movslq 0x18(%rsp),%rdx
  movslq 0x14(%rsp),%rax
  lea    (%rax,%rax,4),%rax
  lea    (%rdx,%rax,2),%rax
  mov    0x1c(%rsp),%edx
  mov    %edx,0x80(%rsp,%rax,4)
  add    $0x1,%ebp
  cmp    %ebp,0x10(%rsp)
  jge    L87
  mov    0xc(%rsp),%ecx
  test   %ecx,%ecx
  jle    L28
L193:
  mov    $0x1,%eax
L245:
  mov    0xa8(%rsp,%rax,4),%edx
  mov    %edx,0x20(%rsp,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%ecx
  jge    L245
  lea    0x54(%rsp),%rax
  lea    -0x1(%rcx),%edx
  lea    0x58(%rsp,%rdx,4),%rdx
L177:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L177
  movl   $0x1,0x54(%rsp)
  cmp    $0x1,%ecx
  jle    L257
  mov    $0x1,%r10d
  mov    $0xf423f,%ebp
  lea    0x50(%rsp),%r8
  lea    0x20(%rsp),%rsi
  lea    0x80(%rsp),%r11
  jmp    L84
L12:
  add    $0x1,%rax
  cmp    %eax,%ecx
  jl     L49
L132:
  cmpl   $0x0,(%r8,%rax,4)
  jne    L12
  mov    (%rsi,%rax,4),%edi
  cmp    %r9d,%edi
  jge    L12
  mov    %edi,%r9d
  mov    %eax,%ebx
  jmp    L12
L49:
  movslq %ebx,%rax
  movl   $0x1,0x50(%rsp,%rax,4)
  lea    (%rax,%rax,4),%rax
  lea    (%r11,%rax,8),%rdi
  mov    $0x1,%eax
  movslq %ebx,%r9
  jmp    L71
L216:
  add    $0x1,%rax
  cmp    %eax,%ecx
  jl     L80
L71:
  mov    (%rdi,%rax,4),%edx
  cmp    $0xf423e,%edx
  jg     L216
  add    0x20(%rsp,%r9,4),%edx
  cmp    %edx,(%rsi,%rax,4)
  jle    L216
  mov    %edx,(%rsi,%rax,4)
  jmp    L216
L80:
  add    $0x1,%r10d
  cmp    %ecx,%r10d
  jge    L257
L84:
  mov    $0x1,%eax
  mov    %ebp,%r9d
  jmp    L132
L257:
  mov    $0x1,%ebx
  lea    D5(%rip),%rbp
L124:
  mov    0x20(%rsp,%rbx,4),%esi
  mov    %rbp,%rdi
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    %ebx,0xc(%rsp)
  jge    L124
L28:
  mov    0x218(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L123
  mov    $0x0,%eax
  add    $0x220,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L70:
  cmpl   $0x0,0x10(%rsp)
  jg     L156
  jmp    L28
L60:
  mov    0xc(%rsp),%ecx
  jmp    L193
L123:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D19
data_type: string
name: parse_data
arguments: data_tag: D3
data_type: string
name: parse_data
arguments: data_tag: D5
data_type: string

tool: D19: %d %d

tool: D3: %d %d %d

tool: D5: %d 

assistant: ```c
int main() {
  int e[10][10], dis[10], book[10], n, m, u, v, w;
  scanf("%d %d", &n, &m);
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= n; j++)
      if (i == j)
        e[i][j] = 0;
      else
        e[i][j] = 999999;
  for (int i = 1; i <= m; i++) {
    scanf("%d %d %d", &u, &v, &w);
    e[u][v] = w;
  }
  for (int i = 1; i <= n; i++)
    dis[i] = e[1][i];
  for (int i = 1; i <= n; i++)
    book[i] = 0;
  book[1] = 1;
  for (int i = 1; i <= n - 1; i++) {
    int node;
    int min = 999999;
    for (int j = 1; j <= n; j++) {
      if (book[j] == 0 && dis[j] < min) {
        min = dis[j];
        node = j;
      }
    }
    book[node] = 1;
    for (int v = 1; v <= n; v++) {
      if (e[node][v] < 999999) {
        if (dis[v] > dis[node] + e[node][v])
          dis[v] = dis[node] + e[node][v];
      }
    }
  }
  for (int i = 1; i <= n; i++)
    printf("%d ", dis[i]);
  return 0;
}
```