user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xc0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  cmp    $0x4,%edi
  je     L5
  lea    D8(%rip),%rdi
  call   <puts@plt>
  xor    %edi,%edi
  call   <exit@plt>
L5:
  mov    %rsi,%rbp
  lea    0x10(%rsp),%r12
  mov    0x8(%rsi),%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  mov    0x10(%rbp),%rdi
  xor    %eax,%eax
  call   <atoi@plt>
  mov    0x18(%rbp),%rdi
  mov    %eax,%ebx
  xor    %eax,%eax
  call   <atoi@plt>
  mov    %r12,%rdi
  mov    %eax,%ebp
  xor    %eax,%eax
  call   <does_not_exist@plt>
  test   %eax,%eax
  jne    L112
  lea    0x8(%rsp),%rdx
  mov    %r12,%rdi
  mov    %rsp,%rsi
  xor    %eax,%eax
  call   <get_image_size@plt>
  mov    0x8(%rsp),%rsi
  mov    (%rsp),%rdi
  xor    %eax,%eax
  lea    D9(%rip),%r13
  call   <allocate_image_array@plt>
  mov    %r12,%rdi
  lea    0x60(%rsp),%r12
  movslq %eax,%r14
  xor    %eax,%eax
  mov    %r14,%rsi
  call   <read_image_array@plt>
  nopl   0x0(%rax)
L81:
  mov    0x8(%rsp),%rcx
  mov    (%rsp),%rdx
  xor    %eax,%eax
  mov    %ebp,%esi
  mov    %ebx,%edi
  call   <is_in_image@plt>
  test   %eax,%eax
  jne    L72
L75:
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <gets@plt>
  movzbl 0x60(%rsp),%eax
  and    $0xffffffdf,%eax
  cmp    $0x4a,%al
  jne    L129
  add    $0xf,%ebx
  jmp    L81
L112:
  lea    D16(%rip),%rdi
  mov    %r12,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %edi,%edi
  call   <exit@plt>
  nopl   (%rax)
L129:
  cmp    $0x4b,%al
  jne    L110
  sub    $0xf,%ebx
  jmp    L81
L110:
  cmp    $0x48,%al
  jne    L123
  sub    $0xb,%ebp
  jmp    L81
L123:
  cmp    $0x4c,%al
  jne    L87
  add    $0xb,%ebp
  jmp    L81
L72:
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <show_screen@plt>
  jmp    L75
L87:
  cmp    $0x58,%al
  jne    L81
  mov    (%rsp),%rsi
  xor    %eax,%eax
  mov    %r14,%rdi
  call   <free_image_array@plt>
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L106
  add    $0xc0,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L106:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D8
type: string
name: unpack_data
arguments: data_label: D9
type: string
name: unpack_data
arguments: data_label: D16
type: string

tool: D8: 
usage: showi input-image il ie

tool: D9: 

 x=quit j=down k=up h=left l=right
Enter choice and press Enter:  

tool: D16: 
ERROR input file %s does not exist

assistant: ```c
int main(argc, argv)
int argc;
char *argv[];
{
  char in_name[80];
  char response[80];
  int ie, il, not_done, temp_ie, temp_il;
  long height, width;
  short **the_image;
  if (argc != 4) {
    printf("\nusage: showi input-image il ie\n");
    exit(0);
  }
  strcpy(in_name, argv[1]);
  il = atoi(argv[2]);
  ie = atoi(argv[3]);
  if (does_not_exist(in_name)) {
    printf("\nERROR input file %s does not exist", in_name);
    exit(0);
  }
  get_image_size(in_name, &height, &width);
  the_image = allocate_image_array(height, width);
  read_image_array(in_name, the_image);
  temp_il = il;
  temp_ie = ie;
  not_done = 1;
  while (not_done) {
    if (is_in_image(temp_il, temp_ie, height, width)) {
      il = temp_il;
      ie = temp_ie;
      show_screen(the_image, il, ie);
    }
    printf("\n\n x=quit j=down k=up h=left l=right"
           "\nEnter choice and press Enter:  ");
    gets(response);
    if (response[0] == 'x' || response[0] == 'X')
      not_done = 0;
    if (response[0] == 'j' || response[0] == 'J')
      temp_il = temp_il + ((3 * 20) / 4);
    if (response[0] == 'k' || response[0] == 'K')
      temp_il = temp_il - ((3 * 20) / 4);
    if (response[0] == 'h' || response[0] == 'H')
      temp_ie = temp_ie - ((3 * 15) / 4);
    if (response[0] == 'l' || response[0] == 'L')
      temp_ie = temp_ie + ((3 * 15) / 4);
  }
  free_image_array(the_image, height);
}
```