user: Translate the below assembly code into C programming language:

```asm
<conv_0rgb1555_rgb565>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %edx,-0x64(%rbp)
  mov    %ecx,-0x68(%rbp)
  mov    %r8d,-0x6c(%rbp)
  mov    %r9d,-0x70(%rbp)
  mov    -0x60(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x64(%rbp),%eax
  sub    $0x7,%eax
  mov    %eax,-0x40(%rbp)
  mov    $0xffc0,%edi
  call   <_mm_set1_epi16@plt>
  mov    %eax,-0x3c(%rbp)
  mov    $0x1f,%edi
  call   <_mm_set1_epi16@plt>
  mov    %eax,-0x38(%rbp)
  mov    $0x20,%edi
  call   <_mm_set1_epi16@plt>
  mov    %eax,-0x34(%rbp)
  movl   $0x0,-0x48(%rbp)
  jmp    L35
L48:
  movl   $0x0,-0x44(%rbp)
  jmp    L20
L59:
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  call   <_mm_loadu_si128@plt>
  mov    %eax,-0x20(%rbp)
  mov    -0x20(%rbp),%eax
  mov    $0x1,%esi
  mov    %eax,%edi
  call   <_mm_slli_epi16@plt>
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  mov    %eax,%esi
  mov    %edx,%edi
  call   <_mm_and_si128@plt>
  mov    %eax,-0x1c(%rbp)
  mov    -0x38(%rbp),%edx
  mov    -0x20(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <_mm_and_si128@plt>
  mov    %eax,-0x18(%rbp)
  mov    -0x20(%rbp),%eax
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <_mm_srli_epi16@plt>
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  mov    %eax,%esi
  mov    %edx,%edi
  call   <_mm_and_si128@plt>
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%edx
  mov    -0x18(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <_mm_or_si128@plt>
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <_mm_or_si128@plt>
  mov    %eax,%edx
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <_mm_storeu_si128@plt>
  addl   $0x8,-0x44(%rbp)
L20:
  mov    -0x44(%rbp),%eax
  cmp    -0x40(%rbp),%eax
  jl     L59
  jmp    L37
L23:
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x30(%rbp),%eax
  add    %eax,%eax
  and    $0xffc0,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x30(%rbp),%eax
  and    $0x1f,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x30(%rbp),%eax
  sar    $0x4,%eax
  and    $0x20,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x2c(%rbp),%eax
  or     -0x28(%rbp),%eax
  mov    -0x44(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  or     -0x24(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x44(%rbp)
L37:
  mov    -0x44(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L23
  addl   $0x1,-0x48(%rbp)
  mov    -0x6c(%rbp),%eax
  sar    %eax
  cltq
  shl    $0x2,%rax
  add    %rax,-0x8(%rbp)
  mov    -0x70(%rbp),%eax
  sar    %eax
  cltq
  shl    $0x2,%rax
  add    %rax,-0x10(%rbp)
L35:
  mov    -0x48(%rbp),%eax
  cmp    -0x68(%rbp),%eax
  jl     L48
  nop
  nop
  leave
  ret
```

assistant: ```c
void conv_0rgb1555_rgb565(void *output_, const void *input_, int width, int height, int out_stride, int in_stride) {
  const uint16_t *input = (const uint16_t *)input_;
  uint16_t *output = (uint16_t *)output_;
  int max_width = width - 7;
  const __m128i hi_mask = _mm_set1_epi16((int16_t)((0x1f << 11) | (0x1f << 6)));
  const __m128i lo_mask = _mm_set1_epi16(0x1f);
  const __m128i glow_mask = _mm_set1_epi16(1 << 5);
  for (int h = 0; h < height; h++, output += out_stride >> 1, input += in_stride >> 1) {
    int w;
    for (w = 0; w < max_width; w += 8) {
      const __m128i in = _mm_loadu_si128((const __m128i *)(input + w));
      __m128i rg = _mm_and_si128(_mm_slli_epi16(in, 1), hi_mask);
      __m128i b = _mm_and_si128(in, lo_mask);
      __m128i glow = _mm_and_si128(_mm_srli_epi16(in, 4), glow_mask);
      _mm_storeu_si128((__m128i *)(output + w), _mm_or_si128(rg, _mm_or_si128(b, glow)));
    }
    for (; w < width; w++) {
      uint16_t col = input[w];
      uint16_t rg = (col << 1) & ((0x1f << 11) | (0x1f << 6));
      uint16_t b = col & 0x1f;
      uint16_t glow = (col >> 4) & (1 << 5);
      output[w] = rg | b | glow;
    }
  }
}
```