// File: /workspace/github_cpp_makefile_star2_O3/Doug0855[P]TigerZone/Board.cpp
// Function: Board::buildTrail(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::buildTrail(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;
	tileBlocks[row][col].visit();

	// We must check how many ways a trail exits/enters a block to know how many trails the block contains.
	// If its 2 or under then the block is 1 connected trail, if it's more than the trails all start from the center and are unique entities
	if(row == 1 && col == 1) {
		int divergingTrailCount = 0;
		if(tileBlocks[row+1][col].getType() == "trail")
			divergingTrailCount++;
		if(tileBlocks[row-1][col].getType() == "trail")
			divergingTrailCount++;
		if(tileBlocks[row][col+1].getType() == "trail")
			divergingTrailCount++;
		if(tileBlocks[row][col-1].getType() == "trail")
			divergingTrailCount++;
		if(divergingTrailCount > 2)
			return;
	}

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

	// Check block for meeple
	if(tileBlocks[row][col].hasMeeple())
		struc->hasMeeple = true;

	// Check to see if you've added this blocks animals
	bool addedTileAnimals;
	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(tile->hasCrocodile())
		// 	struc->crocodileCount++;
		// if(tile->hasDeer())
		// 	struc->deerCount++;
		// if(tile->hasBoar())
		// 	struc->boarCount++;
		// if(tile->hasBuffalo())
		// 	struc->buffaloCount++;
	}

	// Check tiles above, below, left, and right of the current block to see if trail structure continues
	if((row + 1) <= 2 && !(tileBlocks[row + 1][col].isVisited()) && tileBlocks[row+1][col].getType() == "trail") {
		buildTrail(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) {
			visitedTiles.push_back(tile->getDownTile());
			std::vector< std::vector<Block> > newBlocks = tile->getDownTile()->getInnerBlocks();
			buildTrail(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() == "trail") {
		buildTrail(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) {
			visitedTiles.push_back(tile->getUpTile());
			std::vector< std::vector<Block> > newBlocks = tile->getUpTile()->getInnerBlocks();
			buildTrail(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() == "trail") {
		buildTrail(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) {
			visitedTiles.push_back(tile->getRightTile());
			std::vector< std::vector<Block> > newBlocks = tile->getRightTile()->getInnerBlocks();
			buildTrail(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() == "trail") {
		// std::cout<<"passing col-1"<<std::endl;
		buildTrail(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) {
			visitedTiles.push_back(tile->getLeftTile());
			std::vector< std::vector<Block> > newBlocks = tile->getLeftTile()->getInnerBlocks();
			buildTrail(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 $0x68, %rsp
movq %r8, %r13
movq %rcx, %r12
movq %rdx, -0x68(%rbp)
movq %rsi, %r14
movq %rdi, -0x58(%rbp)
movq %r8, %rdx
shrq $0x20, %rdx
movslq %r13d, %rcx
movq (%r12), %rax
leaq (%rcx,%rcx,2), %r15
movq %r8, -0x60(%rbp)
sarq $0x20, %r13
movq (%rax,%r15,8), %rsi
leaq (,%r13,4), %r8
addq %r13, %r8
movb $0x1, 0x1(%rsi,%r8,8)
cmpl $0x1, %ecx
setne %cl
movq %rdx, -0x88(%rbp)
cmpq $0x1, %rdx
setne %dl
orb %cl, %dl
movq %r12, -0x50(%rbp)
movq %r8, -0x70(%rbp)
movq %r9, -0x80(%rbp)
movq %r15, -0x78(%rbp)
jne 0x135b1
movq %r14, -0x90(%rbp)
movq 0x30(%rax), %rax
leaq -0x38(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x8(%rax,%r8,8), %rsi
movq 0x10(%rax,%r8,8), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %r12
movq %r12, %rdi
callq 0x9cc4
leaq 0x5345(%rip), %rsi      # 0x187b7
movq %r12, %rdi
callq 0x30b0
movl %eax, %r14d
movq (%r12), %rdi
cmpq %rbx, %rdi
je 0x1348b
callq 0x3200
xorl %r15d, %r15d
testl %r14d, %r14d
sete %r15b
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rax
leaq -0x48(%rbp), %rbx
leaq -0x38(%rbp), %rcx
movq %rcx, (%rbx)
movq -0x70(%rbp), %rcx
movq 0x8(%rax,%rcx,8), %rsi
movq 0x10(%rax,%rcx,8), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x9cc4
leaq 0x52ed(%rip), %rsi      # 0x187b7
movq %rbx, %rdi
callq 0x30b0
movl %eax, %r12d
movq (%rbx), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x134e6
callq 0x3200
xorl %eax, %eax
cmpl $0x1, %r14d
adcl $0x1, %eax
testl %r12d, %r12d
cmovel %eax, %r15d
movq -0x50(%rbp), %r12
movq (%r12), %rax
movq 0x18(%rax), %rax
leaq -0x38(%rbp), %rcx
movq %rcx, (%rbx)
movq 0x58(%rax), %rsi
movq 0x60(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x9cc4
leaq 0x5294(%rip), %rsi      # 0x187b7
movq %rbx, %rdi
callq 0x30b0
movl %eax, %r14d
movq (%rbx), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x1353f
callq 0x3200
cmpl $0x1, %r14d
adcl $0x0, %r15d
movq (%r12), %rax
movq 0x18(%rax), %rax
leaq -0x38(%rbp), %r12
movq %r12, (%rbx)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x9cc4
leaq 0x5247(%rip), %rsi      # 0x187b7
movq %rbx, %rdi
callq 0x30b0
movl %eax, %r14d
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x13588
callq 0x3200
cmpl $0x1, %r14d
adcl $0x0, %r15d
cmpl $0x2, %r15d
movq -0x90(%rbp), %r14
ja 0x13cc1
movq -0x50(%rbp), %r12
movq (%r12), %rax
movq -0x78(%rbp), %r15
movq (%rax,%r15,8), %rsi
leaq 0x28(%r14), %rdi
shlq $0x3, %r13
leaq (,%r13,4), %rbx
addq %r13, %rbx
addq %rbx, %rsi
callq 0x13d7a
movq (%r12), %rcx
movq (%rcx,%r15,8), %rax
cmpb $0x1, (%rax,%rbx)
movq %r14, %rbx
jne 0x135e1
movb $0x1, 0x50(%rbx)
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
movq -0x60(%rbp), %r13
cmpl $0x1, %r13d
movq -0x68(%rbp), %r12
movq -0x70(%rbp), %rdx
jg 0x136cf
movq %r13, %rax
shlq $0x20, %rax
addq %r11, %rax
incq %rax
sarq $0x20, %rax
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rax
cmpb $0x0, 0x1(%rax,%rdx,8)
movq -0x80(%rbp), %r9
jne 0x137bb
movq %rbx, %r15
movq %r9, %r13
leaq -0x38(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x8(%rax,%rdx,8), %rsi
movq 0x10(%rax,%rdx,8), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x9cc4
leaq 0x5164(%rip), %rsi      # 0x187b7
movq %rbx, %rdi
callq 0x30b0
movl %eax, %r14d
movq (%rbx), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x1366f
callq 0x3200
testl %r14d, %r14d
movq %r13, %r9
movq %r15, %rbx
movq -0x60(%rbp), %r13
movq -0x78(%rbp), %r15
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
movq -0x70(%rbp), %rdx
jne 0x137bb
leal 0x1(%r13), %r8d
movq %r13, %rax
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
andq %rcx, %rax
orq %rax, %r8
movq -0x58(%rbp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq -0x50(%rbp), %rcx
movq %r9, %r14
callq 0x133c2
movq -0x70(%rbp), %rdx
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
movq %r14, %r9
jmp 0x137bb
movq 0xb8(%r12), %rax
testq %rax, %rax
movq -0x80(%rbp), %r9
je 0x137cb
movq (%r9), %rcx
movq 0x8(%r9), %rsi
movq %rsi, %rdx
subq %rcx, %rdx
je 0x13725
sarq $0x3, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorl %edi, %edi
xorl %r8d, %r8d
cmpq %rax, (%rcx,%rdi,8)
sete %r10b
orb %r10b, %r8b
incq %rdi
cmpq %rdi, %rdx
jne 0x13704
testb $0x1, %r8b
movq -0x70(%rbp), %rdx
jne 0x137bb
movq %rax, -0x48(%rbp)
cmpq 0x10(%r9), %rsi
je 0x1373c
movq %rax, (%rsi)
addq $0x8, 0x8(%r9)
movq %r9, %r12
jmp 0x1374b
leaq -0x48(%rbp), %rdx
movq %r9, %rdi
movq %r9, %r12
callq 0x146bc
movl $0xd0, %esi
movq -0x68(%rbp), %rbx
addq 0xb8(%rbx), %rsi
leaq -0x48(%rbp), %rdi
callq 0x8cd0
movq 0xb8(%rbx), %rdx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
leal (%rax,%r13), %r8d
decl %r8d
movq %r13, %rax
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
andq %rcx, %rax
orq %rax, %r8
movq -0x58(%rbp), %rdi
movq %r14, %rsi
leaq -0x48(%rbp), %rcx
movq %r12, %r9
callq 0x133c2
leaq -0x48(%rbp), %rdi
callq 0x13dcc
movq %r14, %rbx
movq -0x80(%rbp), %r9
movq -0x68(%rbp), %r12
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
movq -0x70(%rbp), %rdx
testl %r13d, %r13d
jle 0x13884
movq -0x50(%rbp), %rax
movq (%rax), %rcx
leal (%r11,%r13), %eax
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %rax
cmpb $0x0, 0x1(%rax,%rdx,8)
jne 0x13962
movq %rbx, %r15
movq %r9, %r13
leaq -0x38(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x8(%rax,%rdx,8), %rsi
movq 0x10(%rax,%rdx,8), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x9cc4
leaq 0x4fa7(%rip), %rsi      # 0x187b7
movq %rbx, %rdi
callq 0x30b0
movl %eax, %r14d
movq (%rbx), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x1382c
callq 0x3200
testl %r14d, %r14d
movq %r13, %r9
movq %r15, %rbx
movq -0x60(%rbp), %r13
movq -0x78(%rbp), %r15
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
jne 0x13962
leal (%r11,%r13), %r8d
movq %r13, %rax
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
andq %rcx, %rax
orq %rax, %r8
movq -0x58(%rbp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq -0x50(%rbp), %rcx
movq %r9, %r14
callq 0x133c2
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
movq %r14, %r9
jmp 0x13962
movq 0xb0(%r12), %rax
testq %rax, %rax
je 0x13962
movq (%r9), %rcx
movq 0x8(%r9), %rsi
movq %rsi, %rdx
subq %rcx, %rdx
je 0x138d2
sarq $0x3, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorl %edi, %edi
xorl %r8d, %r8d
cmpq %rax, (%rcx,%rdi,8)
sete %r10b
orb %r10b, %r8b
incq %rdi
cmpq %rdi, %rdx
jne 0x138b5
testb $0x1, %r8b
jne 0x13962
movq %rax, -0x48(%rbp)
cmpq 0x10(%r9), %rsi
je 0x138ec
movq %rbx, %r14
movq %rax, (%rsi)
addq $0x8, 0x8(%r9)
movq %r9, %rbx
jmp 0x138fe
movq %rbx, %r14
leaq -0x48(%rbp), %rdx
movq %r9, %rdi
movq %r9, %rbx
callq 0x146bc
movl $0xd0, %esi
addq 0xb0(%r12), %rsi
leaq -0x48(%rbp), %rdi
callq 0x8cd0
movq 0xb0(%r12), %rdx
leal 0x2(%r13), %r8d
movq %r13, %rax
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
andq %rcx, %rax
orq %rax, %r8
movq -0x58(%rbp), %rdi
movq %r14, %rsi
leaq -0x48(%rbp), %rcx
movq %rbx, %r12
movq %rbx, %r9
callq 0x133c2
leaq -0x48(%rbp), %rdi
callq 0x13dcc
movq %r14, %rbx
movq %r12, %r9
movq -0x68(%rbp), %r12
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
cmpl $0x1, -0x88(%rbp)
jg 0x13a3b
movq -0x50(%rbp), %rax
movq (%rax), %rax
leaq (%r11,%r13), %rcx
incq %rcx
sarq $0x20, %rcx
movq (%rax,%r15,8), %rax
leaq (%rcx,%rcx,4), %rcx
cmpb $0x0, 0x1(%rax,%rcx,8)
jne 0x13b27
movq %rbx, %r15
movq %r9, %r13
leaq -0x38(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq 0x8(%rax,%rcx,8), %rsi
movq 0x10(%rax,%rcx,8), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x9cc4
leaq 0x4df5(%rip), %rsi      # 0x187b7
movq %rbx, %rdi
callq 0x30b0
movl %eax, %r14d
movq (%rbx), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x139de
callq 0x3200
testl %r14d, %r14d
movq %r13, %r9
movq %r15, %rbx
movq -0x60(%rbp), %rcx
movq -0x78(%rbp), %r15
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
jne 0x13b27
movq %rcx, %rax
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
andq %rdx, %rax
addq %r11, %rax
movl %ecx, %ecx
leaq (%rcx,%rax), %r8
incq %r8
movq -0x58(%rbp), %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq -0x50(%rbp), %rcx
movq %r9, %r14
callq 0x133c2
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
movq %r14, %r9
jmp 0x13b27
movq 0xc8(%r12), %rax
testq %rax, %rax
je 0x13b34
movq (%r9), %rcx
movq 0x8(%r9), %rsi
movq %rsi, %rdx
subq %rcx, %rdx
je 0x13a89
sarq $0x3, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorl %edi, %edi
xorl %r8d, %r8d
cmpq %rax, (%rcx,%rdi,8)
sete %r10b
orb %r10b, %r8b
incq %rdi
cmpq %rdi, %rdx
jne 0x13a6c
testb $0x1, %r8b
jne 0x13b27
movq %rax, -0x48(%rbp)
cmpq 0x10(%r9), %rsi
je 0x13aa3
movq %rbx, %r14
movq %rax, (%rsi)
addq $0x8, 0x8(%r9)
movq %r9, %r12
jmp 0x13ab5
movq %rbx, %r14
leaq -0x48(%rbp), %rdx
movq %r9, %rdi
movq %r9, %r12
callq 0x146bc
movl $0xd0, %esi
movq -0x68(%rbp), %rbx
addq 0xc8(%rbx), %rsi
leaq -0x48(%rbp), %rdi
callq 0x8cd0
movq 0xc8(%rbx), %rdx
movq %r13, %rax
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
andq %rcx, %rax
movl %r13d, %ecx
addq %rax, %rcx
movabsq $-0x200000000, %r8      # imm = 0xFFFFFFFE00000000
addq %rcx, %r8
movq -0x58(%rbp), %rdi
movq %r14, %rsi
leaq -0x48(%rbp), %rcx
movq %r12, %r13
movq %r12, %r9
callq 0x133c2
leaq -0x48(%rbp), %rdi
callq 0x13dcc
movq %r14, %rbx
movq %r13, %r9
movq -0x68(%rbp), %r12
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
cmpl $0x0, -0x88(%rbp)
jle 0x13be3
movq -0x50(%rbp), %rax
movq (%rax), %rax
movq -0x88(%rbp), %rcx
addl %r11d, %ecx
movq (%rax,%r15,8), %rax
leaq (%rcx,%rcx,4), %rcx
cmpb $0x0, 0x1(%rax,%rcx,8)
jne 0x13cc1
movq %rbx, %r15
movq %r9, %r13
leaq -0x38(%rbp), %rdx
movq %rdx, -0x10(%rdx)
movq 0x8(%rax,%rcx,8), %rsi
movq 0x10(%rax,%rcx,8), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x9cc4
leaq 0x4c31(%rip), %rsi      # 0x187b7
movq %rbx, %rdi
callq 0x30b0
movl %eax, %r14d
movq (%rbx), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x13ba2
callq 0x3200
testl %r14d, %r14d
jne 0x13cc1
movq %r13, %r9
movq -0x60(%rbp), %rcx
movq %rcx, %rax
movabsq $-0x100000000, %rdi     # imm = 0xFFFFFFFF00000000
andq %rdi, %rax
addq %rdi, %rax
movl %ecx, %r8d
orq %rax, %r8
movq -0x58(%rbp), %rdi
movq %r15, %rsi
movq %r12, %rdx
movq -0x50(%rbp), %rcx
callq 0x133c2
jmp 0x13cc1
movq 0xc0(%r12), %rax
testq %rax, %rax
je 0x13cc1
movq (%r9), %rcx
movq 0x8(%r9), %rsi
movq %rsi, %rdx
subq %rcx, %rdx
je 0x13c31
sarq $0x3, %rdx
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorl %edi, %edi
xorl %r8d, %r8d
cmpq %rax, (%rcx,%rdi,8)
sete %r10b
orb %r10b, %r8b
incq %rdi
cmpq %rdi, %rdx
jne 0x13c14
testb $0x1, %r8b
jne 0x13cc1
movq %rax, -0x48(%rbp)
cmpq 0x10(%r9), %rsi
je 0x13c4f
movq %rbx, %r14
movq %rax, (%rsi)
addq $0x8, 0x8(%r9)
movq -0x60(%rbp), %r13
movq %r9, %r15
jmp 0x13c65
movq %rbx, %r14
leaq -0x48(%rbp), %rdx
movq %r9, %rdi
movq %r9, %r15
callq 0x146bc
movq -0x60(%rbp), %r13
movl $0xd0, %esi
addq 0xc0(%r12), %rsi
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x8cd0
movq 0xc0(%r12), %rdx
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
andq %r13, %rcx
movl %r13d, %eax
addq %rcx, %rax
movabsq $0x200000000, %r8       # imm = 0x200000000
addq %rax, %r8
movq -0x58(%rbp), %rdi
movq %r14, %rsi
movq %rbx, %rcx
movq %r15, %r9
callq 0x133c2
leaq -0x48(%rbp), %rdi
callq 0x13dcc
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x13cd6
jmp 0x13cd6
jmp 0x13cd6
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x13dcc
movq %rbx, %rdi
callq 0x33f0