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

```asm
<SHAMD5DataWriteMultiple>:
  endbr64
  push   %r15
  lea    0x3f(%rdx),%r15d
  push   %r14
  mov    %rsi,%r14
  push   %r13
  mov    %edx,%r13d
  push   %r12
  movslq %edi,%r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  test   %edx,%edx
  movl   $0x0,0x4(%rsp)
  cmovns %edx,%r15d
  sar    $0x6,%r15d
  cmp    $0x3f,%edx
  jle    L65
  mov    %rsi,%rbp
  xor    %ebx,%ebx
  nopl   0x0(%rax,%rax,1)
L120:
  mov    %rbp,%rsi
  mov    %r12d,%edi
  add    $0x1,%ebx
  add    $0x100,%rbp
  call   <SHAMD5DataWrite@plt>
  cmp    %ebx,%r15d
  jg     L120
  lea    -0x1(%r15),%eax
  mov    $0x100,%edx
  add    $0x1,%rax
  shl    $0x8,%rax
  cmp    $0x3f,%r13d
  cmovle %rdx,%rax
  add    %rax,%r14
L65:
  test   $0x3f,%r13b
  je     L155
  lea    0x118(%r12),%edx
  movslq %edx,%rdx
  nopl   0x0(%rax,%rax,1)
L92:
  mov    (%rdx),%rax
  test   $0x2,%al
  je     L92
  mov    %r13d,%eax
  mov    %r13d,%r10d
  sar    $0x1f,%eax
  shr    $0x1a,%eax
  lea    0x0(%r13,%rax,1),%edi
  and    $0x3f,%edi
  sub    %eax,%edi
  lea    0x3(%rdi),%esi
  cmovns %edi,%esi
  and    $0x3,%r10d
  sar    $0x2,%esi
  cmp    $0x3,%edi
  jle    L26
  lea    0x80(%r12),%r9d
  neg    %r12
  xor    %edx,%edx
  movslq %r9d,%r9
  lea    (%r14,%r12,4),%r8
  mov    %r9,%rax
  nopw   0x0(%rax,%rax,1)
L152:
  movslq -0x200(%r8,%rax,4),%rcx
  add    $0x1,%edx
  add    $0x4,%rax
  mov    %rcx,-0x4(%rax)
  cmp    %edx,%esi
  jg     L152
  lea    -0x1(%rsi),%edx
  xor    %ecx,%ecx
  cmp    $0x3,%edi
  lea    0x0(,%rdx,4),%rax
  cmovle %rcx,%rax
  add    $0x1,%rdx
  mov    $0x10,%ecx
  shl    $0x4,%rdx
  add    %r9,%rax
  cmp    $0x3,%edi
  cmovle %rcx,%rdx
  add    %rdx,%r14
  test   %r10d,%r10d
  je     L155
L160:
  mov    %r13d,%edx
  sar    $0x1f,%edx
  shr    $0x1e,%edx
  add    %edx,%r13d
  and    $0x3,%r13d
  sub    %edx,%r13d
  xor    %edx,%edx
  test   %r13d,%r13d
  jle    L27
  movslq %r13d,%rdx
  lea    0x4(%rsp),%rcx
  shl    $0x2,%rdx
  cmp    $0x8,%edx
  jae    L107
  test   $0x4,%dl
  jne    L105
  test   %edx,%edx
  jne    L64
L147:
  movslq 0x4(%rsp),%rdx
L27:
  mov    %rdx,(%rax)
L155:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L16
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L26:
  test   %r10d,%r10d
  je     L155
  lea    0x80(%r12),%eax
  cltq
  jmp    L160
  xchg   %ax,%ax
L107:
  mov    (%r14),%rsi
  lea    0x8(%rsp),%r8
  mov    %rsi,0x4(%rsp)
  mov    %edx,%esi
  mov    -0x8(%r14,%rsi,1),%rdi
  mov    %rdi,-0x8(%rcx,%rsi,1)
  sub    %r8,%rcx
  add    %ecx,%edx
  sub    %rcx,%r14
  and    $0xfffffff8,%edx
  cmp    $0x8,%edx
  jb     L147
  and    $0xfffffff8,%edx
  xor    %ecx,%ecx
L128:
  mov    %ecx,%esi
  add    $0x8,%ecx
  mov    (%r14,%rsi,1),%rdi
  mov    %rdi,(%r8,%rsi,1)
  cmp    %edx,%ecx
  jb     L128
  jmp    L147
L64:
  movzbl (%r14),%edx
  mov    %dl,0x4(%rsp)
  jmp    L147
L105:
  mov    (%r14),%esi
  mov    %edx,%edx
  mov    %esi,0x4(%rsp)
  mov    -0x4(%r14,%rdx,1),%esi
  mov    %esi,-0x4(%rcx,%rdx,1)
  jmp    L147
L16:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void SHAMD5DataWriteMultiple(uint32_t ui32Base, uint8_t *pui8DataSrc, uint32_t ui32DataLength) {
  uint32_t ui32Idx, ui32Count, ui32TempData = 0, ui32Lastword;
  uint8_t *ui8TempData;
  ;
  ui32Count = ui32DataLength / 64;
  for (ui32Idx = 0; ui32Idx < ui32Count; ui32Idx++) {
    SHAMD5DataWrite(ui32Base, pui8DataSrc);
    pui8DataSrc += 64;
  }
  ui32Count = ui32DataLength % 64;
  if (ui32Count) {
    while (((*((volatile unsigned long *)(ui32Base + 0x00000118))) & 0x00000002) == 0) {
    }
    ui32Count = ui32Count / 4;
    for (ui32Idx = 0; ui32Idx < ui32Count; ui32Idx++) {
      (*((volatile unsigned long *)(ui32Base + 0x00000080 + (ui32Idx * 4)))) = *((uint32_t *)pui8DataSrc);
      pui8DataSrc += 4;
    }
    ui32Count = ui32DataLength % 4;
    ui8TempData = (uint8_t *)&ui32TempData;
    if (ui32Count) {
      ui32Lastword = 0;
      if (ui32Idx) {
        ui32Lastword = (ui32Idx - 1) * 4;
      }
      for (ui32Idx = 0; ui32Idx < ui32Count; ui32Idx++) {
        *(ui8TempData + ui32Idx) = *(pui8DataSrc + ui32Idx);
      }
      (*((volatile unsigned long *)(ui32Base + 0x00000080 + ui32Lastword))) = ui32TempData;
    }
  }
}
```