// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_group_scrolled_end
NK_API void
nk_group_scrolled_end(struct nk_context *ctx)
{
    struct nk_window *win;
    struct nk_panel *parent;
    struct nk_panel *g;

    struct nk_rect clip;
    struct nk_window pan;
    struct nk_vec2 panel_padding;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    if (!ctx || !ctx->current)
        return;

    /* make sure nk_group_begin was called correctly */
    NK_ASSERT(ctx->current);
    win = ctx->current;
    NK_ASSERT(win->layout);
    g = win->layout;
    NK_ASSERT(g->parent);
    parent = g->parent;

    /* dummy window */
    nk_zero_struct(pan);
    panel_padding = nk_panel_get_padding(&ctx->style, NK_PANEL_GROUP);
    pan.bounds.y = g->bounds.y - (g->header_height + g->menu.h);
    pan.bounds.x = g->bounds.x - panel_padding.x;
    pan.bounds.w = g->bounds.w + 2 * panel_padding.x;
    pan.bounds.h = g->bounds.h + g->header_height + g->menu.h;
    if (g->flags & NK_WINDOW_BORDER) {
        pan.bounds.x -= g->border;
        pan.bounds.y -= g->border;
        pan.bounds.w += 2*g->border;
        pan.bounds.h += 2*g->border;
    }
    if (!(g->flags & NK_WINDOW_NO_SCROLLBAR)) {
        pan.bounds.w += ctx->style.window.scrollbar_size.x;
        pan.bounds.h += ctx->style.window.scrollbar_size.y;
    }
    pan.scrollbar.x = *g->offset_x;
    pan.scrollbar.y = *g->offset_y;
    pan.flags = g->flags;
    pan.buffer = win->buffer;
    pan.layout = g;
    pan.parent = win;
    ctx->current = &pan;

    /* make sure group has correct clipping rectangle */
    nk_unify(&clip, &parent->clip, pan.bounds.x, pan.bounds.y,
        pan.bounds.x + pan.bounds.w, pan.bounds.y + pan.bounds.h + panel_padding.x);
    nk_push_scissor(&pan.buffer, clip);
    nk_end(ctx);

    win->buffer = pan.buffer;
    nk_push_scissor(&win->buffer, parent->clip);
    ctx->current = win;
    win->layout = parent;
    g->bounds = pan.bounds;
    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x432a5
movq 0x43d70(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x2db12(%rip), %rsi     # 0x70d9c
leaq 0x2db29(%rip), %rdx     # 0x70dba
movl $0x595d, %ecx           # imm = 0x595D
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %r13
testq %r13, %r13
jne 0x432ed
movq 0x43d38(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x2dada(%rip), %rsi     # 0x70d9c
leaq 0x2daf1(%rip), %rdx     # 0x70dba
movl $0x595e, %ecx           # imm = 0x595E
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %r13
testq %r13, %r13
je 0x43538
movq 0xa8(%r13), %r15
testq %r15, %r15
jne 0x4332c
movq 0x43cf0(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x2da92(%rip), %rsi     # 0x70d9c
leaq 0x2daa9(%rip), %rdx     # 0x70dba
movl $0x5965, %ecx           # imm = 0x5965
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0xa8(%r13), %r15
movq 0x1c8(%r15), %rbp
testq %rbp, %rbp
jne 0x4336b
movq 0x43cb1(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x2da53(%rip), %rsi     # 0x70d9c
leaq 0x2da6a(%rip), %rdx     # 0x70dba
movl $0x5967, %ecx           # imm = 0x5967
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x1c8(%r15), %rbp
leaq 0x18(%rsp), %r14
movl $0x1d8, %edx            # imm = 0x1D8
movq %r14, %rdi
xorl %esi, %esi
callq 0x12b50
movsd 0x24d4(%rbx), %xmm1
movss 0x38(%r15), %xmm3
movss 0x60(%r15), %xmm4
movaps %xmm3, %xmm2
addss %xmm4, %xmm2
movsd 0x8(%r15), %xmm0
movlhps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0]
shufps $0xe2, %xmm1, %xmm2     # xmm2 = xmm2[2,0],xmm1[2,3]
subps %xmm2, %xmm0
movlps %xmm0, 0x4c(%r14)
movaps %xmm1, %xmm2
addss %xmm1, %xmm2
addss 0x10(%r15), %xmm2
movss %xmm2, 0x54(%r14)
addss 0x14(%r15), %xmm3
addss %xmm4, %xmm3
movss %xmm3, 0x58(%r14)
movl 0x4(%r15), %eax
unpcklps %xmm3, %xmm2            # xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
testb $0x1, %al
je 0x43403
movss 0x3c(%r15), %xmm3
movaps %xmm3, %xmm4
shufps $0x0, %xmm3, %xmm4      # xmm4 = xmm4[0,0],xmm3[0,0]
subps %xmm4, %xmm0
addss %xmm3, %xmm3
shufps $0x0, %xmm3, %xmm3      # xmm3 = xmm3[0,0,0,0]
addps %xmm3, %xmm2
movaps %xmm0, %xmm3
movlhps %xmm2, %xmm3            # xmm3 = xmm3[0],xmm2[0]
movups %xmm3, 0x64(%rsp)
leaq 0x8(%r15), %rcx
movq %rcx, 0x10(%rsp)
testb $0x20, %al
jne 0x43420
movsd 0x24bc(%rbx), %xmm3
addps %xmm3, %xmm2
movlps %xmm2, 0x6c(%rsp)
movq 0x18(%r15), %rcx
movl (%rcx), %ecx
leaq 0x80(%rsp), %r12
movl %ecx, -0xc(%r12)
movq 0x20(%r15), %rcx
movl (%rcx), %ecx
movl %ecx, -0x8(%r12)
movl %eax, -0x20(%r12)
leaq 0x68(%r13), %rax
movq %rax, 0x8(%rsp)
movups 0x68(%r13), %xmm3
movups 0x78(%r13), %xmm4
movups 0x88(%r13), %xmm5
movups 0x98(%r13), %xmm6
movups %xmm3, (%r12)
movups %xmm4, 0x10(%r12)
movups %xmm5, 0x20(%r12)
movups %xmm6, 0x30(%r12)
movq %r15, 0x40(%r12)
movq %r13, 0x170(%r12)
movq %r14, 0x4780(%rbx)
movaps %xmm0, %xmm3
addps %xmm2, %xmm3
movlhps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
shufps $0xe2, %xmm0, %xmm1     # xmm1 = xmm1[2,0],xmm0[2,3]
shufps $0x1, %xmm2, %xmm3      # xmm3 = xmm3[1,0],xmm2[0,0]
shufps $0xe2, %xmm2, %xmm3     # xmm3 = xmm3[2,0],xmm2[2,3]
addps %xmm1, %xmm3
movsd 0x44(%rbp), %xmm2
movsd 0x4c(%rbp), %xmm1
maxps %xmm2, %xmm0
addps %xmm2, %xmm1
minps %xmm3, %xmm1
subps %xmm0, %xmm1
xorps %xmm2, %xmm2
maxps %xmm2, %xmm1
movq %r12, %rdi
callq 0x13a50
movq %rbx, %rdi
callq 0x12fd0
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movups 0x30(%r12), %xmm3
movups %xmm3, 0x98(%r13)
movups %xmm2, 0x88(%r13)
movups %xmm1, 0x78(%r13)
movups %xmm0, 0x68(%r13)
movsd 0x44(%rbp), %xmm0
movsd 0x4c(%rbp), %xmm1
movq 0x8(%rsp), %rdi
callq 0x13a50
movq %r13, 0x4780(%rbx)
movq %rbp, 0xa8(%r13)
leaq 0x64(%rsp), %rax
movups (%rax), %xmm0
movq 0x10(%rsp), %rax
movups %xmm0, (%rax)
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq