// File: /workspace/github_cpp_makefile_star2_O3/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
movb 0x88(%rsi), %al
cmpb $0x0, 0x89(%rsi)
jne 0x25ac2
testb %al, %al
jne 0x25ac6
movq %rsi, %r14
movq 0xa8(%rsi), %rax
cmpq 0xb0(%rsi), %rax
jne 0x25ae5
movq %rdx, %rbx
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, 0x10(%rsp)
movq %r12, %rdi
callq 0x25b24
movq 0x8(%r15), %rdi
movq (%rdi), %rax
movq %r13, %rsi
callq *0x10(%rax)
testl %eax, %eax
jle 0x25a8d
xorl %r12d, %r12d
xorl %ebp, %ebp
movq 0x8(%r15), %rdi
movq (%rdi), %rax
movq %r13, %rsi
movl %ebp, %edx
callq *0x30(%rax)
testb %al, %al
je 0x25a76
incl 0x50(%r15)
movl $0x40, %edi
callq 0x5290
movq %r12, 0x8(%rax)
movq %r12, 0xf(%rax)
leaq 0x172be(%rip), %rcx     # 0x3cc80
movq %rcx, (%rax)
movl %ebp, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rax)
movq %r12, 0x38(%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 0xb0(%r14), %rsi
cmpq 0xb8(%r14), %rsi
je 0x25a12
movq %rax, (%rsi)
addq $0x8, 0xb0(%r14)
jmp 0x25a21
movq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x26544
cmpb $0x0, 0x3d(%r15)
je 0x25a64
movl 0x8c(%r14), %ecx
incl %ecx
movq %r15, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0x25fb8
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 0x25a76
movq 0x8(%rsp), %rsi
movq %r15, %rdi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x25bb6
incl %ebp
movq 0x8(%r15), %rdi
movq (%rdi), %rax
movq %r13, %rsi
callq *0x10(%rax)
cmpl %eax, %ebp
jl 0x2598e
movq %r14, 0x8(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x25aa6
movq %r14, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x25ab3
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x2696a
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb %al, %al
je 0x25b04
leaq 0x7c11(%rip), %rdi      # 0x2d6de
leaq 0x6eb5(%rip), %rsi      # 0x2c989
leaq 0x80ba(%rip), %rcx      # 0x2db95
movl $0x29e, %edx            # imm = 0x29E
callq 0x51c0
leaq 0x8097(%rip), %rdi      # 0x2db83
leaq 0x6e96(%rip), %rsi      # 0x2c989
leaq 0x809b(%rip), %rcx      # 0x2db95
movl $0x29d, %edx            # imm = 0x29D
callq 0x51c0
leaq 0x7c68(%rip), %rdi      # 0x2d773
leaq 0x6e77(%rip), %rsi      # 0x2c989
leaq 0x807c(%rip), %rcx      # 0x2db95
movl $0x29f, %edx            # imm = 0x29F
callq 0x51c0
nop