user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<effect_mirror_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)
  mov    -0x34(%rbp),%eax
  imul   $0x3e8,%eax,%eax
  cltd
  idivl  -0x38(%rbp)
  mov    %eax,-0x24(%rbp)
  movl   $0x0,-0x28(%rbp)
  jmp    L4
L66:
  mov    $0x0,%edi
  call   <fill@plt>
  movb   $0x0,-0x2c(%rbp)
  jmp    L60
L37:
  movb   $0x0,-0x2b(%rbp)
  jmp    L52
L2:
  movzbl -0x2c(%rbp),%edx
  movzbl -0x2b(%rbp),%eax
  shl    $0x2,%eax
  add    %edx,%eax
  cltq
  movzbl -0x20(%rbp,%rax,1),%eax
  mov    %al,-0x2a(%rbp)
  mov    -0x28(%rbp),%eax
  mov    %eax,%edx
  movzbl -0x2a(%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,-0x29(%rbp)
  movzbl -0x29(%rbp),%edx
  movzbl -0x2b(%rbp),%ecx
  movzbl -0x2c(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <setvoxel@plt>
  movzbl -0x29(%rbp),%edx
  movzbl -0x2b(%rbp),%eax
  movzbl -0x2c(%rbp),%esi
  mov    $0x7,%ecx
  sub    %esi,%ecx
  mov    %eax,%esi
  mov    %ecx,%edi
  call   <setvoxel@plt>
  movzbl -0x29(%rbp),%edx
  movzbl -0x2b(%rbp),%eax
  mov    $0x7,%ecx
  sub    %eax,%ecx
  movzbl -0x2c(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <setvoxel@plt>
  movzbl -0x29(%rbp),%eax
  movzbl -0x2b(%rbp),%edx
  mov    $0x7,%ecx
  mov    %ecx,%esi
  sub    %edx,%esi
  movzbl -0x2c(%rbp),%edx
  mov    $0x7,%ecx
  sub    %edx,%ecx
  mov    %eax,%edx
  mov    %ecx,%edi
  call   <setvoxel@plt>
  movzbl -0x29(%rbp),%eax
  mov    $0x7,%edx
  sub    %eax,%edx
  movzbl -0x2b(%rbp),%ecx
  movzbl -0x2c(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <setvoxel@plt>
  movzbl -0x29(%rbp),%eax
  mov    $0x7,%edx
  sub    %eax,%edx
  movzbl -0x2b(%rbp),%eax
  movzbl -0x2c(%rbp),%esi
  mov    $0x7,%ecx
  sub    %esi,%ecx
  mov    %eax,%esi
  mov    %ecx,%edi
  call   <setvoxel@plt>
  movzbl -0x29(%rbp),%eax
  mov    $0x7,%edx
  sub    %eax,%edx
  movzbl -0x2b(%rbp),%eax
  mov    $0x7,%ecx
  sub    %eax,%ecx
  movzbl -0x2c(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <setvoxel@plt>
  movzbl -0x29(%rbp),%eax
  mov    $0x7,%edx
  sub    %eax,%edx
  movzbl -0x2b(%rbp),%eax
  mov    $0x7,%ecx
  sub    %eax,%ecx
  movzbl -0x2c(%rbp),%esi
  mov    $0x7,%eax
  sub    %esi,%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <setvoxel@plt>
  movzbl -0x2b(%rbp),%eax
  add    $0x1,%eax
  mov    %al,-0x2b(%rbp)
L52:
  cmpb   $0x3,-0x2b(%rbp)
  jbe    L2
  movzbl -0x2c(%rbp),%eax
  add    $0x1,%eax
  mov    %al,-0x2c(%rbp)
L60:
  cmpb   $0x3,-0x2c(%rbp)
  jbe    L37
  mov    -0x38(%rbp),%eax
  mov    %eax,%edi
  call   <delay_ms@plt>
  addl   $0x4,-0x28(%rbp)
L4:
  mov    -0x24(%rbp),%eax
  shl    $0x2,%eax
  cmp    %eax,-0x28(%rbp)
  jl     L66
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L53
  call   <__stack_chk_fail@plt>
L53:
  leave
  ret
```

assistant: ```c
void effect_mirror_ripples(int seconds, 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;
  int iterations = seconds * 1000 / delay;
  for (i = 0; i < iterations * 4; i += 4) {
    fill(0);
    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, y, height);
        setvoxel(7 - x, y, height);
        setvoxel(x, 7 - y, height);
        setvoxel(7 - x, 7 - y, height);
        setvoxel(x, y, 7 - height);
        setvoxel(7 - x, y, 7 - height);
        setvoxel(x, 7 - y, 7 - height);
        setvoxel(7 - x, 7 - y, 7 - height);
      }
    }
    delay_ms(delay);
  }
}
```