user: Demonstrate the C code that generates the assembly output below:

```asm
<avg_422_downsample_r_g_b_vectors_n_save_previous_sse2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  movl   $0x0,-0x28(%rbp)
  movl   $0x0,-0x24(%rbp)
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  mov    -0x40(%rbp),%rax
  mov    $0xe,%esi
  mov    (%rax),%rdi
  call   <_mm_srli_si128@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  mov    $0x10,%esi
  mov    (%rax),%rdi
  call   <_mm_srli_epi32@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <_mm_slli_si128@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <_mm_or_si128@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x20(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <_mm_avg_epu16@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    (%rdx),%rsi
  mov    %rax,%rdi
  call   <_mm_avg_epu16@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <_mm_load_si128@plt>
  mov    %rax,%rdx
  mov    -0x40(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x28(%rbp),%rax
  mov    $0xa0,%esi
  mov    %rax,%rdi
  call   <_mm_shufflehi_epi16@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  mov    $0xa0,%esi
  mov    %rax,%rdi
  call   <_mm_shufflelo_epi16@plt>
  mov    %rax,%rdx
  mov    -0x48(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x40(%rbp),%rax
  add    $0x8,%rax
  mov    $0xe,%esi
  mov    (%rax),%rdi
  call   <_mm_srli_si128@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  add    $0x8,%rax
  mov    $0x10,%esi
  mov    (%rax),%rdi
  call   <_mm_srli_epi32@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <_mm_slli_si128@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <_mm_or_si128@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x20(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <_mm_avg_epu16@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    -0x28(%rbp),%rax
  mov    (%rdx),%rsi
  mov    %rax,%rdi
  call   <_mm_avg_epu16@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  add    $0x8,%rax
  mov    -0x40(%rbp),%rdx
  lea    0x8(%rdx),%rbx
  mov    %rax,%rdi
  call   <_mm_load_si128@plt>
  mov    %rax,(%rbx)
  mov    -0x28(%rbp),%rax
  mov    $0xa0,%esi
  mov    %rax,%rdi
  call   <_mm_shufflehi_epi16@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x48(%rbp),%rax
  lea    0x8(%rax),%rbx
  mov    -0x28(%rbp),%rax
  mov    $0xa0,%esi
  mov    %rax,%rdi
  call   <_mm_shufflelo_epi16@plt>
  mov    %rax,(%rbx)
  mov    -0x40(%rbp),%rax
  add    $0x10,%rax
  mov    $0xe,%esi
  mov    (%rax),%rdi
  call   <_mm_srli_si128@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  add    $0x10,%rax
  mov    $0x10,%esi
  mov    (%rax),%rdi
  call   <_mm_srli_epi32@plt>
  mov    %rax,-0x20(%rbp)
  mov    -0x20(%rbp),%rax
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <_mm_slli_si128@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <_mm_or_si128@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x20(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <_mm_avg_epu16@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  lea    0x10(%rax),%rdx
  mov    -0x28(%rbp),%rax
  mov    (%rdx),%rsi
  mov    %rax,%rdi
  call   <_mm_avg_epu16@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%rax
  add    $0x10,%rax
  mov    -0x40(%rbp),%rdx
  lea    0x10(%rdx),%rbx
  mov    %rax,%rdi
  call   <_mm_load_si128@plt>
  mov    %rax,(%rbx)
  mov    -0x28(%rbp),%rax
  mov    $0xa0,%esi
  mov    %rax,%rdi
  call   <_mm_shufflehi_epi16@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x48(%rbp),%rax
  lea    0x10(%rax),%rbx
  mov    -0x28(%rbp),%rax
  mov    $0xa0,%esi
  mov    %rax,%rdi
  call   <_mm_shufflelo_epi16@plt>
  mov    %rax,(%rbx)
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
extern void avg_422_downsample_r_g_b_vectors_n_save_previous_sse2(__m128i *in_3_v16i_current_r_g_b_vectors, __m128i *in_3_v16i_previous_r_g_b_vectors, __m128i *out_3_v16i_avg_422_r_g_b_vectors) {
  __m128i scratch1 = {0x0LL, 0x0LL};
  __m128i scratch2 = {0x0LL, 0x0LL};
  __m128i scratch3 = {0x0LL, 0x0LL};
  (scratch1) = _mm_srli_si128(in_3_v16i_previous_r_g_b_vectors[0], 14);
  (scratch2) = _mm_srli_epi32(in_3_v16i_current_r_g_b_vectors[0], 16);
  (scratch3) = _mm_slli_si128((scratch2), 4);
  (scratch1) = _mm_or_si128((scratch1), (scratch3));
  (scratch1) = _mm_avg_epu16((scratch1), (scratch2));
  (scratch1) = _mm_avg_epu16((scratch1), in_3_v16i_current_r_g_b_vectors[0]);
  in_3_v16i_previous_r_g_b_vectors[0] = _mm_load_si128(&in_3_v16i_current_r_g_b_vectors[0]);
  (scratch1) = _mm_shufflehi_epi16((scratch1), 0xA0);
  out_3_v16i_avg_422_r_g_b_vectors[0] = _mm_shufflelo_epi16((scratch1), 0xA0);
  (scratch1) = _mm_srli_si128(in_3_v16i_previous_r_g_b_vectors[1], 14);
  (scratch2) = _mm_srli_epi32(in_3_v16i_current_r_g_b_vectors[1], 16);
  (scratch3) = _mm_slli_si128((scratch2), 4);
  (scratch1) = _mm_or_si128((scratch1), (scratch3));
  (scratch1) = _mm_avg_epu16((scratch1), (scratch2));
  (scratch1) = _mm_avg_epu16((scratch1), in_3_v16i_current_r_g_b_vectors[1]);
  in_3_v16i_previous_r_g_b_vectors[1] = _mm_load_si128(&in_3_v16i_current_r_g_b_vectors[1]);
  (scratch1) = _mm_shufflehi_epi16((scratch1), 0xA0);
  out_3_v16i_avg_422_r_g_b_vectors[1] = _mm_shufflelo_epi16((scratch1), 0xA0);
  (scratch1) = _mm_srli_si128(in_3_v16i_previous_r_g_b_vectors[2], 14);
  (scratch2) = _mm_srli_epi32(in_3_v16i_current_r_g_b_vectors[2], 16);
  (scratch3) = _mm_slli_si128((scratch2), 4);
  (scratch1) = _mm_or_si128((scratch1), (scratch3));
  (scratch1) = _mm_avg_epu16((scratch1), (scratch2));
  (scratch1) = _mm_avg_epu16((scratch1), in_3_v16i_current_r_g_b_vectors[2]);
  in_3_v16i_previous_r_g_b_vectors[2] = _mm_load_si128(&in_3_v16i_current_r_g_b_vectors[2]);
  (scratch1) = _mm_shufflehi_epi16((scratch1), 0xA0);
  out_3_v16i_avg_422_r_g_b_vectors[2] = _mm_shufflelo_epi16((scratch1), 0xA0);
}
```