// File: /workspace/github_c_makefile_star2_O3/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, 0x40(%rsp)
movl %r8d, %r14d
movq %rdx, 0x68(%rsp)
movl %esi, %ebp
movq %rdi, %rbx
movl 0xd0(%rsp), %r12d
movq 0xc0(%rsp), %rdi
movq 0x4780(%rbx), %r15
testq %rdi, %rdi
movq %rcx, 0x48(%rsp)
je 0x42abe
movl 0xc8(%rsp), %esi
jmp 0x42ace
movq %rcx, %r13
movq %rcx, %rdi
callq 0x12f10
movq %r13, %rdi
movl %eax, %esi
movl %r12d, %edx
callq 0x12560
movq 0x1b8(%r15), %rcx
testq %rcx, %rcx
je 0x42b13
movl 0x4(%rcx), %edx
testq %rdx, %rdx
je 0x42b03
leaq 0xf8(%rcx), %r13
cmpl %eax, -0xf0(%r13)
je 0x42b0c
addq $0x4, %r13
decq %rdx
jne 0x42af1
movq 0x1e8(%rcx), %rcx
jmp 0x42add
movl (%r15), %eax
movl %eax, (%rcx)
jmp 0x42b26
movq %rbx, %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0x437e2
movq %rax, %r13
movl %r14d, (%rax)
movq 0x48(%rsp), %rdi
callq 0x12f10
movl %eax, %r12d
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movl $0x0, 0x2c(%rsp)
testq %rbx, %rbx
jne 0x42b73
movq 0x444a2(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x2e244(%rip), %rsi     # 0x70d9c
leaq 0x2e25b(%rip), %rdx     # 0x70dba
movl $0x5893, %ecx           # imm = 0x5893
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %r14
testq %r14, %r14
jne 0x42bb2
movq 0x4446a(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x2e20c(%rip), %rsi     # 0x70d9c
leaq 0x2e223(%rip), %rdx     # 0x70dba
movl $0x5894, %ecx           # imm = 0x5894
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %r14
movq 0xa8(%r14), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x42ce6
addq $0x68, %r14
movss 0x24b4(%rbx), %xmm0
movss %xmm0, 0x20(%rsp)
movss 0x24b8(%rbx), %xmm0
movss %xmm0, 0x24(%rsp)
movss 0x7ac(%rbx), %xmm0
movss %xmm0, 0x28(%rsp)
movq 0x168(%rbx), %rax
movss 0x2000(%rbx), %xmm0
addss %xmm0, %xmm0
addss 0x8(%rax), %xmm0
movss %xmm0, 0x30(%rsp)
movq %rbx, %rdi
callq 0x138c0
movq %rbx, %rdi
xorl %esi, %esi
movss 0x30(%rsp), %xmm0
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x407cc
movq %rbx, %rdi
callq 0x13bf0
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x128e0
movl %eax, %r15d
cmpl $0x1, %ebp
movl %r12d, 0x10(%rsp)
jne 0x42cd7
movl 0x1c58(%rbx), %eax
movl $0x1c88, %edx           # imm = 0x1C88
movl $0x1d60, %ebp           # imm = 0x1D60
testl %eax, %eax
je 0x42d96
cmpl $0x2, %eax
je 0x42d3f
cmpl $0x1, %eax
jne 0x42e39
movss 0x200c(%rbx), %xmm0
movss 0x2ac18(%rip), %xmm1    # 0x6d8a8
mulss %xmm0, %xmm1
cvttss2si %xmm1, %eax
movzbl %al, %eax
imull $0x10101, %eax, %eax    # imm = 0x10101
orl $0xff000000, %eax       # imm = 0xFF000000
ucomiss 0x2abf7(%rip), %xmm0    # 0x6d8a4
leaq 0x1c60(%rbx), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movq %r14, %rdi
callq 0x134d0
jmp 0x42e34
movl $0x1e38, %edx           # imm = 0x1E38
movl $0x1f10, %ebp           # imm = 0x1F10
jmp 0x42e39
movq 0x44303(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x2e0a5(%rip), %rsi     # 0x70d9c
leaq 0x2e0bc(%rip), %rdx     # 0x70dba
xorl %r15d, %r15d
movl $0x5895, %ecx           # imm = 0x5895
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %r14
testq %r14, %r14
je 0x4301c
movq 0xa8(%r14), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
jne 0x42bc7
jmp 0x4301c
movss 0x200c(%rbx), %xmm0
movss 0x2ab59(%rip), %xmm1    # 0x6d8a8
mulss %xmm0, %xmm1
cvttss2si %xmm1, %eax
movzbl %al, %eax
imull $0x10101, %eax, %eax    # imm = 0x10101
orl $0xff000000, %eax       # imm = 0xFF000000
ucomiss 0x2ab38(%rip), %xmm0    # 0x6d8a4
leaq 0x1c60(%rbx), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movq %r14, %rdi
callq 0x13fe0
jmp 0x42e34
movss 0x200c(%rbx), %xmm0
movl 0x1c80(%rbx), %edi
callq 0x13e60
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
xorps %xmm2, %xmm2
movq %r14, %rdi
movl %eax, %esi
callq 0x12de0
movss 0x1ff0(%rbx), %xmm0
movsd (%rsp), %xmm1
movsd 0x8(%rsp), %xmm2
movaps %xmm0, %xmm3
shufps $0x0, %xmm0, %xmm3      # xmm3 = xmm3[0,0],xmm0[0,0]
addps %xmm1, %xmm3
movaps %xmm3, 0x30(%rsp)
addss %xmm0, %xmm0
shufps $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movaps %xmm0, %xmm1
maxps %xmm2, %xmm1
subps %xmm0, %xmm1
movaps %xmm1, 0x70(%rsp)
movss 0x1ff4(%rbx), %xmm0
movss %xmm0, 0x50(%rsp)
movss 0x200c(%rbx), %xmm0
movl 0x1c60(%rbx), %edi
callq 0x13e60
movq %r14, %rdi
movaps 0x30(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movss 0x50(%rsp), %xmm2
movl %eax, %esi
callq 0x12de0
movl $0x1c88, %edx           # imm = 0x1C88
movl $0x1000, %eax           # imm = 0x1000
movq 0x18(%rsp), %rcx
andl 0x4(%rcx), %eax
xorl $0x1, %r15d
xorl %r12d, %r12d
orl %eax, %r15d
cmoveq %rbx, %r12
xorl %eax, %eax
cmpl $0x1, (%r13)
cmoveq %rdx, %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, 0x58(%rsp)
movaps %xmm2, %xmm1
shufps $0x0, %xmm2, %xmm1      # xmm1 = xmm1[0,0],xmm2[0,0]
leaq 0x34(%rsp), %rdi
movq %r14, %rsi
movaps %xmm0, 0x38(%rsp)
xorl %ecx, %ecx
movq %rbp, %r8
movq %r12, %r9
pushq %rax
callq 0x3ffe3
addq $0x10, %rsp
testl %eax, %eax
je 0x42ec9
xorl %eax, %eax
cmpl $0x1, (%r13)
setne %al
movl %eax, (%r13)
leaq 0x698(%rbx), %r15
movl $0x0, 0x14(%rsp)
movq 0x48(%rsp), %rbp
movq %rbp, %rdi
callq 0x12f10
movq 0x168(%rbx), %rcx
movss 0x8(%rcx), %xmm0
movq (%rcx), %rdi
movq %rbp, %rsi
movl %eax, %edx
callq *0x10(%rcx)
movss 0x28(%rsp), %xmm2
mulss 0x2aa12(%rip), %xmm2    # 0x6d91c
addss %xmm0, %xmm2
movss 0x20(%rsp), %xmm3
movaps %xmm3, %xmm1
movaps 0x50(%rsp), %xmm5
addss %xmm5, %xmm1
maxss 0x8(%rsp), %xmm1
movss %xmm1, 0x8(%rsp)
movss 0x24(%rsp), %xmm4
addss %xmm5, %xmm4
movaps 0x30(%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 0x68(%rsp), %r10
testq %r10, %r10
je 0x42f98
leaq 0x14(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
movl 0x10(%rsp), %ecx
movl $0x11, %r8d
movq 0x40(%rsp), %r9
pushq %rax
pushq %r12
pushq %r15
pushq %r10
callq 0x4905d
jmp 0x42fc0
subq $0x8, %rsp
leaq 0x1c(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
movl 0x18(%rsp), %ecx
movl $0x11, %r8d
movq 0x48(%rsp), %r9
pushq %rax
pushq %r12
pushq %r15
callq 0x48c13
addq $0x20, %rsp
xorl %r15d, %r15d
cmpl $0x1, (%r13)
jne 0x4301c
movq 0x18(%rsp), %rcx
movq 0x18(%rcx), %rax
movl (%rax), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
addss (%rsp), %xmm0
movss 0x1ff8(%rbx), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0x28(%rcx)
movaps %xmm1, %xmm0
maxss 0x10(%rcx), %xmm0
addss 0x24cc(%rbx), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x10(%rcx)
incl 0xb0(%rcx)
movl $0x1, %r15d
movl %r15d, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq