// File: toxaart[P]hierarchical_block_sparse_lib/source/HierarchicalBlockSparseMatrix.h
// Function: hbsm::HierarchicalBlockSparseMatrix<double>::assign_from_vectors_general(std::vector<int, std::allocator<int>> const&, std::vector<int, std::allocator<int>> const&, std::vector<double, std::allocator<double>> const&, bool, bool)
void HierarchicalBlockSparseMatrix<Treal>::assign_from_vectors_general(const std::vector<int> & rows,
				     const std::vector<int> & cols,
				     const std::vector<Treal> & values,
				     bool useMax,
					 bool boundaries_checked) {


			assert(blocksize > 0);
			if(rows.size() != values.size() || cols.size() != values.size())
				throw std::runtime_error("Error in HierarchicalBlockSparseMatrix<Treal>::assign_from_vectors: bad sizes.");

			if(rows.size() == 0) return;

			// this will be done only at the top level, later it is not necessary
			if(!boundaries_checked){
				for(int i = 0; i < values.size(); ++i){
					if( rows[i] < 0 ||  rows[i] > nRows_orig-1 || cols[i] < 0 || cols[i] > nCols_orig - 1)
						throw std::runtime_error("Error in HierarchicalBlockSparseMatrix<Treal>::assign_from_vectors: index outside matrix boundaries.");

				}
			}

			if(lowest_level()){

        int max_row_num = nRows;
        if(on_bottom_boundary()) max_row_num = get_n_rows() % blocksize;

        int max_col_num = nCols;
        if(on_right_boundary()) max_col_num = get_n_cols() % blocksize;

        if(get_first_row_position() >= get_n_rows() || get_first_col_position() >= get_n_cols()){ // block to skip
            return;
        }


				for(size_t i = 0; i < values.size(); ++i){

          int row = rows[i];
					int col = cols[i];

          if(row >= max_row_num || col >= max_col_num){
						continue;
					}

					Treal val = values[i];

          if(useMax){
              submatrix[col * nRows + row] = (val > submatrix[col * nRows + row]) ? val : submatrix[col * nRows + row];
          }
          else{
              submatrix[col * nRows + row] += val; // Note: we use += here, so if an element appears several times, the result becomes the sum of those contributions.
          }

				}





				return;
			}

			// now we have to split arrays into 4 parts and recursively apply the same procedure on children
			std::vector<int> rows0, cols0, rows1, cols1, rows2, cols2, rows3, cols3;
            std::vector<Treal> vals0,vals1,vals2,vals3;

			int n_elements = rows.size();

            rows0.reserve(n_elements);
            cols0.reserve(n_elements);
            vals0.reserve(n_elements);

            rows1.reserve(n_elements);
            cols1.reserve(n_elements);
            vals1.reserve(n_elements);

            rows2.reserve(n_elements);
            cols2.reserve(n_elements);
            vals2.reserve(n_elements);

            rows3.reserve(n_elements);
            cols3.reserve(n_elements);
            vals3.reserve(n_elements);

			// the offset, when providing parts of vectors to the next level their "coordinates" will be shifted
			int offset = nRows/2;

			for(size_t i = 0; i < n_elements; ++i){

				int row = rows[i];
				int col = cols[i];
				Treal val = values[i];

				// this part goes to child0
				if(row < offset && col < offset){
					rows0.push_back(row);
					cols0.push_back(col);
					vals0.push_back(val);
				}

				// this part goes to child1
				if(offset <= row && row < nRows && col < offset){
					rows1.push_back(row-offset);
					cols1.push_back(col);
					vals1.push_back(val);
				}

				// this part goes to child2
				if(row < offset && offset <= col && col < nCols){
					rows2.push_back(row);
					cols2.push_back(col-offset);
					vals2.push_back(val);
				}

				// this part goes to child3
				if(offset <= row && row < nRows && offset <= col && col < nCols){
					rows3.push_back(row-offset);
					cols3.push_back(col-offset);
					vals3.push_back(val);
				}

			}

			if(vals0.size() > 0){
				if(children[0] != NULL){
					throw std::runtime_error("Error in HierarchicalBlockSparseMatrix<Treal>::assign_from_vectors: non-null child0 matrix occured.");
				}
				children[0] = std::make_shared<HierarchicalBlockSparseMatrix<Treal> >();
		    children[0]->set_params(get_params());
				children[0]->resize(nRows / 2, nCols / 2);
				children[0]->parent = this;
                children[0]->assign_from_vectors_general(rows0, cols0, vals0, useMax,true);
			}

			if(vals1.size() > 0){
				if(children[1] != NULL){
					throw std::runtime_error("Error in HierarchicalBlockSparseMatrix<Treal>::assign_from_vectors: non-null child1 matrix occured.");
				}
				children[1] = std::make_shared<HierarchicalBlockSparseMatrix<Treal> >();
		    children[1]->set_params(get_params());
				children[1]->resize(nRows / 2, nCols / 2);
				children[1]->parent = this;
                children[1]->assign_from_vectors_general(rows1, cols1, vals1, useMax,true);
			}

			if(vals2.size() > 0){
				if(children[2] != NULL){
					throw std::runtime_error("Error in HierarchicalBlockSparseMatrix<Treal>::assign_from_vectors: non-null child2 matrix occured.");
				}
				children[2] = std::make_shared<HierarchicalBlockSparseMatrix<Treal> >();
		    children[2]->set_params(get_params());
				children[2]->resize(nRows / 2, nCols / 2);
				children[2]->parent = this;
                children[2]->assign_from_vectors_general(rows2, cols2, vals2, useMax,true);
			}

			if(vals3.size() > 0){
				if(children[3] != NULL){
					throw std::runtime_error("Error in HierarchicalBlockSparseMatrix<Treal>::assign_from_vectors: non-null child3 matrix occured.");
				}
				children[3] = std::make_shared<HierarchicalBlockSparseMatrix<Treal> >();
		    children[3]->set_params(get_params());
				children[3]->resize(nRows / 2, nCols / 2);
				children[3]->parent = this;
                children[3]->assign_from_vectors_general(rows3, cols3, vals3, useMax,true);
			}
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x350, %rsp            # imm = 0x350
movl %r8d, -0x22c(%rbp)
movq %rcx, %rax
movl -0x22c(%rbp), %ecx
movq %rax, -0x228(%rbp)
movq %rdx, %rax
movq -0x228(%rbp), %rdx
movq %rax, -0x220(%rbp)
movq %rsi, %rax
movq -0x220(%rbp), %rsi
movq %rax, -0x218(%rbp)
movq %rdi, %r8
movq -0x218(%rbp), %rdi
movb %r9b, %al
movq %r8, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
andb $0x1, %cl
movb %cl, -0x21(%rbp)
andb $0x1, %al
movb %al, -0x22(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x210(%rbp)
cmpl $0x0, 0x10(%rax)
jle 0xa60f
jmp 0xa62e
leaq 0x6f11(%rip), %rdi      # 0x11527
leaq 0x6f18(%rip), %rsi      # 0x11535
movl $0x2a3, %edx            # imm = 0x2A3
leaq 0x70d7(%rip), %rcx      # 0x11700
callq 0x2100
movq -0x10(%rbp), %rdi
callq 0x6070
movq %rax, -0x238(%rbp)
movq -0x20(%rbp), %rdi
callq 0x8cf0
movq %rax, %rcx
movq -0x238(%rbp), %rax
cmpq %rcx, %rax
jne 0xa67e
movq -0x18(%rbp), %rdi
callq 0x6070
movq %rax, -0x240(%rbp)
movq -0x20(%rbp), %rdi
callq 0x8cf0
movq %rax, %rcx
movq -0x240(%rbp), %rax
cmpq %rcx, %rax
je 0xa6da
movl $0x10, %edi
callq 0x20a0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x248(%rbp)
leaq 0x711f(%rip), %rsi      # 0x117bb
callq 0x2070
jmp 0xa6a3
movq -0x248(%rbp), %rdi
movq 0xd93f(%rip), %rsi      # 0x17ff0
movq 0xd908(%rip), %rdx      # 0x17fc0
callq 0x22c0
movq -0x248(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x2130
jmp 0xb6a7
movq -0x10(%rbp), %rdi
callq 0x6070
cmpq $0x0, %rax
jne 0xa6ee
jmp 0xb611
testb $0x1, -0x22(%rbp)
jne 0xa7f8
movl $0x0, -0x38(%rbp)
movslq -0x38(%rbp), %rax
movq %rax, -0x250(%rbp)
movq -0x20(%rbp), %rdi
callq 0x8cf0
movq %rax, %rcx
movq -0x250(%rbp), %rax
cmpq %rcx, %rax
jae 0xa7f6
movq -0x10(%rbp), %rdi
movslq -0x38(%rbp), %rsi
callq 0xb6b0
cmpl $0x0, (%rax)
jl 0xa78a
movq -0x10(%rbp), %rdi
movslq -0x38(%rbp), %rsi
callq 0xb6b0
movq -0x210(%rbp), %rcx
movl (%rax), %eax
movl 0x8(%rcx), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jg 0xa78a
movq -0x18(%rbp), %rdi
movslq -0x38(%rbp), %rsi
callq 0xb6b0
cmpl $0x0, (%rax)
jl 0xa78a
movq -0x18(%rbp), %rdi
movslq -0x38(%rbp), %rsi
callq 0xb6b0
movq -0x210(%rbp), %rcx
movl (%rax), %eax
movl 0xc(%rcx), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jle 0xa7e6
movl $0x10, %edi
callq 0x20a0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x258(%rbp)
leaq 0x7062(%rip), %rsi      # 0x1180a
callq 0x2070
jmp 0xa7af
movq -0x258(%rbp), %rdi
movq 0xd833(%rip), %rsi      # 0x17ff0
movq 0xd7fc(%rip), %rdx      # 0x17fc0
callq 0x22c0
movq -0x258(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x2130
jmp 0xb6a7
jmp 0xa7e8
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0xa6ff
jmp 0xa7f8
movq -0x210(%rbp), %rdi
callq 0x97b0
testb $0x1, %al
jne 0xa80d
jmp 0xaa56
movq -0x210(%rbp), %rdi
movl (%rdi), %eax
movl %eax, -0x3c(%rbp)
callq 0xb6d0
testb $0x1, %al
jne 0xa824
jmp 0xa83e
movq -0x210(%rbp), %rdi
callq 0x4b20
movq -0x210(%rbp), %rcx
cltd
idivl 0x10(%rcx)
movl %edx, -0x3c(%rbp)
movq -0x210(%rbp), %rdi
movl 0x4(%rdi), %eax
movl %eax, -0x40(%rbp)
callq 0xb740
testb $0x1, %al
jne 0xa856
jmp 0xa870
movq -0x210(%rbp), %rdi
callq 0x4b80
movq -0x210(%rbp), %rcx
cltd
idivl 0x10(%rcx)
movl %edx, -0x40(%rbp)
movq -0x210(%rbp), %rdi
callq 0xb7b0
movq -0x210(%rbp), %rdi
movl %eax, -0x25c(%rbp)
callq 0x4b20
movl %eax, %ecx
movl -0x25c(%rbp), %eax
cmpl %ecx, %eax
jge 0xa8c4
movq -0x210(%rbp), %rdi
callq 0xb8a0
movq -0x210(%rbp), %rdi
movl %eax, -0x260(%rbp)
callq 0x4b80
movl %eax, %ecx
movl -0x260(%rbp), %eax
cmpl %ecx, %eax
jl 0xa8c9
jmp 0xb611
movq $0x0, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x268(%rbp)
movq -0x20(%rbp), %rdi
callq 0x8cf0
movq %rax, %rcx
movq -0x268(%rbp), %rax
cmpq %rcx, %rax
jae 0xaa51
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0xb6b0
movl (%rax), %eax
movl %eax, -0x4c(%rbp)
movq -0x18(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0xb6b0
movl (%rax), %eax
movl %eax, -0x50(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jge 0xa92c
movl -0x50(%rbp), %eax
cmpl -0x40(%rbp), %eax
jl 0xa931
jmp 0xaa40
movq -0x20(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x9c20
movsd (%rax), %xmm0
movsd %xmm0, -0x58(%rbp)
testb $0x1, -0x21(%rbp)
je 0xaa02
movq -0x210(%rbp), %rcx
movsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x270(%rbp)
movq %rcx, %rdi
addq $0x70, %rdi
movl -0x50(%rbp), %eax
imull (%rcx), %eax
addl -0x4c(%rbp), %eax
movslq %eax, %rsi
callq 0x5070
movsd -0x270(%rbp), %xmm0
ucomisd (%rax), %xmm0
jbe 0xa99a
movsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x278(%rbp)
jmp 0xa9c5
movq -0x210(%rbp), %rcx
movq %rcx, %rdi
addq $0x70, %rdi
movl -0x50(%rbp), %eax
imull (%rcx), %eax
addl -0x4c(%rbp), %eax
movslq %eax, %rsi
callq 0x5070
movsd (%rax), %xmm0
movsd %xmm0, -0x278(%rbp)
movq -0x210(%rbp), %rcx
movsd -0x278(%rbp), %xmm0
movsd %xmm0, -0x280(%rbp)
movq %rcx, %rdi
addq $0x70, %rdi
movl -0x50(%rbp), %eax
imull (%rcx), %eax
addl -0x4c(%rbp), %eax
movslq %eax, %rsi
callq 0x5070
movsd -0x280(%rbp), %xmm0
movsd %xmm0, (%rax)
jmp 0xaa3e
movq -0x210(%rbp), %rcx
movsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x288(%rbp)
movq %rcx, %rdi
addq $0x70, %rdi
movl -0x50(%rbp), %eax
imull (%rcx), %eax
addl -0x4c(%rbp), %eax
movslq %eax, %rsi
callq 0x5070
movsd -0x288(%rbp), %xmm0
addsd (%rax), %xmm0
movsd %xmm0, (%rax)
jmp 0xaa40
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0xa8d1
jmp 0xb611
leaq -0x70(%rbp), %rdi
movq %rdi, -0x290(%rbp)
callq 0x53c0
leaq -0x88(%rbp), %rdi
callq 0x53c0
leaq -0xa0(%rbp), %rdi
callq 0x53c0
leaq -0xb8(%rbp), %rdi
callq 0x53c0
leaq -0xd0(%rbp), %rdi
callq 0x53c0
leaq -0xe8(%rbp), %rdi
callq 0x53c0
leaq -0x100(%rbp), %rdi
callq 0x53c0
leaq -0x118(%rbp), %rdi
callq 0x53c0
leaq -0x130(%rbp), %rdi
callq 0x53e0
leaq -0x148(%rbp), %rdi
callq 0x53e0
leaq -0x160(%rbp), %rdi
callq 0x53e0
leaq -0x178(%rbp), %rdi
callq 0x53e0
movq -0x10(%rbp), %rdi
callq 0x6070
movq -0x290(%rbp), %rdi
movl %eax, -0x17c(%rbp)
movslq -0x17c(%rbp), %rsi
callq 0xb990
jmp 0xab0e
movslq -0x17c(%rbp), %rsi
leaq -0x88(%rbp), %rdi
callq 0xb990
jmp 0xab23
movslq -0x17c(%rbp), %rsi
leaq -0x130(%rbp), %rdi
callq 0xba90
jmp 0xab38
movslq -0x17c(%rbp), %rsi
leaq -0xa0(%rbp), %rdi
callq 0xb990
jmp 0xab4d
movslq -0x17c(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
callq 0xb990
jmp 0xab62
movslq -0x17c(%rbp), %rsi
leaq -0x148(%rbp), %rdi
callq 0xba90
jmp 0xab77
movslq -0x17c(%rbp), %rsi
leaq -0xd0(%rbp), %rdi
callq 0xb990
jmp 0xab8c
movslq -0x17c(%rbp), %rsi
leaq -0xe8(%rbp), %rdi
callq 0xb990
jmp 0xaba1
movslq -0x17c(%rbp), %rsi
leaq -0x160(%rbp), %rdi
callq 0xba90
jmp 0xabb6
movslq -0x17c(%rbp), %rsi
leaq -0x100(%rbp), %rdi
callq 0xb990
jmp 0xabcb
movslq -0x17c(%rbp), %rsi
leaq -0x118(%rbp), %rdi
callq 0xb990
jmp 0xabe0
movslq -0x17c(%rbp), %rsi
leaq -0x178(%rbp), %rdi
callq 0xba90
jmp 0xabf5
movq -0x210(%rbp), %rax
movl (%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x180(%rbp)
movq $0x0, -0x188(%rbp)
movq -0x188(%rbp), %rax
movslq -0x17c(%rbp), %rcx
cmpq %rcx, %rax
jae 0xaeb3
movq -0x10(%rbp), %rdi
movq -0x188(%rbp), %rsi
callq 0xb6b0
movl (%rax), %eax
movl %eax, -0x18c(%rbp)
movq -0x18(%rbp), %rdi
movq -0x188(%rbp), %rsi
callq 0xb6b0
movl (%rax), %eax
movl %eax, -0x190(%rbp)
movq -0x20(%rbp), %rdi
movq -0x188(%rbp), %rsi
callq 0x9c20
movsd (%rax), %xmm0
movsd %xmm0, -0x198(%rbp)
movl -0x18c(%rbp), %eax
cmpl -0x180(%rbp), %eax
jge 0xace5
movl -0x190(%rbp), %eax
cmpl -0x180(%rbp), %eax
jge 0xace5
leaq -0x70(%rbp), %rdi
leaq -0x18c(%rbp), %rsi
callq 0x7e70
jmp 0xaca8
leaq -0x88(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x7e70
jmp 0xacbd
leaq -0x130(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0xbb90
jmp 0xacd2
jmp 0xace5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0xb61a
movl -0x180(%rbp), %eax
cmpl -0x18c(%rbp), %eax
jg 0xad67
movq -0x210(%rbp), %rcx
movl -0x18c(%rbp), %eax
cmpl (%rcx), %eax
jge 0xad67
movl -0x190(%rbp), %eax
cmpl -0x180(%rbp), %eax
jge 0xad67
movl -0x18c(%rbp), %eax
movl -0x180(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0x19c(%rbp)
leaq -0xa0(%rbp), %rdi
leaq -0x19c(%rbp), %rsi
callq 0x7c10
jmp 0xad3b
leaq -0xb8(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x7e70
jmp 0xad50
leaq -0x148(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0xbb90
jmp 0xad65
jmp 0xad67
movl -0x18c(%rbp), %eax
cmpl -0x180(%rbp), %eax
jge 0xadea
movl -0x180(%rbp), %eax
cmpl -0x190(%rbp), %eax
jg 0xadea
movq -0x210(%rbp), %rcx
movl -0x190(%rbp), %eax
cmpl 0x4(%rcx), %eax
jge 0xadea
leaq -0xd0(%rbp), %rdi
leaq -0x18c(%rbp), %rsi
callq 0x7e70
jmp 0xadaa
movl -0x190(%rbp), %eax
movl -0x180(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0x1a0(%rbp)
leaq -0xe8(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
callq 0x7c10
jmp 0xadd3
leaq -0x160(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0xbb90
jmp 0xade8
jmp 0xadea
movl -0x180(%rbp), %eax
cmpl -0x18c(%rbp), %eax
jg 0xae9a
movq -0x210(%rbp), %rcx
movl -0x18c(%rbp), %eax
cmpl (%rcx), %eax
jge 0xae9a
movl -0x180(%rbp), %eax
cmpl -0x190(%rbp), %eax
jg 0xae9a
movq -0x210(%rbp), %rcx
movl -0x190(%rbp), %eax
cmpl 0x4(%rcx), %eax
jge 0xae9a
movl -0x18c(%rbp), %eax
movl -0x180(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0x1a4(%rbp)
leaq -0x100(%rbp), %rdi
leaq -0x1a4(%rbp), %rsi
callq 0x7c10
jmp 0xae5a
movl -0x190(%rbp), %eax
movl -0x180(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0x1a8(%rbp)
leaq -0x118(%rbp), %rdi
leaq -0x1a8(%rbp), %rsi
callq 0x7c10
jmp 0xae83
leaq -0x178(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0xbb90
jmp 0xae98
jmp 0xae9a
jmp 0xae9c
movq -0x188(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x188(%rbp)
jmp 0xac17
leaq -0x130(%rbp), %rdi
callq 0x8cf0
cmpq $0x0, %rax
jbe 0xb062
movq -0x210(%rbp), %rdi
addq $0x28, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x9800
testb $0x1, %al
jne 0xaee3
jmp 0xaf44
movl $0x10, %edi
callq 0x20a0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x298(%rbp)
leaq 0x696e(%rip), %rsi      # 0x1186f
callq 0x2070
jmp 0xaf08
movq -0x298(%rbp), %rdi
movq 0xd0da(%rip), %rsi      # 0x17ff0
movq 0xd0a3(%rip), %rdx      # 0x17fc0
callq 0x22c0
jmp 0xb6b0
movq -0x298(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x2130
jmp 0xb61a
leaq -0x1b8(%rbp), %rdi
callq 0xbc00
jmp 0xaf52
movq -0x210(%rbp), %rdi
addq $0x28, %rdi
movq %rdi, -0x2b0(%rbp)
leaq -0x1b8(%rbp), %rsi
movq %rsi, -0x2b8(%rbp)
callq 0x9870
movq -0x2b8(%rbp), %rdi
callq 0x98a0
movq -0x2b0(%rbp), %rdi
callq 0x9830
movq -0x210(%rbp), %rdi
movq %rax, -0x2a8(%rbp)
callq 0xbc70
movl %eax, -0x29c(%rbp)
jmp 0xafaa
movq -0x2a8(%rbp), %rdi
movl -0x29c(%rbp), %eax
movl %eax, -0x1bc(%rbp)
leaq -0x1bc(%rbp), %rsi
callq 0x48e0
jmp 0xafcb
movq -0x210(%rbp), %rdi
addq $0x28, %rdi
callq 0x9830
movq %rax, %rdi
movq -0x210(%rbp), %rax
movl (%rax), %esi
movl 0x4(%rax), %edx
movl %esi, %eax
shrl $0x1f, %eax
addl %eax, %esi
sarl %esi
movl %edx, %eax
shrl $0x1f, %eax
addl %eax, %edx
sarl %edx
xorl %eax, %eax
movl %eax, %ecx
callq 0x49d0
jmp 0xb007
movq -0x210(%rbp), %rdi
addq $0x28, %rdi
movq %rdi, -0x2c0(%rbp)
callq 0x9830
movq -0x210(%rbp), %rcx
movq -0x2c0(%rbp), %rdi
movq %rcx, 0x68(%rax)
callq 0x9830
movq %rax, %rdi
movzbl -0x21(%rbp), %r8d
andl $0x1, %r8d
leaq -0x70(%rbp), %rsi
leaq -0x88(%rbp), %rdx
leaq -0x130(%rbp), %rcx
movl $0x1, %r9d
callq 0xa590
jmp 0xb060
jmp 0xb062
leaq -0x148(%rbp), %rdi
callq 0x8cf0
cmpq $0x0, %rax
jbe 0xb218
movq -0x210(%rbp), %rdi
addq $0x28, %rdi
addq $0x10, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x9800
testb $0x1, %al
jne 0xb096
jmp 0xb0f7
movl $0x10, %edi
callq 0x20a0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x2c8(%rbp)
leaq 0x681f(%rip), %rsi      # 0x118d3
callq 0x2070
jmp 0xb0bb
movq -0x2c8(%rbp), %rdi
movq 0xcf27(%rip), %rsi      # 0x17ff0
movq 0xcef0(%rip), %rdx      # 0x17fc0
callq 0x22c0
jmp 0xb6b0
movq -0x2c8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x2130
jmp 0xb61a
leaq -0x1d0(%rbp), %rdi
callq 0xbc00
jmp 0xb105
movq -0x210(%rbp), %rdi
addq $0x38, %rdi
movq %rdi, -0x2e0(%rbp)
leaq -0x1d0(%rbp), %rsi
movq %rsi, -0x2e8(%rbp)
callq 0x9870
movq -0x2e8(%rbp), %rdi
callq 0x98a0
movq -0x2e0(%rbp), %rdi
callq 0x9830
movq -0x210(%rbp), %rdi
movq %rax, -0x2d8(%rbp)
callq 0xbc70
movl %eax, -0x2cc(%rbp)
jmp 0xb15d
movq -0x2d8(%rbp), %rdi
movl -0x2cc(%rbp), %eax
movl %eax, -0x1d4(%rbp)
leaq -0x1d4(%rbp), %rsi
callq 0x48e0
jmp 0xb17e
movq -0x210(%rbp), %rdi
addq $0x38, %rdi
callq 0x9830
movq %rax, %rdi
movq -0x210(%rbp), %rax
movl (%rax), %esi
movl 0x4(%rax), %edx
movl %esi, %eax
shrl $0x1f, %eax
addl %eax, %esi
sarl %esi
movl %edx, %eax
shrl $0x1f, %eax
addl %eax, %edx
sarl %edx
xorl %eax, %eax
movl %eax, %ecx
callq 0x49d0
jmp 0xb1ba
movq -0x210(%rbp), %rdi
addq $0x38, %rdi
movq %rdi, -0x2f0(%rbp)
callq 0x9830
movq -0x210(%rbp), %rcx
movq -0x2f0(%rbp), %rdi
movq %rcx, 0x68(%rax)
callq 0x9830
movq %rax, %rdi
movzbl -0x21(%rbp), %r8d
andl $0x1, %r8d
leaq -0xa0(%rbp), %rsi
leaq -0xb8(%rbp), %rdx
leaq -0x148(%rbp), %rcx
movl $0x1, %r9d
callq 0xa590
jmp 0xb216
jmp 0xb218
leaq -0x160(%rbp), %rdi
callq 0x8cf0
cmpq $0x0, %rax
jbe 0xb3ce
movq -0x210(%rbp), %rdi
addq $0x28, %rdi
addq $0x20, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x9800
testb $0x1, %al
jne 0xb24c
jmp 0xb2ad
movl $0x10, %edi
callq 0x20a0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x2f8(%rbp)
leaq 0x66cd(%rip), %rsi      # 0x11937
callq 0x2070
jmp 0xb271
movq -0x2f8(%rbp), %rdi
movq 0xcd71(%rip), %rsi      # 0x17ff0
movq 0xcd3a(%rip), %rdx      # 0x17fc0
callq 0x22c0
jmp 0xb6b0
movq -0x2f8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x2130
jmp 0xb61a
leaq -0x1e8(%rbp), %rdi
callq 0xbc00
jmp 0xb2bb
movq -0x210(%rbp), %rdi
addq $0x48, %rdi
movq %rdi, -0x310(%rbp)
leaq -0x1e8(%rbp), %rsi
movq %rsi, -0x318(%rbp)
callq 0x9870
movq -0x318(%rbp), %rdi
callq 0x98a0
movq -0x310(%rbp), %rdi
callq 0x9830
movq -0x210(%rbp), %rdi
movq %rax, -0x308(%rbp)
callq 0xbc70
movl %eax, -0x2fc(%rbp)
jmp 0xb313
movq -0x308(%rbp), %rdi
movl -0x2fc(%rbp), %eax
movl %eax, -0x1ec(%rbp)
leaq -0x1ec(%rbp), %rsi
callq 0x48e0
jmp 0xb334
movq -0x210(%rbp), %rdi
addq $0x48, %rdi
callq 0x9830
movq %rax, %rdi
movq -0x210(%rbp), %rax
movl (%rax), %esi
movl 0x4(%rax), %edx
movl %esi, %eax
shrl $0x1f, %eax
addl %eax, %esi
sarl %esi
movl %edx, %eax
shrl $0x1f, %eax
addl %eax, %edx
sarl %edx
xorl %eax, %eax
movl %eax, %ecx
callq 0x49d0
jmp 0xb370
movq -0x210(%rbp), %rdi
addq $0x48, %rdi
movq %rdi, -0x320(%rbp)
callq 0x9830
movq -0x210(%rbp), %rcx
movq -0x320(%rbp), %rdi
movq %rcx, 0x68(%rax)
callq 0x9830
movq %rax, %rdi
movzbl -0x21(%rbp), %r8d
andl $0x1, %r8d
leaq -0xd0(%rbp), %rsi
leaq -0xe8(%rbp), %rdx
leaq -0x160(%rbp), %rcx
movl $0x1, %r9d
callq 0xa590
jmp 0xb3cc
jmp 0xb3ce
leaq -0x178(%rbp), %rdi
callq 0x8cf0
cmpq $0x0, %rax
jbe 0xb584
movq -0x210(%rbp), %rdi
addq $0x28, %rdi
addq $0x30, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x9800
testb $0x1, %al
jne 0xb402
jmp 0xb463
movl $0x10, %edi
callq 0x20a0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x328(%rbp)
leaq 0x657b(%rip), %rsi      # 0x1199b
callq 0x2070
jmp 0xb427
movq -0x328(%rbp), %rdi
movq 0xcbbb(%rip), %rsi      # 0x17ff0
movq 0xcb84(%rip), %rdx      # 0x17fc0
callq 0x22c0
jmp 0xb6b0
movq -0x328(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x2130
jmp 0xb61a
leaq -0x200(%rbp), %rdi
callq 0xbc00
jmp 0xb471
movq -0x210(%rbp), %rdi
addq $0x58, %rdi
movq %rdi, -0x340(%rbp)
leaq -0x200(%rbp), %rsi
movq %rsi, -0x348(%rbp)
callq 0x9870
movq -0x348(%rbp), %rdi
callq 0x98a0
movq -0x340(%rbp), %rdi
callq 0x9830
movq -0x210(%rbp), %rdi
movq %rax, -0x338(%rbp)
callq 0xbc70
movl %eax, -0x32c(%rbp)
jmp 0xb4c9
movq -0x338(%rbp), %rdi
movl -0x32c(%rbp), %eax
movl %eax, -0x204(%rbp)
leaq -0x204(%rbp), %rsi
callq 0x48e0
jmp 0xb4ea
movq -0x210(%rbp), %rdi
addq $0x58, %rdi
callq 0x9830
movq %rax, %rdi
movq -0x210(%rbp), %rax
movl (%rax), %esi
movl 0x4(%rax), %edx
movl %esi, %eax
shrl $0x1f, %eax
addl %eax, %esi
sarl %esi
movl %edx, %eax
shrl $0x1f, %eax
addl %eax, %edx
sarl %edx
xorl %eax, %eax
movl %eax, %ecx
callq 0x49d0
jmp 0xb526
movq -0x210(%rbp), %rdi
addq $0x58, %rdi
movq %rdi, -0x350(%rbp)
callq 0x9830
movq -0x210(%rbp), %rcx
movq -0x350(%rbp), %rdi
movq %rcx, 0x68(%rax)
callq 0x9830
movq %rax, %rdi
movzbl -0x21(%rbp), %r8d
andl $0x1, %r8d
leaq -0x100(%rbp), %rsi
leaq -0x118(%rbp), %rdx
leaq -0x178(%rbp), %rcx
movl $0x1, %r9d
callq 0xa590
jmp 0xb582
jmp 0xb584
leaq -0x178(%rbp), %rdi
callq 0x5300
leaq -0x160(%rbp), %rdi
callq 0x5300
leaq -0x148(%rbp), %rdi
callq 0x5300
leaq -0x130(%rbp), %rdi
callq 0x5300
leaq -0x118(%rbp), %rdi
callq 0x5360
leaq -0x100(%rbp), %rdi
callq 0x5360
leaq -0xe8(%rbp), %rdi
callq 0x5360
leaq -0xd0(%rbp), %rdi
callq 0x5360
leaq -0xb8(%rbp), %rdi
callq 0x5360
leaq -0xa0(%rbp), %rdi
callq 0x5360
leaq -0x88(%rbp), %rdi
callq 0x5360
leaq -0x70(%rbp), %rdi
callq 0x5360
addq $0x350, %rsp            # imm = 0x350
popq %rbp
retq
leaq -0x178(%rbp), %rdi
callq 0x5300
leaq -0x160(%rbp), %rdi
callq 0x5300
leaq -0x148(%rbp), %rdi
callq 0x5300
leaq -0x130(%rbp), %rdi
callq 0x5300
leaq -0x118(%rbp), %rdi
callq 0x5360
leaq -0x100(%rbp), %rdi
callq 0x5360
leaq -0xe8(%rbp), %rdi
callq 0x5360
leaq -0xd0(%rbp), %rdi
callq 0x5360
leaq -0xb8(%rbp), %rdi
callq 0x5360
leaq -0xa0(%rbp), %rdi
callq 0x5360
leaq -0x88(%rbp), %rdi
callq 0x5360
leaq -0x70(%rbp), %rdi
callq 0x5360
movq -0x30(%rbp), %rdi
callq 0x22e0