user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<replaceEvents>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  lea    D145(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L9
  mov    -0x8(%rbp),%rax
  mov    $0x100,%edx
  lea    D153(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  jmp    L136
L9:
  mov    -0x8(%rbp),%rax
  lea    D19(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L120
  mov    -0x8(%rbp),%rax
  mov    $0x100,%edx
  lea    D28(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  jmp    L136
L120:
  mov    -0x8(%rbp),%rax
  lea    D137(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L20
  mov    -0x8(%rbp),%rax
  mov    $0x100,%edx
  lea    D10(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  jmp    L136
L20:
  mov    -0x8(%rbp),%rax
  lea    D54(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L15
  mov    -0x8(%rbp),%rax
  mov    $0x100,%edx
  lea    D18(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  jmp    L136
L15:
  mov    -0x8(%rbp),%rax
  lea    D127(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L144
  mov    -0x8(%rbp),%rax
  mov    $0x100,%edx
  lea    D92(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  jmp    L136
L144:
  mov    -0x8(%rbp),%rax
  lea    D34(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L1
  mov    -0x8(%rbp),%rax
  mov    $0x100,%edx
  lea    D2(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  jmp    L136
L1:
  mov    -0x8(%rbp),%rax
  lea    D144(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L48
  mov    -0x8(%rbp),%rax
  mov    $0x100,%edx
  lea    D112(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  jmp    L136
L48:
  mov    -0x8(%rbp),%rax
  lea    D102(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L136
  mov    -0x8(%rbp),%rax
  mov    $0x100,%edx
  lea    D101(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
L136:
  nop
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D145
data_type: string
name: read_data
arguments: tag: D153
data_type: string
name: read_data
arguments: tag: D19
data_type: string
name: read_data
arguments: tag: D28
data_type: string
name: read_data
arguments: tag: D137
data_type: string
name: read_data
arguments: tag: D10
data_type: string
name: read_data
arguments: tag: D54
data_type: string
name: read_data
arguments: tag: D18
data_type: string
name: read_data
arguments: tag: D127
data_type: string
name: read_data
arguments: tag: D92
data_type: string
name: read_data
arguments: tag: D34
data_type: string
name: read_data
arguments: tag: D2
data_type: string
name: read_data
arguments: tag: D144
data_type: string
name: read_data
arguments: tag: D112
data_type: string
name: read_data
arguments: tag: D102
data_type: string
name: read_data
arguments: tag: D101
data_type: string

tool: D145: open,creat,link,symlink,truncate,ftruncate,mknod,rename,truncate64,ftruncate64,access

tool: D153: File_Read_Write

tool: D19: unlink,rmdir

tool: D28: File_Remove

tool: D137: execve

tool: D10: Process_Events

tool: D54: chmod,chown,lchown,fchmod,fchown,fchown32,lchown32,chown32

tool: D18: File_Attrib

tool: D127: mount,umount,umount2,settimeofday,swapon,swapoff,reboot,setdomainname,create_module,delete_module,quotactl

tool: D92: Admin_Events

tool: D34: socketcall

tool: D2: Socket_Events

tool: D144: login_auth,login_start,logout

tool: D112: Logon_Logoff

tool: D102: acct_mgmt

tool: D101: User_Events

assistant: ```c
void replaceEvents(char *event) {
  if (strcmp(event, "open,creat,link,symlink,truncate,ftruncate,mknod,rename,truncate64,ftruncate64,access") == 0) {
    strncpy(event, "File_Read_Write", 256);
  } else if (strcmp(event, "unlink,rmdir") == 0) {
    strncpy(event, "File_Remove", 256);
  } else if (strcmp(event, "execve") == 0) {
    strncpy(event, "Process_Events", 256);
  } else if (strcmp(event, "chmod,chown,lchown,fchmod,fchown,fchown32,lchown32,chown32") == 0) {
    strncpy(event, "File_Attrib", 256);
  } else if (strcmp(event, "mount,umount,umount2,settimeofday,swapon,swapoff,reboot,setdomainname,create_module,delete_module,quotactl") == 0) {
    strncpy(event, "Admin_Events", 256);
  } else if (strcmp(event, "socketcall") == 0) {
    strncpy(event, "Socket_Events", 256);
  } else if (strcmp(event, "login_auth,login_start,logout") == 0) {
    strncpy(event, "Logon_Logoff", 256);
  } else if (strcmp(event, "acct_mgmt") == 0) {
    strncpy(event, "User_Events", 256);
  }
}
```