// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
cmpq $0x0, 0x40(%rsp)
jne 0x64443
movq 0x60bd9(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4cf7f(%rip), %rsi     # 0xb13a0
leaq 0x4cf96(%rip), %rdx     # 0xb13be
movl $0x59ca, %ecx           # imm = 0x59CA
movb $0x0, %al
callq 0x13ec0
movq 0x60bb5(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x64445
jmp 0x64447
cmpq $0x0, 0x38(%rsp)
jne 0x64482
movq 0x60b9a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4cf40(%rip), %rsi     # 0xb13a0
leaq 0x4cf57(%rip), %rdx     # 0xb13be
movl $0x59cb, %ecx           # imm = 0x59CB
movb $0x0, %al
callq 0x13ec0
movq 0x60b76(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x64484
jmp 0x64486
movq 0x40(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x644c8
movq 0x60b54(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4cefa(%rip), %rsi     # 0xb13a0
leaq 0x4cf11(%rip), %rdx     # 0xb13be
movl $0x59cc, %ecx           # imm = 0x59CC
movb $0x0, %al
callq 0x13ec0
movq 0x60b30(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x644ca
jmp 0x644cc
movq 0x40(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x64515
movq 0x60b07(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4cead(%rip), %rsi     # 0xb13a0
leaq 0x4cec4(%rip), %rdx     # 0xb13be
movl $0x59cd, %ecx           # imm = 0x59CD
movb $0x0, %al
callq 0x13ec0
movq 0x60ae3(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x64517
cmpq $0x0, 0x40(%rsp)
je 0x6454c
movq 0x40(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x6454c
movq 0x40(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
je 0x6454c
cmpq $0x0, 0x38(%rsp)
jne 0x64551
jmp 0x646c5
movq 0x40(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rdi
callq 0x14050
movl %eax, 0x24(%rsp)
movq 0x38(%rsp), %rdi
movl 0x24(%rsp), %esi
movl $0x2, %edx
callq 0x135e0
movl %eax, 0x20(%rsp)
movq 0x18(%rsp), %rdi
movl 0x20(%rsp), %esi
callq 0x64100
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x64683
movq 0x40(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl 0x20(%rsp), %edx
xorl %ecx, %ecx
callq 0x641d0
movq %rax, 0x10(%rsp)
movq 0x40(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl 0x20(%rsp), %edx
addl $0x1, %edx
xorl %ecx, %ecx
callq 0x641d0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x64618
movq 0x60a04(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4cdaa(%rip), %rsi     # 0xb13a0
leaq 0x4cdc1(%rip), %rdx     # 0xb13be
movl $0x59da, %ecx           # imm = 0x59DA
movb $0x0, %al
callq 0x13ec0
movq 0x609e0(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x6461a
jmp 0x6461c
cmpq $0x0, 0x8(%rsp)
jne 0x64657
movq 0x609c5(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x4cd6b(%rip), %rsi     # 0xb13a0
leaq 0x4cd82(%rip), %rdx     # 0xb13be
movl $0x59db, %ecx           # imm = 0x59DB
movb $0x0, %al
callq 0x13ec0
movq 0x609a1(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x64659
cmpq $0x0, 0x10(%rsp)
je 0x64669
cmpq $0x0, 0x8(%rsp)
jne 0x6466b
jmp 0x646c5
movq 0x8(%rsp), %rax
movl $0x0, (%rax)
movq 0x10(%rsp), %rax
movl $0x0, (%rax)
jmp 0x64699
movq 0x18(%rsp), %rdi
movl 0x20(%rsp), %esi
addl $0x1, %esi
callq 0x64100
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0x646af
movq 0x10(%rsp), %rax
movl (%rax), %ecx
movq 0x30(%rsp), %rax
movl %ecx, (%rax)
cmpq $0x0, 0x28(%rsp)
je 0x646c5
movq 0x8(%rsp), %rax
movl (%rax), %ecx
movq 0x28(%rsp), %rax
movl %ecx, (%rax)
addq $0x48, %rsp
retq
nopw (%rax,%rax)