// File: disjukr[P]Tetris/Tetris.cc
// Function: Intro::Intro()
Intro::Intro() {
    Screen* screen = Console::GetScreen();
    int width = screen -> GetWidth();
    int height = screen -> GetHeight();
    int size = Tetromino::size * 2;
    for (int i = 0; i < numberOfParticle; ++i) {
        Tetromino* particle = pieceGenerator.Get();
        particle -> x = random.Get(0, width - size);
        particle -> y = random.Get(0, height) - (height + size);
        int rotate = random.Get(0, 4);
        while (rotate > 0) {
            --rotate;
            particle -> RotateCW();
        }
        particles[i] = particle;
        ResetParticle(i);
    }
    string t = "";
    t += "||||||||    ||||||||    ||||||||    |||||||     ||||     |||||||";
    t += "||||||||    ||||||||    ||||||||    ||||||||    ||||    ||||||||";
    t += "   ||       ||             ||       ||    ||     ||     ||||    ";
    t += "   ||       ||||||         ||       ||    ||     ||      |||||| ";
    t += "   ||       ||             ||       |||||||      ||         ||||";
    t += "  ||||      ||||||||      ||||      |||  |||    ||||    ||||||||";
    t += "  ||||      ||||||||      ||||      |||  |||    ||||    ||||||| ";
    for (int i = 0; i < titleTableSize; ++i)
        titleTable[i] = t[i] == '|';
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x78(%rbp)
callq 0x6f60
movq -0x78(%rbp), %rdi
leaq 0xe161(%rip), %rax      # 0x11888
movq %rax, (%rdi)
addq $0x18, %rdi
movq %rdi, -0x70(%rbp)
callq 0x6f90
jmp 0x3739
movq -0x78(%rbp), %rdi
addq $0x30, %rdi
movq %rdi, -0x80(%rbp)
callq 0x9260
jmp 0x374c
callq 0xb170
movq %rax, -0x88(%rbp)
jmp 0x375a
movq -0x88(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0xabb0
movl %eax, -0x8c(%rbp)
jmp 0x3776
movl -0x8c(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x20(%rbp), %rdi
callq 0xabc0
movl %eax, -0x90(%rbp)
jmp 0x3790
movl -0x90(%rbp), %eax
movl %eax, -0x28(%rbp)
movl $0x8, -0x2c(%rbp)
movl $0x0, -0x30(%rbp)
cmpl $0xa, -0x30(%rbp)
jge 0x38d4
movq -0x78(%rbp), %rdi
addq $0x30, %rdi
callq 0x93a0
movq %rax, -0x98(%rbp)
jmp 0x37c7
movq -0x78(%rbp), %rdi
movq -0x98(%rbp), %rax
movq %rax, -0x38(%rbp)
addq $0x18, %rdi
movl -0x24(%rbp), %edx
movl -0x2c(%rbp), %eax
subl %eax, %edx
xorl %esi, %esi
callq 0x8f80
movl %eax, -0x9c(%rbp)
jmp 0x37f1
movq -0x78(%rbp), %rdi
movl -0x9c(%rbp), %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0xc(%rax)
addq $0x18, %rdi
movl -0x28(%rbp), %edx
xorl %esi, %esi
callq 0x8f80
movl %eax, -0xa0(%rbp)
jmp 0x3818
movq -0x78(%rbp), %rdi
movl -0xa0(%rbp), %ecx
movl -0x28(%rbp), %eax
movl -0x2c(%rbp), %edx
addl %edx, %eax
subl %eax, %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x10(%rax)
addq $0x18, %rdi
xorl %esi, %esi
movl $0x4, %edx
callq 0x8f80
movl %eax, -0xa4(%rbp)
jmp 0x384b
movl -0xa4(%rbp), %eax
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x3c(%rbp)
jle 0x38a6
movl -0x3c(%rbp), %eax
decl %eax
movl %eax, -0x3c(%rbp)
movq -0x38(%rbp), %rdi
movq (%rdi), %rax
movq 0x18(%rax), %rax
callq *%rax
jmp 0x3871
jmp 0x3854
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0x3a29
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0x3a20
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
jmp 0x3a17
movq -0x78(%rbp), %rdi
movq -0x38(%rbp), %rcx
movslq -0x30(%rbp), %rax
movq %rcx, 0x80(%rdi,%rax,8)
movl -0x30(%rbp), %esi
callq 0x3a40
jmp 0x38c4
jmp 0x38c6
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x37a7
leaq -0x61(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0x3280
movq -0xb0(%rbp), %rdx
leaq 0x890d(%rip), %rsi      # 0xc1ff
leaq -0x60(%rbp), %rdi
callq 0x31d0
jmp 0x38fd
leaq -0x61(%rbp), %rdi
callq 0x3170
leaq 0x8830(%rip), %rsi      # 0xc13d
leaq -0x60(%rbp), %rdi
callq 0x3130
jmp 0x3918
leaq 0x885f(%rip), %rsi      # 0xc17e
leaq -0x60(%rbp), %rdi
callq 0x3130
jmp 0x392a
leaq 0x888e(%rip), %rsi      # 0xc1bf
leaq -0x60(%rbp), %rdi
callq 0x3130
jmp 0x393c
leaq 0x88bd(%rip), %rsi      # 0xc200
leaq -0x60(%rbp), %rdi
callq 0x3130
jmp 0x394e
leaq 0x88ec(%rip), %rsi      # 0xc241
leaq -0x60(%rbp), %rdi
callq 0x3130
jmp 0x3960
leaq 0x891b(%rip), %rsi      # 0xc282
leaq -0x60(%rbp), %rdi
callq 0x3130
jmp 0x3972
leaq 0x894a(%rip), %rsi      # 0xc2c3
leaq -0x60(%rbp), %rdi
callq 0x3130
jmp 0x3984
movl $0x0, -0x68(%rbp)
cmpl $0x1c0, -0x68(%rbp)     # imm = 0x1C0
jge 0x3a05
movslq -0x68(%rbp), %rsi
leaq -0x60(%rbp), %rdi
callq 0x3290
movq %rax, -0xb8(%rbp)
jmp 0x39aa
movq -0x78(%rbp), %rax
movq -0xb8(%rbp), %rcx
movsbl (%rcx), %ecx
cmpl $0x7c, %ecx
sete %dl
movslq -0x68(%rbp), %rcx
andb $0x1, %dl
movb %dl, 0x17a(%rax,%rcx)
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
jmp 0x398b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x61(%rbp), %rdi
callq 0x3170
jmp 0x3a17
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x10(%rbp)
movl %eax, -0x14(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x30c0
jmp 0x3a17
leaq -0x60(%rbp), %rdi
callq 0x30c0
addq $0xc0, %rsp
popq %rbp
retq
movq -0x80(%rbp), %rdi
callq 0x92f0
movq -0x70(%rbp), %rdi
callq 0x6ff0
movq -0x78(%rbp), %rdi
callq 0x7530
movq -0x10(%rbp), %rdi
callq 0x3270
nopl (%rax,%rax)