// File: /workspace/github_cpp_makefile_star2_O2/MatthewZMD[P]TetrisDual/graphicsdisplay.cc
// Function: GraphicsDisplay::notify(Subject&)
void GraphicsDisplay::GraphicsDisplay::notify(Subject& s) {
	Board & b = dynamic_cast<Board&>(s);
	BoardInfo &bi = dynamic_cast<BoardInfo&>(b.getInfo());
	int player = bi.player;
	std::string level = std::to_string(bi.level);
	std::string score = std::to_string(bi.score);
	if (player == 0) {
		xw.fillRectangle(0, 13, 250, 27, Xwindow::Orange);
		xw.drawBigString(15, 40, "Level: " + level, Xwindow::Black);
		xw.fillRectangle(0, 58, 250, 27, Xwindow::Orange);
		xw.drawBigString(15 ,85, "Score: " + score, Xwindow::Black);
		for (int i = 0; i < 18; ++i) {
			for (int j = 0; j < 11; ++j) {
				char current = bi.boardData[i][j];
				xw.fillRectangle(15 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::White);
				if (current == 'I') {
					xw.fillRectangle(15 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::Brown);
				} else if (current == 'J') {
					xw.fillRectangle(15 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::Red);
				} else if (current == 'L') {
					xw.fillRectangle(15 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::Cyan);
				} else if (current == 'O') {
                                        xw.fillRectangle(15 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::DarkGreen);
				} else if (current == 'S') {
					xw.fillRectangle(15 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::Magenta);
				} else if (current == 'Z') {
					xw.fillRectangle(15 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::Blue);
				} else if (current == 'T') {
                    xw.fillRectangle(15 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::Green);
				} else if (current == '*') {
                    xw.fillRectangle(15 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::Brown);
					xw.drawString(24 + 20 * j, 115 + 20 * i, "*", Xwindow::White);
				} else if (current == '?') {
                    xw.fillRectangle(15 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::Black);
					xw.drawString(24 + 20 * j, 115 + 20 * i, "?", Xwindow::White);
				}
				xw.fillRectangle(15 + 20 * j + 11, 100 + 20 * i + 1, 7, 7, Xwindow::White);
				//xw.fillRectangle(15 + 20 * j + 3, 100 + 20 * i + 15, 3, 3, Xwindow::White);
			    

			}
		}
		xw.drawBigString(15, 500, "Next:", Xwindow::Black);
		CellType type = bi.nextType;
		for (int i = 0; i < 2; ++i) {
                   for (int j = 0; j < 4; ++j) {
                        xw.fillRectangle(65 + 30 * j, 510 + 30 * i, 30, 30, Xwindow::Orange);
                   }
                }

		switch(type) {
			case CellType::I:
				xw.fillRectangle(65, 540, 30, 30, Xwindow::Brown);
				xw.fillRectangle(95, 540, 30, 30, Xwindow::Brown);
                xw.fillRectangle(125, 540, 30, 30, Xwindow::Brown);
                xw.fillRectangle(155, 540, 30, 30, Xwindow::Brown);
                break;
			case CellType::J:
				xw.fillRectangle(65, 510, 30, 30, Xwindow::Red);
                xw.fillRectangle(65, 540, 30, 30, Xwindow::Red);
                xw.fillRectangle(95, 540, 30, 30, Xwindow::Red);
                xw.fillRectangle(125, 540, 30, 30, Xwindow::Red);
                break;
			case CellType::L:
				xw.fillRectangle(125, 510, 30, 30, Xwindow::Cyan);
                xw.fillRectangle(125, 540, 30, 30, Xwindow::Cyan);
                xw.fillRectangle(65, 540, 30, 30, Xwindow::Cyan);
                xw.fillRectangle(95, 540, 30, 30, Xwindow::Cyan);
                break;
			case CellType::O:
				xw.fillRectangle(65, 510, 30, 30, Xwindow::DarkGreen);
                xw.fillRectangle(95, 510, 30, 30, Xwindow::DarkGreen);
                xw.fillRectangle(65, 540, 30, 30, Xwindow::DarkGreen);
                xw.fillRectangle(95, 540, 30, 30, Xwindow::DarkGreen);
                break;
			case CellType::S:
				xw.fillRectangle(65, 540, 30, 30, Xwindow::Magenta);
                xw.fillRectangle(95, 510, 30, 30, Xwindow::Magenta);
                xw.fillRectangle(95, 540, 30, 30, Xwindow::Magenta);
                xw.fillRectangle(125, 510, 30, 30, Xwindow::Magenta);
                break;
			case CellType::Z:
				xw.fillRectangle(65, 510, 30, 30, Xwindow::Blue);
                xw.fillRectangle(95, 510, 30, 30, Xwindow::Blue);
                xw.fillRectangle(95, 540, 30, 30, Xwindow::Blue);
                xw.fillRectangle(125, 540, 30, 30, Xwindow::Blue);
                break;
			case CellType::T:
				xw.fillRectangle(65, 510, 30, 30, Xwindow::Green);
                xw.fillRectangle(95, 510, 30, 30, Xwindow::Green);
                xw.fillRectangle(125, 510, 30, 30, Xwindow::Green);
                xw.fillRectangle(95, 540, 30, 30, Xwindow::Green);
                break;
            case CellType::E:
                break;
            case CellType::Star:
                break;
		}
		for (int i = 0; i < 19; ++i) {
			xw.drawLine(15, 100 + 20 * i, 235, 100 + 20 * i);
                                                xw.drawLine(15, 100 + 20 * i - 1, 235, 100 + 20 * i - 1);

		}
		for (int j = 0; j < 12; ++j) {
			xw.drawLine(15 + 20 * j, 100, 15 + 20 * j, 460);
			 xw.drawLine(15 + 20 * j - 1, 100, 15 + 20 * j - 1, 460);
            

		}
	} else {
		xw.fillRectangle(270, 13, 250, 27, Xwindow::Orange);
		xw.drawBigString(285, 40, "Level: " + level, Xwindow::Black);
			xw.fillRectangle(270, 58, 250, 27, Xwindow::Orange);
		xw.drawBigString(285 ,85, "Score: " + score, Xwindow::Black);
        for (int i = 0; i < 18; ++i) {
            for (int j = 0; j < 11; ++j) {
                char current = bi.boardData[i][j];
		xw.fillRectangle(285 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::White);
                if (current == 'I') {
                    xw.fillRectangle(285 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::Brown);
                } else if (current == 'J') {
                    xw.fillRectangle(285 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::Red);
                } else if (current == 'L') {
                    xw.fillRectangle(285 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::Cyan);
                } else if (current == 'O') {
                    xw.fillRectangle(285 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::DarkGreen);
                } else if (current == 'S') {
                    xw.fillRectangle(285 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::Magenta);
                } else if (current == 'Z') {
                    xw.fillRectangle(285 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::Blue);
                } else if (current == 'T') {
                    xw.fillRectangle(285 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::Green);
                } else if (current == '*') {
                    xw.fillRectangle(285 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::Brown);
                    xw.drawString(294 + 20 * j, 115 + 20 * i, "*", Xwindow::White);
                } else if (current == '?') {
                    xw.fillRectangle(285 + 20 * j, 100 + 20 * i, 20, 20, Xwindow::Black);
                    xw.drawString(294 + 20 * j, 115 + 20 * i, "?", Xwindow::White);
                }
		xw.fillRectangle(285 + 20 * j + 11, 100 + 20 * i + 1, 7, 7, Xwindow::White);
		//xw.fillRectangle(285 + 20 * j + 3, 100 + 20 * i + 15, 3, 3, Xwindow::White);



            }
        }
        xw.drawBigString(285, 500, "Next:", Xwindow::Black);
        CellType type = bi.nextType;
	for (int i = 0; i < 2; ++i) {
		for (int j = 0; j < 4; ++j) {
			xw.fillRectangle(335 + 30 * j, 510 + 30 * i, 30, 30, Xwindow::Orange);
		}
	}
        switch(type) {
            case CellType::I:
                xw.fillRectangle(335, 540, 30, 30, Xwindow::Brown);
                xw.fillRectangle(365, 540, 30, 30, Xwindow::Brown);
                xw.fillRectangle(395, 540, 30, 30, Xwindow::Brown);
                xw.fillRectangle(425, 540, 30, 30, Xwindow::Brown);
		break;
            case CellType::J:
                xw.fillRectangle(335, 510, 30, 30, Xwindow::Red);
                xw.fillRectangle(335, 540, 30, 30, Xwindow::Red);
                xw.fillRectangle(365, 540, 30, 30, Xwindow::Red);
                xw.fillRectangle(395, 540, 30, 30, Xwindow::Red);
		break;
            case CellType::L:
                xw.fillRectangle(395, 510, 30, 30, Xwindow::Cyan);
                xw.fillRectangle(395, 540, 30, 30, Xwindow::Cyan);
                xw.fillRectangle(335, 540, 30, 30, Xwindow::Cyan);
                xw.fillRectangle(365, 540, 30, 30, Xwindow::Cyan);
		break;
            case CellType::O:
                xw.fillRectangle(335, 510, 30, 30, Xwindow::DarkGreen);
                xw.fillRectangle(365, 510, 30, 30, Xwindow::DarkGreen);
                xw.fillRectangle(335, 540, 30, 30, Xwindow::DarkGreen);
                xw.fillRectangle(365, 540, 30, 30, Xwindow::DarkGreen);
		break;
            case CellType::S:
                xw.fillRectangle(335, 540, 30, 30, Xwindow::Magenta);
                xw.fillRectangle(365, 510, 30, 30, Xwindow::Magenta);
                xw.fillRectangle(365, 540, 30, 30, Xwindow::Magenta);
                xw.fillRectangle(395, 510, 30, 30, Xwindow::Magenta);
		break;
            case CellType::Z:
                xw.fillRectangle(335, 510, 30, 30, Xwindow::Blue);
                xw.fillRectangle(365, 510, 30, 30, Xwindow::Blue);
                xw.fillRectangle(365, 540, 30, 30, Xwindow::Blue);
                xw.fillRectangle(395, 540, 30, 30, Xwindow::Blue);
                break;
	    case CellType::T:
                xw.fillRectangle(335, 510, 30, 30, Xwindow::Green);
                xw.fillRectangle(365, 510, 30, 30, Xwindow::Green);
                xw.fillRectangle(395, 510, 30, 30, Xwindow::Green);
                xw.fillRectangle(365, 540, 30, 30, Xwindow::Green);
		break;
            case CellType::E:
                break;
            case CellType::Star:
                break;
        }
        for (int i = 0; i < 19; ++i) {
            xw.drawLine(285, 100 + 20 * i, 505, 100 + 20 * i);
	     xw.drawLine(285, 100 + 20 * i - 1, 505, 100 + 20 * i - 1);


        }       

        for (int j = 0; j < 12; ++j) {
            xw.drawLine(285 + 20 * j, 100, 285 + 20 * j, 460);
	     xw.drawLine(285 + 20 * j - 1, 100, 285 + 20 * j - 1, 460);

 
        }
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rsi, %rax
movq %rdi, %r14
leaq 0xc240(%rip), %rsi      # 0x1b208
leaq 0xc339(%rip), %rdx      # 0x1b308
movq %rax, %rdi
xorl %ecx, %ecx
callq 0x52d0
testq %rax, %rax
je 0xfd43
movq (%rax), %rcx
movq %rax, %rdi
callq *(%rcx)
leaq 0xc9bf(%rip), %rsi      # 0x1b9b0
leaq 0xc368(%rip), %rdx      # 0x1b360
movq %rax, %rdi
xorl %ecx, %ecx
callq 0x52d0
testq %rax, %rax
je 0xfd43
movq %rax, %r13
movl 0x8(%rax), %ebx
movl 0xc(%rax), %esi
leaq 0x58(%rsp), %rdi
callq 0xfe2d
movl 0x10(%r13), %esi
leaq 0x38(%rsp), %rdi
callq 0xfe2d
addq $0x10, %r14
testl %ebx, %ebx
movq %r14, 0x8(%rsp)
movq %r13, 0x18(%rsp)
je 0xf3cc
pushq $0xd
popq %rdx
pushq $0x1b
popq %r8
pushq $0x8
popq %r9
movq %r14, %rdi
movl $0x10e, %esi            # imm = 0x10E
movl $0xfa, %ecx
callq 0x101d6
leaq 0x2984(%rip), %rsi      # 0x119ea
leaq 0xb8(%rsp), %rdi
leaq 0x58(%rsp), %rdx
callq 0xfe86
pushq $0x28
popq %rdx
leaq 0xb8(%rsp), %rcx
pushq $0x1
popq %r8
movq %r14, %rdi
movl $0x11d, %esi            # imm = 0x11D
callq 0x1062a
leaq 0xb8(%rsp), %rdi
callq 0x5150
pushq $0x3a
popq %rdx
pushq $0x1b
popq %r8
pushq $0x8
popq %r9
movq %r14, %rdi
movl $0x10e, %esi            # imm = 0x10E
movl $0xfa, %ecx
callq 0x101d6
leaq 0x292d(%rip), %rsi      # 0x119f2
leaq 0x98(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0xfe86
pushq $0x55
popq %rdx
leaq 0x98(%rsp), %rcx
pushq $0x1
popq %r8
movq %r14, %rdi
movl $0x11d, %esi            # imm = 0x11D
callq 0x1062a
leaq 0x98(%rsp), %rdi
callq 0x5150
xorl %eax, %eax
pushq $0x14
popq %r12
cmpq $0x12, %rax
je 0xf2b2
imull $0x14, %eax, %ecx
leal 0x73(%rcx), %edx
movl %edx, 0x14(%rsp)
leal 0x64(%rcx), %ebp
addl $0x65, %ecx
movq %rcx, 0x28(%rsp)
movl $0x128, %r14d           # imm = 0x128
movq %rax, 0x20(%rsp)
imulq $0x18, %rax, %rax
movq %rax, 0x30(%rsp)
xorl %r15d, %r15d
cmpq $0xb, %r15
je 0xf2a5
movq 0x18(%r13), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx), %rax
movzbl (%rax,%r15), %r13d
leal -0xb(%r14), %ebx
movq 0x8(%rsp), %rdi
movl %ebx, %esi
movl %ebp, %edx
movl %r12d, %ecx
movl %r12d, %r8d
xorl %r9d, %r9d
callq 0x101d6
leal -0x49(%r13), %eax
cmpl $0xb, %eax
ja 0xf194
leaq 0x27bd(%rip), %rcx      # 0x11940
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
pushq $0x2
popq %r9
jmpq *%rax
pushq $0x9
jmp 0xf1bc
cmpl $0x2a, %r13d
je 0xf24c
cmpl $0x3f, %r13d
je 0xf1fe
cmpl $0x5a, %r13d
jne 0xf1d2
pushq $0x4
jmp 0xf1bc
pushq $0x7
jmp 0xf1bc
pushq $0xa
jmp 0xf1bc
pushq $0x5
jmp 0xf1bc
pushq $0x3
popq %r9
movq 0x8(%rsp), %rdi
movl %ebx, %esi
movl %ebp, %edx
movl %r12d, %ecx
movl %r12d, %r8d
callq 0x101d6
movq 0x8(%rsp), %rdi
movl %r14d, %esi
movq 0x28(%rsp), %rdx
pushq $0x7
popq %rcx
movl %ecx, %r8d
xorl %r9d, %r9d
callq 0x101d6
incq %r15
addl $0x14, %r14d
movq 0x18(%rsp), %r13
jmp 0xf13c
movq 0x8(%rsp), %rdi
movl %ebx, %esi
movl %ebp, %edx
movl %r12d, %ecx
movl %r12d, %r8d
pushq $0x1
popq %r9
callq 0x101d6
leaq 0x138(%rsp), %rbx
movq %rbx, %rdi
leaq 0x2017(%rip), %rsi      # 0x1123f
leaq 0x7(%rsp), %rdx
callq 0x5abe
leal -0x2(%r14), %esi
movq 0x8(%rsp), %rdi
movl 0x14(%rsp), %edx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x104d2
jmp 0xf298
movq 0x8(%rsp), %rdi
movl %ebx, %esi
movl %ebp, %edx
movl %r12d, %ecx
movl %r12d, %r8d
pushq $0x9
popq %r9
callq 0x101d6
leaq 0x158(%rsp), %rbx
movq %rbx, %rdi
leaq 0x289c(%rip), %rsi      # 0x11b12
leaq 0x7(%rsp), %rdx
callq 0x5abe
leal -0x2(%r14), %esi
movq 0x8(%rsp), %rdi
movl 0x14(%rsp), %edx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x104d2
movq %rbx, %rdi
callq 0x5150
jmp 0xf1d2
movq 0x20(%rsp), %rax
incq %rax
jmp 0xf106
leaq 0x264f(%rip), %rsi      # 0x11908
leaq 0x78(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x5abe
leaq 0x78(%rsp), %rcx
pushq $0x1
popq %r8
movq 0x8(%rsp), %rdi
movl $0x11d, %esi            # imm = 0x11D
movl $0x1f4, %edx            # imm = 0x1F4
callq 0x1062a
leaq 0x78(%rsp), %rdi
callq 0x5150
movl 0x30(%r13), %r12d
xorl %r13d, %r13d
pushq $0x1e
popq %rbx
pushq $0x8
popq %rbp
cmpl $0x2, %r13d
je 0xf33f
imull $0x1e, %r13d, %r14d
addl $0x1fe, %r14d           # imm = 0x1FE
movl $0x14f, %r15d           # imm = 0x14F
cmpl $0x1c7, %r15d           # imm = 0x1C7
je 0xf33a
movq 0x8(%rsp), %rdi
movl %r15d, %esi
movl %r14d, %edx
movl %ebx, %ecx
movl %ebx, %r8d
movl %ebp, %r9d
callq 0x101d6
addl $0x1e, %r15d
jmp 0xf313
incl %r13d
jmp 0xf2fc
cmpl $0x6, %r12d
movq 0x8(%rsp), %r13
ja 0xf9e6
movl %r12d, %eax
leaq 0x2618(%rip), %rcx      # 0x11970
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
pushq $0x1e
popq %rcx
pushq $0x9
popq %r9
movq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x14f, %esi            # imm = 0x14F
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
callq 0x101d6
movl $0x21c, %r14d           # imm = 0x21C
pushq $0x1e
popq %rcx
pushq $0x9
popq %rbp
movq %r13, %rdi
movl $0x16d, %esi            # imm = 0x16D
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
movl $0x1a9, %r15d           # imm = 0x1A9
pushq $0x1e
popq %rcx
movq %r13, %rdi
movl $0x18b, %esi            # imm = 0x18B
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
jmp 0xf9cf
pushq $0xd
popq %rdx
pushq $0x1b
popq %r8
pushq $0x8
popq %r9
movq %r14, %rdi
xorl %esi, %esi
movl $0xfa, %ecx
callq 0x101d6
leaq 0x25fd(%rip), %rsi      # 0x119ea
leaq 0x118(%rsp), %rdi
leaq 0x58(%rsp), %rdx
callq 0xfe86
pushq $0xf
popq %rsi
pushq $0x28
popq %rdx
leaq 0x118(%rsp), %rcx
pushq $0x1
popq %r8
movq %r14, %rdi
callq 0x1062a
leaq 0x118(%rsp), %rdi
callq 0x5150
pushq $0x3a
popq %rdx
pushq $0x1b
popq %r8
pushq $0x8
popq %r9
movq %r14, %rdi
xorl %esi, %esi
movl $0xfa, %ecx
callq 0x101d6
leaq 0x25ab(%rip), %rsi      # 0x119f2
leaq 0xf8(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0xfe86
pushq $0xf
popq %rsi
pushq $0x55
popq %rdx
leaq 0xf8(%rsp), %rcx
pushq $0x1
popq %r8
movq %r14, %rdi
callq 0x1062a
leaq 0xf8(%rsp), %rdi
callq 0x5150
xorl %eax, %eax
pushq $0x14
popq %rbp
cmpq $0x12, %rax
je 0xf63a
imull $0x14, %eax, %ecx
leal 0x73(%rcx), %edx
movl %edx, 0x14(%rsp)
leal 0x64(%rcx), %r12d
addl $0x65, %ecx
movq %rcx, 0x28(%rsp)
movq %rax, 0x20(%rsp)
imulq $0x18, %rax, %rax
movq %rax, 0x30(%rsp)
pushq $0x1a
popq %rax
movl %eax, %r14d
xorl %ebx, %ebx
cmpq $0xb, %rbx
je 0xf628
movq 0x18(%r13), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx), %rax
movzbl (%rax,%rbx), %r13d
leal -0xb(%r14), %r15d
movq 0x8(%rsp), %rdi
movl %r15d, %esi
movl %r12d, %edx
movl %ebp, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0x101d6
leal -0x49(%r13), %eax
cmpl $0xb, %eax
ja 0xf514
leaq 0x2489(%rip), %rcx      # 0x1198c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
pushq $0x2
popq %r9
jmpq *%rax
pushq $0x9
jmp 0xf53c
cmpl $0x2a, %r13d
je 0xf5ce
cmpl $0x3f, %r13d
je 0xf57f
cmpl $0x5a, %r13d
jne 0xf553
pushq $0x4
jmp 0xf53c
pushq $0x7
jmp 0xf53c
pushq $0xa
jmp 0xf53c
pushq $0x5
jmp 0xf53c
pushq $0x3
popq %r9
movq 0x8(%rsp), %rdi
movl %r15d, %esi
movl %r12d, %edx
movl %ebp, %ecx
movl %ebp, %r8d
callq 0x101d6
movq 0x8(%rsp), %rdi
movl %r14d, %esi
movq 0x28(%rsp), %rdx
pushq $0x7
popq %rcx
movl %ecx, %r8d
xorl %r9d, %r9d
callq 0x101d6
incq %rbx
addl $0x14, %r14d
movq 0x18(%rsp), %r13
jmp 0xf4bb
movq 0x8(%rsp), %rdi
movl %r15d, %esi
movl %r12d, %edx
movl %ebp, %ecx
movl %ebp, %r8d
pushq $0x1
popq %r9
callq 0x101d6
leaq 0x178(%rsp), %r15
movq %r15, %rdi
leaq 0x1c95(%rip), %rsi      # 0x1123f
leaq 0x7(%rsp), %rdx
callq 0x5abe
leal -0x2(%r14), %esi
movq 0x8(%rsp), %rdi
movl 0x14(%rsp), %edx
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x104d2
jmp 0xf61b
movq 0x8(%rsp), %rdi
movl %r15d, %esi
movl %r12d, %edx
movl %ebp, %ecx
movl %ebp, %r8d
pushq $0x9
popq %r9
callq 0x101d6
leaq 0x198(%rsp), %r15
movq %r15, %rdi
leaq 0x2519(%rip), %rsi      # 0x11b12
leaq 0x7(%rsp), %rdx
callq 0x5abe
leal -0x2(%r14), %esi
movq 0x8(%rsp), %rdi
movl 0x14(%rsp), %edx
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x104d2
movq %r15, %rdi
callq 0x5150
jmp 0xf553
movq 0x20(%rsp), %rax
incq %rax
movq 0x8(%rsp), %r14
jmp 0xf485
leaq 0x22c7(%rip), %rsi      # 0x11908
leaq 0xd8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x5abe
pushq $0xf
popq %rsi
leaq 0xd8(%rsp), %rcx
pushq $0x1
popq %r8
movq %r14, %rdi
movl $0x1f4, %edx            # imm = 0x1F4
callq 0x1062a
leaq 0xd8(%rsp), %rdi
callq 0x5150
movl 0x30(%r13), %eax
movl %eax, 0x18(%rsp)
xorl %r13d, %r13d
pushq $0x41
popq %r12
pushq $0x1e
popq %rbx
pushq $0x8
popq %rbp
cmpl $0x2, %r13d
je 0xf6d1
imull $0x1e, %r13d, %r14d
addl $0x1fe, %r14d           # imm = 0x1FE
movl %r12d, %r15d
cmpl $0xb9, %r15d
je 0xf6cc
movq 0x8(%rsp), %rdi
movl %r15d, %esi
movl %r14d, %edx
movl %ebx, %ecx
movl %ebx, %r8d
movl %ebp, %r9d
callq 0x101d6
addl $0x1e, %r15d
jmp 0xf6a5
incl %r13d
jmp 0xf691
movl 0x18(%rsp), %eax
cmpl $0x6, %eax
movq 0x8(%rsp), %r12
ja 0xfc42
movl %eax, %eax
leaq 0x22d0(%rip), %rcx      # 0x119bc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
pushq $0x41
popq %rsi
pushq $0x1e
popq %rcx
pushq $0x9
popq %r9
movq %r12, %rdi
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
callq 0x101d6
pushq $0x5f
popq %rsi
movl $0x21c, %r14d           # imm = 0x21C
pushq $0x1e
popq %rcx
pushq $0x9
popq %rbp
movq %r12, %rdi
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
movl $0x9b, %r15d
pushq $0x7d
popq %rsi
pushq $0x1e
popq %rcx
movq %r12, %rdi
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
jmp 0xfc2b
pushq $0x1e
popq %rcx
pushq $0x7
popq %r9
movq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x14f, %esi            # imm = 0x14F
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
callq 0x101d6
movl $0x1fe, %r14d           # imm = 0x1FE
pushq $0x1e
popq %rcx
pushq $0x7
popq %rbp
movq %r13, %rdi
movl $0x16d, %esi            # imm = 0x16D
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
movl $0x18b, %r15d           # imm = 0x18B
pushq $0x1e
popq %rcx
movq %r13, %rdi
movl $0x16d, %esi            # imm = 0x16D
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
jmp 0xf9cf
pushq $0x1e
popq %rcx
pushq $0x5
popq %r9
movq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x18b, %esi            # imm = 0x18B
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
callq 0x101d6
movl $0x21c, %r14d           # imm = 0x21C
pushq $0x1e
popq %rcx
pushq $0x5
popq %rbp
movq %r13, %rdi
movl $0x18b, %esi            # imm = 0x18B
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
movl $0x16d, %r15d           # imm = 0x16D
pushq $0x1e
popq %rcx
movq %r13, %rdi
movl $0x14f, %esi            # imm = 0x14F
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
jmp 0xf9cf
pushq $0x1e
popq %rcx
pushq $0xa
popq %r9
movq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x14f, %esi            # imm = 0x14F
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
callq 0x101d6
movl $0x16d, %r15d           # imm = 0x16D
pushq $0x1e
popq %rcx
pushq $0xa
popq %rbp
movq %r13, %rdi
movl $0x16d, %esi            # imm = 0x16D
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
movl $0x21c, %r14d           # imm = 0x21C
pushq $0x1e
popq %rcx
movq %r13, %rdi
movl $0x14f, %esi            # imm = 0x14F
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
jmp 0xf9cf
pushq $0x1e
popq %rcx
pushq $0x2
popq %r9
movq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x14f, %esi            # imm = 0x14F
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
callq 0x101d6
movl $0x21c, %r14d           # imm = 0x21C
pushq $0x1e
popq %rcx
pushq $0x2
popq %rbp
movq %r13, %rdi
movl $0x14f, %esi            # imm = 0x14F
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
movl $0x18b, %r15d           # imm = 0x18B
pushq $0x1e
popq %rcx
movq %r13, %rdi
movl $0x16d, %esi            # imm = 0x16D
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
jmp 0xf9cf
pushq $0x1e
popq %rcx
pushq $0x4
popq %r9
movq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x14f, %esi            # imm = 0x14F
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
callq 0x101d6
pushq $0x1e
popq %rcx
pushq $0x4
popq %rbp
movq %r13, %rdi
movl $0x16d, %esi            # imm = 0x16D
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
movl $0x21c, %r14d           # imm = 0x21C
movl $0x18b, %r15d           # imm = 0x18B
pushq $0x1e
popq %rcx
movq %r13, %rdi
movl $0x16d, %esi            # imm = 0x16D
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
jmp 0xf9cf
pushq $0x1e
popq %rcx
pushq $0x3
popq %r9
movq 0x8(%rsp), %r13
movq %r13, %rdi
movl $0x14f, %esi            # imm = 0x14F
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
callq 0x101d6
movl $0x16d, %r15d           # imm = 0x16D
pushq $0x1e
popq %rcx
pushq $0x3
popq %rbp
movq %r13, %rdi
movl $0x16d, %esi            # imm = 0x16D
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
movl $0x21c, %r14d           # imm = 0x21C
pushq $0x1e
popq %rcx
movq %r13, %rdi
movl $0x18b, %esi            # imm = 0x18B
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
pushq $0x1e
popq %rcx
movq %r13, %rdi
movl %r15d, %esi
movl %r14d, %edx
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
pushq $0x64
popq %rbx
cmpl $0x1e0, %ebx            # imm = 0x1E0
je 0xfa25
movq %r13, %rdi
movl $0x11d, %esi            # imm = 0x11D
movl %ebx, %edx
movl $0x1f9, %ecx            # imm = 0x1F9
movl %ebx, %r8d
callq 0x10398
leal -0x1(%rbx), %edx
movq %r13, %rdi
movl $0x11d, %esi            # imm = 0x11D
movl $0x1f9, %ecx            # imm = 0x1F9
movl %edx, %r8d
callq 0x10398
addl $0x14, %ebx
jmp 0xf9e9
movl $0x11c, %ebx            # imm = 0x11C
pushq $0x64
popq %rbp
cmpl $0x20c, %ebx            # imm = 0x20C
je 0xfcbf
leal 0x1(%rbx), %ecx
movq %r13, %rdi
movl %ecx, %esi
movl %ebp, %edx
movl $0x1cc, %r8d            # imm = 0x1CC
callq 0x10398
movq %r13, %rdi
movl %ebx, %esi
movl %ebp, %edx
movl %ebx, %ecx
movl $0x1cc, %r8d            # imm = 0x1CC
callq 0x10398
addl $0x14, %ebx
jmp 0xfa2d
pushq $0x41
popq %rsi
pushq $0x1e
popq %rcx
pushq $0x7
popq %r9
movq %r12, %rdi
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
callq 0x101d6
pushq $0x5f
popq %rsi
movl $0x1fe, %r14d           # imm = 0x1FE
pushq $0x1e
popq %rcx
pushq $0x7
popq %rbp
movq %r12, %rdi
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
pushq $0x5f
popq %rsi
pushq $0x1e
popq %rcx
movq %r12, %rdi
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
jmp 0xfc27
pushq $0x7d
popq %rsi
pushq $0x1e
popq %rcx
pushq $0x5
popq %r9
movq %r12, %rdi
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
callq 0x101d6
pushq $0x7d
popq %rsi
movl $0x21c, %r14d           # imm = 0x21C
pushq $0x1e
popq %rcx
pushq $0x5
popq %rbp
movq %r12, %rdi
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
pushq $0x41
popq %rsi
pushq $0x1e
popq %rcx
movq %r12, %rdi
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
pushq $0x5f
jmp 0xfc29
pushq $0x41
popq %rsi
pushq $0x1e
popq %rcx
pushq $0xa
popq %r9
movq %r12, %rdi
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
callq 0x101d6
pushq $0x5f
popq %r15
pushq $0x1e
popq %rcx
pushq $0xa
popq %rbp
movq %r12, %rdi
movl %r15d, %esi
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
movl $0x21c, %r14d           # imm = 0x21C
pushq $0x41
popq %rsi
pushq $0x1e
popq %rcx
movq %r12, %rdi
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
jmp 0xfc2b
pushq $0x41
popq %rsi
pushq $0x1e
popq %rcx
pushq $0x2
popq %r9
movq %r12, %rdi
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
callq 0x101d6
pushq $0x41
popq %rsi
movl $0x21c, %r14d           # imm = 0x21C
pushq $0x1e
popq %rcx
pushq $0x2
popq %rbp
movq %r12, %rdi
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
pushq $0x5f
popq %rsi
pushq $0x1e
popq %rcx
movq %r12, %rdi
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
jmp 0xfc27
pushq $0x41
popq %rsi
pushq $0x1e
popq %rcx
pushq $0x4
popq %r9
movq %r12, %rdi
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
callq 0x101d6
pushq $0x5f
popq %rsi
pushq $0x1e
popq %rcx
pushq $0x4
popq %rbp
movq %r12, %rdi
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
movl $0x21c, %r14d           # imm = 0x21C
pushq $0x5f
popq %rsi
pushq $0x1e
popq %rcx
movq %r12, %rdi
movl $0x21c, %edx            # imm = 0x21C
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
pushq $0x7d
popq %r15
pushq $0x1e
popq %rcx
movq %r12, %rdi
movl %r15d, %esi
movl %r14d, %edx
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
pushq $0x64
popq %rbx
pushq $0xf
popq %r14
cmpl $0x1e0, %ebx            # imm = 0x1E0
je 0xfc81
movq %r12, %rdi
movl %r14d, %esi
movl %ebx, %edx
movl $0xeb, %ecx
movl %ebx, %r8d
callq 0x10398
leal -0x1(%rbx), %edx
movq %r12, %rdi
movl %r14d, %esi
movl $0xeb, %ecx
movl %edx, %r8d
callq 0x10398
addl $0x14, %ebx
jmp 0xfc49
pushq $0x64
popq %rbx
cmpl $0xff, %r14d
je 0xfcbf
movq %r12, %rdi
movl %r14d, %esi
movl %ebx, %edx
movl %r14d, %ecx
movl $0x1cc, %r8d            # imm = 0x1CC
callq 0x10398
leal -0x1(%r14), %ecx
movq %r12, %rdi
movl %ecx, %esi
movl %ebx, %edx
movl $0x1cc, %r8d            # imm = 0x1CC
callq 0x10398
addl $0x14, %r14d
jmp 0xfc84
leaq 0x38(%rsp), %rdi
callq 0x5150
leaq 0x58(%rsp), %rdi
callq 0x5150
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x41
popq %rsi
pushq $0x1e
popq %rcx
pushq $0x3
popq %r9
movq %r12, %rdi
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
callq 0x101d6
pushq $0x5f
popq %r15
pushq $0x1e
popq %rcx
pushq $0x3
popq %rbp
movq %r12, %rdi
movl %r15d, %esi
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
movl $0x21c, %r14d           # imm = 0x21C
pushq $0x7d
popq %rsi
pushq $0x1e
popq %rcx
movq %r12, %rdi
movl $0x1fe, %edx            # imm = 0x1FE
movl %ecx, %r8d
movl %ebp, %r9d
callq 0x101d6
jmp 0xfc2b
callq 0x5500
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
jmp 0xfded
jmp 0xfdfa
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
jmp 0xfded
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
jmp 0xfded
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
jmp 0xfded
jmp 0xfdfa
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
jmp 0xfded
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
jmp 0xfded
movq %rax, %rbx
jmp 0xfe07
jmp 0xfdfa
jmp 0xfdfa
jmp 0xfdfa
jmp 0xfdfa
jmp 0xfdfa
jmp 0xfdfa
movq %rax, %rbx
leaq 0x178(%rsp), %rdi
jmp 0xfded
jmp 0xfdfa
movq %rax, %rbx
leaq 0x198(%rsp), %rdi
jmp 0xfded
jmp 0xfdfa
jmp 0xfdfa
jmp 0xfdfa
movq %rax, %rbx
leaq 0x138(%rsp), %rdi
jmp 0xfded
jmp 0xfdfa
movq %rax, %rbx
leaq 0x158(%rsp), %rdi
callq 0x5150
jmp 0xfdfd
jmp 0xfdfa
jmp 0xfdfa
jmp 0xfdfa
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x5150
leaq 0x58(%rsp), %rdi
callq 0x5150
movq %rbx, %rdi
callq 0x54b0
nop