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

```asm
<hlogCommand>:
  endbr64
  push   %r13
  mov    %rsi,%r13
  lea    D107(%rip),%rsi
  push   %r12
  push   %rbp
  mov    %rdx,%rbp
  mov    %edi,%edx
  push   %rbx
  mov    %edi,%ebx
  sub    $0x418,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r12
  mov    %r12,%rdi
  call   <sprintf@plt>
  cmp    $0x15,%ebx
  je     L39
  cmp    $0x16,%ebx
  je     L56
  cmp    $0x1a,%ebx
  je     L21
  cmp    $0x1b,%ebx
  jne    L71
  lea    D85(%rip),%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  nopl   0x0(%rax,%rax,1)
L67:
  mov    %r12,%rdx
  lea    D2(%rip),%r12
  xor    %eax,%eax
  mov    %rbp,%r8
  mov    %r13,%rcx
  lea    D84(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L135
  add    $0x418,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L21:
  lea    D101(%rip),%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  jmp    L67
  nopl   0x0(%rax)
L71:
  cmp    $0x1c,%ebx
  jne    L62
  lea    D11(%rip),%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  jmp    L67
L62:
  cmp    $0x1d,%ebx
  jne    L19
  lea    D79(%rip),%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  jmp    L67
  nopw   0x0(%rax,%rax,1)
L19:
  cmp    $0x33,%ebx
  jne    L123
  lea    D82(%rip),%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  jmp    L67
  nopl   0x0(%rax)
L123:
  cmp    $0x34,%ebx
  jne    L67
  lea    D25(%rip),%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  jmp    L67
  nopl   (%rax)
L56:
  lea    D77(%rip),%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  jmp    L67
  nopl   0x0(%rax)
L39:
  lea    D19(%rip),%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  jmp    L67
L135:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D107
data_type: string
name: unpack_data
arguments: data_label: D85
data_type: string
name: unpack_data
arguments: data_label: D84
data_type: string
name: unpack_data
arguments: data_label: D101
data_type: string
name: unpack_data
arguments: data_label: D11
data_type: string
name: unpack_data
arguments: data_label: D79
data_type: string
name: unpack_data
arguments: data_label: D82
data_type: string
name: unpack_data
arguments: data_label: D25
data_type: string
name: unpack_data
arguments: data_label: D77
data_type: string
name: unpack_data
arguments: data_label: D19
data_type: string

tool: D107: %d

tool: D85: chmod

tool: D84: %s %s %s

tool: D101: rm

tool: D11: chown

tool: D79: chgrp

tool: D82: get

tool: D25: put

tool: D77: rmdir

tool: D19: mkdir

assistant: ```c
char *hlogCommand(int req, char *para1, char *para2) {
  static char command[10240];
  char cmd[1024];
  sprintf(cmd, "%d", req);
  if (req == 21) {
    strcpy(cmd, "mkdir");
  }
  if (req == 22) {
    strcpy(cmd, "rmdir");
  }
  if (req == 26) {
    strcpy(cmd, "rm");
  }
  if (req == 27) {
    strcpy(cmd, "chmod");
  }
  if (req == 28) {
    strcpy(cmd, "chown");
  }
  if (req == 29) {
    strcpy(cmd, "chgrp");
  }
  if (req == 51) {
    strcpy(cmd, "get");
  }
  if (req == 52) {
    strcpy(cmd, "put");
  }
  sprintf(command, "%s %s %s", cmd, para1, para2);
  return command;
}
```