// File: /workspace/github_c_makefile_star2_O2/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 0x2a9c2
movq %rdi, %rbx
cmpl $0x0, 0x4790(%rdi)
je 0x2a9f3
movq 0x2548(%rbx), %r15
cmpl $0x0, 0x4718(%rbx)
jne 0x2a988
movq 0x1a8(%rbx), %rsi
testq %rsi, %rsi
jne 0x2a818
movq 0x170(%rbx), %rsi
movq %rsi, 0x1a8(%rbx)
movq %r15, %rax
testq %rsi, %rsi
je 0x2a8ac
cmpb $0x0, 0x165(%rbx)
movq %r15, %rax
jne 0x2a8ac
cmpl $0x0, 0x1b8(%rbx)
movq %r15, %rax
je 0x2a8ac
leaq 0x2508(%rbx), %rax
movq %rax, 0x46d8(%rbx)
andl $0x0, 0x46f0(%rbx)
leaq 0x46d8(%rbx), %rdi
movq 0x2560(%rbx), %rax
movq %rax, 0x4700(%rbx)
movq %rax, 0x4708(%rbx)
movq %rax, 0x4710(%rbx)
movups 0x3bfad(%rip), %xmm0    # 0x66820
movups %xmm0, 0x46e0(%rbx)
movsd 0x144(%rbx), %xmm0
movsd 0x18(%rsi), %xmm1
movsd 0x20(%rsi), %xmm2
subps %xmm2, %xmm0
pushq $-0x1
popq %rdx
callq 0x13660
movq 0x2548(%rbx), %rax
movq 0x2560(%rbx), %rcx
movq %rcx, 0x4708(%rbx)
movq 0x4768(%rbx), %rcx
xorl %edx, %edx
movq %rcx, %rsi
testq %rsi, %rsi
je 0x2a959
movq %rsi, %r8
movq 0xa0(%rsi), %rdi
movq 0x1c8(%rsi), %rsi
cmpq 0x90(%r8), %rdi
je 0x2a8b8
testb $0x20, 0x49(%r8)
jne 0x2a8b8
movl (%r8), %r8d
cmpl 0x4794(%rbx), %r8d
jne 0x2a8b8
addq %rax, %rdi
testq %rsi, %rsi
je 0x2a91a
movq 0x90(%rsi), %rdx
cmpq %rdx, 0xa0(%rsi)
je 0x2a911
testb $0x20, 0x49(%rsi)
jne 0x2a911
cmpl %r8d, (%rsi)
je 0x2a921
movq 0x1c8(%rsi), %rsi
jmp 0x2a8f1
movq %rdi, %rdx
xorl %esi, %esi
jmp 0x2a8b8
movq %rdx, 0x8(%rdi)
movq %rdi, %rdx
jmp 0x2a8b8
movq %rcx, %rsi
movq 0x1c8(%rcx), %rcx
cmpl $0x0, 0x150(%rsi)
je 0x2a959
movq 0x130(%rsi), %rdi
movq %rdi, 0x8(%rdx)
movq 0x140(%rsi), %rdx
addq %rax, %rdx
andl $0x0, 0x150(%rsi)
testq %rcx, %rcx
jne 0x2a92a
testq %rdx, %rdx
je 0x2a97e
movq 0x4700(%rbx), %rax
cmpq %rax, 0x4708(%rbx)
jne 0x2a97a
movq 0x2560(%rbx), %rax
movq %rax, 0x8(%rdx)
movl $0x1, 0x4718(%rbx)
leaq 0x4768(%rbx), %rax
xorl %r14d, %r14d
movq (%rax), %rax
testq %rax, %rax
je 0x2a9fe
movq 0x90(%rax), %rcx
cmpq 0x98(%rax), %rcx
je 0x2a9ba
testb $0x20, 0x49(%rax)
jne 0x2a9ba
movl (%rax), %edx
cmpl 0x4794(%rbx), %edx
je 0x2a9f8
addq $0x1c8, %rax            # imm = 0x1C8
jmp 0x2a992
movq 0x5a627(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x3f339(%rip), %rsi     # 0x69d0c
leaq 0x3f350(%rip), %rdx     # 0x69d2a
xorl %r14d, %r14d
movl $0x4b8e, %ecx           # imm = 0x4B8E
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
jmp 0x2a9fe
xorl %r14d, %r14d
jmp 0x2a9fe
addq %rcx, %r15
movq %r15, %r14
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq