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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %edi,-0x74(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    $0x0,%eax
  call   <geteuid@plt>
  mov    %eax,%edi
  call   <setuid@plt>
  test   %eax,%eax
  jne    L26
  cmpl   $0x3,-0x74(%rbp)
  jne    L18
  mov    -0x80(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rcx
  mov    -0x80(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rdx
  lea    -0x70(%rbp),%rax
  lea    D28(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L18:
  cmpl   $0x4,-0x74(%rbp)
  jne    L65
  mov    -0x80(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rsi
  mov    -0x80(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rcx
  mov    -0x80(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rdx
  lea    -0x70(%rbp),%rax
  mov    %rsi,%r8
  lea    D22(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L65:
  cmpl   $0x5,-0x74(%rbp)
  jne    L17
  mov    -0x80(%rbp),%rax
  add    $0x20,%rax
  mov    (%rax),%rdi
  mov    -0x80(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rsi
  mov    -0x80(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rcx
  mov    -0x80(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rdx
  lea    -0x70(%rbp),%rax
  mov    %rdi,%r9
  mov    %rsi,%r8
  lea    D44(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L17:
  cmpl   $0x6,-0x74(%rbp)
  jne    L58
  mov    -0x80(%rbp),%rax
  add    $0x28,%rax
  mov    (%rax),%rsi
  mov    -0x80(%rbp),%rax
  add    $0x20,%rax
  mov    (%rax),%r8
  mov    -0x80(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rdi
  mov    -0x80(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rcx
  mov    -0x80(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rdx
  lea    -0x70(%rbp),%rax
  sub    $0x8,%rsp
  push   %rsi
  mov    %r8,%r9
  mov    %rdi,%r8
  lea    D27(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  add    $0x10,%rsp
L58:
  lea    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <system@plt>
  mov    $0x0,%eax
  jmp    L23
L26:
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x1,%eax
L23:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L11
  call   <__stack_chk_fail@plt>
L11:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D28
type_guessed: string
name: unpack_data
arguments: data_tag: D22
type_guessed: string
name: unpack_data
arguments: data_tag: D44
type_guessed: string
name: unpack_data
arguments: data_tag: D27
type_guessed: string
name: unpack_data
arguments: data_tag: D5
type_guessed: string

tool: D28: /bin/echo '%s %s > /dev/null 2>&1' | /usr/bin/at now

tool: D22: /bin/echo '%s %s %s > /dev/null 2>&1' | /usr/bin/at now

tool: D44: /bin/echo '%s %s %s %s > /dev/null 2>&1' | /usr/bin/at now

tool: D27: /bin/echo '%s %s %s %s %s > /dev/null 2>&1' | /usr/bin/at now

tool: D5: Couldn't set UID to effective UID


assistant: ```c
int main(int argc, char *argv[]) {
  if (!setuid(geteuid())) {
    char str[100];
    if (argc == 3) {
      sprintf(str, "/bin/echo '%s %s > /dev/null 2>&1' | /usr/bin/at now", argv[1], argv[2]);
    }
    if (argc == 4) {
      sprintf(str, "/bin/echo '%s %s %s > /dev/null 2>&1' | /usr/bin/at now", argv[1], argv[2], argv[3]);
    }
    if (argc == 5) {
      sprintf(str, "/bin/echo '%s %s %s %s > /dev/null 2>&1' | /usr/bin/at now", argv[1], argv[2], argv[3], argv[4]);
    }
    if (argc == 6) {
      sprintf(str, "/bin/echo '%s %s %s %s %s > /dev/null 2>&1' | /usr/bin/at now", argv[1], argv[2], argv[3], argv[4], argv[5]);
    }
    system(str);
  } else {
    printf("Couldn't set UID to effective UID\n");
    return 1;
  }
  return 0;
}
```