// File: /workspace/github_cpp_makefile_star2_O3/EstherJin[P]TetrisRemake/graphicsDisplay.cc
// Function: GraphicsDisplay::GraphicsDisplay()
GraphicsDisplay::GraphicsDisplay ()  {

    window = make_unique<Xwindow> ();

    window->fillRectangle(0,0,405,780,0);
    window->fillRectangle(0,50,405,642,9);
    window->fillRectangle(15,65,375,612,0);
    for (int i = 1; i < row; i++) {
        window->fillRectangle(xmar,ymar+i*34,375,1,10);
    }
    for (int j = 1; j < col; j++) {
        window->fillRectangle(xmar+j*34,ymar,1,612,10);
    }
    // window->fillRectangle(0, 0, 100, 100, 4);

    string nt = "Next:";
    window->drawString (15, 700, nt);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
leaq 0x8faa(%rip), %rax      # 0x1ad48
movq %rax, (%rdi)
movaps 0x1ae8(%rip), %xmm0     # 0x13890
movups %xmm0, 0x8(%rdi)
movl $0x41, 0x18(%rdi)
leaq 0x20(%rdi), %rbx
movq $0x0, 0x20(%rdi)
movl $0x88, %edi
callq 0x52b0
movq %rax, %r15
movq %rax, %rdi
movl $0x195, %esi            # imm = 0x195
movl $0x30c, %edx            # imm = 0x30C
movl $0x1, %ecx
callq 0x12938
movq %rsp, %r12
movq $0x0, (%r12)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x12914
movq %r12, %rdi
callq 0x7c1a
movq (%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
movl $0x195, %ecx            # imm = 0x195
movl $0x30c, %r8d            # imm = 0x30C
xorl %r9d, %r9d
callq 0x12b3e
movq (%rbx), %rdi
xorl %esi, %esi
movl $0x32, %edx
movl $0x195, %ecx            # imm = 0x195
movl $0x282, %r8d            # imm = 0x282
movl $0x9, %r9d
callq 0x12b3e
movq (%rbx), %rdi
movl $0xf, %esi
movl $0x41, %edx
movl $0x177, %ecx            # imm = 0x177
movl $0x264, %r8d            # imm = 0x264
xorl %r9d, %r9d
callq 0x12b3e
cmpl $0x2, 0xc(%r14)
jl 0x11e9e
movl $0x1, %ebp
movl $0x22, %r15d
movq 0x20(%r14), %rdi
movl 0x14(%r14), %esi
movl 0x18(%r14), %edx
addl %r15d, %edx
movl $0x177, %ecx            # imm = 0x177
movl $0x1, %r8d
movl $0xa, %r9d
callq 0x12b3e
incl %ebp
addl $0x22, %r15d
cmpl 0xc(%r14), %ebp
jl 0x11e6d
cmpl $0x2, 0x10(%r14)
jl 0x11ee1
movl $0x1, %ebp
movl $0x22, %r15d
movq 0x20(%r14), %rdi
movl 0x14(%r14), %esi
addl %r15d, %esi
movl 0x18(%r14), %edx
movl $0x1, %ecx
movl $0x264, %r8d            # imm = 0x264
movl $0xa, %r9d
callq 0x12b3e
incl %ebp
addl $0x22, %r15d
cmpl 0x10(%r14), %ebp
jl 0x11eb0
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1a21(%rip), %rsi      # 0x13912
leaq 0x1a1f(%rip), %rdx      # 0x13917
movq %rsp, %rdi
callq 0x65c6
movq (%rbx), %r14
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x6530
leaq 0x20(%rsp), %rcx
movq %r14, %rdi
movl $0xf, %esi
movl $0x2bc, %edx            # imm = 0x2BC
callq 0x12ba2
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x11f51
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x52c0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x11f67
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x52c0
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x11f93
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x11f93
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x11fc3
movq 0x10(%rsp), %rsi
incq %rsi
jmp 0x11fb3
jmp 0x11fc0
movq %rax, %r14
movl $0x88, %esi
movq %r15, %rdi
callq 0x52c0
jmp 0x11fc3
jmp 0x11fc0
jmp 0x11fc0
jmp 0x11fc0
movq %rax, %r14
movq %rbx, %rdi
callq 0x7c1a
movq %r14, %rdi
callq 0x5480
nop