// File: /workspace/github_cpp_makefile_star2_O2/bonetblai[P]mdp-engine/ctp3/../engine/aot.h
// Function: Online::Policy::AOT::aot_t<state_t>::expand(Online::Policy::AOT::state_node_t<state_t>*, std::vector<Online::Policy::AOT::node_t<state_t>*, std::allocator<Online::Policy::AOT::node_t<state_t>*>>&) const
void expand(state_node_t<T> *s_node,
                std::vector<node_t<T>*> &nodes_to_propagate) const {
        assert(s_node->is_leaf());
        assert(!s_node->is_goal_);
        assert(!s_node->is_dead_end_);
        s_node->children_.reserve(problem_.number_actions(s_node->state_));
        for( Problem::action_t a = 0; a < problem_.number_actions(s_node->state_); ++a ) {
            if( problem_.applicable(s_node->state_, a) ) {
                // create node for this action
                ++num_nodes_;
                action_node_t<T> *a_node = new action_node_t<T>(a);
                a_node->action_cost_ = problem_.cost(s_node->state_, a);
                a_node->parent_ = s_node;
                s_node->children_.push_back(a_node);

                // expand node
                if( !delayed_evaluation_ ) {
                    expand(a_node, nodes_to_propagate, false);
                } else {
                    // instead of full-width expansion to calculate value,
                    // estimate by sampling states and applying rollouts
                    // of base policy
                    float eval = evaluate(s_node->state_, a, 1+s_node->depth_);
                    a_node->value_ = a_node->action_cost_ + problem_.discount() * eval;
                    a_node->nsamples_ = delayed_evaluation_nsamples_ * leaf_nsamples_;
                }
            }
        }
        nodes_to_propagate.push_back(s_node);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x10(%rsp)
movb 0x88(%rsi), %al
cmpb $0x0, 0x89(%rsi)
jne 0x1be3b
testb %al, %al
jne 0x1be3f
movq %rsi, %r14
movq 0xa8(%rsi), %rax
cmpq 0xb0(%rsi), %rax
jne 0x1be5e
movq %rdi, %r15
leaq 0xa8(%r14), %r12
movq 0x8(%rdi), %rdi
leaq 0x18(%r14), %r13
movq (%rdi), %rax
movq %r13, %rsi
callq *0x10(%rax)
movslq %eax, %rsi
movq %r12, %rdi
callq 0x1be9c
xorl %ebp, %ebp
leaq 0x8(%rsp), %rbx
movq 0x8(%r15), %rdi
movq (%rdi), %rax
movq %r13, %rsi
callq *0x10(%rax)
cmpl %eax, %ebp
jge 0x1be1a
movq 0x8(%r15), %rdi
movq (%rdi), %rax
movq %r13, %rsi
movl %ebp, %edx
callq *0x30(%rax)
testb %al, %al
je 0x1be13
incl 0x50(%r15)
pushq $0x40
popq %rdi
callq 0x52a0
andq $0x0, 0x8(%rax)
andq $0x0, 0xf(%rax)
leaq 0x18f03(%rip), %rcx     # 0x34c80
movq %rcx, (%rax)
movl %ebp, 0x18(%rax)
andq $0x0, 0x38(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rax)
movq %rax, 0x8(%rsp)
movq 0x8(%r15), %rdi
movq (%rdi), %rax
movq %r13, %rsi
movl %ebp, %edx
callq *0x48(%rax)
movq 0x8(%rsp), %rax
movss %xmm0, 0x1c(%rax)
movq %r14, 0x20(%rax)
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1bf2c
cmpb $0x0, 0x3d(%r15)
je 0x1bdff
movl 0x8c(%r14), %ecx
incl %ecx
movq %r15, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0x1c2c4
movq 0x8(%r15), %rax
mulss 0x8(%rax), %xmm0
movq 0x8(%rsp), %rax
addss 0x1c(%rax), %xmm0
movss %xmm0, 0x8(%rax)
movl 0x44(%r15), %ecx
imull 0x48(%r15), %ecx
movl %ecx, 0x10(%rax)
jmp 0x1be13
movq 0x8(%rsp), %rsi
movq %r15, %rdi
movq 0x10(%rsp), %rdx
xorl %ecx, %ecx
callq 0x1bf4a
incl %ebp
jmp 0x1bd34
leaq 0x8(%rsp), %rsi
movq %r14, (%rsi)
movq 0x10(%rsp), %rdi
callq 0x1cbe8
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb %al, %al
je 0x1be7d
leaq 0x6882(%rip), %rdi      # 0x226c8
leaq 0x5afc(%rip), %rsi      # 0x21949
leaq 0x6d2b(%rip), %rcx      # 0x22b7f
movl $0x29e, %edx            # imm = 0x29E
callq 0x51b0
leaq 0x6d08(%rip), %rdi      # 0x22b6d
leaq 0x5add(%rip), %rsi      # 0x21949
leaq 0x6d0c(%rip), %rcx      # 0x22b7f
movl $0x29d, %edx            # imm = 0x29D
callq 0x51b0
leaq 0x68d9(%rip), %rdi      # 0x2275d
leaq 0x5abe(%rip), %rsi      # 0x21949
leaq 0x6ced(%rip), %rcx      # 0x22b7f
movl $0x29f, %edx            # imm = 0x29F
callq 0x51b0