user: Converte this assembly snippet into its equivalent C code:

```asm
<long_demo>:
  endbr64
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <FS460_play_begin@plt>
  lea    0x4(%rsp),%rdi
  call   <FS460_get_tv_active_lines@plt>
  mov    $0x11,%r9d
  mov    $0x0,%r8d
  mov    0x4(%rsp),%ecx
  mov    $0x2d0,%edx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <set@plt>
  mov    $0x11,%r9d
  mov    $0x0,%r8d
  mov    0x4(%rsp),%ecx
  mov    $0x2d0,%edx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <set@plt>
  mov    $0x11,%r9d
  mov    $0x0,%r8d
  mov    0x4(%rsp),%ecx
  mov    $0x2d0,%edx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <set@plt>
  mov    $0x11,%r9d
  mov    $0x0,%r8d
  mov    0x4(%rsp),%ecx
  mov    $0x2d0,%edx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <set@plt>
  mov    $0x1,%ecx
  mov    $0x1e,%edx
  mov    $0x7f,%esi
  mov    $0x0,%edi
  call   <fade@plt>
  mov    $0x1e,%edi
  call   <pause@plt>
  mov    $0x1f,%r8d
  mov    $0x0,%ecx
  mov    $0xfffffd30,%edx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <move@plt>
  mov    $0x1f,%r8d
  mov    $0x0,%ecx
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    $0x2d0,%edi
  call   <move@plt>
  mov    $0x1e,%edi
  call   <pause@plt>
  mov    0x4(%rsp),%ecx
  sub    $0x8,%rsp
  push   $0x1f
  lea    -0x3c(%rcx),%eax
  push   %rax
  push   $0x276
  mov    $0x3c,%r9d
  mov    $0x5a,%r8d
  mov    $0x2d0,%edx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <scale@plt>
  add    $0x20,%rsp
  mov    $0x1e,%edi
  call   <pause@plt>
  mov    0x4(%rsp),%ecx
  lea    -0x2d(%rcx),%r8d
  mov    %ecx,%eax
  sub    $0x3c,%eax
  cmovns %eax,%r8d
  sar    $0x4,%r8d
  mov    $0x5a,%edx
  mov    $0x3c,%esi
  mov    $0x5a,%edi
  call   <move@plt>
  mov    $0xf,%edi
  call   <pause@plt>
  mov    0x4(%rsp),%eax
  lea    -0x2d(%rax),%r8d
  mov    %eax,%edx
  sub    $0x3c,%edx
  cmovns %edx,%r8d
  mov    $0x78,%esi
  sub    %eax,%esi
  sar    $0x4,%r8d
  mov    $0x3c,%ecx
  mov    $0x5a,%edx
  mov    $0x5a,%edi
  call   <move@plt>
  mov    $0x1e,%edi
  call   <pause@plt>
  mov    $0x69,%r8d
  mov    0x4(%rsp),%ecx
  mov    $0x2d0,%edx
  mov    $0x3c,%esi
  mov    $0x5a,%edi
  call   <move@plt>
  mov    0x4(%rsp),%eax
  lea    0x3(%rax),%r9d
  test   %eax,%eax
  cmovns %eax,%r9d
  sub    $0x8,%rsp
  push   $0x1e
  lea    (%rax,%rax,2),%edx
  lea    0x3(%rdx),%eax
  test   %edx,%edx
  cmovns %edx,%eax
  sar    $0x2,%eax
  push   %rax
  push   $0x21c
  sar    $0x2,%r9d
  mov    $0xb4,%r8d
  mov    $0x0,%ecx
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <scale@plt>
  mov    0x24(%rsp),%eax
  add    $0x18,%rsp
  lea    (%rax,%rax,2),%edx
  lea    0x3(%rdx),%ecx
  test   %edx,%edx
  cmovns %edx,%ecx
  sar    $0x2,%ecx
  lea    0x3(%rax),%esi
  test   %eax,%eax
  cmovns %eax,%esi
  sar    $0x2,%esi
  push   $0x1e
  push   %rax
  push   $0x2d0
  mov    $0x0,%r9d
  mov    $0x0,%r8d
  mov    $0x21c,%edx
  mov    $0xb4,%edi
  call   <scale@plt>
  add    $0x20,%rsp
  mov    $0x1e,%edi
  call   <pause@plt>
  mov    0x4(%rsp),%ecx
  sub    $0x8,%rsp
  push   $0xf
  lea    (%rcx,%rcx,4),%edx
  add    %edx,%edx
  movslq %edx,%rax
  imul   $0x2aaaaaab,%rax,%rax
  sar    $0x22,%rax
  sar    $0x1f,%edx
  sub    %edx,%eax
  add    $0x64,%eax
  push   %rax
  push   $0x294
  mov    $0x64,%r9d
  mov    $0x168,%r8d
  mov    $0x2d0,%edx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <scale@plt>
  add    $0x20,%rsp
  mov    $0x1e,%edi
  call   <pause@plt>
  mov    0x4(%rsp),%eax
  lea    (%rax,%rax,4),%eax
  add    %eax,%eax
  movslq %eax,%rcx
  imul   $0x2aaaaaab,%rcx,%rcx
  sar    $0x22,%rcx
  sar    $0x1f,%eax
  sub    %eax,%ecx
  add    $0x64,%ecx
  sub    $0x8,%rsp
  push   $0xf
  push   $0x12c
  push   $0x12c
  mov    $0x12c,%r9d
  mov    $0x12c,%r8d
  mov    $0x294,%edx
  mov    $0x64,%esi
  mov    $0x168,%edi
  call   <scale@plt>
  add    $0x18,%rsp
  push   $0xf
  mov    0x14(%rsp),%edx
  movslq %edx,%rax
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  sar    $0x1f,%edx
  sub    %edx,%eax
  add    $0xf0,%eax
  push   %rax
  push   $0x168
  mov    $0xf0,%r9d
  mov    $0x78,%r8d
  mov    $0x12c,%ecx
  mov    $0x12c,%edx
  mov    $0x12c,%esi
  mov    $0x12c,%edi
  call   <scale@plt>
  add    $0x20,%rsp
  mov    $0x1e,%edi
  call   <pause@plt>
  mov    0x4(%rsp),%eax
  movslq %eax,%rcx
  imul   $0x55555556,%rcx,%rcx
  shr    $0x20,%rcx
  sar    $0x1f,%eax
  sub    %eax,%ecx
  add    $0xf0,%ecx
  sub    $0x8,%rsp
  push   $0xf
  push   $0x64
  push   $0x64
  mov    $0x64,%r9d
  mov    $0x64,%r8d
  mov    $0x168,%edx
  mov    $0xf0,%esi
  mov    $0x78,%edi
  call   <scale@plt>
  mov    0x24(%rsp),%edx
  add    $0x18,%rsp
  lea    (%rdx,%rdx,1),%eax
  movslq %eax,%r9
  imul   $0x66666667,%r9,%r9
  sar    $0x21,%r9
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  push   $0xf
  add    %edx,%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x21,%rdx
  sar    $0x1f,%eax
  sub    %eax,%edx
  push   %rdx
  push   $0x1b0
  sub    %ecx,%r9d
  mov    $0x120,%r8d
  mov    $0x64,%ecx
  mov    $0x64,%edx
  mov    $0x64,%esi
  mov    $0x64,%edi
  call   <scale@plt>
  add    $0x20,%rsp
  mov    $0x1e,%edi
  call   <pause@plt>
  mov    0x4(%rsp),%eax
  lea    (%rax,%rax,1),%edx
  add    %edx,%eax
  movslq %eax,%rcx
  imul   $0x66666667,%rcx,%rcx
  sar    $0x21,%rcx
  sar    $0x1f,%eax
  sub    %eax,%ecx
  movslq %edx,%rsi
  imul   $0x66666667,%rsi,%rsi
  sar    $0x21,%rsi
  sar    $0x1f,%edx
  sub    %edx,%esi
  sub    $0x8,%rsp
  push   $0xf
  push   %rcx
  push   $0x168
  mov    %esi,%r9d
  mov    $0x168,%r8d
  mov    $0x1b0,%edx
  mov    $0x120,%edi
  call   <scale@plt>
  mov    0x24(%rsp),%eax
  lea    (%rax,%rax,2),%edx
  lea    0x3(%rdx),%ecx
  add    $0x18,%rsp
  test   %edx,%edx
  cmovns %edx,%ecx
  sar    $0x2,%ecx
  lea    0x3(%rax),%esi
  test   %eax,%eax
  cmovns %eax,%esi
  sar    $0x2,%esi
  push   $0xf
  push   %rcx
  push   $0x21c
  mov    %esi,%r9d
  mov    $0xb4,%r8d
  mov    $0x168,%edx
  mov    $0x168,%edi
  call   <scale@plt>
  add    $0x20,%rsp
  mov    $0x1e,%edi
  call   <pause@plt>
  mov    0x4(%rsp),%eax
  lea    (%rax,%rax,2),%edx
  lea    0x3(%rdx),%ecx
  test   %edx,%edx
  cmovns %edx,%ecx
  sar    $0x2,%ecx
  lea    0x3(%rax),%esi
  test   %eax,%eax
  cmovns %eax,%esi
  sar    $0x2,%esi
  sub    $0x8,%rsp
  push   $0xf
  push   %rcx
  push   $0x168
  mov    %esi,%r9d
  mov    $0x168,%r8d
  mov    $0x21c,%edx
  mov    $0xb4,%edi
  call   <scale@plt>
  mov    0x24(%rsp),%eax
  lea    (%rax,%rax,4),%edx
  movslq %edx,%rcx
  imul   $0x2aaaaaab,%rcx,%rcx
  shr    $0x20,%rcx
  sar    $0x1f,%edx
  sub    %edx,%ecx
  movslq %eax,%rsi
  imul   $0x2aaaaaab,%rsi,%rsi
  shr    $0x20,%rsi
  sar    $0x1f,%eax
  sub    %eax,%esi
  add    $0x18,%rsp
  push   $0xf
  push   %rcx
  push   $0x258
  mov    %esi,%r9d
  mov    $0x78,%r8d
  mov    $0x168,%edx
  mov    $0x168,%edi
  call   <scale@plt>
  add    $0x20,%rsp
  mov    $0x1e,%edi
  call   <pause@plt>
  mov    0x4(%rsp),%eax
  mov    %eax,%r9d
  shr    $0x1f,%r9d
  add    %eax,%r9d
  sar    %r9d
  lea    (%rax,%rax,4),%edx
  movslq %edx,%rcx
  imul   $0x2aaaaaab,%rcx,%rcx
  shr    $0x20,%rcx
  sar    $0x1f,%edx
  sub    %edx,%ecx
  movslq %eax,%rsi
  imul   $0x2aaaaaab,%rsi,%rsi
  shr    $0x20,%rsi
  sar    $0x1f,%eax
  sub    %eax,%esi
  sub    $0x8,%rsp
  push   $0xf
  push   %r9
  push   $0x258
  mov    $0x78,%r8d
  mov    $0x258,%edx
  mov    $0x78,%edi
  call   <scale@plt>
  mov    0x24(%rsp),%eax
  mov    %eax,%esi
  shr    $0x1f,%esi
  add    %eax,%esi
  sar    %esi
  add    $0x18,%rsp
  push   $0xf
  push   %rax
  push   $0x2d0
  mov    $0x0,%r9d
  mov    $0x0,%r8d
  mov    %esi,%ecx
  mov    $0x2d0,%edx
  mov    $0x0,%edi
  call   <scale@plt>
  add    $0x20,%rsp
  mov    $0x1e,%edi
  call   <pause@plt>
  push   $0x0
  push   $0x3c
  push   $0x7f
  push   $0x40
  mov    $0x40,%r9d
  mov    $0x0,%r8d
  mov    0x24(%rsp),%ecx
  mov    $0x2d0,%edx
  mov    $0x0,%esi
  mov    $0x0,%edi
  call   <wipe@plt>
  add    $0x20,%rsp
  mov    $0x1e,%edi
  call   <pause@plt>
  push   $0x1
  push   $0x3c
  push   $0x40
  push   $0x7f
  mov    $0x0,%r9d
  mov    $0x40,%r8d
  mov    $0x0,%ecx
  mov    $0x2d0,%edx
  mov    0x24(%rsp),%esi
  mov    $0x0,%edi
  call   <wipe@plt>
  add    $0x20,%rsp
  mov    $0x1e,%edi
  call   <pause@plt>
  mov    $0x8,%ecx
  mov    $0x1e,%edx
  mov    $0x0,%esi
  mov    $0x7f,%edi
  call   <shutters@plt>
  mov    $0x3c,%edi
  call   <pause@plt>
  mov    $0x1,%edi
  call   <FS460_play_run@plt>
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  add    $0x18,%rsp
  ret
L7:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void long_demo(void) {
  int full_height;
  FS460_play_begin();
  FS460_get_tv_active_lines(&full_height);
  set(0, 0, 720, full_height, 0, 0x0001 | 0x0010);
  set(0, 0, 720, full_height, 0, 0x0001 | 0x0010);
  set(0, 0, 720, full_height, 0, 0x0001 | 0x0010);
  set(0, 0, 720, full_height, 0, 0x0001 | 0x0010);
  fade(0, 0x7F, 30, 1);
  pause(30);
  move(0, 0, -720, 0, 31);
  move(720, 0, 0, 0, 31);
  pause(30);
  scale(0, 0, 720, full_height, 90, 60, 630, full_height - 60, 31);
  pause(30);
  move(90, 60, 90, full_height, (full_height - 60) / 16);
  pause(15);
  move(90, -full_height + 120, 90, 60, (full_height - 60) / 16);
  pause(30);
  move(90, 60, 720, full_height, 105);
  scale(0, 0, 0, 0, 180, full_height / 4, 540, full_height * 3 / 4, 30);
  scale(180, full_height / 4, 540, full_height * 3 / 4, 0, 0, 720, full_height, 30);
  pause(30);
  scale(0, 0, 720, full_height, 360, 100, 660, 100 + full_height * 10 / 24, 15);
  pause(30);
  scale(360, 100, 660, 100 + full_height * 10 / 24, 300, 300, 300, 300, 15);
  scale(300, 300, 300, 300, 120, 240, 360, 240 + full_height / 3, 15);
  pause(30);
  scale(120, 240, 360, 240 + full_height / 3, 100, 100, 100, 100, 15);
  scale(100, 100, 100, 100, 288, full_height * 2 / 5, 432, full_height * 3 / 5, 15);
  pause(30);
  scale(288, full_height * 2 / 5, 432, full_height * 3 / 5, 360, full_height * 2 / 5, 360, full_height * 3 / 5, 15);
  scale(360, full_height / 4, 360, full_height * 3 / 4, 180, full_height / 4, 540, full_height * 3 / 4, 15);
  pause(30);
  scale(180, full_height / 4, 540, full_height * 3 / 4, 360, full_height / 4, 360, full_height * 3 / 4, 15);
  scale(360, full_height * 1 / 6, 360, full_height * 5 / 6, 120, full_height * 1 / 6, 600, full_height * 5 / 6, 15);
  pause(30);
  scale(120, full_height * 1 / 6, 600, full_height * 5 / 6, 120, full_height / 2, 600, full_height / 2, 15);
  scale(0, full_height / 2, 720, full_height / 2, 0, 0, 720, full_height, 15);
  pause(30);
  wipe(0, 0, 720, full_height, 0x00, 0x40, 0x40, 0x7F, 60, 0);
  pause(30);
  wipe(0, full_height, 720, 0, 0x40, 0x00, 0x7F, 0x40, 60, 1);
  pause(30);
  shutters(0x7F, 0, 30, 8);
  pause(60);
  FS460_play_run(0x0001);
}
```