user: 请从给定的汇编指令推导出C源代码：

```asm
<effect_wormsqueeze>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %esi,-0x38(%rbp)
  mov    %edx,-0x3c(%rbp)
  mov    %ecx,-0x40(%rbp)
  mov    %r8d,-0x44(%rbp)
  movl   $0x0,-0x14(%rbp)
  mov    -0x40(%rbp),%eax
  imul   $0x3e8,%eax,%eax
  cltd
  idivl  -0x44(%rbp)
  mov    %eax,-0x10(%rbp)
  cmpl   $0xffffffff,-0x3c(%rbp)
  jne    L108
  movl   $0x7,-0x14(%rbp)
L108:
  mov    $0x9,%eax
  sub    -0x34(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  idivl  -0xc(%rbp)
  mov    %edx,-0x28(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  idivl  -0xc(%rbp)
  mov    %edx,-0x24(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L32
L103:
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x55555556,%rdx,%rdx
  shr    $0x20,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  mov    %edx,%ecx
  add    %ecx,%ecx
  add    %edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  lea    -0x1(%rdx),%eax
  mov    %eax,-0x8(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x55555556,%rdx,%rdx
  shr    $0x20,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  mov    %edx,%ecx
  add    %ecx,%ecx
  add    %edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  lea    -0x1(%rdx),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x28(%rbp),%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  jle    L73
  mov    -0x28(%rbp),%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0xc(%rbp)
  jle    L73
  mov    -0x8(%rbp),%eax
  add    %eax,-0x28(%rbp)
L73:
  mov    -0x24(%rbp),%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  jle    L31
  mov    -0x24(%rbp),%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  cmp    %eax,-0xc(%rbp)
  jle    L31
  mov    -0x4(%rbp),%eax
  add    %eax,-0x24(%rbp)
L31:
  mov    -0x3c(%rbp),%edx
  mov    -0x38(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <shift@plt>
  movl   $0x0,-0x1c(%rbp)
  jmp    L7
L131:
  movl   $0x0,-0x18(%rbp)
  jmp    L106
L36:
  cmpl   $0x3,-0x38(%rbp)
  jne    L58
  mov    -0x24(%rbp),%edx
  mov    -0x18(%rbp),%eax
  lea    (%rdx,%rax,1),%esi
  mov    -0x28(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    %ecx,%edi
  call   <setvoxel@plt>
L58:
  cmpl   $0x2,-0x38(%rbp)
  jne    L50
  mov    -0x24(%rbp),%edx
  mov    -0x18(%rbp),%eax
  add    %eax,%edx
  mov    -0x28(%rbp),%ecx
  mov    -0x1c(%rbp),%eax
  add    %eax,%ecx
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  mov    %ecx,%edi
  call   <setvoxel@plt>
L50:
  cmpl   $0x1,-0x38(%rbp)
  jne    L101
  mov    -0x28(%rbp),%edx
  mov    -0x18(%rbp),%eax
  add    %eax,%edx
  mov    -0x24(%rbp),%ecx
  mov    -0x1c(%rbp),%eax
  add    %eax,%ecx
  mov    -0x14(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <setvoxel@plt>
L101:
  addl   $0x1,-0x18(%rbp)
L106:
  mov    -0x18(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L36
  addl   $0x1,-0x1c(%rbp)
L7:
  mov    -0x1c(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L131
  mov    -0x44(%rbp),%eax
  mov    %eax,%edi
  call   <delay_ms@plt>
  addl   $0x1,-0x20(%rbp)
L32:
  mov    -0x20(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jl     L103
  nop
  nop
  leave
  ret
```

assistant: ```c
void effect_wormsqueeze(int size, int axis, int direction, int seconds, int delay) {
  int x, y, i, j, k, dx, dy;
  int cube_size;
  int origin = 0;
  int iterations = seconds * 1000 / delay;
  if (direction == -1)
    origin = 7;
  cube_size = 8 - (size - 1);
  x = rand() % cube_size;
  y = rand() % cube_size;
  for (i = 0; i < iterations; i++) {
    dx = ((rand() % 3) - 1);
    dy = ((rand() % 3) - 1);
    if ((x + dx) > 0 && (x + dx) < cube_size)
      x += dx;
    if ((y + dy) > 0 && (y + dy) < cube_size)
      y += dy;
    shift(axis, direction);
    for (j = 0; j < size; j++) {
      for (k = 0; k < size; k++) {
        if (axis == 3)
          setvoxel(x + j, y + k, origin);
        if (axis == 2)
          setvoxel(x + j, origin, y + k);
        if (axis == 1)
          setvoxel(origin, y + j, x + k);
      }
    }
    delay_ms(delay);
  }
}
```