// File: /workspace/github_cpp_makefile_star2_O1/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 0x8c22(%rip), %rax      # 0x1ad48
movq %rax, (%rdi)
movaps 0x1710(%rip), %xmm0     # 0x13840
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 0x12cc0
movq %rsp, %r12
movq $0x0, (%r12)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x12c9c
movq %r12, %rdi
callq 0x7bfe
movq (%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
movl $0x195, %ecx            # imm = 0x195
movl $0x30c, %r8d            # imm = 0x30C
xorl %r9d, %r9d
callq 0x12ec6
movq (%rbx), %rdi
xorl %esi, %esi
movl $0x32, %edx
movl $0x195, %ecx            # imm = 0x195
movl $0x282, %r8d            # imm = 0x282
movl $0x9, %r9d
callq 0x12ec6
movq (%rbx), %rdi
movl $0xf, %esi
movl $0x41, %edx
movl $0x177, %ecx            # imm = 0x177
movl $0x264, %r8d            # imm = 0x264
xorl %r9d, %r9d
callq 0x12ec6
cmpl $0x2, 0xc(%r14)
jl 0x12226
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 0x12ec6
incl %ebp
addl $0x22, %r15d
cmpl 0xc(%r14), %ebp
jl 0x121f5
cmpl $0x2, 0x10(%r14)
jl 0x12269
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 0x12ec6
incl %ebp
addl $0x22, %r15d
cmpl 0x10(%r14), %ebp
jl 0x12238
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1649(%rip), %rsi      # 0x138c2
leaq 0x1647(%rip), %rdx      # 0x138c7
movq %rsp, %rdi
callq 0x65a0
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 0x6510
leaq 0x20(%rsp), %rcx
movq %r14, %rdi
movl $0xf, %esi
movl $0x2bc, %edx            # imm = 0x2BC
callq 0x12f2a
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x122d9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x52c0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x122ef
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 0x1231b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x52c0
jmp 0x1231b
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x1234b
movq 0x10(%rsp), %rsi
incq %rsi
jmp 0x1233b
jmp 0x12348
movq %rax, %r14
movl $0x88, %esi
movq %r15, %rdi
callq 0x52c0
jmp 0x1234b
jmp 0x12348
jmp 0x12348
jmp 0x12348
movq %rax, %r14
movq %rbx, %rdi
callq 0x7bfe
movq %r14, %rdi
callq 0x5480
nop