// File: /workspace/github_cpp_makefile_star2_O2/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)
andq $0x0, 0x30(%rsp)
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
leaq 0x48(%rdi), %r14
leaq 0xc0(%rsp), %rdi
movq %r14, %rsi
callq 0x324a
leaq 0x90(%rsp), %rdi
movq %r14, %rsi
callq 0x324a
leaq 0x68(%rsp), %rdi
leaq 0x20(%rsp), %rdx
movq %rsp, %rcx
movq %rbx, %rsi
callq 0x28a6
leaq 0x20(%rbx), %r14
leaq 0x68(%rsp), %rsi
movq %r14, %rdi
callq 0x20f0
movsd 0x88(%rsp), %xmm0
movsd %xmm0, 0x40(%rbx)
leaq 0x2a30(%rip), %rsi      # 0x5044
movq %r14, %rdi
callq 0x319d
testb %al, %al
je 0x272d
leaq 0xc0(%rsp), %rdi
movq %r14, %rsi
callq 0x3962
leaq 0x90(%rsp), %rdi
movq %r14, %rsi
callq 0x3962
movq 0x28(%rsp), %rax
cmpq 0x20(%rsp), %rax
je 0x26ba
movl $0x90, %edi
callq 0x21b0
movq %rax, %r14
movq (%rbx), %r15
leaq 0x50(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x3150
leaq 0x120(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x324a
leaq 0x50(%rsp), %rdx
leaq 0x120(%rsp), %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2812
movq %r14, 0x80(%rbx)
leaq 0x120(%rsp), %rdi
callq 0x34ea
leaq 0x50(%rsp), %rdi
callq 0x37b8
movq 0x8(%rsp), %rax
cmpq (%rsp), %rax
je 0x272d
movl $0x90, %edi
callq 0x21b0
movq %rax, %r14
movq (%rbx), %r15
leaq 0x38(%rsp), %rdi
movq %rsp, %rsi
callq 0x3150
leaq 0xf0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x324a
leaq 0x38(%rsp), %rdx
leaq 0xf0(%rsp), %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2812
movq %r14, 0x88(%rbx)
leaq 0xf0(%rsp), %rdi
callq 0x34ea
leaq 0x38(%rsp), %rdi
callq 0x37b8
leaq 0x68(%rsp), %rdi
callq 0x20c0
leaq 0x90(%rsp), %rdi
callq 0x34ea
leaq 0xc0(%rsp), %rdi
callq 0x34ea
movq %rsp, %rdi
callq 0x37b8
leaq 0x20(%rsp), %rdi
callq 0x37b8
addq $0x150, %rsp            # imm = 0x150
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x34ea
jmp 0x2785
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
jmp 0x27a8
jmp 0x27af
movq %rax, %rbx
leaq 0x120(%rsp), %rdi
callq 0x34ea
jmp 0x27a3
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x37b8
jmp 0x27b2
movq %rax, %rbx
movl $0x90, %esi
movq %r14, %rdi
callq 0x21c0
jmp 0x27d3
movq %rax, %rbx
jmp 0x27dd
movq %rax, %rbx
jmp 0x27ea
movq %rax, %rbx
jmp 0x27f7
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x20c0
leaq 0x90(%rsp), %rdi
callq 0x34ea
leaq 0xc0(%rsp), %rdi
callq 0x34ea
movq %rsp, %rdi
callq 0x37b8
leaq 0x20(%rsp), %rdi
callq 0x37b8
movq %rbx, %rdi
callq 0x22a0
nop