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

```asm
<GrOffScreen4BPPLineDrawH>:
  endbr64
  mov    %rdi,%r9
  mov    %ecx,%r10d
  mov    %edx,%edi
  mov    %r8d,%edx
  mov    0x4(%r9),%eax
  lea    0x1(%rax),%ecx
  mov    %ecx,%eax
  shr    $0x1f,%eax
  add    %ecx,%eax
  mov    %esi,%ecx
  sar    %eax
  shr    $0x1f,%ecx
  imul   %r10d,%eax
  add    %esi,%ecx
  sar    %ecx
  add    %ecx,%eax
  mov    %r8d,%ecx
  shl    $0x1c,%r8d
  cltq
  shl    $0x4,%ecx
  lea    0xd8(%r9,%rax,4),%rax
  mov    %edx,%r9d
  shl    $0x18,%r9d
  or     %r9d,%r8d
  mov    %edx,%r9d
  or     %edx,%r8d
  shl    $0x14,%r9d
  or     %r9d,%r8d
  mov    %edx,%r9d
  shl    $0x10,%r9d
  or     %r9d,%r8d
  mov    %edx,%r9d
  shl    $0x8,%edx
  shl    $0xc,%r9d
  or     %r9d,%r8d
  or     %edx,%r8d
  or     %r8d,%ecx
  test   $0x1,%sil
  je     L74
  mov    (%rax),%edx
  mov    %ecx,%r8d
  add    $0x4,%rax
  add    $0x1,%esi
  and    $0xf,%r8d
  and    $0xf0,%edx
  or     %r8d,%edx
  mov    %edx,-0x4(%rax)
L74:
  mov    %eax,%edx
  test   $0x1,%al
  je     L23
  cmp    %esi,%edi
  jle    L23
  lea    0x4(%rax),%r8
  movzbl %cl,%edx
  add    $0x2,%esi
  mov    %edx,(%rax)
  mov    %r8d,%edx
  mov    %r8,%rax
L23:
  and    $0x2,%edx
  je     L99
  mov    %edi,%edx
  sub    %esi,%edx
  cmp    $0x2,%edx
  jg     L26
L99:
  lea    0x6(%rsi),%edx
  cmp    %edx,%edi
  jle    L31
L38:
  lea    -0x7(%rdi),%r8d
  sub    %esi,%r8d
  shr    $0x3,%r8d
  lea    0x1(%r8),%edx
  shl    $0x4,%rdx
  add    %rax,%rdx
  nop
L20:
  mov    %ecx,(%rax)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L20
  lea    0x8(%rsi,%r8,8),%esi
L81:
  lea    0x2(%rsi),%eax
  cmp    %edi,%eax
  jge    L55
  movzwl %cx,%eax
  add    $0x8,%rdx
  add    $0x4,%esi
  mov    %eax,-0x8(%rdx)
L55:
  cmp    %edi,%esi
  jge    L100
  movzbl %cl,%eax
  add    $0x2,%esi
  add    $0x4,%rdx
  mov    %eax,-0x4(%rdx)
L100:
  cmp    %edi,%esi
  je     L75
  ret
  nopw   0x0(%rax,%rax,1)
L75:
  mov    (%rdx),%eax
  and    $0xf0,%ecx
  and    $0xf,%eax
  or     %ecx,%eax
  mov    %eax,(%rdx)
  ret
L26:
  movzwl %cx,%edx
  add    $0x4,%esi
  add    $0x8,%rax
  mov    %edx,-0x8(%rax)
  lea    0x6(%rsi),%edx
  cmp    %edx,%edi
  jg     L38
L31:
  mov    %rax,%rdx
  jmp    L81
```

assistant: ```c
void GrOffScreen4BPPLineDrawH(void *pvDisplayData, int32_t i32X1, int32_t i32X2, int32_t i32Y, uint32_t ui32Value) {
  uint8_t *pui8Data;
  int32_t i32BytesPerRow;
  ;
  pui8Data = (uint8_t *)pvDisplayData;
  i32BytesPerRow = (*(uint16_t *)(pui8Data + 1) + 1) / 2;
  pui8Data += (i32BytesPerRow * i32Y) + (i32X1 / 2) + 6 + (16 * 3);
  ui32Value = ((ui32Value << 28) | (ui32Value << 24) | (ui32Value << 20) | (ui32Value << 16) | (ui32Value << 12) | (ui32Value << 8) | (ui32Value << 4) | ui32Value);
  if (i32X1 & 1) {
    *pui8Data = (*pui8Data & 0xf0) | (ui32Value & 0x0f);
    pui8Data++;
    i32X1++;
  }
  if (((uint32_t)pui8Data & 1) && ((i32X2 - i32X1) > 0)) {
    *pui8Data++ = ui32Value & 0xff;
    i32X1 += 2;
  }
  if (((uint32_t)pui8Data & 2) && ((i32X2 - i32X1) > 2)) {
    *(uint16_t *)pui8Data = ui32Value & 0xffff;
    pui8Data += 2;
    i32X1 += 4;
  }
  while ((i32X1 + 7) <= i32X2) {
    *(uint32_t *)pui8Data = ui32Value;
    pui8Data += 4;
    i32X1 += 8;
  }
  if ((i32X1 + 3) <= i32X2) {
    *(uint16_t *)pui8Data = ui32Value & 0xffff;
    pui8Data += 2;
    i32X1 += 4;
  }
  if ((i32X1 + 1) <= i32X2) {
    *pui8Data++ = ui32Value & 0xff;
    i32X1 += 2;
  }
  if (i32X1 == i32X2) {
    *pui8Data = (*pui8Data & 0x0f) | (ui32Value & 0xf0);
  }
}
```