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

```asm
<main>:
  endbr64
  push   %r14
  lea    D100(%rip),%rcx
  lea    D124(%rip),%rdx
  push   %r13
  lea    D147(%rip),%rsi
  lea    D57(%rip),%rdi
  push   %r12
  push   %rbp
  push   %rbx
  lea    D117(%rip),%rbx
  add    $0xffffffffffffff80,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  lea    D20(%rip),%rax
  mov    %rbx,0x20(%rsp)
  mov    %rsp,%rbp
  lea    D129(%rip),%rbx
  mov    %rax,0x18(%rsp)
  mov    %rbx,0x38(%rsp)
  lea    D125(%rip),%rbx
  mov    %rax,0x60(%rsp)
  lea    D71(%rip),%rax
  mov    %rbx,0x40(%rsp)
  mov    %rbp,%rbx
  mov    %rcx,0x8(%rsp)
  mov    %rdx,0x10(%rsp)
  movq   $0x0,0x28(%rsp)
  mov    %rsi,0x48(%rsp)
  mov    %rcx,0x50(%rsp)
  mov    %rdx,0x58(%rsp)
  mov    %rax,0x68(%rsp)
  movq   $0x0,0x70(%rsp)
  call   <puts@plt>
  lea    D104(%rip),%rdi
  nopw   0x0(%rax,%rax,1)
L16:
  call   <puts@plt>
  mov    0x8(%rbx),%rdi
  add    $0x8,%rbx
  test   %rdi,%rdi
  jne    L16
  lea    D15(%rip),%rdi
  lea    0x38(%rsp),%r12
  call   <puts@plt>
  mov    %r12,%rbx
  lea    D126(%rip),%rdi
  nopl   (%rax)
L21:
  call   <puts@plt>
  mov    (%rbx),%rdi
  add    $0x8,%rbx
  test   %rdi,%rdi
  jne    L21
  lea    D73(%rip),%rdi
  lea    D104(%rip),%r14
  call   <puts@plt>
  lea    D126(%rip),%r13
L26:
  mov    %r12,%rbx
  mov    %r13,%rsi
  jmp    L62
  nopl   0x0(%rax,%rax,1)
L78:
  mov    (%rbx),%rsi
  add    $0x8,%rbx
  test   %rsi,%rsi
  je     L71
L62:
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L78
  mov    %r14,%rdi
  call   <puts@plt>
L64:
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L48
  sub    $0xffffffffffffff80,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L71:
  mov    0x8(%rbp),%r14
  add    $0x8,%rbp
  test   %r14,%r14
  jne    L26
  jmp    L64
L48:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D100
type_guessed: string
name: read_data
arguments: data_label: D124
type_guessed: string
name: read_data
arguments: data_label: D147
type_guessed: string
name: read_data
arguments: data_label: D57
type_guessed: string
name: read_data
arguments: data_label: D117
type_guessed: string
name: read_data
arguments: data_label: D20
type_guessed: string
name: read_data
arguments: data_label: D129
type_guessed: string
name: read_data
arguments: data_label: D125
type_guessed: string
name: read_data
arguments: data_label: D71
type_guessed: string
name: read_data
arguments: data_label: D104
type_guessed: string
name: read_data
arguments: data_label: D15
type_guessed: string
name: read_data
arguments: data_label: D126
type_guessed: string
name: read_data
arguments: data_label: D73
type_guessed: string

tool: D100: 1024x768

tool: D124: 800x600

tool: D147: 1280x720

tool: D57: primary resolution:

tool: D117: 640x400

tool: D20: 640x480

tool: D129: 1280x1024

tool: D125: 1280x960

tool: D71: 720x400

tool: D104: 1280x800

tool: D15: second resolution: 

tool: D126: 1366x768

tool: D73: find the best similar resolution: 

assistant: ```c
int main(int argc, char *argv[]) {
  const char *primary[] = {"1280x800", "1024x768", "800x600", "640x480", "640x400", NULL};
  const char *second[] = {"1366x768", "1280x1024", "1280x960", "1280x720", "1024x768", "800x600", "640x480", "720x400", NULL};
  int i;
  int j;
  printf("primary resolution:\n");
  i = 0;
  while (primary[i]) {
    printf("%s\n", primary[i]);
    i++;
  }
  printf("second resolution: \n");
  i = 0;
  while (second[i]) {
    printf("%s\n", second[i]);
    i++;
  }
  printf("find the best similar resolution: \n");
  i = 0;
  while (primary[i]) {
    j = 0;
    while (second[j]) {
      if (strcmp(primary[i], second[j]) == 0) {
        printf("%s\n", primary[i]);
        goto cleanup;
      }
      j++;
    }
    i++;
  }
cleanup:
  return 0;
}
```