user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  mov    0x8(%rsi),%rdi
  mov    %rsi,%rbx
  lea    D108(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L31
L76:
  mov    0x8(%rbx),%rdi
  lea    D73(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L152
L156:
  mov    0x8(%rbx),%rdi
  lea    D82(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L41
L102:
  mov    0x8(%rbx),%rdi
  lea    D91(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L60
L42:
  mov    0x8(%rbx),%rdi
  lea    D7(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L109
L0:
  lea    D22(%rip),%r12
  mov    0x8(%rbx),%rdi
  mov    %r12,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L161
L61:
  mov    0x8(%rbx),%rdi
  mov    %r12,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L58
L131:
  mov    0x8(%rbx),%rdi
  lea    D33(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L98
  xor    %ebx,%ebx
  lea    D10(%rip),%rbp
  nopl   (%rax)
L50:
  mov    %ebx,%edi
  call   <fact@plt>
  mov    %ebx,%esi
  mov    %rbp,%rdi
  add    $0x1,%ebx
  mov    %eax,%edx
  xor    %eax,%eax
  call   <printf@plt>
  cmp    $0xa,%ebx
  jne    L50
  mov    $0xb,%ebx
  nopw   0x0(%rax,%rax,1)
L56:
  mov    %ebx,%edi
  mov    $0x1,%esi
  call   <factTail@plt>
  mov    %ebx,%esi
  mov    %rbp,%rdi
  add    $0x1,%ebx
  mov    %eax,%edx
  xor    %eax,%eax
  call   <printf@plt>
  cmp    $0x14,%ebx
  jne    L56
L98:
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L31:
  lea    D101(%rip),%rdi
  call   <puts@plt>
  jmp    L76
L58:
  mov    %rbx,%rsi
  mov    %ebp,%edi
  call   <echo@plt>
  jmp    L131
L161:
  mov    %rbx,%rsi
  mov    %ebp,%edi
  call   <echo@plt>
  jmp    L61
L109:
  mov    0x10(%rbx),%rdi
  mov    $0xa,%edx
  xor    %esi,%esi
  call   <strtol@plt>
  mov    %eax,%edi
  call   <month_name@plt>
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L0
L60:
  mov    0x10(%rbx),%rdi
  xor    %esi,%esi
  mov    $0xa,%edx
  call   <strtol@plt>
  mov    0x18(%rbx),%rdi
  xor    %esi,%esi
  mov    $0xa,%edx
  mov    %eax,%r14d
  call   <strtol@plt>
  mov    0x20(%rbx),%rdi
  xor    %esi,%esi
  mov    $0xa,%edx
  mov    %eax,%r13d
  call   <strtol@plt>
  mov    %r13d,%esi
  mov    %r14d,%edi
  mov    %eax,%edx
  mov    %eax,%r12d
  call   <dayOfYear@plt>
  mov    %r14d,%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %eax,%r8d
  lea    D94(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L42
L41:
  mov    0x10(%rbx),%rdi
  xor    %esi,%esi
  mov    $0xa,%edx
  call   <strtol@plt>
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <bitCount@plt>
  mov    %r12,%rsi
  lea    D69(%rip),%rdi
  mov    %eax,%edx
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L102
L152:
  call   <farCel@plt>
  jmp    L156
```

tool_calls: name: unpack_data
arguments: data_label: D108
type: string
name: unpack_data
arguments: data_label: D73
type: string
name: unpack_data
arguments: data_label: D82
type: string
name: unpack_data
arguments: data_label: D91
type: string
name: unpack_data
arguments: data_label: D7
type: string
name: unpack_data
arguments: data_label: D22
type: string
name: unpack_data
arguments: data_label: D33
type: string
name: unpack_data
arguments: data_label: D10
type: string
name: unpack_data
arguments: data_label: D101
type: string
name: unpack_data
arguments: data_label: D94
type: string
name: unpack_data
arguments: data_label: D69
type: string

tool: D108: hw

tool: D73: fc

tool: D82: bc

tool: D91: dy

tool: D7: mn

tool: D22: ec

tool: D33: fac

tool: D10: Factorial of %d is %2d


tool: D101: hello world

tool: D94: %d %d %d is %d day of year


tool: D69: Number of 1-bits in %ld is: %2d


assistant: ```c
int main(int argc, char *argv[]) {
  if (strcmp(argv[1], "hw") == 0) {
    printf("hello world\n");
  }
  if (strcmp(argv[1], "fc") == 0) {
    farCel();
  }
  if (strcmp(argv[1], "bc") == 0) {
    long num = strtol(argv[2], NULL, 10);
    u_int nm = (u_int)num;
    int a = bitCount(num);
    printf("Number of 1-bits in %ld is: %2d\n", num, a);
  }
  if (strcmp(argv[1], "dy") == 0) {
    long year = strtol(argv[2], NULL, 10);
    int y = (int)year;
    long month = strtol(argv[3], NULL, 10);
    int m = (int)month;
    long day = strtol(argv[4], NULL, 10);
    int d = (int)day;
    int day_of_year = dayOfYear(y, m, d);
    printf("%d %d %d is %d day of year\n", d, m, y, day_of_year);
  }
  if (strcmp(argv[1], "mn") == 0) {
    long mon = strtol(argv[2], NULL, 10);
    int m = (int)mon;
    char *month = month_name(m);
    printf("%s\n", month);
  }
  if (strcmp(argv[1], "ec") == 0) {
    echo(argc, argv);
  }
  if (strcmp(argv[1], "ec") == 0) {
    echo(argc, argv);
  }
  if (strcmp(argv[1], "fac") == 0) {
    for (int i = 0; i < 10; i++) {
      printf("Factorial of %d is %2d\n", i, fact(i));
    }
    for (int i = 11; i < 20; i++) {
      printf("Factorial of %d is %2d\n", i, factTail(i, 1));
    }
  }
  return 0;
}
```