user: 请从给定的汇编指令推导出C源代码：

```asm
<conv_argb8888_0rgb1555>:
  endbr64
  test   %ecx,%ecx
  jle    L40
  sar    %r8d
  sar    $0x2,%r9d
  push   %r15
  mov    %edx,%r11d
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  movslq %r9d,%rbp
  push   %rbx
  movslq %r8d,%rbx
  shl    $0x2,%rbp
  shl    $0x2,%rbx
  test   %edx,%edx
  jle    L132
  lea    -0x1(%rdx),%eax
  mov    %edx,%r14d
  mov    %edx,%r15d
  mov    %ecx,%r13d
  mov    %eax,-0xc(%rsp)
  mov    %edx,%eax
  and    $0xfffffffc,%r14d
  xor    %r10d,%r10d
  shr    $0x2,%eax
  and    $0x3,%r15d
  movq   D31(%rip),%xmm8
  movq   D25(%rip),%xmm7
  lea    -0x1(%rax),%r9d
  movdqa D31(%rip),%xmm5
  movq   D20(%rip),%xmm6
  add    $0x1,%r9
  movdqa D25(%rip),%xmm4
  movdqa D20(%rip),%xmm3
  shl    $0x4,%r9
  nopl   0x0(%rax,%rax,1)
L59:
  lea    0x4(%rsi),%rdx
  mov    %rdi,%rax
  sub    %rdx,%rax
  cmp    $0x8,%rax
  jbe    L84
  cmp    $0x1,%r11d
  je     L84
  cmpl   $0x2,-0xc(%rsp)
  jbe    L76
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L45:
  movdqu (%rsi,%rax,1),%xmm1
  movdqa %xmm1,%xmm0
  movdqa %xmm1,%xmm2
  psrad  $0x13,%xmm0
  psrad  $0xb,%xmm2
  pslld  $0xa,%xmm0
  pslld  $0x5,%xmm2
  pand   %xmm5,%xmm0
  psrad  $0x3,%xmm1
  pand   %xmm4,%xmm2
  por    %xmm2,%xmm0
  pand   %xmm3,%xmm1
  por    %xmm1,%xmm0
  movups %xmm0,(%rdi,%rax,1)
  add    $0x10,%rax
  cmp    %r9,%rax
  jne    L45
  cmp    %r14d,%r11d
  je     L15
  mov    %r15d,%edx
  cmp    $0x1,%r15d
  je     L39
  mov    %r14d,%eax
  mov    %r14d,%ecx
L5:
  movq   (%rsi,%rax,4),%xmm1
  movdqa %xmm1,%xmm0
  movdqa %xmm1,%xmm2
  psrad  $0x13,%xmm0
  psrad  $0xb,%xmm2
  pslld  $0xa,%xmm0
  pslld  $0x5,%xmm2
  pand   %xmm8,%xmm0
  psrad  $0x3,%xmm1
  pand   %xmm7,%xmm2
  por    %xmm2,%xmm0
  pand   %xmm6,%xmm1
  por    %xmm1,%xmm0
  movq   %xmm0,(%rdi,%rax,4)
  mov    %edx,%eax
  and    $0xfffffffe,%eax
  add    %eax,%ecx
  cmp    %eax,%edx
  je     L15
L89:
  movslq %ecx,%rcx
  mov    (%rsi,%rcx,4),%edx
  mov    %edx,%eax
  mov    %edx,%r8d
  sar    $0x3,%edx
  shr    $0x9,%eax
  shr    $0x6,%r8d
  and    $0x1f,%edx
  and    $0x7c00,%eax
  and    $0x3e0,%r8d
  or     %r8d,%eax
  or     %edx,%eax
  mov    %eax,(%rdi,%rcx,4)
L15:
  add    $0x1,%r10d
  add    %rbx,%rdi
  add    %rbp,%rsi
  cmp    %r10d,%r13d
  jne    L59
L132:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L84:
  mov    %r11d,%r12d
  xor    %ecx,%ecx
  nopl   (%rax)
L46:
  mov    (%rsi,%rcx,4),%edx
  mov    %edx,%eax
  mov    %edx,%r8d
  sar    $0x3,%edx
  shr    $0x6,%eax
  shr    $0x9,%r8d
  and    $0x1f,%edx
  and    $0x3e0,%eax
  and    $0x7c00,%r8d
  or     %r8d,%eax
  or     %edx,%eax
  mov    %eax,(%rdi,%rcx,4)
  add    $0x1,%rcx
  cmp    %r12,%rcx
  jne    L46
  jmp    L15
L76:
  mov    %r11d,%edx
  xor    %eax,%eax
  xor    %ecx,%ecx
  jmp    L5
L39:
  mov    %r14d,%ecx
  jmp    L89
L40:
  ret
```

tool_calls: name: unpack_data
arguments: label: D31
type_infered: byte[16]
name: unpack_data
arguments: label: D25
type_infered: byte[16]
name: unpack_data
arguments: label: D20
type_infered: byte[16]

tool: {"D31": [0x00,0x7c,0x00,0x00,0x00,0x7c,0x00,0x00,0x00,0x7c,0x00,0x00,0x00,0x7c,0x00,0x00]}

tool: {"D25": [0xe0,0x03,0x00,0x00,0xe0,0x03,0x00,0x00,0xe0,0x03,0x00,0x00,0xe0,0x03,0x00,0x00]}

tool: {"D20": [0x1f,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x1f,0x00,0x00,0x00]}

assistant: ```c
void conv_argb8888_0rgb1555(void *output_, const void *input_, int width, int height, int out_stride, int in_stride) {
  int h, w;
  const uint32_t *input = (const uint32_t *)input_;
  uint16_t *output = (uint16_t *)output_;
  for (h = 0; h < height; h++, output += out_stride >> 1, input += in_stride >> 2) {
    for (w = 0; w < width; w++) {
      uint32_t col = input[w];
      uint16_t r = (col >> 19) & 0x1f;
      uint16_t g = (col >> 11) & 0x1f;
      uint16_t b = (col >> 3) & 0x1f;
      output[w] = (r << 10) | (g << 5) | (b << 0);
    }
  }
}
```