user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r15
  lea    D4(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xd8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xc8(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  call   <scanf@plt>
  mov    0xc(%rsp),%edi
  test   %edi,%edi
  jle    L108
  mov    $0x4,%r13d
  mov    $0x1,%r15d
  lea    0x70(%rsp),%rbp
  lea    0xa0(%rsp),%r12
  lea    0x40(%rsp),%rbx
  lea    D20(%rip),%r14
  nopl   0x0(%rax,%rax,1)
L134:
  lea    (%r12,%r13,1),%rcx
  lea    0x0(%rbp,%r13,1),%rdx
  mov    %r14,%rdi
  xor    %eax,%eax
  lea    (%rbx,%r13,1),%rsi
  add    $0x1,%r15d
  add    $0x4,%r13
  call   <scanf@plt>
  mov    0xc(%rsp),%edi
  cmp    %r15d,%edi
  jge    L134
L108:
  mov    0x8(%rsp),%r8d
  test   %r8d,%r8d
  jle    L0
  lea    -0x1(%r8),%edx
  lea    0x14(%rsp),%rax
  lea    0x18(%rsp,%rdx,4),%rdx
  nopl   0x0(%rax)
L84:
  movl   $0xf423f,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L84
  movl   $0x0,0x14(%rsp)
  cmp    $0x1,%r8d
  jle    L77
  mov    $0x1,%r9d
  nop
L68:
  test   %edi,%edi
  jle    L166
  mov    $0x1,%edx
  lea    0x70(%rsp),%rbp
  lea    0x40(%rsp),%rbx
  lea    0xa0(%rsp),%r12
  nopl   0x0(%rax,%rax,1)
L93:
  movslq 0x0(%rbp,%rdx,4),%rcx
  movslq (%rbx,%rdx,4),%rsi
  mov    (%r12,%rdx,4),%eax
  add    0x10(%rsp,%rsi,4),%eax
  mov    0x10(%rsp,%rcx,4),%esi
  cmp    %esi,%eax
  cmovg  %esi,%eax
  add    $0x1,%rdx
  mov    %eax,0x10(%rsp,%rcx,4)
  cmp    %edx,%edi
  jge    L93
L166:
  add    $0x1,%r9d
  cmp    %r8d,%r9d
  jne    L68
  test   %edi,%edi
  jle    L18
L95:
  mov    $0x1,%eax
  xor    %ecx,%ecx
  lea    0x70(%rsp),%rbp
  mov    $0x1,%r10d
  lea    0xa0(%rsp),%r12
  lea    0x40(%rsp),%rbx
  nopw   0x0(%rax,%rax,1)
L101:
  movslq 0x0(%rbp,%rax,4),%rsi
  movslq (%rbx,%rax,4),%r9
  mov    (%r12,%rax,4),%edx
  add    0x10(%rsp,%r9,4),%edx
  cmp    %edx,0x10(%rsp,%rsi,4)
  cmovg  %r10d,%ecx
  add    $0x1,%rax
  cmp    %eax,%edi
  jge    L101
  cmp    $0x1,%ecx
  je     L144
L92:
  test   %r8d,%r8d
  jle    L104
L18:
  mov    $0x1,%ebx
  lea    0x10(%rsp),%r12
  lea    D19(%rip),%rbp
  nopl   (%rax)
L137:
  mov    (%r12,%rbx,4),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %ebx,0x8(%rsp)
  jge    L137
L104:
  mov    0xc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L16
  add    $0xd8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L144:
  lea    D24(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%r8d
  jmp    L92
L0:
  movl   $0x0,0x14(%rsp)
L77:
  test   %edi,%edi
  jg     L95
  jmp    L92
L16:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D4
datatype: string
name: extract_symbolic_data
arguments: tag: D20
datatype: string
name: extract_symbolic_data
arguments: tag: D19
datatype: string
name: extract_symbolic_data
arguments: tag: D24
datatype: string

tool: D4: %d %d

tool: D20: %d %d %d

tool: D19: %d

tool: D24: negtive circuit

assistant: ```c
int main() {
  int dis[10], u[10], v[10], w[10];
  int n, m;
  scanf("%d %d", &n, &m);
  for (int i = 1; i <= m; i++)
    scanf("%d %d %d", &u[i], &v[i], &w[i]);
  for (int i = 1; i <= n; i++)
    dis[i] = 999999;
  dis[1] = 0;
  for (int k = 1; k <= n - 1; k++)
    for (int i = 1; i <= m; i++)
      if (dis[v[i]] > dis[u[i]] + w[i])
        dis[v[i]] = dis[u[i]] + w[i];
  int flag = 0;
  for (int i = 1; i <= m; i++)
    if (dis[v[i]] > dis[u[i]] + w[i])
      flag = 1;
  if (flag == 1)
    printf("negtive circuit\n");
  for (int i = 1; i <= n; i++)
    printf("%d", dis[i]);
  return 0;
}
```