user: What would the C source look like for the assembly code provided here?

```asm
<_set_alternative>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %rdi,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  test   %esi,%esi
  jle    L2
  mov    %rdx,%rbx
  mov    %rsp,%rdi
  mov    (%rdx),%rdx
  lea    D40(%rip),%rsi
  mov    $0x0,%eax
  call   <asprintf@plt>
  mov    (%rsp),%r12
  mov    %r12,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <cli_send@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
  lea    D61(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L5
  mov    %rsp,%rdi
  lea    D15(%rip),%rsi
  call   <asprintf@plt>
  mov    (%rsp),%rbx
  mov    %rbx,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%rdx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <cli_send@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
  mov    $0x0,%eax
L49:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L7
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L2:
  mov    %rsp,%rdi
  lea    D74(%rip),%rsi
  call   <asprintf@plt>
  mov    (%rsp),%rbx
  mov    %rbx,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%rdx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <cli_send@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
  mov    $0xffffffff,%eax
  jmp    L49
L5:
  lea    D73(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L27
  mov    %rsp,%rdi
  lea    D6(%rip),%rsi
  call   <asprintf@plt>
  mov    (%rsp),%rbx
  mov    %rbx,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%rdx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <cli_send@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L49
L27:
  lea    D42(%rip),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  mov    %rax,%rdx
  mov    $0x0,%eax
  test   %rdx,%rdx
  jne    L49
  mov    %rsp,%rdi
  lea    D79(%rip),%rsi
  call   <asprintf@plt>
  mov    (%rsp),%rbx
  mov    %rbx,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%rdx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <cli_send@plt>
  mov    (%rsp),%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L49
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D40
type_guessed: string
name: retrieve_data
arguments: data_label: D61
type_guessed: string
name: retrieve_data
arguments: data_label: D15
type_guessed: string
name: retrieve_data
arguments: data_label: D74
type_guessed: string
name: retrieve_data
arguments: data_label: D73
type_guessed: string
name: retrieve_data
arguments: data_label: D6
type_guessed: string
name: retrieve_data
arguments: data_label: D42
type_guessed: string
name: retrieve_data
arguments: data_label: D79
type_guessed: string

tool: D40: argv[0] = %s


tool: D61: on

tool: D15: turn on


tool: D74: > argc <= 0 is invalid


tool: D73: off

tool: D6: turn off


tool: D42: fuzzy

tool: D79: fuzzy mode


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);
}
```