// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movl %edx, 0x24(%rsp)
movl %ecx, 0x20(%rsp)
cmpq $0x0, 0x30(%rsp)
jne 0x64721
movq 0x608fb(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4cca1(%rip), %rsi     # 0xb13a0
leaq 0x4ccb8(%rip), %rdx     # 0xb13be
movl $0x59ed, %ecx           # imm = 0x59ED
movb $0x0, %al
callq 0x13ec0
movq 0x608d7(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x64723
jmp 0x64725
cmpq $0x0, 0x28(%rsp)
jne 0x64760
movq 0x608bc(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4cc62(%rip), %rsi     # 0xb13a0
leaq 0x4cc79(%rip), %rdx     # 0xb13be
movl $0x59ee, %ecx           # imm = 0x59EE
movb $0x0, %al
callq 0x13ec0
movq 0x60898(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x64762
jmp 0x64764
movq 0x30(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x647a6
movq 0x60876(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4cc1c(%rip), %rsi     # 0xb13a0
leaq 0x4cc33(%rip), %rdx     # 0xb13be
movl $0x59ef, %ecx           # imm = 0x59EF
movb $0x0, %al
callq 0x13ec0
movq 0x60852(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x647a8
jmp 0x647aa
movq 0x30(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x647f3
movq 0x60829(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4cbcf(%rip), %rsi     # 0xb13a0
leaq 0x4cbe6(%rip), %rdx     # 0xb13be
movl $0x59f0, %ecx           # imm = 0x59F0
movb $0x0, %al
callq 0x13ec0
movq 0x60805(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x647f5
cmpq $0x0, 0x30(%rsp)
je 0x6482a
movq 0x30(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x6482a
movq 0x30(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
je 0x6482a
cmpq $0x0, 0x28(%rsp)
jne 0x6482f
jmp 0x64987
movq 0x30(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rdi
callq 0x14050
movl %eax, 0x1c(%rsp)
movq 0x28(%rsp), %rdi
movl 0x1c(%rsp), %esi
movl $0x2, %edx
callq 0x135e0
movl %eax, 0x18(%rsp)
movq 0x10(%rsp), %rdi
movl 0x18(%rsp), %esi
callq 0x64100
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x6495d
movq 0x30(%rsp), %rdi
movq 0x10(%rsp), %rsi
movl 0x18(%rsp), %edx
xorl %ecx, %ecx
callq 0x641d0
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
movq 0x10(%rsp), %rsi
movl 0x18(%rsp), %edx
addl $0x1, %edx
xorl %ecx, %ecx
callq 0x641d0
movq %rax, (%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x648f5
movq 0x60727(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4cacd(%rip), %rsi     # 0xb13a0
leaq 0x4cae4(%rip), %rdx     # 0xb13be
movl $0x59fd, %ecx           # imm = 0x59FD
movb $0x0, %al
callq 0x13ec0
movq 0x60703(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x648f7
jmp 0x648f9
cmpq $0x0, (%rsp)
jne 0x64933
movq 0x606e9(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4ca8f(%rip), %rsi     # 0xb13a0
leaq 0x4caa6(%rip), %rdx     # 0xb13be
movl $0x59fe, %ecx           # imm = 0x59FE
movb $0x0, %al
callq 0x13ec0
movq 0x606c5(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x64935
cmpq $0x0, 0x8(%rsp)
je 0x64944
cmpq $0x0, (%rsp)
jne 0x64946
jmp 0x64987
movq (%rsp), %rax
movl $0x0, (%rax)
movq 0x8(%rsp), %rax
movl $0x0, (%rax)
jmp 0x64972
movq 0x10(%rsp), %rdi
movl 0x18(%rsp), %esi
addl $0x1, %esi
callq 0x64100
movq %rax, (%rsp)
movl 0x24(%rsp), %ecx
movq 0x8(%rsp), %rax
movl %ecx, (%rax)
movl 0x20(%rsp), %ecx
movq (%rsp), %rax
movl %ecx, (%rax)
addq $0x38, %rsp
retq
nopl (%rax)