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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    -0x2(%rdi),%eax
  cmp    $0x1,%eax
  ja     L41
  mov    %rsi,%rbp
  cmp    $0x3,%edi
  je     L53
  mov    0x8(%rsi),%r12
L9:
  lea    D44(%rip),%rsi
  mov    %r12,%rdi
  call   <fopen@plt>
  test   %rax,%rax
  je     L163
L226:
  mov    %r12,%rdi
  lea    0x10(%rsp),%rsi
  lea    0x14(%rsp),%rdx
  call   <read_bmp_file@plt>
  lea    D32(%rip),%r12
  mov    0x8(%rbp),%rdi
  mov    %r12,%rsi
  mov    %rax,%r13
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L8
L106:
  xor    %ebx,%ebx
  cmpl   $0x0,0x14(%rsp)
  movl   $0x0,0xc(%rsp)
  lea    D27(%rip),%r15
  jle    L18
  nopl   0x0(%rax,%rax,1)
L174:
  mov    0x10(%rsp),%eax
  xor    %r14d,%r14d
  test   %eax,%eax
  jg     L94
  jmp    L178
  nopl   0x0(%rax,%rax,1)
L122:
  imul   0x10(%rsp),%eax
  mov    %r15,%rdi
  add    %r14d,%eax
  cltq
  cmpb   $0x1,0x0(%r13,%rax,1)
  sbb    %esi,%esi
  xor    %eax,%eax
  and    $0xfffffff2,%esi
  add    $0x2e,%esi
  call   <printf@plt>
L158:
  add    $0x1,%r14d
  cmp    %r14d,0x10(%rsp)
  jle    L178
L94:
  mov    0x8(%rbp),%rdi
  mov    %r12,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  mov    %ebx,%eax
  je     L122
  imul   0x10(%rsp),%eax
  add    %r14d,%eax
  cltq
  cmpb   $0x1,0x0(%r13,%rax,1)
  je     L4
L109:
  cmpl   $0xf,0xc(%rsp)
  jne    L158
  lea    D12(%rip),%rdi
  xor    %eax,%eax
  add    $0x1,%r14d
  call   <printf@plt>
  movl   $0x0,0xc(%rsp)
  cmp    %r14d,0x10(%rsp)
  jg     L94
  xchg   %ax,%ax
L178:
  mov    0x8(%rbp),%rdi
  mov    %r12,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L127
  add    $0x1,%ebx
  cmp    %ebx,0x14(%rsp)
  jg     L174
L18:
  mov    0x8(%rbp),%rdi
  mov    %r12,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L146
L34:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L100
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L4:
  mov    %ebx,%edx
  mov    %r14d,%esi
  lea    D74(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  addl   $0x1,0xc(%rsp)
  jmp    L109
  nopl   (%rax)
L127:
  mov    $0xa,%edi
  add    $0x1,%ebx
  call   <putchar@plt>
  cmp    0x14(%rsp),%ebx
  jl     L174
  jmp    L18
L41:
  xor    %eax,%eax
  call   <print_usage@plt>
  xor    %edi,%edi
  call   <exit@plt>
  jmp    L34
L53:
  mov    0x10(%rsi),%r12
  jmp    L9
L8:
  lea    D42(%rip),%rdi
  call   <puts@plt>
  lea    D55(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L106
L146:
  lea    D54(%rip),%rdi
  call   <puts@plt>
  jmp    L34
L163:
  lea    D47(%rip),%rdi
  call   <puts@plt>
  xor    %edi,%edi
  call   <exit@plt>
  jmp    L226
L100:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D44
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D32
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D27
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D12
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D74
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D42
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D55
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D54
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D47
type_guessed: string

tool: D44: r

tool: D32: -a

tool: D27: %c 

tool: D12: 
  

tool: D74: 0x%02x, 0x%02x, 

tool: D42: static const unsigned char bmp [] PROGMEM = {

tool: D55:   

tool: D54: };

tool: D47: No such file

assistant: ```c
int main(int argc, char *argv[]) {
  FILE *file;
  int i, j, width, height;
  char *file_name;
  unsigned char *bmp;
  if (argc < 2 || argc > 3) {
    print_usage();
    exit(0);
  } else {
    if (argc == 3)
      file_name = argv[2];
    else
      file_name = argv[1];
    file = fopen(file_name, "r");
    if (file == 0) {
      printf("No such file\n");
      exit(0);
    }
    bmp = read_bmp_file(file_name, &width, &height);
    if (strcmp(argv[1], "-a")) {
      printf("static const unsigned char bmp [] PROGMEM = {\n");
      printf("  ");
    }
    int new_line = 0;
    for (i = 0; i < height; i++) {
      for (j = 0; j < width; j++) {
        if (!strcmp(argv[1], "-a")) {
          printf("%c ", bmp[i * width + j] ? '.' : ' ');
        } else {
          if (bmp[i * width + j] == 1) {
            printf("0x%02x, 0x%02x, ", j, i);
            new_line += 1;
          }
          if (new_line == 15) {
            new_line = 0;
            printf("\n  ");
          }
        }
      }
      if (!strcmp(argv[1], "-a"))
        printf("\n");
    }
    if (strcmp(argv[1], "-a"))
      printf("};\n");
  }
  return 0;
}
```