// File: /workspace/github_cpp_makefile_star2_O1/big-data-lab-team[P]OrpailleCC/./src/mondrian_coarse.hpp
// Function: CoarseMondrianForest<double, funct, KappaMetrics<2, false>, 4, 2, 6000>::scory(double const*, int)
void scory(feature_type const* features, int const label){
	double scores[label_count];
	double sum_scores[label_count];

	update_posterior_count();
	for(int i = 0; i < tree_count; ++i){
		for(int j = 0; j < label_count; ++j)
			scores[j] = 0;
		predict_tree(features, i, scores);
		int const prediction = Utils::index_max(scores, label_count);
		cout << "Loutre:" << total_count << "," << i << "," << label << "," << prediction;
		for(int j = 0; j < label_count; ++j)
			cout << "," << scores[j];
		cout << endl;
		for(int j = 0; j < label_count; ++j)
			sum_scores[j] = scores[j];
	}
	int const prediction = Utils::index_max(sum_scores, label_count);
	cout << "Loutre:" << total_count << "," << -1 << "," << label << "," << prediction;
	for(int j = 0; j < label_count; ++j)
		cout << "," << sum_scores[j];
	cout << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, 0xc(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdi, %r14
callq 0x1c8a
cmpl $0x0, 0x17dc(%r14)
jle 0x190a
xorl %r12d, %r12d
movq 0x67f1(%rip), %rbp      # 0x7fd8
leaq 0x48d2(%rip), %r13      # 0x60c0
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq %r14, %rdi
movq 0x30(%rsp), %rsi
movl %r12d, %edx
leaq 0x10(%rsp), %rcx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x1cdc
movsd 0x18(%rsp), %xmm0
xorl %ebx, %ebx
ucomisd 0x10(%rsp), %xmm0
seta %bl
movl $0x7, %edx
movq %rbp, %rdi
leaq 0x4887(%rip), %rsi      # 0x60b8
callq 0x1090
movl 0x17b4(%r14), %esi
movq %rbp, %rdi
callq 0x1050
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x1090
movq %r15, %rdi
movl %r12d, %esi
callq 0x10c0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x1090
movq %r15, %rdi
movl 0xc(%rsp), %esi
callq 0x10c0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x1090
movq %r15, %rdi
movl %ebx, %esi
callq 0x10c0
xorl %ebx, %ebx
movl $0x1, %edx
movq %rbp, %rdi
movq %r13, %rsi
callq 0x1090
movsd 0x10(%rsp,%rbx,8), %xmm0
movq %rbp, %rdi
callq 0x10b0
incq %rbx
cmpq $0x1, %rbx
je 0x18a1
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x1080
movsbl %al, %esi
movq %rbp, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1060
movaps 0x10(%rsp), %xmm0
movaps %xmm0, 0x20(%rsp)
incl %r12d
cmpl 0x17dc(%r14), %r12d
jl 0x17ee
movsd 0x28(%rsp), %xmm0
xorl %ebp, %ebp
ucomisd 0x20(%rsp), %xmm0
seta %bpl
movq 0x66b5(%rip), %r15      # 0x7fd8
leaq 0x478e(%rip), %rsi      # 0x60b8
movl $0x7, %edx
movq %r15, %rdi
callq 0x1090
movl 0x17b4(%r14), %esi
movq %r15, %rdi
callq 0x1050
movq %rax, %rbx
leaq 0x4770(%rip), %r14      # 0x60c0
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x1090
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x10c0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x1090
movq %rbx, %rdi
movl 0xc(%rsp), %esi
callq 0x10c0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x1090
movq %rbx, %rdi
movl %ebp, %esi
callq 0x10c0
xorl %ebx, %ebx
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1090
movsd 0x20(%rsp,%rbx,8), %xmm0
movq %r15, %rdi
callq 0x10b0
incq %rbx
cmpq $0x1, %rbx
je 0x19ab
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x1080
movsbl %al, %esi
movq %r15, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1060
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq