// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_group_set_scroll
NK_API void
nk_group_set_scroll(struct nk_context *ctx, const char *id, nk_uint x_offset, nk_uint y_offset)
{
    int id_len;
    nk_hash id_hash;
    struct nk_window *win;
    nk_uint *x_offset_ptr;
    nk_uint *y_offset_ptr;

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

    /* find persistent group scrollbar value */
    win = ctx->current;
    id_len = (int)nk_strlen(id);
    id_hash = nk_murmur_hash(id, (int)id_len, NK_PANEL_GROUP);
    x_offset_ptr = nk_find_value(win, id_hash);
    if (!x_offset_ptr) {
        x_offset_ptr = nk_add_value(ctx, win, id_hash, 0);
        y_offset_ptr = nk_add_value(ctx, win, id_hash+1, 0);

        NK_ASSERT(x_offset_ptr);
        NK_ASSERT(y_offset_ptr);
        if (!x_offset_ptr || !y_offset_ptr) return;
        *x_offset_ptr = *y_offset_ptr = 0;
    } else y_offset_ptr = nk_find_value(win, id_hash+1);
    *x_offset_ptr = x_offset;
    *y_offset_ptr = y_offset;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r14
testq %rdi, %rdi
jne 0x4471d
movq 0x438fa(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x2d68b(%rip), %rsi     # 0x71d8c
leaq 0x2d6a2(%rip), %rdx     # 0x71daa
movl $0x59ed, %ecx           # imm = 0x59ED
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %r15, %r15
jne 0x44750
movq 0x438c7(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x2d658(%rip), %rsi     # 0x71d8c
leaq 0x2d66f(%rip), %rdx     # 0x71daa
movl $0x59ee, %ecx           # imm = 0x59EE
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r14)
jne 0x44788
movq 0x4388f(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x2d620(%rip), %rsi     # 0x71d8c
leaq 0x2d637(%rip), %rdx     # 0x71daa
movl $0x59ef, %ecx           # imm = 0x59EF
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x447c7
movq 0x43850(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x2d5e1(%rip), %rsi     # 0x71d8c
leaq 0x2d5f8(%rip), %rdx     # 0x71daa
movl $0x59f0, %ecx           # imm = 0x59F0
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %r14, %r14
je 0x449a5
movq 0x4780(%r14), %r12
testq %r12, %r12
je 0x449a5
testq %r15, %r15
je 0x449a5
cmpq $0x0, 0xa8(%r12)
je 0x449a5
cmpb $0x0, (%r15)
je 0x4480e
xorl %esi, %esi
cmpb $0x0, 0x1(%r15,%rsi)
leaq 0x1(%rsi), %rsi
jne 0x44800
jmp 0x44810
xorl %esi, %esi
movq %r15, %rdi
movl $0x2, %edx
callq 0x12560
movl %eax, %r13d
movq 0x1b8(%r12), %rax
movq %rax, %rcx
testq %rcx, %rcx
je 0x4488f
movl 0x4(%rcx), %esi
testq %rsi, %rsi
setne %dl
je 0x44882
cmpl %r13d, 0x8(%rcx)
jne 0x44847
movb $0x1, %dl
xorl %edi, %edi
jmp 0x44866
leaq -0x1(%rsi), %r8
xorl %edx, %edx
cmpq %rdx, %r8
je 0x44879
leaq 0x1(%rdx), %rdi
cmpl %r13d, 0xc(%rcx,%rdx,4)
movq %rdi, %rdx
jne 0x4484d
cmpq %rsi, %rdi
setb %dl
movl (%r12), %esi
movl %esi, (%rcx)
leaq (%rcx,%rdi,4), %r15
addq $0xf8, %r15
jmp 0x44889
incq %rdx
cmpq %rsi, %rdx
setb %dl
movq 0x1e8(%rcx), %rcx
testb %dl, %dl
je 0x4482b
jmp 0x44892
xorl %r15d, %r15d
testq %r15, %r15
je 0x448fc
incl %r13d
movl 0x4(%rax), %edx
testq %rdx, %rdx
setne %cl
je 0x448ec
cmpl %r13d, 0x8(%rax)
jne 0x448b1
movb $0x1, %cl
xorl %esi, %esi
jmp 0x448d0
leaq -0x1(%rdx), %rdi
xorl %ecx, %ecx
cmpq %rcx, %rdi
je 0x448e3
leaq 0x1(%rcx), %rsi
cmpl %r13d, 0xc(%rax,%rcx,4)
movq %rsi, %rcx
jne 0x448b7
cmpq %rdx, %rsi
setb %cl
movl (%r12), %edx
movl %edx, (%rax)
leaq (%rax,%rsi,4), %r14
addq $0xf8, %r14
jmp 0x448f3
incq %rcx
cmpq %rdx, %rcx
setb %cl
movq 0x1e8(%rax), %rax
testb %cl, %cl
je 0x4489a
jmp 0x4499f
movq %r14, %rdi
movq %r12, %rsi
movl %r13d, %edx
callq 0x441e0
movq %rax, %r15
incl %r13d
movq %r14, %rdi
movq %r12, %rsi
movl %r13d, %edx
callq 0x441e0
movq %rax, %r14
testq %r15, %r15
jne 0x44954
movq 0x436c3(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x2d454(%rip), %rsi     # 0x71d8c
leaq 0x2d46b(%rip), %rdx     # 0x71daa
movl $0x59fd, %ecx           # imm = 0x59FD
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %r14, %r14
jne 0x44987
movq 0x43690(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x2d421(%rip), %rsi     # 0x71d8c
leaq 0x2d438(%rip), %rdx     # 0x71daa
movl $0x59fe, %ecx           # imm = 0x59FE
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %r14, %r14
sete %al
testq %r15, %r15
sete %cl
orb %al, %cl
jne 0x449a5
xorl %eax, %eax
movl %eax, (%r14)
movl %eax, (%r15)
movl %ebp, (%r15)
movl %ebx, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq