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

```asm
<decrypt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x208,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1f8(%rsp)
  xor    %eax,%eax
  lea    D18(%rip),%rsi
  call   <fopen@plt>
  mov    %rax,%r13
  movq   $0x0,0xc0(%rsp)
  movq   $0x0,0xc8(%rsp)
  lea    0xd0(%rsp),%rdi
  mov    $0x23,%ecx
  mov    $0x0,%eax
  rep stos %rax,%es:(%rdi)
  movl   $0x0,(%rdi)
  lea    D22(%rip),%r12
  jmp    L37
L78:
  lea    0x50(%rsp),%rdi
  mov    $0x20,%esi
  call   <strchr@plt>
  lea    0x1(%rax),%rdi
  lea    D2(%rip),%rbp
  mov    %rbp,%rsi
  call   <strtok@plt>
  mov    %eax,%edi
  call   <atoi@plt>
  mov    %eax,%ebx
  mov    %rbp,%rsi
  mov    $0x0,%edi
  call   <strtok@plt>
  mov    %eax,%edi
  call   <atoi@plt>
  test   %ebx,%ebx
  jle    L37
  lea    -0x1(%rax),%edx
  lea    (%rdx,%rdx,4),%rcx
  lea    (%rcx,%rcx,4),%rcx
  lea    0xf2(%rsp,%rcx,2),%rcx
  mov    $0x0,%esi
  add    $0x1,%rdx
  imul   $0xffffffffffffffce,%rdx,%rdi
  jmp    L66
L70:
  movb   $0x1,(%rdx)
  add    $0x32,%rdx
  cmp    %rcx,%rdx
  jne    L70
L122:
  add    $0x1,%esi
  add    $0x1,%rcx
  cmp    %esi,%ebx
  je     L37
L66:
  lea    (%rdi,%rcx,1),%rdx
  test   %eax,%eax
  jg     L70
  jmp    L122
L36:
  imul   $0x32,%ebp,%ebp
  lea    0x10(%rsp),%rdx
  lea    0x42(%rsp),%r15
  mov    %rdx,%rbx
  lea    (%rax,%rdx,1),%r14d
L46:
  mov    %ebx,%edi
  sub    %r14d,%edi
  mov    $0x32,%esi
  call   <posmod@plt>
  add    %ebp,%eax
  cltq
  movzbl 0xc0(%rsp,%rax,1),%eax
  mov    %al,(%rbx)
  add    $0x1,%rbx
  cmp    %r15,%rbx
  jne    L46
  mov    $0x0,%eax
  movslq %ebp,%rbp
  lea    0xc0(%rsp,%rbp,1),%rcx
L15:
  movzbl 0x10(%rsp,%rax,1),%edx
  mov    %dl,(%rcx,%rax,1)
  add    $0x1,%rax
  cmp    $0x32,%rax
  jne    L15
L37:
  lea    0x50(%rsp),%rdi
  mov    %r13,%rdx
  mov    $0x64,%esi
  call   <fgets@plt>
  test   %rax,%rax
  je     L71
  lea    0x50(%rsp),%rdi
  lea    D45(%rip),%rsi
  call   <strstr@plt>
  test   %rax,%rax
  jne    L78
  lea    0x50(%rsp),%rbp
  lea    D41(%rip),%rsi
  mov    %rbp,%rdi
  call   <strstr@plt>
  mov    %rax,%rbx
  lea    D74(%rip),%rsi
  mov    %rbp,%rdi
  call   <strtok@plt>
  mov    %r12,%rsi
  mov    $0x0,%edi
  call   <strtok@plt>
  mov    %eax,%edi
  call   <atoi@plt>
  mov    %eax,%ebp
  mov    %r12,%rsi
  mov    $0x0,%edi
  call   <strtok@plt>
  mov    %r12,%rsi
  mov    $0x0,%edi
  call   <strtok@plt>
  mov    %eax,%edi
  call   <atoi@plt>
  test   %rbx,%rbx
  je     L36
  lea    0x10(%rsp),%r14
  lea    0x16(%rsp),%r15
  mov    %r14,%rbx
  add    %r14d,%eax
  mov    %eax,0xc(%rsp)
L87:
  mov    %ebx,%edi
  sub    0xc(%rsp),%edi
  mov    $0x6,%esi
  call   <posmod@plt>
  imul   $0x32,%eax,%eax
  add    %ebp,%eax
  cltq
  movzbl 0xc0(%rsp,%rax,1),%eax
  mov    %al,(%rbx)
  add    $0x1,%rbx
  cmp    %r15,%rbx
  jne    L87
  movslq %ebp,%rbp
  lea    0xc0(%rsp,%rbp,1),%rax
L67:
  movzbl (%r14),%edx
  mov    %dl,(%rax)
  add    $0x1,%r14
  add    $0x32,%rax
  cmp    %r15,%r14
  jne    L67
  jmp    L37
L71:
  lea    0xc0(%rsp),%rbx
  mov    %rbx,%rdi
  call   <sum_pixels@plt>
  mov    %eax,%esi
  lea    D6(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D42(%rip),%rdi
  call   <puts@plt>
  mov    %rbx,%rdi
  call   <print_display@plt>
  mov    0x1f8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L72
  add    $0x208,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L72:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D18
type_guessed: string
name: read_data
arguments: data_label: D22
type_guessed: string
name: read_data
arguments: data_label: D2
type_guessed: string
name: read_data
arguments: data_label: D45
type_guessed: string
name: read_data
arguments: data_label: D41
type_guessed: string
name: read_data
arguments: data_label: D74
type_guessed: string
name: read_data
arguments: data_label: D6
type_guessed: string
name: read_data
arguments: data_label: D42
type_guessed: string

tool: D18: r

tool: D22:  

tool: D2: x

tool: D45: rect

tool: D41: column

tool: D74: =

tool: D6: Part 1: %d


tool: D42: Part 2:

assistant: ```c
void decrypt(char *fname) {
  FILE *fp = fopen(fname, "r");
  char instr[100];
  char display[50 * 6] = {0};
  while (fgets(instr, 100, fp) != NULL) {
    if (strstr(instr, "rect")) {
      char *num_seg = strstr(instr, " ") + 1;
      int x = atoi(strtok(num_seg, "x"));
      int y = atoi(strtok(NULL, "x"));
      for (int i = 0; i < x; i++) {
        for (int j = 0; j < y; j++) {
          display[i + 50 * j] = 1;
        }
      }
    } else {
      char rc = strstr(instr, "column") == NULL;
      strtok(instr, "=");
      int loc = atoi(strtok(NULL, " "));
      strtok(NULL, " ");
      int amt = atoi(strtok(NULL, " "));
      if (rc) {
        char temp[50];
        for (int i = 0; i < 50; i++)
          temp[i] = display[loc * 50 + posmod(i - amt, 50)];
        for (int i = 0; i < 50; i++)
          display[loc * 50 + i] = temp[i];
      } else {
        char temp[6];
        for (int i = 0; i < 6; i++)
          temp[i] = display[loc + 50 * posmod(i - amt, 6)];
        for (int i = 0; i < 6; i++)
          display[loc + 50 * i] = temp[i];
      }
    }
  }
  printf("Part 1: %d\n", sum_pixels(display));
  printf("Part 2:\n");
  print_display(display);
}
```