// File: /workspace/github_cpp_makefile_star2_O2/Doug0855[P]TigerZone/Board.cpp
// Function: Board::buildJungle(Structure*, Tile*, std::vector<std::vector<Block, std::allocator<Block>>, std::allocator<std::vector<Block, std::allocator<Block>>>>&, std::pair<int, int>, std::vector<Tile*, std::allocator<Tile*>>&)
void Board::buildJungle(Structure* struc, Tile *tile, std::vector< std::vector<Block> >& tileBlocks, std::pair<int,int> blockSpot, std::vector<Tile*> &visitedTiles) {
	int row = blockSpot.first;
	int col = blockSpot.second;
	//debugging std::cout<<"in build jungle at "<<row<<' '<<col<<std::endl;
	tileBlocks[row][col].visit();

	struc->structureBlocks.push_back(tileBlocks[row][col]);

	if(tileBlocks[row][col].hasMeeple())
		struc->hasMeeple = true;

	bool addedTileAnimals = false;
	for(int i = 0; i < visitedTiles.size(); i++) {
			if(visitedTiles[i] == tile)
			{
				addedTileAnimals = true;
				//debugging std::cout<<"Added animals already for this tile"<<std::endl;
			}
	}
	if(!addedTileAnimals) {
		struc->checkAnimals(tile);
	}

	if(tileBlocks[row][col].getType() == "mixed") {
		int trailFaces = 0;
		// Determine how many faces are trail faces. If there's only 1 than we know the mixed blocks don't connect within the tile
		// Otherwise we know that the mixed blocks connect to form only 1 jungle rather than 2
		if(tile->getUpFace()->getType() == "trail")
			trailFaces++;
		if(tile->getDownFace()->getType() == "trail")
			trailFaces++;
		if(tile->getRightFace()->getType() == "trail")
			trailFaces++;
		if(tile->getLeftFace()->getType() == "trail")
			trailFaces++;

		if(trailFaces > 0) {
			if(trailFaces != 1) {
				for(int i = 0; i < 3; i++) {
					for(int j = 0; j < 3; j++) {
						if(tileBlocks[i][j].getType() == "mixed" && !(tileBlocks[i][j].isVisited()))
							buildJungle(struc, tile, tileBlocks, std::pair<int,int>(i,j), visitedTiles);
					}
				}
			}
		}

	}

	// Check tiles above, below, left, and right of the current block to see if lake structure continues
	// std::cout<<"about to cehck row+1"<<std::endl;
	if((row + 1) <= 2 && !(tileBlocks[row + 1][col].isVisited()) &&
		(tileBlocks[row+1][col].getType() == "jungle" || tileBlocks[row+1][col].getType() == "mixed")) {
		buildJungle(struc, tile, tileBlocks, std::pair<int,int>(row+1,col), visitedTiles);
	}
	else if(row + 1 > 2 && tile->getDownTile() != NULL) {
		bool visitedNeighborTile = false;
		for(int i = 0; i < visitedTiles.size(); i++) {
			if(visitedTiles[i] == tile->getDownTile())
				visitedNeighborTile = true;
		}
		if(!visitedNeighborTile && tile->getDownTile()->getUpFaceType()!= "lake") {
			visitedTiles.push_back(tile->getDownTile());
			std::vector< std::vector<Block> > newBlocks = tile->getDownTile()->getInnerBlocks();
			buildJungle(struc, tile->getDownTile(), newBlocks, std::pair<int,int>(row-2,col), visitedTiles);
		}
	}
	// std::cout<<"about to check row-1"<<std::endl;
	if((row - 1) >= 0 && !(tileBlocks[row - 1][col].isVisited()) &&
		(tileBlocks[row - 1][col].getType() == "jungle" || tileBlocks[row-1][col].getType() == "mixed")) {
		buildJungle(struc, tile, tileBlocks, std::pair<int,int>(row-1,col), visitedTiles);
	}
	else if(row-1 < 0 && tile->getUpTile() != NULL) {
		bool visitedNeighborTile = false;
		for(int i = 0; i < visitedTiles.size(); i++) {
			if(visitedTiles[i] == tile->getUpTile())
				visitedNeighborTile = true;
		}
		if (!visitedNeighborTile && tile->getUpTile()->getDownFaceType() != "lake") {
			visitedTiles.push_back(tile->getUpTile());
			std::vector< std::vector<Block> > newBlocks = tile->getUpTile()->getInnerBlocks();
			buildJungle(struc, tile->getUpTile(), newBlocks, std::pair<int,int>(row+2,col), visitedTiles);
		}
	}
	// std::cout<<"about to check col+1"<<std::endl;
	if((col + 1) <= 2 && !(tileBlocks[row][col + 1].isVisited()) &&
		(tileBlocks[row][col + 1].getType() == "jungle" || tileBlocks[row][col+1].getType() == "mixed")) {
		buildJungle(struc, tile, tileBlocks, std::pair<int,int>(row,col+1), visitedTiles);
	}
	else if(col+1 > 2 && tile->getRightTile() != NULL) {
		bool visitedNeighborTile = false;
		for(int i = 0; i < visitedTiles.size(); i++) {
			if(visitedTiles[i] == tile->getRightTile())
				visitedNeighborTile = true;
		}
		if (!visitedNeighborTile && tile->getRightTile()->getLeftFaceType() != "lake") {
			visitedTiles.push_back(tile->getRightTile());
			std::vector< std::vector<Block> > newBlocks = tile->getRightTile()->getInnerBlocks();
			buildJungle(struc, tile->getRightTile(), newBlocks, std::pair<int,int>(row,col-2), visitedTiles);
		}
	}
	// std::cout<<"about to check col-1"<<std::endl;
	if((col - 1) >= 0 && !(tileBlocks[row][col-1].isVisited()) &&
		(tileBlocks[row][col - 1].getType() == "jungle" ||	 tileBlocks[row][col-1].getType() == "mixed")) {
		// std::cout<<"passing col-1"<<std::endl;
		buildJungle(struc, tile, tileBlocks, std::pair<int,int>(row,col-1), visitedTiles);
	}
	else if(col-1 < 0 && tile->getLeftTile() != NULL) {
		bool visitedNeighborTile = false;
		for(int i = 0; i < visitedTiles.size(); i++) {
			if(visitedTiles[i] == tile->getLeftTile())
				visitedNeighborTile = true;
		}
		if (!visitedNeighborTile && tile->getLeftTile()->getRightFaceType() != "lake") {
			visitedTiles.push_back(tile->getLeftTile());
			std::vector< std::vector<Block> > newBlocks = tile->getLeftTile()->getInnerBlocks();
			buildJungle(struc, tile->getLeftTile(), newBlocks, std::pair<int,int>(row,col+2), visitedTiles);
		}
	}
	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %r9, -0x40(%rbp)
movq %rcx, %r14
movq %rdx, -0x30(%rbp)
movq %rsi, %rdx
movq %rdi, -0x78(%rbp)
movq %r8, %rax
shrq $0x20, %rax
movq %rax, -0x90(%rbp)
movslq %r8d, %rax
movq (%rcx), %rcx
imulq $0x18, %rax, %rbx
movq %r8, %rax
movq %r8, -0x48(%rbp)
sarq $0x20, %rax
movq (%rcx,%rbx), %rsi
imulq $0x28, %rax, %r15
movb $0x1, 0x1(%rsi,%r15)
addq %r15, %rsi
movq %rdx, -0x50(%rbp)
leaq 0x28(%rdx), %rdi
callq 0xec76
movq (%r14), %rax
movq %rbx, -0x88(%rbp)
movq (%rax,%rbx), %rax
movq %r15, %rbx
cmpb $0x1, (%rax,%r15)
jne 0xd1fb
movq -0x50(%rbp), %rcx
movb $0x1, 0x50(%rcx)
movq -0x48(%rbp), %rcx
shlq $0x20, %rcx
movq %rcx, -0x98(%rbp)
movq -0x40(%rbp), %rdx
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
xorl %esi, %esi
xorl %edi, %edi
cmpq %rsi, %rdx
je 0xd239
movq -0x30(%rbp), %r8
cmpq %r8, (%rcx,%rsi,8)
sete %r8b
orb %r8b, %dil
incq %rsi
jmp 0xd220
testb $0x1, %dil
jne 0xd25a
movq -0x50(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x11a54
movq (%r14), %rax
movq -0x88(%rbp), %rcx
movq (%rax,%rcx), %rax
movq %rbx, -0x80(%rbp)
leaq (%rax,%rbx), %rsi
addq $0x8, %rsi
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x32c0
leaq 0x559b(%rip), %rsi      # 0x12814
movq %rbx, %rdi
callq 0x6261
movq %r14, -0x38(%rbp)
movl %eax, %r14d
movq %rbx, %rdi
callq 0x3120
testb %r14b, %r14b
movq -0x38(%rbp), %r14
je 0xd41a
movq -0x30(%rbp), %rbx
leaq 0x10(%rbx), %rsi
leaq -0x70(%rbp), %r14
movq %r14, %rdi
callq 0x32c0
leaq 0x547f(%rip), %r12      # 0x12737
movq %r14, %rdi
movq %r12, %rsi
callq 0x6261
movl %eax, %r15d
movq %r14, %rdi
callq 0x3120
movzbl %r15b, %r13d
leaq 0x38(%rbx), %rsi
movq %r14, %rdi
callq 0x32c0
movq %r14, %rdi
movq %r12, %rsi
callq 0x6261
movl %eax, %r15d
movq %r14, %rdi
callq 0x3120
leal 0x1(%r13), %r12d
testb %r15b, %r15b
cmovel %r13d, %r12d
leaq 0x88(%rbx), %rsi
movq %r14, %rdi
callq 0x32c0
movq %r14, %rdi
leaq 0x541f(%rip), %r13      # 0x12737
movq %r13, %rsi
callq 0x6261
movl %eax, %r15d
movq %r14, %rdi
callq 0x3120
movzbl %r15b, %r15d
leaq 0x60(%rbx), %rsi
movq %r14, %rdi
callq 0x32c0
movq %r14, %rdi
movq %r13, %rsi
callq 0x6261
movl %eax, %ebx
movq %r14, %rdi
movq -0x38(%rbp), %r14
callq 0x3120
movzbl %bl, %eax
addl %r15d, %eax
addl %r12d, %eax
cmpl $0x2, %eax
jb 0xd41a
xorl %ebx, %ebx
leaq -0x70(%rbp), %r15
cmpq $0x3, %rbx
je 0xd41a
imulq $0x18, %rbx, %r12
movq %rbx, -0xa0(%rbp)
pushq $0x8
popq %r13
cmpq $0x80, %r13
je 0xd40b
movq (%r14), %rax
movq (%rax,%r12), %rsi
addq %r13, %rsi
movq %r15, %rdi
callq 0x32c0
movq %r15, %rdi
leaq 0x546a(%rip), %rsi      # 0x12814
callq 0x6261
testb %al, %al
je 0xd3ed
movq (%r14), %rax
movq (%rax,%r12), %rax
movb -0x7(%rax,%r13), %r14b
movq %r15, %rdi
callq 0x3120
testb %r14b, %r14b
movq -0x38(%rbp), %r14
jne 0xd3f5
movq -0x78(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq %r14, %rcx
movq %rbx, %r8
movq -0x40(%rbp), %r9
callq 0xd174
jmp 0xd3f5
movq %r15, %rdi
callq 0x3120
addq $0x28, %r13
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %rbx
jmp 0xd385
movq -0xa0(%rbp), %rbx
incq %rbx
jmp 0xd36c
movabsq $-0x100000000, %r15     # imm = 0xFFFFFFFF00000000
cmpl $0x1, -0x48(%rbp)
jg 0xd49b
movabsq $0x100000000, %rax      # imm = 0x100000000
movq -0x98(%rbp), %rcx
addq %rax, %rcx
sarq $0x20, %rcx
movq (%r14), %rax
imulq $0x18, %rcx, %r14
movq (%rax,%r14), %rax
movq -0x80(%rbp), %rbx
cmpb $0x0, 0x1(%rax,%rbx)
jne 0xd616
leaq (%rax,%rbx), %rsi
addq $0x8, %rsi
movq %rbx, %r12
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x32c0
leaq 0x52b1(%rip), %rsi      # 0x1272b
movq %rbx, %rdi
callq 0x6261
testb %al, %al
je 0xd59d
leaq -0x70(%rbp), %rdi
callq 0x3120
movq %r12, %rbx
jmp 0xd5ef
movq -0x30(%rbp), %rax
movq 0xb8(%rax), %rsi
testq %rsi, %rsi
movq -0x80(%rbp), %rbx
je 0xd620
movq -0x40(%rbp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
xorl %edx, %edx
xorl %edi, %edi
cmpq %rdx, %rcx
je 0xd4de
cmpq %rsi, (%rax,%rdx,8)
sete %r8b
orb %r8b, %dil
incq %rdx
jmp 0xd4c9
testb $0x1, %dil
jne 0xd616
addq $0x10, %rsi
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x32c0
leaq 0x5233(%rip), %rsi      # 0x12732
movq %rbx, %rdi
callq 0x64ed
movl %eax, %r14d
movq %rbx, %rdi
movq -0x80(%rbp), %rbx
callq 0x3120
testb %r14b, %r14b
je 0xd616
movq -0x30(%rbp), %r12
movq 0xb8(%r12), %rax
leaq -0x70(%rbp), %rsi
movq %rax, (%rsi)
movq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0xf488
movl $0xd0, %esi
addq 0xb8(%r12), %rsi
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x65ba
movq 0xb8(%r12), %rdx
movq -0x48(%rbp), %rax
movabsq $0x100000000, %rcx      # imm = 0x100000000
leal (%rcx,%rax), %r8d
addl $-0x2, %r8d
andq %r15, %rax
orq %rax, %r8
movq -0x78(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq %rbx, %rcx
movq %r14, %r9
callq 0xd174
leaq -0x70(%rbp), %rdi
callq 0xecb2
movq -0x80(%rbp), %rbx
jmp 0xd616
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq (%rax,%r14), %rax
leaq (%rax,%r12), %rsi
addq $0x8, %rsi
leaq -0xc0(%rbp), %rdi
callq 0x32c0
leaq 0x5251(%rip), %rsi      # 0x12814
leaq -0xc0(%rbp), %rbx
movq %rbx, %rdi
callq 0x6261
movl %eax, %r14d
movq %rbx, %rdi
callq 0x3120
leaq -0x70(%rbp), %rdi
callq 0x3120
testb %r14b, %r14b
movq -0x80(%rbp), %rbx
je 0xd616
movq -0x48(%rbp), %rax
leal 0x1(%rax), %r8d
andq %r15, %rax
orq %rax, %r8
movq -0x78(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %r9
callq 0xd174
cmpl $0x0, -0x48(%rbp)
movq -0x38(%rbp), %r14
jle 0xd684
movq -0x48(%rbp), %rax
movabsq $0x100000000, %rcx      # imm = 0x100000000
addl %ecx, %eax
decl %eax
movq (%r14), %rcx
imulq $0x18, %rax, %r14
movq (%rcx,%r14), %rax
cmpb $0x0, 0x1(%rax,%rbx)
jne 0xd7ed
leaq (%rax,%rbx), %rsi
addq $0x8, %rsi
movq %rbx, %r12
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x32c0
leaq 0x50c5(%rip), %rsi      # 0x1272b
movq %rbx, %rdi
callq 0x6261
testb %al, %al
je 0xd76b
leaq -0x70(%rbp), %rdi
callq 0x3120
jmp 0xd7b9
movq -0x30(%rbp), %rax
movq 0xb0(%rax), %rsi
testq %rsi, %rsi
je 0xd7ed
movq -0x40(%rbp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
xorl %edx, %edx
xorl %edi, %edi
cmpq %rdx, %rcx
je 0xd6c3
cmpq %rsi, (%rax,%rdx,8)
sete %r8b
orb %r8b, %dil
incq %rdx
jmp 0xd6ae
testb $0x1, %dil
jne 0xd7ed
addq $0x38, %rsi
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x32c0
leaq 0x504e(%rip), %rsi      # 0x12732
movq %rbx, %rdi
callq 0x64ed
movl %eax, %r14d
movq %rbx, %rdi
callq 0x3120
testb %r14b, %r14b
je 0xd7ed
movq -0x30(%rbp), %r12
movq 0xb0(%r12), %rax
leaq -0x70(%rbp), %rsi
movq %rax, (%rsi)
movq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0xf488
movl $0xd0, %esi
addq 0xb0(%r12), %rsi
movq %rbx, %rdi
callq 0x65ba
movq 0xb0(%r12), %rdx
movq -0x48(%rbp), %rax
leal 0x2(%rax), %r8d
andq %r15, %rax
orq %rax, %r8
movq -0x78(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq %rbx, %rcx
movq %r14, %r9
callq 0xd174
leaq -0x70(%rbp), %rdi
callq 0xecb2
jmp 0xd7ed
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq (%rax,%r14), %rax
leaq (%rax,%r12), %rsi
addq $0x8, %rsi
leaq -0xc0(%rbp), %rdi
callq 0x32c0
leaq 0x5083(%rip), %rsi      # 0x12814
leaq -0xc0(%rbp), %rbx
movq %rbx, %rdi
callq 0x6261
movl %eax, %r14d
movq %rbx, %rdi
callq 0x3120
leaq -0x70(%rbp), %rdi
callq 0x3120
testb %r14b, %r14b
je 0xd7ed
movq -0x48(%rbp), %rax
movabsq $0x100000000, %rcx      # imm = 0x100000000
leal (%rcx,%rax), %r8d
decl %r8d
andq %r15, %rax
orq %rax, %r8
movq -0x78(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %r9
callq 0xd174
cmpl $0x1, -0x90(%rbp)
jg 0xd866
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x48(%rbp), %rcx
movabsq $0x100000000, %rdx      # imm = 0x100000000
addq %rdx, %rcx
sarq $0x20, %rcx
movq -0x88(%rbp), %rdx
movq (%rax,%rdx), %rax
imulq $0x28, %rcx, %r14
cmpb $0x0, 0x1(%rax,%r14)
jne 0xd9ea
leaq (%rax,%r14), %rsi
addq $0x8, %rsi
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x32c0
leaq 0x4ee3(%rip), %rsi      # 0x1272b
movq %rbx, %rdi
callq 0x6261
testb %al, %al
je 0xd95f
leaq -0x70(%rbp), %rdi
callq 0x3120
jmp 0xd9b4
movq -0x30(%rbp), %rax
movq 0xc8(%rax), %rsi
testq %rsi, %rsi
movq -0x38(%rbp), %rax
je 0xd9f7
movq -0x40(%rbp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
xorl %edx, %edx
xorl %edi, %edi
cmpq %rdx, %rcx
je 0xd8a9
cmpq %rsi, (%rax,%rdx,8)
sete %r8b
orb %r8b, %dil
incq %rdx
jmp 0xd894
testb $0x1, %dil
jne 0xd9ea
addq $0x60, %rsi
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x32c0
leaq 0x4e68(%rip), %rsi      # 0x12732
movq %rbx, %rdi
callq 0x64ed
movl %eax, %r14d
movq %rbx, %rdi
callq 0x3120
testb %r14b, %r14b
je 0xd9ea
movq -0x30(%rbp), %r12
movq 0xc8(%r12), %rax
leaq -0x70(%rbp), %rsi
movq %rax, (%rsi)
movq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0xf488
movl $0xd0, %esi
addq 0xc8(%r12), %rsi
movq %rbx, %rdi
callq 0x65ba
movq 0xc8(%r12), %rdx
movq -0x48(%rbp), %rcx
movq %rcx, %rax
andq %r15, %rax
movl %ecx, %ecx
addq %rax, %rcx
movabsq $-0x200000000, %r8      # imm = 0xFFFFFFFE00000000
addq %rcx, %r8
movq -0x78(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq %rbx, %rcx
movq %r14, %r9
callq 0xd174
leaq -0x70(%rbp), %rdi
callq 0xecb2
jmp 0xd9ea
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x88(%rbp), %rcx
movq (%rax,%rcx), %rax
leaq (%rax,%r14), %rsi
addq $0x8, %rsi
leaq -0xc0(%rbp), %rdi
callq 0x32c0
leaq 0x4e88(%rip), %rsi      # 0x12814
leaq -0xc0(%rbp), %rbx
movq %rbx, %rdi
callq 0x6261
movl %eax, %r14d
movq %rbx, %rdi
callq 0x3120
leaq -0x70(%rbp), %rdi
callq 0x3120
testb %r14b, %r14b
je 0xd9ea
movq -0x48(%rbp), %rcx
movq %rcx, %rax
andq %r15, %rax
movabsq $0x100000000, %rdx      # imm = 0x100000000
addq %rdx, %rax
movl %ecx, %r8d
orq %rax, %r8
movq -0x78(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %r9
callq 0xd174
cmpl $0x0, -0x90(%rbp)
movq -0x38(%rbp), %rax
jle 0xda63
movq (%rax), %rax
movq -0x90(%rbp), %rcx
movabsq $0x100000000, %rdx      # imm = 0x100000000
addl %edx, %ecx
decl %ecx
movq -0x88(%rbp), %rdx
movq (%rax,%rdx), %rax
imulq $0x28, %rcx, %r14
cmpb $0x0, 0x1(%rax,%r14)
jne 0xdbd9
leaq (%rax,%r14), %rsi
addq $0x8, %rsi
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x32c0
leaq 0x4ce6(%rip), %rsi      # 0x1272b
movq %rbx, %rdi
callq 0x6261
testb %al, %al
je 0xdb58
leaq -0x70(%rbp), %rdi
callq 0x3120
jmp 0xdbad
movq -0x30(%rbp), %rax
movq 0xc0(%rax), %rsi
testq %rsi, %rsi
je 0xdbd9
movq -0x40(%rbp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
xorl %edx, %edx
xorl %edi, %edi
cmpq %rdx, %rcx
je 0xdaa2
cmpq %rsi, (%rax,%rdx,8)
sete %r8b
orb %r8b, %dil
incq %rdx
jmp 0xda8d
testb $0x1, %dil
jne 0xdbd9
addq $0x88, %rsi
leaq -0x70(%rbp), %rbx
movq %rbx, %rdi
callq 0x32c0
leaq 0x4c6c(%rip), %rsi      # 0x12732
movq %rbx, %rdi
callq 0x64ed
movl %eax, %r14d
movq %rbx, %rdi
callq 0x3120
testb %r14b, %r14b
je 0xdbd9
movq -0x30(%rbp), %r12
movq 0xc0(%r12), %rax
leaq -0x70(%rbp), %rsi
movq %rax, (%rsi)
movq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0xf488
movl $0xd0, %esi
addq 0xc0(%r12), %rsi
movq %rbx, %rdi
callq 0x65ba
movq 0xc0(%r12), %rdx
movq -0x48(%rbp), %rax
andq %rax, %r15
movl %eax, %eax
addq %r15, %rax
movabsq $0x200000000, %r8       # imm = 0x200000000
addq %rax, %r8
movq -0x78(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq %rbx, %rcx
movq %r14, %r9
callq 0xd174
leaq -0x70(%rbp), %rdi
callq 0xecb2
jmp 0xdbd9
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x88(%rbp), %rcx
movq (%rax,%rcx), %rax
leaq (%rax,%r14), %rsi
addq $0x8, %rsi
leaq -0xc0(%rbp), %rdi
callq 0x32c0
leaq 0x4c8f(%rip), %rsi      # 0x12814
leaq -0xc0(%rbp), %rbx
movq %rbx, %rdi
callq 0x6261
movl %eax, %r14d
movq %rbx, %rdi
callq 0x3120
leaq -0x70(%rbp), %rdi
callq 0x3120
testb %r14b, %r14b
je 0xdbd9
movq -0x48(%rbp), %rcx
movq %rcx, %rax
andq %r15, %rax
addq %r15, %rax
movl %ecx, %r8d
orq %rax, %r8
movq -0x78(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %r9
callq 0xd174
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xdbf1
jmp 0xdbf1
jmp 0xdbf1
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0xecb2
jmp 0xdc11
jmp 0xdc05
jmp 0xdc05
jmp 0xdc05
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x3120
movq %rbx, %rdi
callq 0x33c0
nop