user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<side_ripples>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  movdqa D6(%rip),%xmm0
  mov    %esi,0x24(%rsp)
  lea    0x30(%rsp),%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    0x0(,%rdi,4),%eax
  movl   $0x0,0x1c(%rsp)
  mov    %eax,0x20(%rsp)
  mov    %rbx,0x28(%rsp)
  movaps %xmm0,0x30(%rsp)
  test   %eax,%eax
  jle    L41
  nopl   0x0(%rax,%rax,1)
L9:
  xor    %edi,%edi
  call   <fill@plt>
  movzbl 0x1c(%rsp),%eax
  mov    $0x31,%edi
  movq   $0x0,0x10(%rsp)
  mov    %al,0x1b(%rsp)
  mov    0x28(%rsp),%rax
  mov    %rax,0x8(%rsp)
L5:
  mov    0x10(%rsp),%rax
  mov    $0x7,%ebx
  xor    %ecx,%ecx
  mov    %eax,%ebp
  sub    %eax,%ebx
L28:
  add    0x1b(%rsp),%dil
  mov    %ecx,%r13d
  mov    %rcx,(%rsp)
  mov    $0x7,%r15d
  movzbl %dil,%edi
  mov    $0x7,%r14d
  call   <totty_sin@plt>
  mov    %r13d,%edx
  mov    %ebp,%edi
  add    $0xc4,%eax
  movslq %eax,%r12
  sar    $0x1f,%eax
  imul   $0x5397829d,%r12,%r12
  sar    $0x24,%r12
  sub    %eax,%r12d
  movzbl %r12b,%r12d
  mov    %r12d,%esi
  sub    %r12d,%r14d
  call   <setvoxel@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebx,%edi
  call   <setvoxel@plt>
  mov    (%rsp),%rcx
  mov    %r12d,%esi
  mov    %ebp,%edi
  sub    %ecx,%r15d
  mov    %r15d,%edx
  call   <setvoxel@plt>
  mov    %r15d,%edx
  mov    %r12d,%esi
  mov    %ebx,%edi
  call   <setvoxel@plt>
  mov    %r13d,%edx
  mov    %r14d,%esi
  mov    %ebp,%edi
  call   <setvoxel@plt>
  mov    %r13d,%edx
  mov    %r14d,%esi
  mov    %ebx,%edi
  call   <setvoxel@plt>
  mov    %r15d,%edx
  mov    %r14d,%esi
  mov    %ebp,%edi
  call   <setvoxel@plt>
  mov    %r15d,%edx
  mov    %r14d,%esi
  mov    %ebx,%edi
  call   <setvoxel@plt>
  mov    (%rsp),%rcx
  add    $0x1,%rcx
  cmp    $0x4,%rcx
  je     L25
  mov    0x8(%rsp),%rax
  movzbl (%rax,%rcx,4),%edi
  jmp    L28
  nopl   0x0(%rax)
L25:
  addq   $0x1,0x10(%rsp)
  mov    0x10(%rsp),%rax
  addq   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%rbx
  cmp    $0x4,%rax
  je     L22
  movzbl (%rbx),%edi
  jmp    L5
  nopl   0x0(%rax)
L22:
  mov    0x24(%rsp),%edi
  call   <delay_ms@plt>
  addl   $0x4,0x1c(%rsp)
  mov    0x1c(%rsp),%eax
  cmp    %eax,0x20(%rsp)
  jg     L9
L41:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L0
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L0:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D6
type_infered: byte[16]

tool: {"D6": [0x31,0x2b,0x26,0x23,0x2b,0x23,0x1d,0x1a,0x26,0x1d,0x15,0x10,0x23,0x19,0x10,0x07]}

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