// File: /workspace/github_cpp_makefile_star2_O3/WinChua[P]MLDemo/DecisionTree.cpp
// Function: TreeNode::divide_node()
void TreeNode::divide_node() {
    std::vector<int> index_of_lchild, index_of_rchild;
    std::set<std::string> feature_of_lchild(feature_sets);
    std::set<std::string> feature_of_rchild(feature_sets);
    struct FeatureGain feature_gain = choose_attr(index_of_lchild, index_of_rchild);
    attr = feature_gain.field;
    gain = feature_gain.gain;
    if(attr != "no divided")
    {
        feature_of_lchild.erase(attr);
        feature_of_rchild.erase(attr);
        if(index_of_lchild.size() > 0)
            lchild = new TreeNode(data, index_of_lchild, feature_of_lchild);
        if(index_of_rchild.size() > 0)
            rchild = new TreeNode(data, index_of_rchild, feature_of_rchild);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x150, %rsp            # imm = 0x150
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
xorl %eax, %eax
movq %rax, 0x30(%rsp)
movq %rax, 0x10(%rsp)
movaps %xmm0, (%rsp)
leaq 0x48(%rdi), %r14
leaq 0xc0(%rsp), %rdi
movq %r14, %rsi
callq 0x3654
leaq 0x90(%rsp), %rdi
movq %r14, %rsi
callq 0x3654
leaq 0x68(%rsp), %rdi
leaq 0x20(%rsp), %rdx
movq %rsp, %rcx
movq %rbx, %rsi
callq 0x29e6
leaq 0x20(%rbx), %r14
leaq 0x68(%rsp), %rsi
movq %r14, %rdi
callq 0x20e0
movsd 0x88(%rsp), %xmm0
movsd %xmm0, 0x40(%rbx)
leaq 0x39ae(%rip), %rsi      # 0x6044
movq %r14, %rdi
callq 0x2080
testl %eax, %eax
je 0x27e9
leaq 0xc0(%rsp), %rdi
movq %r14, %rsi
callq 0x3d60
leaq 0xc0(%rsp), %rdi
movq %rax, %rsi
callq 0x3e14
leaq 0x90(%rsp), %rdi
movq %r14, %rsi
callq 0x3d60
leaq 0x90(%rsp), %rdi
movq %rax, %rsi
callq 0x3e14
movq 0x28(%rsp), %rax
cmpq 0x20(%rsp), %rax
je 0x2769
movl $0x90, %edi
callq 0x2190
movq %rax, %r14
movq (%rbx), %r15
leaq 0x50(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x358e
leaq 0x120(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x3654
leaq 0x50(%rsp), %rdx
leaq 0x120(%rsp), %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x293c
movq %r14, 0x80(%rbx)
leaq 0x120(%rsp), %rdi
callq 0x38d8
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2769
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x21a0
movq 0x8(%rsp), %rax
cmpq (%rsp), %rax
je 0x27e9
movl $0x90, %edi
callq 0x2190
movq %rax, %r14
movq (%rbx), %r15
leaq 0x38(%rsp), %rdi
movq %rsp, %rsi
callq 0x358e
leaq 0xf0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x3654
leaq 0x38(%rsp), %rdx
leaq 0xf0(%rsp), %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x293c
movq %r14, 0x88(%rbx)
leaq 0xf0(%rsp), %rdi
callq 0x38d8
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x27e9
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x21a0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2804
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x90(%rsp), %rdi
callq 0x38d8
leaq 0xc0(%rsp), %rdi
callq 0x38d8
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2834
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21a0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x284b
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x21a0
addq $0x150, %rsp            # imm = 0x150
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x38d8
jmp 0x286d
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x28b1
movq 0x48(%rsp), %rsi
jmp 0x28a4
jmp 0x28ae
movq %rax, %rbx
leaq 0x120(%rsp), %rdi
callq 0x38d8
jmp 0x2895
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x28b1
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x21a0
jmp 0x28b1
movq %rax, %rbx
movl $0x90, %esi
movq %r14, %rdi
callq 0x21a0
jmp 0x28d2
movq %rax, %rbx
jmp 0x28ed
movq %rax, %rbx
jmp 0x28fa
movq %rax, %rbx
jmp 0x291d
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28ed
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x90(%rsp), %rdi
callq 0x38d8
leaq 0xc0(%rsp), %rdi
callq 0x38d8
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x291d
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21a0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x2934
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x2290