user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  cmp    $0x1,%edi
  jle    L120
  mov    %edi,%ebp
  mov    0x8(%rsi),%rdi
  lea    D99(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L116
  cmp    $0x2,%ebp
  je     L28
  mov    0x10(%rbx),%rdx
  lea    0x10(%rsp),%rbp
  lea    D7(%rip),%rsi
  mov    %rbp,%rdi
  call   <sprintf@plt>
  mov    %rbp,%rdi
  call   <getpass@plt>
  mov    0x10(%rbx),%rdi
  mov    %rax,%rsi
  call   <login@plt>
  cmp    $0x1,%eax
  je     L54
  add    $0x1,%eax
  je     L33
  lea    D66(%rip),%rdi
  call   <puts@plt>
L41:
  xor    %eax,%eax
L16:
  mov    0x38(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L106
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  ret
L116:
  mov    0x8(%rbx),%rdi
  lea    D109(%rip),%rsi
  call   <strcmp@plt>
  mov    %rax,%r8
  xor    %eax,%eax
  test   %r8,%r8
  jne    L16
  lea    0xc(%rsp),%rdx
  lea    0x8(%rsp),%rsi
  lea    0x4(%rsp),%rdi
  call   <query_usage@plt>
  add    $0x1,%eax
  je     L96
  lea    0x10(%rsp),%rbp
  mov    0x4(%rsp),%edi
  mov    %rbp,%rsi
  call   <bytes_to_human_string@plt>
  mov    %rbp,%rsi
  lea    D25(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%edi
  mov    %rbp,%rsi
  call   <bytes_to_human_string@plt>
  mov    %rbp,%rsi
  lea    D44(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%edi
  mov    %rbp,%rsi
  call   <bytes_to_human_string@plt>
  mov    %rbp,%rsi
  lea    D18(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L41
L120:
  mov    (%rsi),%rsi
  lea    D62(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%eax
  jmp    L16
L33:
  lea    D115(%rip),%rdi
  call   <puts@plt>
  jmp    L41
L28:
  lea    D38(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%eax
  jmp    L16
L54:
  lea    D88(%rip),%rdi
  call   <puts@plt>
  jmp    L41
L96:
  lea    D72(%rip),%rdi
  call   <puts@plt>
  jmp    L41
L106:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D99
datatype: string
name: parse_data
arguments: data_label: D7
datatype: string
name: parse_data
arguments: data_label: D66
datatype: string
name: parse_data
arguments: data_label: D109
datatype: string
name: parse_data
arguments: data_label: D25
datatype: string
name: parse_data
arguments: data_label: D44
datatype: string
name: parse_data
arguments: data_label: D18
datatype: string
name: parse_data
arguments: data_label: D62
datatype: string
name: parse_data
arguments: data_label: D115
datatype: string
name: parse_data
arguments: data_label: D38
datatype: string
name: parse_data
arguments: data_label: D88
datatype: string
name: parse_data
arguments: data_label: D72
datatype: string

tool: D99: login

tool: D7: Enter password for %s: 

tool: D66: Login successful!

tool: D109: usage

tool: D25: Month usage: %s


tool: D44: Current in: %s


tool: D18: Current out: %s


tool: D62: Usage: %s <command> [argument]


tool: D115: Login failed. Please try again later.

tool: D38: Please provide user name!

tool: D88: Incorrect password!

tool: D72: Usage query failed. Please try again later.

assistant: ```c
int main(int argc, char *argv[]) {
  if (argc < 2) {
    printf("Usage: %s <command> [argument]\n", argv[0]);
    return 1;
  }
  if (strcmp(argv[1], "login") == 0) {
    if (argc < 3) {
      printf("Please provide user name!\n");
      return -1;
    }
    char prompt[31];
    sprintf(prompt, "Enter password for %s: ", argv[2]);
    char *passwd = getpass(prompt);
    int ret = login(argv[2], passwd);
    if (ret == 1)
      printf("Incorrect password!\n");
    else if (ret == -1)
      printf("Login failed. Please try again later.\n");
    else
      printf("Login successful!\n");
  } else if (strcmp(argv[1], "usage") == 0) {
    int64_t month_usage;
    int64_t current_in;
    int64_t current_out;
    if (query_usage(&month_usage, &current_in, &current_out) == -1) {
      printf("Usage query failed. Please try again later.\n");
    } else {
      char buf[31];
      bytes_to_human_string(month_usage, buf);
      printf("Month usage: %s\n", buf);
      bytes_to_human_string(current_in, buf);
      printf("Current in: %s\n", buf);
      bytes_to_human_string(current_out, buf);
      printf("Current out: %s\n", buf);
    }
  }
  return 0;
}
```