// File: /workspace/github_c_makefile_star2_O2/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 0x3f95b
movq 0x456ba(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2a3cc(%rip), %rsi     # 0x69d0c
leaq 0x2a3e3(%rip), %rdx     # 0x69d2a
movl $0x595d, %ecx           # imm = 0x595D
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %r13
testq %r13, %r13
jne 0x3f9a3
movq 0x45682(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2a394(%rip), %rsi     # 0x69d0c
leaq 0x2a3ab(%rip), %rdx     # 0x69d2a
movl $0x595e, %ecx           # imm = 0x595E
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %r13
testq %r13, %r13
je 0x3fbe8
movq 0xa8(%r13), %r14
testq %r14, %r14
jne 0x3f9e2
movq 0x4563a(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2a34c(%rip), %rsi     # 0x69d0c
leaq 0x2a363(%rip), %rdx     # 0x69d2a
movl $0x5965, %ecx           # imm = 0x5965
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0xa8(%r13), %r14
movq 0x1c8(%r14), %rbp
testq %rbp, %rbp
jne 0x3fa21
movq 0x455fb(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2a30d(%rip), %rsi     # 0x69d0c
leaq 0x2a324(%rip), %rdx     # 0x69d2a
movl $0x5967, %ecx           # imm = 0x5967
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x1c8(%r14), %rbp
leaq 0x18(%rsp), %r15
movl $0x1e0, %esi            # imm = 0x1E0
movq %r15, %rdi
callq 0x23ed0
movq %r15, %rdx
movsd 0x24d4(%rbx), %xmm3
movss 0x38(%r14), %xmm1
movss 0x60(%r14), %xmm2
movaps %xmm1, %xmm4
addss %xmm2, %xmm4
movsd 0x8(%r14), %xmm0
movlhps %xmm3, %xmm4            # xmm4 = xmm4[0],xmm3[0]
shufps $0xe2, %xmm3, %xmm4     # xmm4 = xmm4[2,0],xmm3[2,3]
subps %xmm4, %xmm0
movlps %xmm0, 0x4c(%r15)
movaps %xmm3, %xmm4
addss %xmm3, %xmm4
addss 0x10(%r14), %xmm4
movss %xmm4, 0x54(%r15)
addss 0x14(%r14), %xmm1
addss %xmm2, %xmm1
movss %xmm1, 0x58(%r15)
movl 0x4(%r14), %eax
unpcklps %xmm1, %xmm4            # xmm4 = xmm4[0],xmm1[0],xmm4[1],xmm1[1]
testb $0x1, %al
je 0x3faba
movss 0x3c(%r14), %xmm1
movaps %xmm1, %xmm2
shufps $0x0, %xmm1, %xmm2      # xmm2 = xmm2[0,0],xmm1[0,0]
subps %xmm2, %xmm0
addss %xmm1, %xmm1
shufps $0x0, %xmm1, %xmm1      # xmm1 = xmm1[0,0,0,0]
addps %xmm1, %xmm4
movaps %xmm0, %xmm1
movlhps %xmm4, %xmm1            # xmm1 = xmm1[0],xmm4[0]
movups %xmm1, 0x64(%rsp)
movaps %xmm0, %xmm1
shufps $0x55, %xmm0, %xmm1     # xmm1 = xmm1[1,1],xmm0[1,1]
leaq 0x8(%r14), %rcx
movq %rcx, (%rsp)
testb $0x20, %al
jne 0x3fadd
movsd 0x24bc(%rbx), %xmm2
addps %xmm2, %xmm4
movlps %xmm4, 0x6c(%rsp)
movq 0x18(%r14), %rcx
movl (%rcx), %ecx
leaq 0x80(%rsp), %r12
movl %ecx, -0xc(%r12)
movq 0x20(%r14), %rcx
movl (%rcx), %ecx
movl %ecx, -0x8(%r12)
movl %eax, -0x20(%r12)
leaq 0x68(%r13), %r15
movups 0x68(%r13), %xmm2
movups 0x78(%r13), %xmm5
movups 0x88(%r13), %xmm6
movups 0x98(%r13), %xmm7
movups %xmm2, (%r12)
movups %xmm5, 0x10(%r12)
movups %xmm6, 0x20(%r12)
movups %xmm7, 0x30(%r12)
movq %r14, 0x40(%r12)
movq %r13, 0x170(%r12)
movq %rdx, 0x4780(%rbx)
leaq 0x44(%rbp), %rsi
movaps %xmm0, %xmm2
addss %xmm4, %xmm2
shufps $0x55, %xmm4, %xmm4     # xmm4 = xmm4[1,1,1,1]
addss %xmm1, %xmm4
addss %xmm4, %xmm3
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x3fbfa
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movq %r12, %rdi
callq 0x13c50
movq %rbx, %rdi
callq 0x13110
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 %r15, %rdi
callq 0x13c50
movq %r13, 0x4780(%rbx)
movq %rbp, 0xa8(%r13)
leaq 0x64(%rsp), %rax
movups (%rax), %xmm0
movq (%rsp), %rax
movups %xmm0, (%rax)
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq