// File: /workspace/github_c_makefile_star2_O3/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 0x43c8b
movq 0x4338c(%rip), %r12     # 0x86ff0
movq (%r12), %rdi
leaq 0x2d12d(%rip), %rsi     # 0x70d9c
leaq 0x2d144(%rip), %rdx     # 0x70dba
movl $0x59ed, %ecx           # imm = 0x59ED
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %r15, %r15
jne 0x43cbe
movq 0x43359(%rip), %r12     # 0x86ff0
movq (%r12), %rdi
leaq 0x2d0fa(%rip), %rsi     # 0x70d9c
leaq 0x2d111(%rip), %rdx     # 0x70dba
movl $0x59ee, %ecx           # imm = 0x59EE
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%r14), %r12
testq %r12, %r12
jne 0x43cff
movq 0x4331f(%rip), %r12     # 0x86ff0
movq (%r12), %rdi
leaq 0x2d0c0(%rip), %rsi     # 0x70d9c
leaq 0x2d0d7(%rip), %rdx     # 0x70dba
movl $0x59ef, %ecx           # imm = 0x59EF
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%r14), %r12
cmpq $0x0, 0xa8(%r12)
jne 0x43d48
movq 0x432df(%rip), %r12     # 0x86ff0
movq (%r12), %rdi
leaq 0x2d080(%rip), %rsi     # 0x70d9c
leaq 0x2d097(%rip), %rdx     # 0x70dba
movl $0x59f0, %ecx           # imm = 0x59F0
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%r14), %r12
testq %r12, %r12
je 0x43e3f
testq %r15, %r15
je 0x43e3f
cmpq $0x0, 0xa8(%r12)
je 0x43e3f
cmpb $0x0, (%r15)
je 0x43d76
xorl %esi, %esi
cmpb $0x0, 0x1(%r15,%rsi)
leaq 0x1(%rsi), %rsi
jne 0x43d68
jmp 0x43d78
xorl %esi, %esi
movq %r15, %rdi
movl $0x2, %edx
callq 0x12560
movl %eax, %r15d
movq 0x1b8(%r12), %rax
testq %rax, %rax
je 0x43dc5
movq %rax, %rdx
movl 0x4(%rdx), %ecx
testq %rcx, %rcx
je 0x43db9
leaq 0xf8(%rdx), %r13
cmpl %r15d, -0xf0(%r13)
je 0x43e03
addq $0x4, %r13
decq %rcx
jne 0x43da7
movq 0x1e8(%rdx), %rdx
testq %rdx, %rdx
jne 0x43d98
movq %r14, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x437e2
movq %rax, %r13
incl %r15d
movq %r14, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x437e2
movq %rax, %r14
testq %r13, %r13
je 0x43e4e
testq %r14, %r14
je 0x43e7f
xorl %eax, %eax
movl %eax, (%r14)
movl %eax, (%r13)
jmp 0x43e38
movl (%r12), %ecx
movl %ecx, (%rdx)
incl %r15d
movl 0x4(%rax), %edx
testq %rdx, %rdx
je 0x43e2d
leaq 0xf8(%rax), %r14
cmpl %r15d, -0xf0(%r14)
je 0x43e36
addq $0x4, %r14
decq %rdx
jne 0x43e1b
movq 0x1e8(%rax), %rax
jmp 0x43e0c
movl %ecx, (%rax)
movl %ebp, (%r13)
movl %ebx, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x4319b(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x2cf3d(%rip), %rsi     # 0x70d9c
leaq 0x2cf54(%rip), %rdx     # 0x70dba
movl $0x59fd, %ecx           # imm = 0x59FD
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %r14, %r14
jne 0x43e3f
movq 0x4316a(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x2cf0c(%rip), %rsi     # 0x70d9c
leaq 0x2cf23(%rip), %rdx     # 0x70dba
movl $0x59fe, %ecx           # imm = 0x59FE
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x13780