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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
L32:
  lea    -0x58(%rbp),%rax
  mov    %rax,%rsi
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x58(%rbp),%eax
  test   %eax,%eax
  je     L76
  movl   $0x3840,-0x2c(%rbp)
  movl   $0x3840,-0x24(%rbp)
  movl   $0xffffffff,-0x1c(%rbp)
  movl   $0xffffffff,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L98
L38:
  lea    -0x44(%rbp),%r8
  lea    -0x48(%rbp),%rdi
  lea    -0x4c(%rbp),%rcx
  lea    -0x50(%rbp),%rdx
  lea    -0x54(%rbp),%rax
  lea    -0x34(%rbp),%rsi
  push   %rsi
  lea    -0x38(%rbp),%rsi
  push   %rsi
  lea    -0x3c(%rbp),%rsi
  push   %rsi
  lea    -0x40(%rbp),%rsi
  push   %rsi
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    %rax,%rsi
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x20,%rsp
  mov    -0x50(%rbp),%edx
  mov    -0x48(%rbp),%eax
  add    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    %eax,%edx
  mov    -0x38(%rbp),%eax
  add    %edx,%eax
  imul   $0x3c,%eax,%edx
  mov    -0x4c(%rbp),%eax
  add    %eax,%edx
  mov    -0x44(%rbp),%eax
  add    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %eax,%edx
  mov    -0x34(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jge    L4
  mov    -0x30(%rbp),%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x2c(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x54(%rbp),%eax
  mov    %eax,-0x30(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  jmp    L66
L4:
  mov    -0xc(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jge    L66
  mov    -0x54(%rbp),%eax
  mov    %eax,-0x28(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x24(%rbp)
L66:
  mov    -0xc(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jle    L8
  mov    -0x18(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x54(%rbp),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L64
L8:
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jle    L64
  mov    -0x54(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
L64:
  addl   $0x1,-0x10(%rbp)
L98:
  mov    -0x58(%rbp),%eax
  cmp    %eax,-0x10(%rbp)
  jl     L38
  mov    -0x20(%rbp),%ecx
  mov    -0x28(%rbp),%edx
  mov    -0x30(%rbp),%eax
  mov    %eax,%esi
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L32
L76:
  nop
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L62
  call   <__stack_chk_fail@plt>
L62:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D4
type: string
name: retrieve_data
arguments: data_tag: D15
type: string
name: retrieve_data
arguments: data_tag: D5
type: string

tool: D4: %d

tool: D15: %d %d %d %d %d %d %d %d %d

tool: D5: %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;
}
```