user: 下面的汇编指令对应的C源代码是什么：

```asm
<jp2_downsample_image_components>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %esi,%r15d
  mov    %edx,0x18(%rsp)
  mov    %ecx,%ebx
  mov    %ecx,0x14(%rsp)
  mov    %r8,%r14
  mov    %r9,%rbp
  mov    0x90(%rsp),%rax
  mov    %rax,0x20(%rsp)
  mov    0x98(%rsp),%rax
  mov    %rax,0x28(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  imul   %esi,%edx
  mov    %edx,0x1c(%rsp)
  mov    %edx,%edi
  call   <malloc@plt>
  mov    %rax,%r13
  test   %ebx,%ebx
  jle    L133
  mov    %ebx,%eax
  mov    %rax,0x30(%rsp)
  mov    $0x10,%ebx
  mov    $0x0,%r12d
  lea    0x44(%rsp),%rax
  mov    %rax,0x38(%rsp)
  jmp    L69
L74:
  movl   $0x0,-0xc(%rbp,%rbx,1)
L123:
  cmpl   $0x0,-0x8(%rbp,%rbx,1)
  jle    L45
L80:
  cmpl   $0x0,-0x4(%rbp,%rbx,1)
  jle    L118
L76:
  mov    0x1c(%rsp),%r8d
  mov    0x14(%rsp),%ecx
  mov    0x10(%rsp),%edx
  mov    0x8(%rsp),%rsi
  mov    %r13,%rdi
  call   <collect_component@plt>
  mov    -0x8(%rbp,%rbx,1),%r9d
  mov    -0xc(%rbp,%rbx,1),%r8d
  mov    -0x10(%rbp,%rbx,1),%ecx
  sub    $0x8,%rsp
  push   0x40(%rsp)
  lea    0x50(%rsp),%rax
  push   %rax
  mov    -0x4(%rbp,%rbx,1),%eax
  push   %rax
  mov    0x38(%rsp),%edx
  mov    %r15d,%esi
  mov    %r13,%rdi
  call   <downsample_component@plt>
  add    $0x20,%rsp
  mov    0x44(%rsp),%ecx
  mov    0x40(%rsp),%edx
  mov    %r15d,%esi
  mov    %r13,%rdi
  call   <pack_component_array@plt>
  mov    0x40(%rsp),%r8d
  imul   0x44(%rsp),%r8d
  mov    0x14(%rsp),%ecx
  mov    0x10(%rsp),%edx
  mov    %r13,%rsi
  mov    0x8(%rsp),%rdi
  call   <rewrite_component@plt>
  mov    0x40(%rsp),%eax
  mov    0x20(%rsp),%rsi
  mov    %eax,(%rsi,%r12,4)
  mov    0x44(%rsp),%eax
  mov    0x28(%rsp),%rdi
  mov    %eax,(%rdi,%r12,4)
  add    $0x1,%r12
  add    $0x10,%rbx
  cmp    0x30(%rsp),%r12
  je     L133
L69:
  mov    %r12d,0x10(%rsp)
  lea    -0x10(%rbx),%rax
L136:
  mov    (%r14,%rax,1),%edx
  mov    %edx,0x0(%rbp,%rax,1)
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L136
  mov    -0x10(%rbp,%rbx,1),%eax
  test   %eax,%eax
  js     L16
  cmp    %r15d,%eax
  jl     L108
L16:
  movl   $0x0,-0x10(%rbp,%rbx,1)
L108:
  mov    -0xc(%rbp,%rbx,1),%eax
  test   %eax,%eax
  js     L74
  cmp    0x18(%rsp),%eax
  jge    L74
  jmp    L123
L45:
  movl   $0x1,-0x8(%rbp,%rbx,1)
  jmp    L80
L118:
  movl   $0x1,-0x4(%rbp,%rbx,1)
  jmp    L76
L133:
  mov    %r13,%rdi
  call   <free@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L20
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L20:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void jp2_downsample_image_components(unsigned char *bitmap, const int width, const int height, const int bpp, const int *csampling, int *csampling_effective, int *cwidth, int *cheight) {
  unsigned char *carray;
  int compstep;
  int out_width, out_height;
  int *csampling_base;
  int i;
  carray = malloc(width * height);
  for (compstep = 0; compstep < bpp; compstep++) {
    for (i = 0; i < 4; i++)
      csampling_effective[(compstep * 4) + i] = csampling[(compstep * 4) + i];
    csampling_base = csampling_effective + (compstep * 4);
    if ((csampling_base[0] >= width) || (csampling_base[0] < 0))
      csampling_base[0] = 0;
    if ((csampling_base[1] >= height) || (csampling_base[1] < 0))
      csampling_base[1] = 0;
    if (csampling_base[2] < 1)
      csampling_base[2] = 1;
    if (csampling_base[3] < 1)
      csampling_base[3] = 1;
    collect_component(carray, bitmap, compstep, bpp, width * height);
    downsample_component(carray, width, height, csampling_base[0], csampling_base[1], csampling_base[2], csampling_base[3], &out_width, &out_height);
    pack_component_array(carray, width, out_width, out_height);
    rewrite_component(bitmap, carray, compstep, bpp, out_width * out_height);
    cwidth[compstep] = out_width;
    cheight[compstep] = out_height;
  }
  free(carray);
}
```