// File: /workspace/github_c_makefile_star2_O1/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 0x43c0f
movq 0x44406(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2e198(%rip), %rsi     # 0x71d8c
leaq 0x2e1af(%rip), %rdx     # 0x71daa
movl $0x595d, %ecx           # imm = 0x595D
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x43c45
movq 0x443d0(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2e162(%rip), %rsi     # 0x71d8c
leaq 0x2e179(%rip), %rdx     # 0x71daa
movl $0x595e, %ecx           # imm = 0x595E
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x43eba
movq 0x4780(%rbx), %r13
testq %r13, %r13
je 0x43eba
cmpq $0x0, 0xa8(%r13)
jne 0x43c94
movq 0x44381(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2e113(%rip), %rsi     # 0x71d8c
leaq 0x2e12a(%rip), %rdx     # 0x71daa
movl $0x5965, %ecx           # imm = 0x5965
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0xa8(%r13), %r15
cmpq $0x0, 0x1c8(%r15)
jne 0x43cd1
movq 0x44344(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2e0d6(%rip), %rsi     # 0x71d8c
leaq 0x2e0ed(%rip), %rdx     # 0x71daa
movl $0x5967, %ecx           # imm = 0x5967
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x1c8(%r15), %rbp
leaq 0x18(%rsp), %r14
movl $0x1e0, %edx            # imm = 0x1E0
movq %r14, %rdi
xorl %esi, %esi
callq 0x12b50
movsd 0x24d4(%rbx), %xmm1
movss 0x38(%r15), %xmm2
movss 0x60(%r15), %xmm4
movaps %xmm2, %xmm3
addss %xmm4, %xmm3
movsd 0x8(%r15), %xmm0
movlhps %xmm1, %xmm3            # xmm3 = xmm3[0],xmm1[0]
shufps $0xe2, %xmm1, %xmm3     # xmm3 = xmm3[2,0],xmm1[2,3]
subps %xmm3, %xmm0
movlps %xmm0, 0x4c(%r14)
movaps %xmm1, %xmm3
addss %xmm1, %xmm3
addss 0x10(%r15), %xmm3
movss %xmm3, 0x54(%r14)
addss 0x14(%r15), %xmm2
addss %xmm4, %xmm2
movss %xmm2, 0x58(%r14)
movl 0x4(%r15), %eax
testb $0x1, %al
je 0x43d6b
movss 0x3c(%r15), %xmm4
movaps %xmm4, %xmm5
unpcklps %xmm4, %xmm5            # xmm5 = xmm5[0],xmm4[0],xmm5[1],xmm4[1]
subps %xmm5, %xmm0
unpcklps %xmm2, %xmm3            # xmm3 = xmm3[0],xmm2[0],xmm3[1],xmm2[1]
addss %xmm4, %xmm4
unpcklps %xmm4, %xmm4            # xmm4 = xmm4[0,0,1,1]
addps %xmm3, %xmm4
movlhps %xmm4, %xmm0            # xmm0 = xmm0[0],xmm4[0]
movups %xmm0, 0x64(%rsp)
leaq 0x8(%r15), %rcx
movq %rcx, 0x10(%rsp)
testb $0x20, %al
jne 0x43d8e
movsd 0x24bc(%rbx), %xmm0
movsd 0x6c(%rsp), %xmm2
addps %xmm0, %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), %xmm0
movups 0x78(%r13), %xmm2
movups 0x88(%r13), %xmm3
movups 0x98(%r13), %xmm4
movups %xmm0, (%r12)
movups %xmm2, 0x10(%r12)
movups %xmm3, 0x20(%r12)
movups %xmm4, 0x30(%r12)
movq %r15, 0x40(%r12)
movq %r13, 0x170(%r12)
movq %r14, 0x4780(%rbx)
movups -0x14(%r12), %xmm2
movsd -0x1c(%r12), %xmm0
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
addss -0x10(%r12), %xmm3
movlhps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
shufps $0xe2, %xmm0, %xmm1     # xmm1 = xmm1[2,0],xmm0[2,3]
movlhps %xmm2, %xmm3            # xmm3 = xmm3[0],xmm2[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