user: What would the C source look like for the assembly code provided here:

```asm
<GrOffScreen4BPPLineDrawH>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %edx,-0x20(%rbp)
  mov    %ecx,-0x24(%rbp)
  mov    %r8d,-0x28(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  add    $0x1,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  add    %edx,%eax
  add    $0x6,%eax
  cltq
  add    $0x30,%rax
  shl    $0x2,%rax
  add    %rax,-0x8(%rbp)
  mov    -0x28(%rbp),%eax
  shl    $0x1c,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  shl    $0x18,%eax
  or     %eax,%edx
  mov    -0x28(%rbp),%eax
  shl    $0x14,%eax
  or     %eax,%edx
  mov    -0x28(%rbp),%eax
  shl    $0x10,%eax
  or     %eax,%edx
  mov    -0x28(%rbp),%eax
  shl    $0xc,%eax
  or     %eax,%edx
  mov    -0x28(%rbp),%eax
  shl    $0x8,%eax
  or     %eax,%edx
  mov    -0x28(%rbp),%eax
  shl    $0x4,%eax
  or     %edx,%eax
  or     %eax,-0x28(%rbp)
  mov    -0x1c(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L44
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  and    $0xf0,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  and    $0xf,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,(%rax)
  addq   $0x4,-0x8(%rbp)
  addl   $0x1,-0x1c(%rbp)
L44:
  mov    -0x8(%rbp),%rax
  and    $0x1,%eax
  test   %eax,%eax
  je     L54
  mov    -0x20(%rbp),%eax
  sub    -0x1c(%rbp),%eax
  test   %eax,%eax
  jle    L54
  mov    -0x8(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x28(%rbp),%edx
  movzbl %dl,%edx
  mov    %edx,(%rax)
  addl   $0x2,-0x1c(%rbp)
L54:
  mov    -0x8(%rbp),%rax
  and    $0x2,%eax
  test   %eax,%eax
  je     L62
  mov    -0x20(%rbp),%eax
  sub    -0x1c(%rbp),%eax
  cmp    $0x2,%eax
  jle    L62
  mov    -0x28(%rbp),%eax
  movzwl %ax,%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,(%rax)
  addq   $0x8,-0x8(%rbp)
  addl   $0x4,-0x1c(%rbp)
  jmp    L62
L45:
  mov    -0x8(%rbp),%rax
  mov    -0x28(%rbp),%edx
  mov    %edx,(%rax)
  addq   $0x10,-0x8(%rbp)
  addl   $0x8,-0x1c(%rbp)
L62:
  mov    -0x1c(%rbp),%eax
  add    $0x6,%eax
  cmp    %eax,-0x20(%rbp)
  jg     L45
  mov    -0x1c(%rbp),%eax
  add    $0x2,%eax
  cmp    %eax,-0x20(%rbp)
  jle    L13
  mov    -0x28(%rbp),%eax
  movzwl %ax,%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,(%rax)
  addq   $0x8,-0x8(%rbp)
  addl   $0x4,-0x1c(%rbp)
L13:
  mov    -0x1c(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jge    L65
  mov    -0x8(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x28(%rbp),%edx
  movzbl %dl,%edx
  mov    %edx,(%rax)
  addl   $0x2,-0x1c(%rbp)
L65:
  mov    -0x1c(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jne    L80
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  and    $0xf,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  and    $0xf0,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,(%rax)
L80:
  nop
  pop    %rbp
  ret
```

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);
  }
}
```