user: Please show me the C implementation that matches the assembly code listed below:

```asm
<side_ripples>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %esi,-0x38(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movabs $0x1a1d232b23262b31,%rax
  movabs $0x710192310151d26,%rdx
  mov    %rax,-0x20(%rbp)
  mov    %rdx,-0x18(%rbp)
  movl   $0x0,-0x24(%rbp)
  jmp    L10
L68:
  mov    $0x0,%edi
  call   <fill@plt>
  movb   $0x0,-0x28(%rbp)
  jmp    L37
L67:
  movb   $0x0,-0x27(%rbp)
  jmp    L35
L13:
  movzbl -0x28(%rbp),%edx
  movzbl -0x27(%rbp),%eax
  shl    $0x2,%eax
  add    %edx,%eax
  cltq
  movzbl -0x20(%rbp,%rax,1),%eax
  mov    %al,-0x26(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,%edx
  movzbl -0x26(%rbp),%eax
  add    %edx,%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <totty_sin@plt>
  add    $0xc4,%eax
  movslq %eax,%rdx
  imul   $0x5397829d,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x4,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %al,-0x25(%rbp)
  movzbl -0x27(%rbp),%edx
  movzbl -0x25(%rbp),%ecx
  movzbl -0x28(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <setvoxel@plt>
  movzbl -0x27(%rbp),%edx
  movzbl -0x25(%rbp),%eax
  movzbl -0x28(%rbp),%esi
  mov    $0x7,%ecx
  sub    %esi,%ecx
  mov    %eax,%esi
  mov    %ecx,%edi
  call   <setvoxel@plt>
  movzbl -0x27(%rbp),%eax
  mov    $0x7,%edx
  sub    %eax,%edx
  movzbl -0x25(%rbp),%ecx
  movzbl -0x28(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <setvoxel@plt>
  movzbl -0x27(%rbp),%eax
  mov    $0x7,%edx
  sub    %eax,%edx
  movzbl -0x25(%rbp),%eax
  movzbl -0x28(%rbp),%esi
  mov    $0x7,%ecx
  sub    %esi,%ecx
  mov    %eax,%esi
  mov    %ecx,%edi
  call   <setvoxel@plt>
  movzbl -0x27(%rbp),%edx
  movzbl -0x25(%rbp),%eax
  mov    $0x7,%ecx
  sub    %eax,%ecx
  movzbl -0x28(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <setvoxel@plt>
  movzbl -0x27(%rbp),%eax
  movzbl -0x25(%rbp),%edx
  mov    $0x7,%ecx
  mov    %ecx,%esi
  sub    %edx,%esi
  movzbl -0x28(%rbp),%edx
  mov    $0x7,%ecx
  sub    %edx,%ecx
  mov    %eax,%edx
  mov    %ecx,%edi
  call   <setvoxel@plt>
  movzbl -0x27(%rbp),%eax
  mov    $0x7,%edx
  sub    %eax,%edx
  movzbl -0x25(%rbp),%eax
  mov    $0x7,%ecx
  sub    %eax,%ecx
  movzbl -0x28(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <setvoxel@plt>
  movzbl -0x27(%rbp),%eax
  mov    $0x7,%edx
  sub    %eax,%edx
  movzbl -0x25(%rbp),%eax
  mov    $0x7,%ecx
  sub    %eax,%ecx
  movzbl -0x28(%rbp),%esi
  mov    $0x7,%eax
  sub    %esi,%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <setvoxel@plt>
  movzbl -0x27(%rbp),%eax
  add    $0x1,%eax
  mov    %al,-0x27(%rbp)
L35:
  cmpb   $0x3,-0x27(%rbp)
  jbe    L13
  movzbl -0x28(%rbp),%eax
  add    $0x1,%eax
  mov    %al,-0x28(%rbp)
L37:
  cmpb   $0x3,-0x28(%rbp)
  jbe    L67
  mov    -0x38(%rbp),%eax
  mov    %eax,%edi
  call   <delay_ms@plt>
  addl   $0x4,-0x24(%rbp)
L10:
  mov    -0x34(%rbp),%eax
  shl    $0x2,%eax
  cmp    %eax,-0x24(%rbp)
  jl     L68
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L61
  call   <__stack_chk_fail@plt>
L61:
  leave
  ret
```

assistant: ```c
void side_ripples(int iterations, int delay) {
  unsigned char sqrt_LUT[] = {49, 43, 38, 35, 43, 35, 29, 26, 38, 29, 21, 16, 35, 25, 16, 7};
  unsigned char x, y, height, distance;
  int i;
  for (i = 0; i < iterations * 4; i += 4) {
    fill(0x00);
    for (x = 0; x < 4; x++)
      for (y = 0; y < 4; y++) {
        distance = sqrt_LUT[x + y * 4];
        height = (196 + totty_sin(distance + i)) / 49;
        setvoxel(x, height, y);
        setvoxel(7 - x, height, y);
        setvoxel(x, height, 7 - y);
        setvoxel(7 - x, height, 7 - y);
        setvoxel(x, 7 - height, y);
        setvoxel(7 - x, 7 - height, y);
        setvoxel(x, 7 - height, 7 - y);
        setvoxel(7 - x, 7 - height, 7 - y);
      }
    delay_ms(delay);
  }
}
```