user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %edi,-0x54(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpl   $0x1,-0x54(%rbp)
  jg     L34
  mov    -0x60(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rsi
  lea    D115(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%eax
  jmp    L136
L34:
  mov    -0x60(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  lea    D74(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L71
  cmpl   $0x2,-0x54(%rbp)
  jg     L70
  lea    D84(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L136
L70:
  mov    -0x60(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rdx
  lea    -0x30(%rbp),%rax
  lea    D116(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  lea    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <getpass@plt>
  mov    %rax,-0x38(%rbp)
  mov    -0x60(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  mov    -0x38(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <login@plt>
  mov    %eax,-0x3c(%rbp)
  cmpl   $0x1,-0x3c(%rbp)
  jne    L66
  lea    D71(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L67
L66:
  cmpl   $0xffffffff,-0x3c(%rbp)
  jne    L30
  lea    D109(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L67
L30:
  lea    D104(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L67
L71:
  mov    -0x60(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  lea    D29(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L67
  lea    -0x40(%rbp),%rdx
  lea    -0x44(%rbp),%rcx
  lea    -0x48(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <query_usage@plt>
  cmp    $0xffffffff,%eax
  jne    L1
  lea    D111(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L67
L1:
  mov    -0x48(%rbp),%eax
  lea    -0x30(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <bytes_to_human_string@plt>
  lea    -0x30(%rbp),%rax
  mov    %rax,%rsi
  lea    D83(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x44(%rbp),%eax
  lea    -0x30(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <bytes_to_human_string@plt>
  lea    -0x30(%rbp),%rax
  mov    %rax,%rsi
  lea    D82(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x40(%rbp),%eax
  lea    -0x30(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <bytes_to_human_string@plt>
  lea    -0x30(%rbp),%rax
  mov    %rax,%rsi
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L67:
  mov    $0x0,%eax
L136:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L18
  call   <__stack_chk_fail@plt>
L18:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D115
type_infered: string
name: extract_symbolic_data
arguments: data_label: D74
type_infered: string
name: extract_symbolic_data
arguments: data_label: D84
type_infered: string
name: extract_symbolic_data
arguments: data_label: D116
type_infered: string
name: extract_symbolic_data
arguments: data_label: D71
type_infered: string
name: extract_symbolic_data
arguments: data_label: D109
type_infered: string
name: extract_symbolic_data
arguments: data_label: D104
type_infered: string
name: extract_symbolic_data
arguments: data_label: D29
type_infered: string
name: extract_symbolic_data
arguments: data_label: D111
type_infered: string
name: extract_symbolic_data
arguments: data_label: D83
type_infered: string
name: extract_symbolic_data
arguments: data_label: D82
type_infered: string
name: extract_symbolic_data
arguments: data_label: D39
type_infered: string

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


tool: D74: login

tool: D84: Please provide user name!

tool: D116: Enter password for %s: 

tool: D71: Incorrect password!

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

tool: D104: Login successful!

tool: D29: usage

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

tool: D83: Month usage: %s


tool: D82: Current in: %s


tool: D39: Current out: %s


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