// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_tree_element_base
NK_INTERN int
nk_tree_element_base(struct nk_context *ctx, enum nk_tree_type type,
    struct nk_image *img, const char *title, enum nk_collapse_states initial_state,
    nk_bool *selected, const char *hash, int len, int line)
{
    struct nk_window *win = ctx->current;
    int title_len = 0;
    nk_hash tree_hash = 0;
    nk_uint *state = 0;

    /* retrieve tree state from internal widget state tables */
    if (!hash) {
        title_len = (int)nk_strlen(title);
        tree_hash = nk_murmur_hash(title, (int)title_len, (nk_hash)line);
    } else tree_hash = nk_murmur_hash(hash, len, (nk_hash)line);
    state = nk_find_value(win, tree_hash);
    if (!state) {
        state = nk_add_value(ctx, win, tree_hash, 0);
        *state = initial_state;
    } return nk_tree_element_image_push_hashed_base(ctx, type, img, title,
        nk_strlen(title), (enum nk_collapse_states*)state, selected);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r9, 0x58(%rsp)
movl %r8d, %r14d
movq %rcx, %r13
movq %rdx, 0x80(%rsp)
movl %esi, %ebp
movq %rdi, %rbx
movl 0xd0(%rsp), %r12d
movq 0xc0(%rsp), %rdi
movq 0x4780(%rbx), %r15
testq %rdi, %rdi
je 0x3f250
movl 0xc8(%rsp), %esi
jmp 0x3f25d
movq %r13, %rdi
callq 0x13040
movq %r13, %rdi
movl %eax, %esi
movl %r12d, %edx
callq 0x125c0
movl %eax, %r12d
movq %r15, %rdi
movl %eax, %esi
callq 0x3ff1b
movq %rax, 0x20(%rsp)
testq %rax, %rax
jne 0x3f292
movq %rbx, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x3ff5d
movq %rax, 0x20(%rsp)
movl %r14d, (%rax)
movq %r13, 0x78(%rsp)
movq %r13, %rdi
callq 0x13040
movl %eax, %r12d
andl $0x0, 0x3c(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq 0x4780(%rbx), %r14
testq %r14, %r14
jne 0x3f2ed
movq 0x45d2f(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2aa41(%rip), %rsi     # 0x69d0c
leaq 0x2aa58(%rip), %rdx     # 0x69d2a
movl $0x5894, %ecx           # imm = 0x5894
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %r14
movq 0xa8(%r14), %r13
testq %r13, %r13
je 0x3f3ef
addq $0x68, %r14
movss 0x24b4(%rbx), %xmm0
movss %xmm0, 0x30(%rsp)
movss 0x24b8(%rbx), %xmm0
movss %xmm0, 0x34(%rsp)
movss 0x7ac(%rbx), %xmm0
movss %xmm0, 0x38(%rsp)
movq 0x168(%rbx), %rax
movss 0x2000(%rbx), %xmm0
addss %xmm0, %xmm0
addss 0x8(%rax), %xmm0
movss %xmm0, 0x40(%rsp)
movq %rbx, %rdi
callq 0x13ab0
pushq $0x1
popq %rsi
movq %rbx, %rdi
movss 0x40(%rsp), %xmm0
callq 0x12f50
movq %rbx, %rdi
callq 0x13df0
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x12990
movl %eax, %r15d
cmpl $0x1, %ebp
movl %r12d, 0x18(%rsp)
jne 0x3f3e0
movl 0x1c58(%rbx), %eax
movl $0x1c88, %ecx           # imm = 0x1C88
movl $0x1d60, %ebp           # imm = 0x1D60
testl %eax, %eax
je 0x3f477
cmpl $0x2, %eax
je 0x3f443
cmpl $0x1, %eax
jne 0x3f504
leaq 0x1c60(%rbx), %r12
movss 0x200c(%rbx), %xmm0
pushq $-0x1
popq %rdi
callq 0x140a0
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movq %r14, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0x13660
jmp 0x3f4ff
movl $0x1e38, %ecx           # imm = 0x1E38
movl $0x1f10, %ebp           # imm = 0x1F10
jmp 0x3f504
movq 0x45bfa(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2a90c(%rip), %rsi     # 0x69d0c
leaq 0x2a923(%rip), %rdx     # 0x69d2a
xorl %r15d, %r15d
movl $0x5895, %ecx           # imm = 0x5895
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %r14
testq %r14, %r14
je 0x3f6dc
movq 0xa8(%r14), %r13
testq %r13, %r13
jne 0x3f2fd
jmp 0x3f6dc
leaq 0x1c60(%rbx), %r12
movss 0x200c(%rbx), %xmm0
pushq $-0x1
popq %rdi
callq 0x140a0
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movq %r14, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0x14230
jmp 0x3f4ff
movss 0x200c(%rbx), %xmm0
movl 0x1c80(%rbx), %edi
callq 0x140a0
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
xorps %xmm2, %xmm2
movq %r14, %rdi
movl %eax, %esi
callq 0x12f00
movss 0x1ff0(%rbx), %xmm2
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
callq 0x4b175
movaps %xmm0, 0x40(%rsp)
movaps %xmm1, 0x60(%rsp)
movss 0x1ff4(%rbx), %xmm0
movss %xmm0, 0x2c(%rsp)
movss 0x200c(%rbx), %xmm0
movl 0x1c60(%rbx), %edi
callq 0x140a0
movq %r14, %rdi
movaps 0x40(%rsp), %xmm0
movaps 0x60(%rsp), %xmm1
movss 0x2c(%rsp), %xmm2
movl %eax, %esi
callq 0x12f00
movl $0x1c88, %ecx           # imm = 0x1C88
movl $0x1000, %eax           # imm = 0x1000
andl 0x4(%r13), %eax
xorl $0x1, %r15d
xorl %r12d, %r12d
orl %eax, %r15d
cmoveq %rbx, %r12
xorl %eax, %eax
movq 0x20(%rsp), %r15
cmpl $0x1, (%r15)
cmoveq %rcx, %rbp
sete %al
movl 0x1fe8(%rbx,%rax,4), %edx
addq %rbx, %rbp
movq 0x168(%rbx), %rax
movss 0x8(%rax), %xmm2
movsd (%rsp), %xmm1
movsd 0x1ffc(%rbx), %xmm0
addps %xmm1, %xmm0
subq $0x8, %rsp
movaps %xmm2, 0x68(%rsp)
movaps %xmm2, %xmm1
shufps $0x0, %xmm2, %xmm1      # xmm1 = xmm1[0,0],xmm2[0,0]
leaq 0x44(%rsp), %rdi
movq %r14, %rsi
movaps %xmm0, 0x48(%rsp)
xorl %ecx, %ecx
movq %rbp, %r8
movq %r12, %r9
pushq %rax
callq 0x3c90b
popq %rcx
popq %rdx
testl %eax, %eax
je 0x3f590
xorl %eax, %eax
cmpl $0x1, (%r15)
setne %al
movl %eax, (%r15)
leaq 0x698(%rbx), %r15
andl $0x0, 0x1c(%rsp)
movq 0x78(%rsp), %rbp
movq %rbp, %rdi
callq 0x13040
movq 0x168(%rbx), %rcx
movss 0x8(%rcx), %xmm0
movq (%rcx), %rdi
movq %rbp, %rsi
movl %eax, %edx
callq *0x10(%rcx)
movss 0x38(%rsp), %xmm2
mulss 0x272da(%rip), %xmm2    # 0x668a8
addss %xmm0, %xmm2
movss 0x30(%rsp), %xmm3
movaps %xmm3, %xmm1
movaps 0x60(%rsp), %xmm5
addss %xmm5, %xmm1
maxss 0x8(%rsp), %xmm1
movss %xmm1, 0x8(%rsp)
movss 0x34(%rsp), %xmm4
addss %xmm5, %xmm4
movaps 0x40(%rsp), %xmm0
addss %xmm0, %xmm5
addss %xmm3, %xmm5
movss %xmm5, %xmm0            # xmm0 = xmm5[0],xmm0[1,2,3]
addss 0x1ff8(%rbx), %xmm4
subss %xmm4, %xmm1
minss %xmm2, %xmm1
movq 0x168(%rbx), %rax
movss 0x8(%rax), %xmm2
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movq 0x80(%rsp), %r10
testq %r10, %r10
je 0x3f65d
leaq 0x1c(%rsp), %rdi
pushq $0x11
popq %r8
movq %r14, %rsi
movq %rbp, %rdx
movl 0x18(%rsp), %ecx
movq 0x58(%rsp), %r9
pushq %rax
pushq %r12
pushq %r15
pushq %r10
callq 0x454a9
jmp 0x3f683
subq $0x8, %rsp
leaq 0x24(%rsp), %rdi
pushq $0x11
popq %r8
movq %r14, %rsi
movq %rbp, %rdx
movl 0x20(%rsp), %ecx
movq 0x60(%rsp), %r9
pushq %rax
pushq %r12
pushq %r15
callq 0x4501e
addq $0x20, %rsp
xorl %r15d, %r15d
movq 0x20(%rsp), %rax
cmpl $0x1, (%rax)
jne 0x3f6dc
movq 0x18(%r13), %rax
movl (%rax), %eax
cvtsi2ss %rax, %xmm0
addss (%rsp), %xmm0
movss 0x1ff8(%rbx), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0x28(%r13)
movaps %xmm1, %xmm0
maxss 0x10(%r13), %xmm0
addss 0x24cc(%rbx), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x10(%r13)
incl 0xb0(%r13)
pushq $0x1
popq %r15
movl %r15d, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq