// File: /workspace/github_cpp_makefile_star2_O1/toxaart[P]hierarchical_block_sparse_lib/source/HierarchicalBlockSparseMatrix.h
// Function: hbsm::HierarchicalBlockSparseMatrix<double>::inv_chol(hbsm::HierarchicalBlockSparseMatrix<double> const&, hbsm::HierarchicalBlockSparseMatrix<double>&)
void HierarchicalBlockSparseMatrix<Treal>::inv_chol(HierarchicalBlockSparseMatrix<Treal> const & A, HierarchicalBlockSparseMatrix<Treal> & Z){


			if(!Z.empty()) throw std::runtime_error("Error in HierarchicalBlockSparseMatrix::inv_chol(): non-empty matrix to write result!");
			if(A.nRows_orig != A.nCols_orig) throw std::runtime_error("Error in HierarchicalBlockSparseMatrix::inv_chol(): call for non-square matrix!");

			Z.set_params(A.get_params());

			Z.resize(A.nRows_orig, A.nCols_orig);

			if(Z.lowest_level()){

				if(Z.get_first_row_position() > Z.get_n_rows()-1 || Z.get_first_col_position() > Z.get_n_cols()-1) return;

				int blocksize = Z.nRows;

				int n = Z.nRows;

				if(Z.on_bottom_boundary()) n = Z.get_n_rows() % Z.blocksize; // fill only necessary elements

				for(int i = 0; i < n; ++i) Z.submatrix[i*blocksize + i] = 1.0;

				Z.submatrix[0] = std::sqrt(1/A.submatrix[0]);
				for (int i = 1; i < n; i++) {
					Treal R;
					for (int j = 0; j < i; j++) {
						R = 0;

						for (int k = 0; k < n; k++)
							R += A.submatrix[k*blocksize+j] * Z.submatrix[i*blocksize+k];

						R *= Z.submatrix[j*blocksize+j];

						for (int k = 0; k < n; k++)
							Z.submatrix[i*blocksize+k] -= Z.submatrix[j*blocksize+k] * R;
					}
					R = 0;
					for (int k = 0; k < n; k++)
						R += A.submatrix[k*blocksize+i] * Z.submatrix[i*blocksize+k];

					R = std::sqrt(1/R);
					for (int k = 0; k < n; k++)
						Z.submatrix[i*blocksize+k] *= R;
				}

			   return;


			}

			// Z_00 = invChol(A_00)
			if(A.children[0] != NULL){
				Z.children[0] = std::make_shared<HierarchicalBlockSparseMatrix<Treal> >();
				Z.children[0]->parent = &Z;
				inv_chol(*A.children[0], *Z.children[0]);
			}


			if(Z.children[0] == NULL) throw std::runtime_error("Error in HierarchicalBlockSparseMatrix::inv_chol(): smth went wrong since Z_00 is NULL!");

			// R = Z_00^T * A_01
			std::shared_ptr<HierarchicalBlockSparseMatrix<Treal> > R;

			if(A.children[2] != NULL){
				R = std::make_shared<HierarchicalBlockSparseMatrix<Treal> >();
				multiply(*Z.children[0], true, *A.children[2], false, *R);
			}

			// T = Z_00 * R
			std::shared_ptr<HierarchicalBlockSparseMatrix<Treal> > T;
			if(R != NULL){
				T = std::make_shared<HierarchicalBlockSparseMatrix<Treal> >();
				multiply(*Z.children[0], false, *R, false, *T);
			}


			// X = -T
			std::shared_ptr<HierarchicalBlockSparseMatrix<Treal> > X;
			if(T != NULL){
				X = std::make_shared<HierarchicalBlockSparseMatrix<Treal> >();
				X->rescale(*T,-1.0);
			}

			// Y = A_10 * X
			std::shared_ptr<HierarchicalBlockSparseMatrix<Treal> > Y;

			if(A.children[1] != NULL && X != NULL){
				Y = std::make_shared<HierarchicalBlockSparseMatrix<Treal> >();
				multiply(*A.children[1], false, *X, false, *Y);
			}


			// Q = Y + A_11
			std::shared_ptr<HierarchicalBlockSparseMatrix<Treal> > Q;
			if(A.children[3] != NULL){
				if(Y != NULL){
					Q = std::make_shared<HierarchicalBlockSparseMatrix<Treal> >();
					add(*Y, *A.children[3], *Q);
				}
				else{
					Q = A.children[3];
				}
			}
			else{
				Q = Y;
			}

			// Z_11 = invChol(Q)
			if(Z.children[3] == NULL){
				if(Q != NULL){
					Z.children[3] = std::make_shared<HierarchicalBlockSparseMatrix<Treal> >();
					Z.children[3]->parent = &Z;
					inv_chol(*Q, *Z.children[3]);
				}
			}
			else throw std::runtime_error("Error in HierarchicalBlockSparseMatrix::inv_chol(): smth went wrong since Z_11 was not NULL!");

			// Z_01 = X * Z_11
			if(Z.children[2] == NULL){
				if(X != NULL){
					Z.children[2] = std::make_shared<HierarchicalBlockSparseMatrix<Treal> >();
					multiply(*X, false, *Z.children[3], false, *Z.children[2]);
				}
			}
			else std::runtime_error("Error in HierarchicalBlockSparseMatrix::inv_chol(): smth went wrong since Z_01 was not NULL!");

			// Z_10 = 0
			assert(Z.children[1] == NULL);

			return;

		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x1ad92
testb %al, %al
je 0xffd4
movl 0x8(%r14), %eax
cmpl 0xc(%r14), %eax
jne 0xfff2
movl 0x10(%r14), %eax
leaq 0x20(%rsp), %rsi
movl %eax, (%rsi)
movq %rbx, %rdi
callq 0x9974
movl 0x8(%r14), %esi
movl 0xc(%r14), %edx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x99da
movq %rbx, %rdi
callq 0x1aed4
testb %al, %al
je 0xf906
movq %r14, 0x30(%rsp)
movq %rbx, %rdi
callq 0x1b194
cmpq $0x0, 0x68(%rbx)
movq %rbx, %rcx
je 0xf83b
movq %rbx, %rdx
movq %rdx, %rcx
movq 0x68(%rdx), %rdx
testq %rdx, %rdx
jne 0xf82f
movq %rbx, 0x8(%rsp)
cmpl 0x8(%rcx), %eax
jge 0xfe80
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x1b468
cmpq $0x0, 0x68(%rbx)
movq %rbx, %rcx
je 0xf86c
movq %rbx, %rcx
movq 0x68(%rbx), %rbx
testq %rbx, %rbx
jne 0xf860
cmpl 0xc(%rcx), %eax
jge 0xfe80
movq 0x8(%rsp), %rbx
movl (%rbx), %r15d
movq %rbx, %rdi
callq 0x1b0e6
movl %r15d, %ebp
testb %al, %al
movq 0x30(%rsp), %r8
je 0xf8b3
cmpq $0x0, 0x68(%rbx)
movq %rbx, %rax
je 0xf8aa
movq %rbx, %rcx
movq %rcx, %rax
movq 0x68(%rcx), %rcx
testq %rcx, %rcx
jne 0xf89e
movl 0x8(%rax), %eax
cltd
idivl 0x10(%rbx)
movl %edx, %ebp
movl %ebp, %r12d
testl %ebp, %ebp
jle 0xf8df
leal 0x1(%r15), %eax
movq 0x70(%rbx), %rcx
xorl %edx, %edx
movabsq $0x3ff0000000000000, %rsi # imm = 0x3FF0000000000000
movq %r12, %rdi
movslq %edx, %rdx
movq %rsi, (%rcx,%rdx,8)
addl %eax, %edx
decq %rdi
jne 0xf8d1
movq 0x70(%r8), %rax
movsd 0x13735(%rip), %xmm0    # 0x23020
divsd (%rax), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0xfe8f
sqrtsd %xmm0, %xmm0
jmp 0xfe94
cmpq $0x0, 0x28(%r14)
movabsq $0x100000001, %rbp      # imm = 0x100000001
je 0xf990
movl $0x98, %edi
callq 0x21c0
movq %rbp, 0x8(%rax)
leaq 0x1b3b4(%rip), %rcx     # 0x2ace0
movq %rcx, (%rax)
leaq 0x10(%rax), %rcx
xorpd %xmm0, %xmm0
movupd %xmm0, 0x10(%rax)
movl $0xffffffff, 0x20(%rax) # imm = 0xFFFFFFFF
movupd %xmm0, 0x28(%rax)
movupd %xmm0, 0x38(%rax)
movupd %xmm0, 0x48(%rax)
movupd %xmm0, 0x58(%rax)
movupd %xmm0, 0x68(%rax)
movupd %xmm0, 0x78(%rax)
movupd %xmm0, 0x88(%rax)
movq %rcx, 0x28(%rbx)
movq 0x30(%rbx), %rdi
movq %rax, 0x30(%rbx)
testq %rdi, %rdi
je 0xf97f
callq 0x1af0e
movq 0x28(%rbx), %rsi
movq %rbx, 0x68(%rsi)
movq 0x28(%r14), %rdi
callq 0xf7ae
cmpq $0x0, 0x28(%rbx)
je 0x10010
cmpq $0x0, 0x48(%r14)
je 0xfa20
movl $0x98, %edi
callq 0x21c0
movq %rbp, 0x8(%rax)
leaq 0x1b329(%rip), %rcx     # 0x2ace0
movq %rcx, (%rax)
movq %rax, %r13
addq $0x10, %r13
xorpd %xmm0, %xmm0
movupd %xmm0, 0x10(%rax)
movl $0xffffffff, 0x20(%rax) # imm = 0xFFFFFFFF
movupd %xmm0, 0x28(%rax)
movupd %xmm0, 0x38(%rax)
movupd %xmm0, 0x48(%rax)
movupd %xmm0, 0x58(%rax)
movupd %xmm0, 0x68(%rax)
movupd %xmm0, 0x78(%rax)
movq %rax, 0x8(%rsp)
movupd %xmm0, 0x88(%rax)
movq 0x28(%rbx), %rdi
movq 0x48(%r14), %rdx
movq $0x0, (%rsp)
movl $0x1, %esi
xorl %ecx, %ecx
movq %r13, %r8
xorl %r9d, %r9d
callq 0xa504
jmp 0xfa2c
xorl %r13d, %r13d
movq $0x0, 0x8(%rsp)
testq %r13, %r13
je 0xfab6
movl $0x98, %edi
callq 0x21c0
movq %rax, %r15
movq %rbp, 0x8(%rax)
leaq 0x1b293(%rip), %rax     # 0x2ace0
movq %rax, (%r15)
movq %r15, %r12
addq $0x10, %r12
xorpd %xmm0, %xmm0
movupd %xmm0, 0x10(%r15)
movl $0xffffffff, 0x20(%r15) # imm = 0xFFFFFFFF
movupd %xmm0, 0x28(%r15)
movupd %xmm0, 0x38(%r15)
movupd %xmm0, 0x48(%r15)
movupd %xmm0, 0x58(%r15)
movupd %xmm0, 0x68(%r15)
movupd %xmm0, 0x78(%r15)
movupd %xmm0, 0x88(%r15)
movq 0x28(%rbx), %rdi
movq $0x0, (%rsp)
xorl %esi, %esi
movq %r13, %rdx
xorl %ecx, %ecx
movq %r12, %r8
xorl %r9d, %r9d
callq 0xa504
jmp 0xfabc
xorl %r12d, %r12d
xorl %r15d, %r15d
testq %r12, %r12
je 0xfb38
movl $0x98, %edi
callq 0x21c0
movq %rax, %r13
movq %rbp, 0x8(%rax)
leaq 0x1b207(%rip), %rax     # 0x2ace0
movq %rax, (%r13)
movq %r13, %rbp
addq $0x10, %rbp
xorpd %xmm0, %xmm0
movupd %xmm0, 0x10(%r13)
movl $0xffffffff, 0x20(%r13) # imm = 0xFFFFFFFF
movupd %xmm0, 0x28(%r13)
movupd %xmm0, 0x38(%r13)
movupd %xmm0, 0x48(%r13)
movupd %xmm0, 0x58(%r13)
movupd %xmm0, 0x68(%r13)
movupd %xmm0, 0x78(%r13)
movupd %xmm0, 0x88(%r13)
movsd 0x13605(%rip), %xmm0    # 0x23130
movq %rbp, %rdi
movq %r12, %rsi
callq 0xf5d6
jmp 0xfb3d
xorl %ebp, %ebp
xorl %r13d, %r13d
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
testq %rbp, %rbp
je 0xfbf3
cmpq $0x0, 0x38(%r14)
je 0xfbf3
movl $0x98, %edi
callq 0x21c0
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x1b166(%rip), %rcx     # 0x2ace0
movq %rcx, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
xorpd %xmm0, %xmm0
movupd %xmm0, 0x10(%rax)
movl $0xffffffff, 0x20(%rax) # imm = 0xFFFFFFFF
movupd %xmm0, 0x28(%rax)
movupd %xmm0, 0x38(%rax)
movupd %xmm0, 0x48(%rax)
movupd %xmm0, 0x58(%rax)
movupd %xmm0, 0x68(%rax)
movupd %xmm0, 0x78(%rax)
movupd %xmm0, 0x88(%rax)
movq %rcx, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movq %rax, 0x28(%rsp)
testq %rdi, %rdi
je 0xfbd3
callq 0x1af0e
movq 0x38(%r14), %rdi
movq 0x20(%rsp), %r8
movq $0x0, (%rsp)
xorl %esi, %esi
movq %rbp, %rdx
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0xa504
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
movq 0x58(%r14), %rax
movq 0x20(%rsp), %rcx
testq %rax, %rax
je 0xfca7
testq %rcx, %rcx
je 0xfcb7
movl $0x98, %edi
callq 0x21c0
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x1b0a9(%rip), %rcx     # 0x2ace0
movq %rcx, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
xorpd %xmm0, %xmm0
movupd %xmm0, 0x10(%rax)
movl $0xffffffff, 0x20(%rax) # imm = 0xFFFFFFFF
movupd %xmm0, 0x28(%rax)
movupd %xmm0, 0x38(%rax)
movupd %xmm0, 0x48(%rax)
movupd %xmm0, 0x58(%rax)
movupd %xmm0, 0x68(%rax)
movupd %xmm0, 0x78(%rax)
movupd %xmm0, 0x88(%rax)
movq %rcx, 0x10(%rsp)
movq 0x18(%rsp), %rdi
movq %rax, 0x18(%rsp)
testq %rdi, %rdi
je 0xfc90
callq 0x1af0e
movq 0x20(%rsp), %rdi
movq 0x58(%r14), %rsi
movq 0x10(%rsp), %rdx
xorl %ecx, %ecx
callq 0xa1e6
jmp 0xfccc
leaq 0x18(%rsp), %rdi
movq %rcx, -0x8(%rdi)
leaq 0x28(%rsp), %rsi
jmp 0xfcc7
leaq 0x18(%rsp), %rdi
movq %rax, -0x8(%rdi)
addq $0x60, %r14
movq %r14, %rsi
callq 0x1c38c
cmpq $0x0, 0x58(%rbx)
jne 0x10042
cmpq $0x0, 0x10(%rsp)
je 0xfd6a
movl $0x98, %edi
callq 0x21c0
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x1afde(%rip), %rcx     # 0x2ace0
movq %rcx, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
xorpd %xmm0, %xmm0
movupd %xmm0, 0x10(%rax)
movl $0xffffffff, 0x20(%rax) # imm = 0xFFFFFFFF
movupd %xmm0, 0x28(%rax)
movupd %xmm0, 0x38(%rax)
movupd %xmm0, 0x48(%rax)
movupd %xmm0, 0x58(%rax)
movupd %xmm0, 0x68(%rax)
movupd %xmm0, 0x78(%rax)
movupd %xmm0, 0x88(%rax)
movq %rcx, 0x58(%rbx)
movq 0x60(%rbx), %rdi
movq %rax, 0x60(%rbx)
testq %rdi, %rdi
je 0xfd58
callq 0x1af0e
movq 0x58(%rbx), %rsi
movq %rbx, 0x68(%rsi)
movq 0x10(%rsp), %rdi
callq 0xf7ae
cmpq $0x0, 0x48(%rbx)
je 0xfd91
leaq 0x14779(%rip), %rsi     # 0x244f1
leaq 0x38(%rsp), %rdi
callq 0x20a0
leaq 0x38(%rsp), %rdi
callq 0x22d8
jmp 0xfe2e
testq %rbp, %rbp
je 0xfe2e
movl $0x98, %edi
callq 0x21c0
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0x1af27(%rip), %rcx     # 0x2ace0
movq %rcx, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
xorpd %xmm0, %xmm0
movupd %xmm0, 0x10(%rax)
movl $0xffffffff, 0x20(%rax) # imm = 0xFFFFFFFF
movupd %xmm0, 0x28(%rax)
movupd %xmm0, 0x38(%rax)
movupd %xmm0, 0x48(%rax)
movupd %xmm0, 0x58(%rax)
movupd %xmm0, 0x68(%rax)
movupd %xmm0, 0x78(%rax)
movupd %xmm0, 0x88(%rax)
movq %rcx, 0x48(%rbx)
movq 0x50(%rbx), %rdi
movq %rax, 0x50(%rbx)
testq %rdi, %rdi
je 0xfe0f
callq 0x1af0e
movq 0x48(%rbx), %r8
movq 0x58(%rbx), %rdx
movq $0x0, (%rsp)
movq %rbp, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0xa504
cmpq $0x0, 0x38(%rbx)
jne 0x10074
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xfe48
callq 0x1af0e
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0xfe57
callq 0x1af0e
testq %r13, %r13
je 0xfe64
movq %r13, %rdi
callq 0x1af0e
testq %r15, %r15
je 0xfe71
movq %r15, %rdi
callq 0x1af0e
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xfe80
callq 0x1af0e
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2170
movq 0x70(%rbx), %rax
movsd %xmm0, (%rax)
cmpl $0x2, %ebp
jl 0xfe80
movslq %r15d, %r13
shlq $0x3, %r13
movl $0x1, %ebp
movl $0x8, %r14d
xorpd %xmm3, %xmm3
movq %r13, %rbx
movq 0x8(%rsp), %rax
movq 0x70(%rax), %rax
movq 0x30(%rsp), %rcx
movq 0x70(%rcx), %rcx
leaq (%rax,%rbx), %rdx
movq %rax, %rsi
xorl %edi, %edi
xorpd %xmm0, %xmm0
movq %rcx, %r8
xorl %r9d, %r9d
movsd (%r8), %xmm1
mulsd (%rdx,%r9,8), %xmm1
addsd %xmm1, %xmm0
incq %r9
addq %r13, %r8
cmpq %r9, %r12
jne 0xfedf
movl %r15d, %r8d
imull %edi, %r8d
movslq %r8d, %r8
leaq (%rax,%rdi,8), %r9
mulsd (%r9,%r8,8), %xmm0
xorl %r8d, %r8d
movsd (%rdx,%r8,8), %xmm1
movsd (%rsi,%r8,8), %xmm2
mulsd %xmm0, %xmm2
subsd %xmm2, %xmm1
movsd %xmm1, (%rdx,%r8,8)
incq %r8
cmpq %r8, %r12
jne 0xff10
incq %rdi
addq $0x8, %rcx
addq %r13, %rsi
cmpq %rbp, %rdi
jne 0xfed5
movq 0x8(%rsp), %rax
movq 0x70(%rax), %rax
addq %rbx, %rax
movq 0x30(%rsp), %rcx
movq 0x70(%rcx), %rcx
addq %r14, %rcx
xorpd %xmm1, %xmm1
xorl %edx, %edx
movsd (%rcx), %xmm0
mulsd (%rax,%rdx,8), %xmm0
addsd %xmm0, %xmm1
incq %rdx
addq %r13, %rcx
cmpq %rdx, %r12
jne 0xff5f
movsd 0x130a1(%rip), %xmm0    # 0x23020
divsd %xmm1, %xmm0
ucomisd %xmm3, %xmm0
jb 0xff8f
sqrtsd %xmm0, %xmm0
jmp 0xff98
callq 0x2170
xorpd %xmm3, %xmm3
movq 0x8(%rsp), %rax
movq 0x70(%rax), %rax
addq %rbx, %rax
xorl %ecx, %ecx
movsd (%rax,%rcx,8), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %r12
jne 0xffa6
incq %rbp
addq %r13, %rbx
addq $0x8, %r14
cmpq %r12, %rbp
jne 0xfeba
jmp 0xfe80
movl $0x10, %edi
callq 0x20c0
movq %rax, %r14
leaq 0x143ae(%rip), %rsi     # 0x24396
movq %rax, %rdi
callq 0x20a0
jmp 0x1002c
movl $0x10, %edi
callq 0x20c0
movq %rax, %r14
leaq 0x143e6(%rip), %rsi     # 0x243ec
movq %rax, %rdi
callq 0x20a0
jmp 0x1002c
movl $0x10, %edi
callq 0x20c0
movq %rax, %r14
leaq 0x14418(%rip), %rsi     # 0x2443c
movq %rax, %rdi
callq 0x20a0
movq 0x1afbd(%rip), %rsi     # 0x2aff0
movq 0x1af86(%rip), %rdx     # 0x2afc0
movq %r14, %rdi
callq 0x2290
movl $0x10, %edi
callq 0x20c0
movq %rax, %r14
leaq 0x1443e(%rip), %rsi     # 0x24494
movq %rax, %rdi
callq 0x20a0
movq 0x1af8b(%rip), %rsi     # 0x2aff0
movq 0x1af54(%rip), %rdx     # 0x2afc0
movq %r14, %rdi
callq 0x2290
leaq 0x144d3(%rip), %rdi     # 0x2454e
leaq 0x136bd(%rip), %rsi     # 0x2373f
leaq 0x144db(%rip), %rcx     # 0x24564
movl $0xca5, %edx            # imm = 0xCA5
callq 0x2100
jmp 0x100eb
jmp 0x100eb
movq %rax, %rbx
movq %r14, %rdi
callq 0x2140
jmp 0x100ee
jmp 0x100a6
movq %rax, %rbx
jmp 0x100fd
jmp 0x100de
jmp 0x100eb
movq %rax, %rbx
jmp 0x1010c
movq %rax, %rbx
xorl %r13d, %r13d
jmp 0x1010c
movq %rax, %rbx
jmp 0x10119
movq %rax, %rbx
xorl %r15d, %r15d
jmp 0x10119
movq %rax, %rbx
jmp 0x10126
movq %rax, %rbx
movq $0x0, 0x8(%rsp)
jmp 0x10126
jmp 0x100de
movq %rax, %rbx
movq %r14, %rdi
callq 0x2140
jmp 0x10138
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x100fd
callq 0x1af0e
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x1010c
callq 0x1af0e
testq %r13, %r13
je 0x10119
movq %r13, %rdi
callq 0x1af0e
testq %r15, %r15
je 0x10126
movq %r15, %rdi
callq 0x1af0e
cmpq $0x0, 0x8(%rsp)
je 0x10138
movq 0x8(%rsp), %rdi
callq 0x1af0e
movq %rbx, %rdi
callq 0x22b0