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

```asm
<_set_alternative>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  test   %esi,%esi
  jle    L72
  mov    %rdx,%rbx
  mov    %rsp,%r13
  mov    (%rdx),%rdx
  lea    D27(%rip),%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <asprintf@plt>
  mov    (%rsp),%r12
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  lea    0x1(%rax),%rdx
  call   <cli_send@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
  mov    (%rbx),%rdi
  lea    D3(%rip),%rsi
  call   <strcmp@plt>
  lea    D49(%rip),%rsi
  test   %rax,%rax
  jne    L10
L73:
  mov    %r13,%rdi
  call   <asprintf@plt>
  mov    (%rsp),%r12
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  xor    %r12d,%r12d
  lea    0x1(%rax),%rdx
  call   <cli_send@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
L64:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L57
  add    $0x18,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
L10:
  mov    (%rbx),%rdi
  lea    D28(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L3
  lea    D61(%rip),%rsi
  jmp    L73
  nopl   (%rax)
L3:
  mov    (%rbx),%rdi
  lea    D50(%rip),%rsi
  xor    %r12d,%r12d
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L64
  lea    D31(%rip),%rsi
  mov    %r13,%rdi
  call   <asprintf@plt>
  mov    (%rsp),%r13
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %rbp,%rdi
  mov    %r13,%rsi
  lea    0x1(%rax),%rdx
  call   <cli_send@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
  jmp    L64
L72:
  lea    D38(%rip),%rsi
  mov    %rsp,%rdi
  call   <asprintf@plt>
  mov    (%rsp),%r12
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  mov    $0xffffffff,%r12d
  lea    0x1(%rax),%rdx
  call   <cli_send@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
  jmp    L64
L57:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D27
type_infered: string
name: disassemble_data
arguments: data_tag: D3
type_infered: string
name: disassemble_data
arguments: data_tag: D49
type_infered: string
name: disassemble_data
arguments: data_tag: D28
type_infered: string
name: disassemble_data
arguments: data_tag: D61
type_infered: string
name: disassemble_data
arguments: data_tag: D50
type_infered: string
name: disassemble_data
arguments: data_tag: D31
type_infered: string
name: disassemble_data
arguments: data_tag: D38
type_infered: string

tool: D27: argv[0] = %s


tool: D3: on

tool: D49: turn on


tool: D28: off

tool: D61: turn off


tool: D50: fuzzy

tool: D31: fuzzy mode


tool: D38: > argc <= 0 is invalid


assistant: ```c
int _set_alternative(struct cli *cli, int argc, char *argv[]) {
  if (argc <= 0) {
    {
      char *__tmp;
      asprintf(&__tmp, "> "
                       "argc <= 0 is invalid"
                       "\n\r");
      cli_send(cli, __tmp, strlen(__tmp) + 1);
      free(__tmp);
    };
    return (-1);
  }
  {
    char *__tmp;
    asprintf(&__tmp,
             "argv[0] = %s"
             "\n\r",
             argv[0]);
    cli_send(cli, __tmp, strlen(__tmp) + 1);
    free(__tmp);
  };
  if (0 == strcmp(argv[0], "on")) {
    {
      char *__tmp;
      asprintf(&__tmp, "turn on"
                       "\n\r");
      cli_send(cli, __tmp, strlen(__tmp) + 1);
      free(__tmp);
    };
  } else if (0 == strcmp(argv[0], "off")) {
    {
      char *__tmp;
      asprintf(&__tmp, "turn off"
                       "\n\r");
      cli_send(cli, __tmp, strlen(__tmp) + 1);
      free(__tmp);
    };
  } else if (0 == strcmp(argv[0], "fuzzy")) {
    {
      char *__tmp;
      asprintf(&__tmp, "fuzzy mode"
                       "\n\r");
      cli_send(cli, __tmp, strlen(__tmp) + 1);
      free(__tmp);
    };
  }
  return (0);
}
```