// File: /workspace/github_c_makefile_star2_O1/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 $0x98, %rsp
movq %r9, 0x58(%rsp)
movl %r8d, %r14d
movq %rcx, %r12
movq %rdx, 0x78(%rsp)
movl %esi, 0xc(%rsp)
movq %rdi, %rbx
movl 0xe0(%rsp), %ebp
movq 0xd0(%rsp), %rdi
movq 0x4780(%rbx), %r15
testq %rdi, %rdi
je 0x433e6
movl 0xd8(%rsp), %esi
jmp 0x433f3
movq %r12, %rdi
callq 0x12f10
movq %r12, %rdi
movl %eax, %esi
movl %ebp, %edx
callq 0x12560
movq 0x1b8(%r15), %rcx
testq %rcx, %rcx
je 0x43462
movl 0x4(%rcx), %esi
testq %rsi, %rsi
setne %dl
je 0x43455
cmpl %eax, 0x8(%rcx)
jne 0x4341c
movb $0x1, %dl
xorl %edi, %edi
jmp 0x4343a
leaq -0x1(%rsi), %r8
xorl %edx, %edx
cmpq %rdx, %r8
je 0x4344c
leaq 0x1(%rdx), %rdi
cmpl %eax, 0xc(%rcx,%rdx,4)
movq %rdi, %rdx
jne 0x43422
cmpq %rsi, %rdi
setb %dl
movl (%r15), %esi
movl %esi, (%rcx)
leaq (%rcx,%rdi,4), %r13
addq $0xf8, %r13
jmp 0x4345c
incq %rdx
cmpq %rsi, %rdx
setb %dl
movq 0x1e8(%rcx), %rcx
testb %dl, %dl
je 0x43401
jmp 0x43465
xorl %r13d, %r13d
testq %r13, %r13
jne 0x4347d
movq %rbx, %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0x441e0
movq %rax, %r13
movl %r14d, (%rax)
movq %r12, %rdi
callq 0x12f10
movl %eax, %ebp
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movl $0x0, 0x3c(%rsp)
testq %rbx, %rbx
jne 0x434c8
movq 0x44b4d(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2e8df(%rip), %rsi     # 0x71d8c
leaq 0x2e8f6(%rip), %rdx     # 0x71daa
movl $0x5893, %ecx           # imm = 0x5893
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x434fe
movq 0x44b17(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2e8a9(%rip), %rsi     # 0x71d8c
leaq 0x2e8c0(%rip), %rdx     # 0x71daa
movl $0x5894, %ecx           # imm = 0x5894
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x4353b
movq 0x44ada(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2e86c(%rip), %rsi     # 0x71d8c
leaq 0x2e883(%rip), %rdx     # 0x71daa
movl $0x5895, %ecx           # imm = 0x5895
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
xorl %eax, %eax
testq %rbx, %rbx
je 0x43972
movq 0x4780(%rbx), %r15
testq %r15, %r15
je 0x43972
movq 0xa8(%r15), %rcx
movq %rcx, 0x50(%rsp)
testq %rcx, %rcx
je 0x43972
addq $0x68, %r15
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 0x138c0
movq %rbx, %rdi
xorl %esi, %esi
movss 0x40(%rsp), %xmm0
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x41057
movq %rbx, %rdi
callq 0x13bf0
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x128e0
movl %eax, %r14d
movl 0xc(%rsp), %ecx
cmpl $0x1, %ecx
jne 0x43771
movl 0x1c58(%rbx), %eax
testl %eax, %eax
je 0x436c7
cmpl $0x2, %eax
je 0x4366f
cmpl $0x1, %eax
jne 0x43771
movss 0x200c(%rbx), %xmm0
movss 0x2b291(%rip), %xmm1    # 0x6e8b8
mulss %xmm0, %xmm1
cvttss2si %xmm1, %eax
movzbl %al, %eax
imull $0x10101, %eax, %eax    # imm = 0x10101
orl $0xff000000, %eax       # imm = 0xFF000000
ucomiss 0x2b270(%rip), %xmm0    # 0x6e8b4
leaq 0x1c60(%rbx), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movsd 0x10(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movq %r15, %rdi
callq 0x134d0
jmp 0x4376d
movss 0x200c(%rbx), %xmm0
movss 0x2b239(%rip), %xmm1    # 0x6e8b8
mulss %xmm0, %xmm1
cvttss2si %xmm1, %eax
movzbl %al, %eax
imull $0x10101, %eax, %eax    # imm = 0x10101
orl $0xff000000, %eax       # imm = 0xFF000000
ucomiss 0x2b218(%rip), %xmm0    # 0x6e8b4
leaq 0x1c60(%rbx), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %eax, %edx
cmovpl %eax, %edx
movsd 0x10(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movq %r15, %rdi
callq 0x13fe0
jmp 0x4376d
movss 0x200c(%rbx), %xmm0
movl 0x1c80(%rbx), %edi
callq 0x13e60
movsd 0x10(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
xorps %xmm2, %xmm2
movq %r15, %rdi
movl %eax, %esi
callq 0x12de0
movss 0x1ff0(%rbx), %xmm0
movsd 0x10(%rsp), %xmm1
movsd 0x18(%rsp), %xmm2
movaps %xmm0, %xmm3
shufps $0x0, %xmm0, %xmm3      # xmm3 = xmm3[0,0],xmm0[0,0]
addps %xmm1, %xmm3
movaps %xmm3, 0x40(%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, 0x80(%rsp)
movss 0x1ff4(%rbx), %xmm0
movss %xmm0, 0x60(%rsp)
movss 0x200c(%rbx), %xmm0
movl 0x1c60(%rbx), %edi
callq 0x13e60
movq %r15, %rdi
movaps 0x40(%rsp), %xmm0
movaps 0x80(%rsp), %xmm1
movss 0x60(%rsp), %xmm2
movl %eax, %esi
callq 0x12de0
movl 0xc(%rsp), %ecx
movl %ebp, 0xc(%rsp)
movl $0x1000, %eax           # imm = 0x1000
movq 0x50(%rsp), %rdx
andl 0x4(%rdx), %eax
xorl $0x1, %r14d
xorl %ebp, %ebp
orl %eax, %r14d
cmoveq %rbx, %rbp
cmpl $0x1, %ecx
movl $0x1c88, %eax           # imm = 0x1C88
movl $0x1e38, %ecx           # imm = 0x1E38
cmoveq %rax, %rcx
movl $0x1d60, %eax           # imm = 0x1D60
movl $0x1f10, %r8d           # imm = 0x1F10
cmoveq %rax, %r8
xorl %eax, %eax
cmpl $0x1, (%r13)
cmoveq %rcx, %r8
sete %al
movl 0x1fe8(%rbx,%rax,4), %edx
addq %rbx, %r8
movq 0x168(%rbx), %rax
movss 0x8(%rax), %xmm2
movsd 0x10(%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 %r15, %rsi
movaps %xmm0, 0x48(%rsp)
xorl %ecx, %ecx
movq %rbp, %r9
pushq %rax
callq 0x40888
addq $0x10, %rsp
testl %eax, %eax
je 0x43822
xorl %eax, %eax
cmpl $0x1, (%r13)
setne %al
movl %eax, (%r13)
leaq 0x698(%rbx), %r14
movl $0x0, 0x2c(%rsp)
movq %r12, %rdi
callq 0x12f10
movq 0x168(%rbx), %rcx
movss 0x8(%rcx), %xmm0
movq (%rcx), %rdi
movq %r12, %rsi
movl %eax, %edx
callq *0x10(%rcx)
movss 0x38(%rsp), %xmm2
mulss 0x2b0d2(%rip), %xmm2    # 0x6e930
addss %xmm0, %xmm2
movss 0x30(%rsp), %xmm3
movaps %xmm3, %xmm1
movaps 0x60(%rsp), %xmm5
addss %xmm5, %xmm1
maxss 0x18(%rsp), %xmm1
movss %xmm1, 0x18(%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 0x78(%rsp), %r10
testq %r10, %r10
je 0x438eb
leaq 0x2c(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
movl 0xc(%rsp), %ecx
movl $0x11, %r8d
movq 0x58(%rsp), %r9
pushq %rax
pushq %rbp
pushq %r14
pushq %r10
callq 0x49bf8
jmp 0x43912
subq $0x8, %rsp
leaq 0x34(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
movl 0x14(%rsp), %ecx
movl $0x11, %r8d
movq 0x60(%rsp), %r9
pushq %rax
pushq %rbp
pushq %r14
callq 0x4978e
addq $0x20, %rsp
xorl %eax, %eax
cmpl $0x1, (%r13)
jne 0x43972
movq 0x50(%rsp), %rcx
movq 0x18(%rcx), %rax
movl (%rax), %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
addss 0x10(%rsp), %xmm0
movss 0x1ff8(%rbx), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0x28(%rcx)
movaps %xmm1, %xmm0
maxss 0x10(%rcx), %xmm0
movss %xmm0, 0x10(%rcx)
addss 0x24cc(%rbx), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x10(%rcx)
incl 0xb0(%rcx)
movl $0x1, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq