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

```asm
<SHAMD5DataWriteMultiple>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x28(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x20(%rbp)
  mov    -0x28(%rbp),%eax
  lea    0x3f(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x6,%eax
  mov    %eax,-0x14(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L109
L21:
  mov    -0x30(%rbp),%rdx
  mov    -0x24(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <SHAMD5DataWrite@plt>
  addq   $0x100,-0x30(%rbp)
  addl   $0x1,-0x1c(%rbp)
L109:
  mov    -0x1c(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L21
  mov    -0x28(%rbp),%eax
  cltd
  shr    $0x1a,%edx
  add    %edx,%eax
  and    $0x3f,%eax
  sub    %edx,%eax
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  je     L71
  nop
L33:
  mov    -0x24(%rbp),%eax
  add    $0x118,%eax
  cltq
  mov    (%rax),%rax
  and    $0x2,%eax
  test   %rax,%rax
  je     L33
  mov    -0x14(%rbp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x2,%eax
  mov    %eax,-0x14(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L70
L43:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  mov    -0x24(%rbp),%edx
  lea    0x80(%rdx),%ecx
  mov    -0x1c(%rbp),%edx
  shl    $0x2,%edx
  add    %ecx,%edx
  movslq %edx,%rdx
  cltq
  mov    %rax,(%rdx)
  addq   $0x10,-0x30(%rbp)
  addl   $0x1,-0x1c(%rbp)
L70:
  mov    -0x1c(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L43
  mov    -0x28(%rbp),%eax
  cltd
  shr    $0x1e,%edx
  add    %edx,%eax
  and    $0x3,%eax
  sub    %edx,%eax
  mov    %eax,-0x14(%rbp)
  lea    -0x20(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  je     L71
  movl   $0x0,-0x18(%rbp)
  cmpl   $0x0,-0x1c(%rbp)
  je     L3
  mov    -0x1c(%rbp),%eax
  sub    $0x1,%eax
  shl    $0x2,%eax
  mov    %eax,-0x18(%rbp)
L3:
  movl   $0x0,-0x1c(%rbp)
  jmp    L28
L80:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    -0x1c(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x10(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x1c(%rbp)
L28:
  mov    -0x1c(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L80
  mov    -0x20(%rbp),%eax
  mov    -0x24(%rbp),%edx
  lea    0x80(%rdx),%ecx
  mov    -0x18(%rbp),%edx
  add    %ecx,%edx
  movslq %edx,%rdx
  cltq
  mov    %rax,(%rdx)
L71:
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L56
  call   <__stack_chk_fail@plt>
L56:
  leave
  ret
```

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