// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk__begin
NK_API const struct nk_command*
nk__begin(struct nk_context *ctx)
{
    struct nk_window *iter;
    nk_byte *buffer;
    NK_ASSERT(ctx);
    if (!ctx) return 0;
    if (!ctx->count) return 0;

    buffer = (nk_byte*)ctx->memory.memory.ptr;
    if (!ctx->build) {
        nk_build(ctx);
        ctx->build = nk_true;
    }
    iter = ctx->begin;
    while (iter && ((iter->buffer.begin == iter->buffer.end) ||
        (iter->flags & NK_WINDOW_HIDDEN) || iter->seq != ctx->seq))
        iter = iter->next;
    if (!iter) return 0;
    return nk_ptr_add_const(struct nk_command, buffer, iter->buffer.begin);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x2c603
movq %rdi, %rbx
cmpl $0x0, 0x4790(%rdi)
je 0x2c6dc
movq 0x2548(%rbx), %r15
cmpl $0x0, 0x4718(%rbx)
jne 0x2c69f
cmpq $0x0, 0x1a8(%rbx)
jne 0x2c4df
movq 0x170(%rbx), %rax
movq %rax, 0x1a8(%rbx)
movq 0x1a8(%rbx), %rsi
testq %rsi, %rsi
je 0x2c577
cmpb $0x0, 0x165(%rbx)
jne 0x2c577
cmpl $0x0, 0x1b8(%rbx)
je 0x2c577
leaq 0x46d8(%rbx), %rdi
leaq 0x2508(%rbx), %rax
movq %rax, 0x46d8(%rbx)
movl $0x0, 0x46f0(%rbx)
movq 0x2560(%rbx), %rax
movq %rax, 0x4700(%rbx)
movq %rax, 0x4708(%rbx)
movq %rax, 0x4710(%rbx)
movups 0x4235d(%rip), %xmm0    # 0x6e8a0
movups %xmm0, 0x46e0(%rbx)
movsd 0x144(%rbx), %xmm0
movsd 0x18(%rsi), %xmm1
movsd 0x20(%rsi), %xmm2
subps %xmm2, %xmm0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x134d0
movq 0x2560(%rbx), %rax
movq %rax, 0x4708(%rbx)
movq 0x4768(%rbx), %rdx
movq 0x2548(%rbx), %rax
testq %rdx, %rdx
je 0x2c637
xorl %edi, %edi
movq %rdx, %r9
movq 0xa0(%r9), %rcx
movq 0x1c8(%r9), %rsi
cmpq 0x90(%r9), %rcx
je 0x2c5e9
testb $0x20, 0x49(%r9)
jne 0x2c5e9
movl 0x4794(%rbx), %r8d
cmpl %r8d, (%r9)
jne 0x2c5e9
addq %rax, %rcx
testq %rsi, %rsi
je 0x2c5f9
movq 0x90(%rsi), %rdi
cmpq %rdi, 0xa0(%rsi)
je 0x2c5e0
testb $0x20, 0x49(%rsi)
jne 0x2c5e0
cmpl %r8d, (%rsi)
je 0x2c5fd
movq 0x1c8(%rsi), %rsi
jmp 0x2c5c0
movq %rdi, %rcx
movq %rsi, %r9
movq %rcx, %rdi
testq %rsi, %rsi
jne 0x2c593
jmp 0x2c639
xorl %esi, %esi
jmp 0x2c5ec
movq %rdi, 0x8(%rcx)
jmp 0x2c5ec
movq 0x5b9e6(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x45778(%rip), %rsi     # 0x71d8c
leaq 0x4578f(%rip), %rdx     # 0x71daa
xorl %r14d, %r14d
movl $0x4b8e, %ecx           # imm = 0x4B8E
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
jmp 0x2c6df
xorl %ecx, %ecx
testq %rdx, %rdx
je 0x2c675
movq 0x1c8(%rdx), %rsi
cmpl $0x0, 0x150(%rdx)
je 0x2c66d
movq 0x130(%rdx), %rdi
movq %rdi, 0x8(%rcx)
movq 0x140(%rdx), %rcx
addq %rax, %rcx
movl $0x0, 0x150(%rdx)
movq %rsi, %rdx
testq %rsi, %rsi
jne 0x2c63e
testq %rcx, %rcx
je 0x2c695
movq 0x4700(%rbx), %rax
cmpq %rax, 0x4708(%rbx)
jne 0x2c691
movq 0x2560(%rbx), %rax
movq %rax, 0x8(%rcx)
movl $0x1, 0x4718(%rbx)
movq 0x4768(%rbx), %rax
testq %rax, %rax
je 0x2c6dc
xorl %r14d, %r14d
movq 0x90(%rax), %rcx
cmpq 0x98(%rax), %rcx
je 0x2c6ce
testb $0x20, 0x49(%rax)
jne 0x2c6ce
movl (%rax), %edx
cmpl 0x4794(%rbx), %edx
je 0x2c6e8
movq 0x1c8(%rax), %rax
testq %rax, %rax
jne 0x2c6ae
jmp 0x2c6df
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
addq %rcx, %r15
movq %r15, %r14
jmp 0x2c6df