// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_group_get_scroll
NK_API void
nk_group_get_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);
    if (x_offset)
      *x_offset = *x_offset_ptr;
    if (y_offset)
      *y_offset = *y_offset_ptr;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
testq %rdi, %rdi
jne 0x43a04
movq 0x43613(%rip), %r13     # 0x86ff0
movq (%r13), %rdi
leaq 0x2d3b4(%rip), %rsi     # 0x70d9c
leaq 0x2d3cb(%rip), %rdx     # 0x70dba
movl $0x59ca, %ecx           # imm = 0x59CA
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
testq %r12, %r12
jne 0x43a37
movq 0x435e0(%rip), %r13     # 0x86ff0
movq (%r13), %rdi
leaq 0x2d381(%rip), %rsi     # 0x70d9c
leaq 0x2d398(%rip), %rdx     # 0x70dba
movl $0x59cb, %ecx           # imm = 0x59CB
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movq 0x4780(%r15), %r13
testq %r13, %r13
jne 0x43a78
movq 0x435a6(%rip), %r13     # 0x86ff0
movq (%r13), %rdi
leaq 0x2d347(%rip), %rsi     # 0x70d9c
leaq 0x2d35e(%rip), %rdx     # 0x70dba
movl $0x59cc, %ecx           # imm = 0x59CC
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movq 0x4780(%r15), %r13
cmpq $0x0, 0xa8(%r13)
jne 0x43ac0
movq 0x43567(%rip), %r13     # 0x86ff0
movq (%r13), %rdi
leaq 0x2d308(%rip), %rsi     # 0x70d9c
leaq 0x2d31f(%rip), %rdx     # 0x70dba
movl $0x59cd, %ecx           # imm = 0x59CD
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movq 0x4780(%r15), %r13
testq %r13, %r13
je 0x43bc9
testq %r12, %r12
je 0x43bc9
cmpq $0x0, 0xa8(%r13)
je 0x43bc9
cmpb $0x0, (%r12)
je 0x43aee
xorl %esi, %esi
cmpb $0x0, 0x1(%r12,%rsi)
leaq 0x1(%rsi), %rsi
jne 0x43ae0
jmp 0x43af0
xorl %esi, %esi
movq %r12, %rdi
movl $0x2, %edx
callq 0x12560
movl %eax, %ebp
movq 0x1b8(%r13), %rax
testq %rax, %rax
je 0x43b3c
movq %rax, %rdx
movl 0x4(%rdx), %ecx
testq %rcx, %rcx
je 0x43b30
leaq 0xf8(%rdx), %r12
cmpl %ebp, -0xf0(%r12)
je 0x43b77
addq $0x4, %r12
decq %rcx
jne 0x43b1d
movq 0x1e8(%rdx), %rdx
testq %rdx, %rdx
jne 0x43b0e
movq %r15, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0x437e2
movq %rax, %r12
incl %ebp
movq %r15, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0x437e2
movq %rax, %r15
testq %r12, %r12
je 0x43bd8
testq %r15, %r15
je 0x43c09
xorl %eax, %eax
movl %eax, (%r15)
movl %eax, (%r12)
jmp 0x43bb3
movl (%r13), %ecx
movl %ecx, (%rdx)
incl %ebp
movl 0x4(%rax), %edx
testq %rdx, %rdx
je 0x43ba0
leaq 0xf8(%rax), %r15
cmpl %ebp, -0xf0(%r15)
je 0x43bb1
addq $0x4, %r15
decq %rdx
jne 0x43b8e
movq 0x1e8(%rax), %rax
testq %rax, %rax
jne 0x43b7f
xorl %r15d, %r15d
jmp 0x43bb3
movl %ecx, (%rax)
testq %r14, %r14
je 0x43bbf
movl (%r12), %eax
movl %eax, (%r14)
testq %rbx, %rbx
je 0x43bc9
movl (%r15), %eax
movl %eax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x43411(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x2d1b3(%rip), %rsi     # 0x70d9c
leaq 0x2d1ca(%rip), %rdx     # 0x70dba
movl $0x59da, %ecx           # imm = 0x59DA
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %r15, %r15
jne 0x43bc9
movq 0x433e0(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x2d182(%rip), %rsi     # 0x70d9c
leaq 0x2d199(%rip), %rdx     # 0x70dba
movl $0x59db, %ecx           # imm = 0x59DB
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