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

```asm
<png_find_best_filter>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %rdi,%r12
  mov    %esi,%ebx
  mov    %edx,%r14d
  mov    %ecx,%r13d
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  call   <make_num_bits_table@plt>
  test   %r13d,%r13d
  jle    L143
  sar    $0x3,%r14d
  imul   %r14d,%ebx
  mov    %ebx,%r13d
  movl   $0x5,0x14(%rsp)
  jmp    L72
L143:
  sar    $0x3,%r14d
  imul   %r14d,%ebx
  test   %r13d,%r13d
  jne    L56
  movl   $0x2,0x14(%rsp)
L72:
  mov    $0x2000,%esi
  mov    $0x1,%edi
  call   <calloc@plt>
  mov    %rax,0x18(%rsp)
  mov    %rax,0x60(%rsp)
  mov    $0x2000,%esi
  mov    $0x1,%edi
  call   <calloc@plt>
  mov    %rax,0x20(%rsp)
  mov    %rax,0x68(%rsp)
  mov    $0x2000,%esi
  mov    $0x1,%edi
  call   <calloc@plt>
  mov    %rax,0x28(%rsp)
  mov    %rax,0x70(%rsp)
  mov    $0x2000,%esi
  mov    $0x1,%edi
  call   <calloc@plt>
  mov    %rax,0x30(%rsp)
  mov    %rax,0x78(%rsp)
  mov    $0x2000,%esi
  mov    $0x1,%edi
  call   <calloc@plt>
  mov    %rax,0x38(%rsp)
  mov    %rax,0x80(%rsp)
  lea    -0x1(%r14),%eax
  movslq %eax,%rdx
  movzbl (%r12,%rdx,1),%ebp
  mov    %bpl,0x8e(%rsp)
  mov    %bpl,0x8f(%rsp)
  sub    %r13d,%eax
  cltq
  movzbl (%r12,%rax,1),%esi
  mov    %ebp,%eax
  sub    %esi,%eax
  mov    %al,0x90(%rsp)
  mov    %al,0x91(%rsp)
  movzbl %sil,%esi
  mov    $0x0,%edx
  mov    $0x0,%edi
  call   <PaethPredictor@plt>
  sub    %eax,%ebp
  mov    %bpl,0x92(%rsp)
  movl   $0x0,0x40(%rsp)
  movl   $0x0,0x44(%rsp)
  movl   $0x0,0x48(%rsp)
  movl   $0x0,0x4c(%rsp)
  movl   $0x0,0x50(%rsp)
  cmp    %r14d,%ebx
  jle    L146
  mov    %r13d,%eax
  neg    %eax
  cltq
  lea    (%r12,%rax,1),%rbp
  lea    0x1(%r12,%rax,1),%r15
  sub    $0x1,%ebx
  sub    %r14d,%ebx
  add    %rbx,%r15
  movslq %r13d,%r13
  movslq %r14d,%r14
  lea    0x0(%r13,%r14,1),%rax
  mov    %rax,0x8(%rsp)
  lea    0x93(%rsp),%r12
  jmp    L53
L56:
  mov    %ebx,%r13d
  movl   $0x2,0x14(%rsp)
  jmp    L72
L130:
  add    $0x1,%rdx
  cmp    $0x5,%rdx
  je     L4
L120:
  movzbl (%rdx,%r12,1),%eax
  shl    $0x8,%eax
  movzbl (%rdx,%rdi,1),%ecx
  or     %ecx,%eax
  and    $0x7,%ecx
  mov    %esi,%ebx
  shl    %cl,%ebx
  sar    $0x3,%eax
  cltq
  add    0x60(%rsp,%rdx,8),%rax
  cmpb   $0x0,(%rax)
  sete   %r8b
  movzbl %r8b,%r8d
  test   %ebx,%r8d
  je     L130
  mov    %bl,(%rax)
  addl   $0x1,0x40(%rsp,%rdx,4)
  jmp    L130
L4:
  lea    0x8e(%rsp),%rdi
  mov    %r12,%rsi
  call   <memcpy@plt>
  add    $0x1,%rbp
  cmp    %r15,%rbp
  je     L146
L53:
  lea    0x0(%rbp,%r13,1),%rax
  movzbl (%rax,%r14,1),%ebx
  mov    %bl,0x93(%rsp)
  movzbl 0x0(%rbp,%r13,1),%edi
  mov    %ebx,%eax
  sub    %edi,%eax
  mov    %al,0x94(%rsp)
  mov    0x8(%rsp),%rax
  lea    (%rax,%rbp,1),%rdx
  mov    %r13,%rax
  neg    %rax
  movzbl (%rdx,%rax,1),%esi
  mov    %ebx,%eax
  sub    %esi,%eax
  mov    %al,0x95(%rsp)
  movzbl %dil,%edi
  movzbl %sil,%esi
  lea    (%rdi,%rsi,1),%eax
  sar    %eax
  mov    %ebx,%edx
  sub    %eax,%edx
  mov    %dl,0x96(%rsp)
  movzbl 0x0(%rbp),%edx
  call   <PaethPredictor@plt>
  sub    %eax,%ebx
  mov    %bl,0x97(%rsp)
  mov    $0x0,%edx
  lea    0x8e(%rsp),%rdi
  mov    $0x1,%esi
  jmp    L120
L146:
  mov    D9(%rip),%rax
  mov    (%rax),%ecx
  mov    $0x0,%eax
  mov    $0x0,%ebx
  mov    0x14(%rsp),%esi
  jmp    L129
L133:
  add    $0x1,%rax
  cmp    %eax,%esi
  jle    L95
L129:
  mov    0x40(%rsp,%rax,4),%edx
  cmp    %ecx,%edx
  jge    L133
  mov    %edx,%ecx
  mov    %eax,%ebx
  jmp    L133
L95:
  mov    0x18(%rsp),%rdi
  call   <free@plt>
  mov    0x20(%rsp),%rdi
  call   <free@plt>
  mov    0x28(%rsp),%rdi
  call   <free@plt>
  mov    0x30(%rsp),%rdi
  call   <free@plt>
  mov    0x38(%rsp),%rdi
  call   <free@plt>
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L122
  mov    %ebx,%eax
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L122:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int png_find_best_filter(unsigned char *src, unsigned width, int bpp, int y) {
  make_num_bits_table();
  int num_filters = y > 0 ? 5 : 2;
  int bytes_per_pixel = bpp >> 3;
  int w = width * bytes_per_pixel;
  int back_x = bytes_per_pixel;
  int back_y = y ? width * bytes_per_pixel : 0;
  unsigned char *pairs[5];
  pairs[0] = calloc(1, 8192);
  pairs[1] = calloc(1, 8192);
  pairs[2] = calloc(1, 8192);
  pairs[3] = calloc(1, 8192);
  pairs[4] = calloc(1, 8192);
  unsigned char old[5];
  int l = bytes_per_pixel - 1;
  old[0] = src[l];
  old[1] = src[l];
  old[2] = src[l] - src[l - back_y];
  old[3] = src[l] - src[l - back_y];
  old[4] = src[l] - PaethPredictor(0, src[l - back_y], 0);
  int different_pairs[5] = {0, 0, 0, 0, 0};
  int x;
  for (x = bytes_per_pixel; x < w; x++) {
    unsigned char dest[5];
    dest[0] = src[x];
    dest[1] = src[x] - src[x - back_x];
    dest[2] = src[x] - src[x - back_y];
    dest[3] = src[x] - (src[x - back_x] + src[x - back_y]) / 2;
    dest[4] = src[x] - PaethPredictor(src[x - back_x], src[x - back_y], src[x - back_x - back_y]);
    int i;
    for (i = 0; i < 5; i++) {
      int v = dest[i] << 8 | old[i];
      int p = v >> 3;
      int b = 1 << (v & 7);
      if (!pairs[i][p] & b) {
        pairs[i][p] |= b;
        different_pairs[i]++;
      }
    }
    memcpy(old, dest, sizeof(old));
  }
  int f;
  int best_nr = 0;
  int best_energy = INT_MAX;
  for (f = 0; f < num_filters; f++) {
    int energy = different_pairs[f];
    if (energy < best_energy) {
      best_nr = f;
      best_energy = energy;
    }
  }
  free(pairs[0]);
  free(pairs[1]);
  free(pairs[2]);
  free(pairs[3]);
  free(pairs[4]);
  return best_nr;
}
```