user: 这段汇编代码用C语言表示是什么样的：

```asm
<iie_load_PGM>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    D61(%rip),%rsi
  call   <fopen@plt>
  test   %rax,%rax
  je     L37
  mov    %rax,%rbx
  lea    0x16(%rsp),%rdx
  lea    0x17(%rsp),%rcx
  lea    D26(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  cmpb   $0x50,0x16(%rsp)
  jne    L89
  cmpb   $0x35,0x17(%rsp)
  je     L75
L89:
  lea    D55(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L10:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L48
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  ret
L37:
  lea    D3(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L10
L75:
  lea    0x8(%rsp),%rcx
  lea    0xc(%rsp),%rdx
  lea    D62(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  cmpl   $0x100,0xc(%rsp)
  jg     L19
  cmpl   $0x100,0x8(%rsp)
  jle    L2
L19:
  lea    D70(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L10
L2:
  lea    0x10(%rsp),%rdx
  lea    D65(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  cmpl   $0xff,0x10(%rsp)
  je     L109
  lea    D41(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L10
L109:
  mov    %rbx,%rdi
  call   <fgetc@plt>
  mov    %rbx,%rcx
  mov    $0x10000,%edx
  mov    $0x1,%esi
  mov    %rbp,%rdi
  call   <fread@plt>
  mov    %rbx,%rdi
  call   <fclose@plt>
  jmp    L10
L48:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D61
type: string
name: unpack_data
arguments: data_label: D26
type: string
name: unpack_data
arguments: data_label: D55
type: string
name: unpack_data
arguments: data_label: D3
type: string
name: unpack_data
arguments: data_label: D62
type: string
name: unpack_data
arguments: data_label: D70
type: string
name: unpack_data
arguments: data_label: D65
type: string
name: unpack_data
arguments: data_label: D41
type: string

tool: D61: rb

tool: D26: %c%c

tool: D55: UnMatch MagicNumber


tool: D3: InputFile Not Found


tool: D62: %d %d

tool: D70: Size over


tool: D65: %d

tool: D41: Out of Max Intensity


assistant: ```c
void iie_load_PGM(unsigned char image[][256], const char path[]) {
  int height, width;
  int max_intensity;
  char magic_number[2];
  FILE *fp;
  if ((fp = fopen(path, "rb")) == NULL) {
    printf("InputFile Not Found\n");
    exit(1);
  } else {
    fscanf(fp, "%c%c", &magic_number[0], &magic_number[1]);
    if (magic_number[0] != 'P' || magic_number[1] != '5') {
      printf("UnMatch MagicNumber\n");
      exit(1);
    } else {
      fscanf(fp, "%d %d", &width, &height);
      if (width > 256 || height > 256) {
        printf("Size over\n");
        exit(1);
      } else {
        fscanf(fp, "%d", &max_intensity);
        if (max_intensity != 255) {
          printf("Out of Max Intensity\n");
          exit(1);
        } else {
          fgetc(fp);
          fread(image, sizeof(unsigned char), 256 * 256, fp);
          fclose(fp);
        }
      }
    }
  }
}
```