// File: /workspace/github_cpp_makefile_star2_O2/disjukr[P]Tetris/Tetris.cc
// Function: Tetris::Render()
void Tetris::Render() {
    stage.Render(*currentPiece, true);
    this -> RenderPieceQueue();
    this -> RenderHoldPiece();
    int xOffset = 2;
    int xGap = 1;
    int ceilOffset = 1;
    int yOffset = ceilOffset + 1;
    Screen* mainScreen = Console::GetScreen();
    Screen* stageScreen = stage.GetScreen();
    mainScreen -> Clear(
        ' ', ColorUtil::GetComplementary(backgroundColor), backgroundColor);
    mainScreen -> RenderScreen(*holdPieceScreen, xOffset, ceilOffset);
    xOffset += holdPieceScreen -> GetWidth() + xGap;
    mainScreen -> RenderScreen(*stageScreen, xOffset, ceilOffset);
    xOffset += stageScreen -> GetWidth() + xGap;
    mainScreen -> RenderScreen(*queueScreen, xOffset, ceilOffset);
    xOffset += queueScreen -> GetWidth() + xGap;
    // statistics
    mainScreen -> WriteLine("STATISTICS", xOffset, ceilOffset);
    mainScreen -> FillLine(WHITE, xOffset, ceilOffset, 10, true);
    mainScreen -> FillLine(BLACK, xOffset, ceilOffset, 10, false);
    ++xOffset;
    mainScreen -> WriteLine("score:", xOffset, ++yOffset);
    mainScreen -> WriteLine(
        to_string(statistics.score), xOffset + 7, yOffset);
    mainScreen -> WriteLine("level:", xOffset, ++yOffset);
    mainScreen -> WriteLine(
        to_string(statistics.level), xOffset + 7, yOffset);
    ++yOffset;
    int valueOffset = xOffset + 8;
    mainScreen -> WriteLine("single:", xOffset, ++yOffset);
    mainScreen -> WriteLine(
        to_string(statistics._single), valueOffset, yOffset);
    mainScreen -> WriteLine("double:", xOffset, ++yOffset);
    mainScreen -> WriteLine(
        to_string(statistics._double), valueOffset, yOffset);
    mainScreen -> WriteLine("triple:", xOffset, ++yOffset);
    mainScreen -> WriteLine(
        to_string(statistics._triple), valueOffset, yOffset);
    mainScreen -> WriteLine("tetris:", xOffset, ++yOffset);
    mainScreen -> WriteLine(
        to_string(statistics._tetris), valueOffset, yOffset);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rdi, %rbx
addq $0x38, %rdi
movq 0x420(%rbx), %rsi
pushq $0x1
popq %r15
movl %r15d, %edx
callq 0x4690
movq %rbx, %rdi
callq 0x46ce
movq %rbx, %rdi
callq 0x47ec
callq 0x6580
movq %rax, %r14
movq 0x3a8(%rbx), %r13
movl 0x3b0(%rbx), %edi
callq 0x4f3a
movl 0x3b0(%rbx), %ecx
pushq $0x20
popq %rsi
movq %r14, %rdi
movl %eax, %edx
callq 0x64ec
movq 0x3c0(%rbx), %rsi
pushq $0x2
popq %rdx
movq %r14, %rdi
movl %r15d, %ecx
callq 0x640a
movq 0x3c0(%rbx), %rdi
callq 0x62aa
movl %eax, %r12d
leal 0x3(%r12), %edx
movq %r14, %rdi
movq %r13, %rsi
movl %r15d, %ecx
callq 0x640a
movq %r13, %rdi
callq 0x62aa
movl %eax, %r13d
leal (%r12,%r13), %edx
addl $0x4, %edx
movq 0x3b8(%rbx), %rsi
movq %r14, %rdi
movl %r15d, %ecx
callq 0x640a
movq 0x3b8(%rbx), %rdi
callq 0x62aa
movl %eax, %r15d
leaq 0x2ff4(%rip), %rsi      # 0x72de
leaq -0x110(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x3090
addl %r13d, %r12d
addl %r12d, %r15d
addl $0x5, %r15d
leaq -0x110(%rbp), %rsi
pushq $0x1
popq %rcx
movq %r14, %rdi
movl %r15d, %edx
callq 0x632e
leaq -0x110(%rbp), %rdi
callq 0x30b0
pushq $0xa
popq %r12
pushq $0x1
popq %r13
movq %r14, %rdi
movl %r13d, %esi
movl %r15d, %edx
movl %r13d, %ecx
movl %r12d, %r8d
movl %r13d, %r9d
callq 0x63ae
pushq $0x3
popq %rsi
movq %r14, %rdi
movl %r15d, %edx
movl %r13d, %ecx
movl %r12d, %r8d
xorl %r9d, %r9d
callq 0x63ae
leaq 0x2f87(%rip), %rsi      # 0x72e9
leaq -0xf0(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x3090
leal 0x1(%r15), %edx
leaq -0xf0(%rbp), %rsi
pushq $0x3
popq %rcx
movq %r14, %rdi
movl %edx, -0x30(%rbp)
callq 0x632e
leaq -0xf0(%rbp), %rdi
callq 0x30b0
movl 0x20(%rbx), %esi
leaq -0x1d0(%rbp), %r12
movq %r12, %rdi
callq 0x4fab
leal 0x8(%r15), %r13d
pushq $0x3
popq %rcx
movq %r14, %rdi
movq %r12, %rsi
movl %r13d, %edx
callq 0x632e
leaq -0x1d0(%rbp), %rdi
callq 0x30b0
leaq 0x2f1f(%rip), %rsi      # 0x72f0
leaq -0xd0(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x3090
leaq -0xd0(%rbp), %rsi
pushq $0x4
popq %rcx
movq %r14, %rdi
movl -0x30(%rbp), %edx
callq 0x632e
leaq -0xd0(%rbp), %rdi
callq 0x30b0
movl 0x24(%rbx), %esi
leaq -0x1b0(%rbp), %r12
movq %r12, %rdi
callq 0x4fab
pushq $0x4
popq %rcx
movq %r14, %rdi
movq %r12, %rsi
movl %r13d, %edx
callq 0x632e
leaq -0x1b0(%rbp), %rdi
callq 0x30b0
leaq 0x2ebf(%rip), %rsi      # 0x72f7
leaq -0xb0(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x3090
movl -0x30(%rbp), %r13d
leaq -0xb0(%rbp), %rsi
pushq $0x6
popq %rcx
movq %r14, %rdi
movl %r13d, %edx
callq 0x632e
addl $0x9, %r15d
leaq -0xb0(%rbp), %rdi
callq 0x30b0
movl 0x28(%rbx), %esi
leaq -0x190(%rbp), %r12
movq %r12, %rdi
callq 0x4fab
pushq $0x6
popq %rcx
movq %r14, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x632e
leaq -0x190(%rbp), %rdi
callq 0x30b0
leaq 0x2e58(%rip), %rsi      # 0x72ff
leaq -0x90(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x3090
leaq -0x90(%rbp), %rsi
pushq $0x7
popq %rcx
movq %r14, %rdi
movl %r13d, %edx
callq 0x632e
leaq -0x90(%rbp), %rdi
callq 0x30b0
movl 0x2c(%rbx), %esi
leaq -0x170(%rbp), %r12
movq %r12, %rdi
callq 0x4fab
pushq $0x7
popq %rcx
movq %r14, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x632e
leaq -0x170(%rbp), %rdi
callq 0x30b0
leaq 0x2df9(%rip), %rsi      # 0x7307
leaq -0x70(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x3090
leaq -0x70(%rbp), %rsi
pushq $0x8
popq %rcx
movq %r14, %rdi
movl %r13d, %edx
callq 0x632e
leaq -0x70(%rbp), %rdi
callq 0x30b0
movl 0x30(%rbx), %esi
leaq -0x150(%rbp), %r12
movq %r12, %rdi
callq 0x4fab
pushq $0x8
popq %rcx
movq %r14, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x632e
leaq -0x150(%rbp), %rdi
callq 0x30b0
leaq 0x2da3(%rip), %rsi      # 0x730f
leaq -0x50(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0x3090
leaq -0x50(%rbp), %rsi
pushq $0x9
popq %rcx
movq %r14, %rdi
movl %r13d, %edx
callq 0x632e
leaq -0x50(%rbp), %rdi
callq 0x30b0
movl 0x34(%rbx), %esi
leaq -0x130(%rbp), %rbx
movq %rbx, %rdi
callq 0x4fab
pushq $0x9
popq %rcx
movq %r14, %rdi
movq %rbx, %rsi
movl %r15d, %edx
callq 0x632e
leaq -0x130(%rbp), %rdi
callq 0x30b0
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x130(%rbp), %rdi
jmp 0x467e
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
jmp 0x467e
jmp 0x4685
movq %rax, %rbx
leaq -0x150(%rbp), %rdi
jmp 0x467e
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
jmp 0x467e
jmp 0x4685
movq %rax, %rbx
leaq -0x170(%rbp), %rdi
jmp 0x467e
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
jmp 0x467e
jmp 0x4685
movq %rax, %rbx
leaq -0x190(%rbp), %rdi
jmp 0x467e
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
jmp 0x467e
jmp 0x4685
movq %rax, %rbx
leaq -0x1b0(%rbp), %rdi
jmp 0x467e
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
jmp 0x467e
jmp 0x4685
movq %rax, %rbx
leaq -0x1d0(%rbp), %rdi
jmp 0x467e
movq %rax, %rbx
leaq -0xf0(%rbp), %rdi
jmp 0x467e
jmp 0x4685
movq %rax, %rbx
leaq -0x110(%rbp), %rdi
callq 0x30b0
jmp 0x4688
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3230