user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  mov    %edi,%r12d
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  sub    $0x120,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x118(%rsp)
  xor    %eax,%eax
  call   <geteuid@plt>
  test   %rax,%rax
  jne    L0
  cmp    $0x1,%r12d
  jle    L116
L85:
  mov    $0x1,%ebx
  lea    D44(%rip),%r13
  nopl   0x0(%rax)
L56:
  mov    0x0(%rbp,%rbx,8),%rdi
  call   <_time_login@plt>
  mov    0x0(%rbp,%rbx,8),%rsi
  mov    %r13,%rdi
  add    $0x1,%rbx
  mov    %rax,%rdx
  xor    %eax,%eax
  call   <printf@plt>
  cmp    %ebx,%r12d
  jg     L56
  xor    %edi,%edi
  call   <exit@plt>
L116:
  lea    D23(%rip),%rsi
  lea    D1(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L7
L13:
  lea    0x10(%rsp),%rbx
  lea    0x4(%rsp),%r13
  lea    D44(%rip),%r14
  lea    0x8(%rsp),%r12
  nopl   0x0(%rax)
L83:
  mov    %rbp,%rdx
  mov    $0x100,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L15
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <_parse_line@plt>
  cmpl   $0x64,0x4(%rsp)
  jle    L83
  mov    0x8(%rsp),%rdi
  call   <_time_login@plt>
  pxor   %xmm0,%xmm0
  movsd  D56(%rip),%xmm1
  cvtsi2sd %rax,%xmm0
  mov    %rax,%rdx
  comisd %xmm0,%xmm1
  ja     L83
  mov    0x8(%rsp),%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  lea    0x8(%rsp),%r12
  call   <printf@plt>
  jmp    L83
  nopl   0x0(%rax)
L15:
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L110
  add    $0x120,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L0:
  lea    D55(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  cmp    $0x1,%r12d
  jg     L85
  jmp    L116
L7:
  lea    D58(%rip),%rdi
  call   <perror@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L13
L110:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D44
type_guessed: string
name: retrieve_data
arguments: data_tag: D23
type_guessed: string
name: retrieve_data
arguments: data_tag: D1
type_guessed: string
name: retrieve_data
arguments: data_tag: D56
type_guessed: byte[8]
name: retrieve_data
arguments: data_tag: D55
type_guessed: string
name: retrieve_data
arguments: data_tag: D58
type_guessed: string

tool: D44: user %-8s time %ld usec


tool: D23: r

tool: D1: /etc/passwd

tool: {"D56": [0x00,0x00,0x00,0x00,0x00,0x6a,0x58,0x41]}

tool: D55: need to run as user root

tool: D58: fopen(/etc/passwd)

assistant: ```c
main(int argc, char **argv) {
  FILE *passwd_fd;
  char in_line[256], *user_name;
  int i, user_id;
  long int delta_t;
  if (geteuid() != (uid_t)0) {
    printf("need to run as user root\n");
    exit(1);
  }
  for (i = 1; i < argc; i++) {
    delta_t = _time_login(argv[i]);
    printf("user %-8s time %ld usec\n", argv[i], delta_t);
  }
  if (i > 1)
    exit(0);
  passwd_fd = fopen("/etc/passwd", "r");
  if (!passwd_fd) {
    perror("fopen(/etc/passwd)");
    exit(1);
  }
  while (fgets(in_line, sizeof(in_line), passwd_fd)) {
    _parse_line(in_line, &user_name, &user_id);
    if (user_id <= 100)
      continue;
    delta_t = _time_login(user_name);
    if (delta_t < ((8000 * 0.8) * 1000))
      continue;
    printf("user %-8s time %ld usec\n", user_name, delta_t);
  }
  fclose(passwd_fd);
}
```