user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  lea    0x50(%rsp),%rax
  mov    %rax,0x48(%rsp)
  nop
L95:
  mov    0x48(%rsp),%rsi
  lea    D0(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x50(%rsp),%eax
  test   %eax,%eax
  je     L32
  jle    L9
  lea    0x54(%rsp),%rax
  xor    %r12d,%r12d
  lea    0x60(%rsp),%r15
  movl   $0xffffffff,0xc(%rsp)
  mov    %rax,0x30(%rsp)
  lea    0x74(%rsp),%rax
  lea    0x5c(%rsp),%r14
  mov    %r15,%r8
  mov    %rax,0x28(%rsp)
  lea    0x70(%rsp),%rax
  lea    0x58(%rsp),%r13
  mov    %r14,%r15
  mov    %rax,0x20(%rsp)
  lea    0x6c(%rsp),%rax
  lea    0x64(%rsp),%r9
  mov    %r13,%r14
  mov    %rax,0x18(%rsp)
  lea    0x68(%rsp),%rax
  mov    %r12d,%r13d
  mov    $0xffffffff,%ebp
  movl   $0x3840,0x8(%rsp)
  mov    $0x3840,%ebx
  mov    %r9,%r12
  mov    %rax,0x10(%rsp)
  jmp    L11
  nopl   0x0(%rax)
L16:
  mov    0x38(%rsp),%edx
  mov    0x54(%rsp),%ecx
  mov    %ebx,0x8(%rsp)
  mov    %eax,%ebx
  mov    %edx,0x40(%rsp)
  mov    %ecx,0x38(%rsp)
L105:
  cmp    %ebp,%eax
  jle    L47
L37:
  mov    %ebp,0xc(%rsp)
  mov    %eax,%ebp
  mov    0x3c(%rsp),%eax
  mov    %eax,0x44(%rsp)
  mov    0x54(%rsp),%eax
  mov    %eax,0x3c(%rsp)
L74:
  add    $0x1,%r13d
  cmp    %r13d,0x50(%rsp)
  jle    L9
L11:
  push   0x28(%rsp)
  xor    %eax,%eax
  mov    %r12,%r9
  mov    %r15,%rcx
  push   0x28(%rsp)
  mov    %r14,%rdx
  lea    D7(%rip),%rdi
  push   0x28(%rsp)
  push   0x28(%rsp)
  mov    0x50(%rsp),%rsi
  mov    %r8,0x20(%rsp)
  call   <scanf@plt>
  mov    0x80(%rsp),%eax
  add    0x78(%rsp),%eax
  add    0x88(%rsp),%eax
  add    0x90(%rsp),%eax
  imul   $0x3c,%eax,%eax
  add    0x7c(%rsp),%eax
  add    0x84(%rsp),%eax
  add    0x8c(%rsp),%eax
  add    0x94(%rsp),%eax
  add    $0x20,%rsp
  cmp    %ebx,%eax
  mov    (%rsp),%r8
  jl     L16
  cmp    0x8(%rsp),%eax
  jge    L105
  mov    0x54(%rsp),%edx
  mov    %eax,0x8(%rsp)
  mov    %edx,0x40(%rsp)
  cmp    %ebp,%eax
  jg     L37
L47:
  cmp    0xc(%rsp),%eax
  jle    L74
  mov    0x54(%rsp),%ecx
  mov    %eax,0xc(%rsp)
  add    $0x1,%r13d
  mov    %ecx,0x44(%rsp)
  cmp    %r13d,0x50(%rsp)
  jg     L11
L9:
  mov    0x44(%rsp),%ecx
  mov    0x40(%rsp),%edx
  lea    D22(%rip),%rdi
  mov    0x38(%rsp),%esi
  call   <printf@plt>
  jmp    L95
  nopl   0x0(%rax)
L32:
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L21
  add    $0x88,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L21:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D0
datatype: string
name: unpack_data
arguments: tag: D7
datatype: string
name: unpack_data
arguments: tag: D22
datatype: string

tool: D0: %d

tool: D7: %d %d %d %d %d %d %d %d %d

tool: D22: %d
%d
%d


assistant: ```c
int main(void) {
  int num, c1, m1, s1, m2, s2, m3, s3, m4, s4, tempt, cf, tf, cs, ts, cb, tb, cl, tl, i;
  while (1) {
    scanf("%d", &num);
    if (num == 0)
      break;
    tf = 14400, ts = 14400, tb = -1, tl = -1;
    for (i = 0; i < num; i++) {
      scanf("%d %d %d %d %d %d %d %d %d", &c1, &m1, &s1, &m2, &s2, &m3, &s3, &m4, &s4);
      tempt = (m1 + m2 + m3 + m4) * 60 + s1 + s2 + s3 + s4;
      if (tempt < tf) {
        cs = cf;
        ts = tf;
        cf = c1;
        tf = tempt;
      } else if (tempt < ts) {
        cs = c1;
        ts = tempt;
      }
      if (tempt > tl) {
        cb = cl;
        tb = tl;
        cl = c1;
        tl = tempt;
      } else if (tempt > tb) {
        cb = c1;
        tb = tempt;
      }
    }
    printf("%d\n%d\n%d\n", cf, cs, cb);
  }
  return 0;
}
```