user: What is the c source code of the assembly code below?

```asm
<GrOffScreen8BPPPixelDrawMultiple>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %edx,-0x20(%rbp)
  mov    %ecx,-0x24(%rbp)
  mov    %r8d,-0x28(%rbp)
  mov    %r9d,-0x2c(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  imul   -0x20(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  add    $0x6,%eax
  cltq
  add    $0x300,%rax
  add    %rax,-0x8(%rbp)
  cmpl   $0x8,-0x2c(%rbp)
  je     L100
  cmpl   $0x8,-0x2c(%rbp)
  jg     L5
  cmpl   $0x1,-0x2c(%rbp)
  je     L44
  cmpl   $0x4,-0x2c(%rbp)
  je     L171
  jmp    L5
L116:
  mov    0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,0x10(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L166
L17:
  mov    $0x7,%eax
  sub    -0x24(%rbp),%eax
  mov    -0xc(%rbp),%edx
  mov    %eax,%ecx
  shr    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%eax
  and    $0x1,%eax
  lea    0x0(,%rax,4),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x24(%rbp)
  subl   $0x1,-0x28(%rbp)
L166:
  cmpl   $0x7,-0x24(%rbp)
  jg     L77
  cmpl   $0x0,-0x28(%rbp)
  jne    L17
L77:
  movl   $0x0,-0x24(%rbp)
L44:
  cmpl   $0x0,-0x28(%rbp)
  jne    L116
  jmp    L5
L171:
  mov    -0x24(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L49
  cmp    $0x1,%eax
  je     L101
  jmp    L5
L83:
  mov    0x10(%rbp),%rax
  movzbl (%rax),%eax
  shr    $0x4,%al
  movzbl %al,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%edx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  and    $0xffffff,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <GrOffScreen8BPPColorTranslate@plt>
  mov    %rax,%rcx
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  subl   $0x1,-0x28(%rbp)
  cmpl   $0x0,-0x28(%rbp)
  je     L12
L101:
  mov    0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,0x10(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0xf,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%edx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  and    $0xffffff,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <GrOffScreen8BPPColorTranslate@plt>
  mov    %rax,%rcx
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
  subl   $0x1,-0x28(%rbp)
  jmp    L12
L49:
  nop
L12:
  cmpl   $0x0,-0x28(%rbp)
  jne    L83
  jmp    L5
L84:
  mov    0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,0x10(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%edx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  and    $0xffffff,%eax
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <GrOffScreen8BPPColorTranslate@plt>
  mov    %rax,%rcx
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    %ecx,%edx
  mov    %dl,(%rax)
L100:
  mov    -0x28(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x28(%rbp)
  test   %eax,%eax
  jne    L84
  nop
L5:
  nop
  leave
  ret
```

assistant: ```c
void GrOffScreen8BPPPixelDrawMultiple(void *pvDisplayData, int lX, int lY, int lX0, int lCount, int lBPP, const unsigned char *pucData, const unsigned char *pucPalette) {
  unsigned char *pucPtr;
  unsigned int ulByte;
  ;
  ;
  ;
  pucPtr = (unsigned char *)pvDisplayData;
  pucPtr += (*(unsigned short *)(pucPtr + 1) * lY) + lX + 6 + (256 * 3);
  switch (lBPP) {
  case 1: {
    while (lCount) {
      ulByte = *pucData++;
      for (; (lX0 < 8) && lCount; lX0++, lCount--) {
        *pucPtr++ = (((unsigned int *)pucPalette)[(ulByte >> (7 - lX0)) & 1]);
      }
      lX0 = 0;
    }
    break;
  }
  case 4: {
    switch (lX0 & 1) {
    case 0:
      while (lCount) {
        ulByte = (*pucData >> 4) * 3;
        ulByte = (*(unsigned int *)(pucPalette + ulByte) & 0x00ffffff);
        *pucPtr++ = GrOffScreen8BPPColorTranslate(pvDisplayData, ulByte);
        lCount--;
        if (lCount) {
        case 1:
          ulByte = (*pucData++ & 15) * 3;
          ulByte = (*(unsigned int *)(pucPalette + ulByte) & 0x00ffffff);
          *pucPtr++ = GrOffScreen8BPPColorTranslate(pvDisplayData, ulByte);
          lCount--;
        }
      }
    }
    break;
  }
  case 8: {
    while (lCount--) {
      ulByte = *pucData++ * 3;
      ulByte = *(unsigned int *)(pucPalette + ulByte) & 0x00ffffff;
      *pucPtr++ = GrOffScreen8BPPColorTranslate(pvDisplayData, ulByte);
    }
    break;
  }
  }
}
```