// File: big-data-lab-team[P]OrpailleCC/./src/mondrian_coarse.hpp
// Function: CoarseMondrianForest<double, funct, KappaMetrics<2, false>, 4, 2, 6000>::node_csv(int, int, int, int, MondrianNode<4, 2> const&) const
void node_csv(int const tree_id, int const node_id, int const depth, int const leaf, Node const& node) const{
	cout << "Narval:" << total_count << "," << tree_id << "," << node_id << "," << depth << ","
		<< node.parent << "," << node.child_right << "," << node.child_left << ","
		<< node.tau << "," << node.split_dimension << "," << node.split_value << "," << leaf << "," << node.forced_extend << ",";
	for(int i = 0; i < feature_count; ++i){
		cout << node.bound_lower[i] << "," << node.bound_upper[i] << ",";
	}
	for(int i = 0; i < label_count; ++i){
		cout << node.counters[i] << ",";
	}
	cout << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl %r8d, -0x18(%rbp)
movq %r9, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq 0x2b3c(%rip), %rdi      # 0xcfd8
leaq 0xbae(%rip), %rsi       # 0xb051
callq 0x1050
movq %rax, %rdi
movq -0x30(%rbp), %rax
movl 0x17b4(%rax), %esi
callq 0x1070
movq %rax, %rdi
leaq 0xb7c(%rip), %rsi       # 0xb040
callq 0x1050
movq %rax, %rdi
movl -0xc(%rbp), %esi
callq 0x1090
movq %rax, %rdi
leaq 0xb62(%rip), %rsi       # 0xb040
callq 0x1050
movq %rax, %rdi
movl -0x10(%rbp), %esi
callq 0x1090
movq %rax, %rdi
leaq 0xb48(%rip), %rsi       # 0xb040
callq 0x1050
movq %rax, %rdi
movl -0x14(%rbp), %esi
callq 0x1090
movq %rax, %rdi
leaq 0xb2e(%rip), %rsi       # 0xb040
callq 0x1050
movq %rax, %rdi
movq -0x20(%rbp), %rax
movl 0x58(%rax), %esi
callq 0x1090
movq %rax, %rdi
leaq 0xb10(%rip), %rsi       # 0xb040
callq 0x1050
movq %rax, %rdi
movq -0x20(%rbp), %rax
movl 0x54(%rax), %esi
callq 0x1090
movq %rax, %rdi
leaq 0xaf2(%rip), %rsi       # 0xb040
callq 0x1050
movq %rax, %rdi
movq -0x20(%rbp), %rax
movl 0x50(%rax), %esi
callq 0x1090
movq %rax, %rdi
leaq 0xad4(%rip), %rsi       # 0xb040
callq 0x1050
movq %rax, %rdi
movq -0x20(%rbp), %rax
movsd 0x60(%rax), %xmm0
callq 0x10a0
movq %rax, %rdi
leaq 0xab4(%rip), %rsi       # 0xb040
callq 0x1050
movq %rax, %rdi
movq -0x20(%rbp), %rax
movl (%rax), %esi
callq 0x1090
movq %rax, %rdi
leaq 0xa97(%rip), %rsi       # 0xb040
callq 0x1050
movq %rax, %rdi
movq -0x20(%rbp), %rax
movsd 0x8(%rax), %xmm0
callq 0x10a0
movq %rax, %rdi
leaq 0xa77(%rip), %rsi       # 0xb040
callq 0x1050
movq %rax, %rdi
movl -0x18(%rbp), %esi
callq 0x1090
movq %rax, %rdi
leaq 0xa5d(%rip), %rsi       # 0xb040
callq 0x1050
movq %rax, %rdi
movq -0x20(%rbp), %rax
movl 0x70(%rax), %esi
callq 0x1090
movq %rax, %rdi
leaq 0xa3f(%rip), %rsi       # 0xb040
callq 0x1050
movl $0x0, -0x24(%rbp)
cmpl $0x4, -0x24(%rbp)
jge 0xa66c
movq -0x20(%rbp), %rax
movslq -0x24(%rbp), %rcx
movsd 0x10(%rax,%rcx,8), %xmm0
movq 0x29b0(%rip), %rdi      # 0xcfd8
callq 0x10a0
movq %rax, %rdi
leaq 0xa09(%rip), %rsi       # 0xb040
callq 0x1050
movq %rax, %rdi
movq -0x20(%rbp), %rax
movslq -0x24(%rbp), %rcx
movsd 0x30(%rax,%rcx,8), %xmm0
callq 0x10a0
movq %rax, %rdi
leaq 0x9e4(%rip), %rsi       # 0xb040
callq 0x1050
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xa60d
movl $0x0, -0x28(%rbp)
cmpl $0x2, -0x28(%rbp)
jge 0xa6ab
movq -0x20(%rbp), %rax
movslq -0x28(%rbp), %rcx
movl 0x68(%rax,%rcx,4), %esi
movq 0x294c(%rip), %rdi      # 0xcfd8
callq 0x1090
movq %rax, %rdi
leaq 0x9a5(%rip), %rsi       # 0xb040
callq 0x1050
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xa673
movq 0x2926(%rip), %rdi      # 0xcfd8
movq 0x290f(%rip), %rsi      # 0xcfc8
callq 0x1060
addq $0x30, %rsp
popq %rbp
retq