// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_plot_function
NK_API void
nk_plot_function(struct nk_context *ctx, enum nk_chart_type type, void *userdata,
    float(*value_getter)(void* user, int index), int count, int offset)
{
    int i = 0;
    float min_value;
    float max_value;

    NK_ASSERT(ctx);
    NK_ASSERT(value_getter);
    if (!ctx || !value_getter || !count) return;

    max_value = min_value = value_getter(userdata, offset);
    for (i = 0; i < count; ++i) {
        float value = value_getter(userdata, i + offset);
        min_value = NK_MIN(value, min_value);
        max_value = NK_MAX(value, max_value);
    }

    if (nk_chart_begin(ctx, type, count, min_value, max_value)) {
        for (i = 0; i < count; ++i)
            nk_chart_push(ctx, value_getter(userdata, i + offset));
        nk_chart_end(ctx);
    }
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movl %esi, 0x3c(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movl %r8d, 0x24(%rsp)
movl %r9d, 0x20(%rsp)
movl $0x0, 0x1c(%rsp)
cmpq $0x0, 0x40(%rsp)
jne 0x76e94
movq 0x4e188(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x3a52e(%rip), %rsi     # 0xb13a0
leaq 0x3a545(%rip), %rdx     # 0xb13be
movl $0x70e2, %ecx           # imm = 0x70E2
movb $0x0, %al
callq 0x13ec0
movq 0x4e164(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x76e96
jmp 0x76e98
cmpq $0x0, 0x28(%rsp)
jne 0x76ed3
movq 0x4e149(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x3a4ef(%rip), %rsi     # 0xb13a0
leaq 0x3a506(%rip), %rdx     # 0xb13be
movl $0x70e3, %ecx           # imm = 0x70E3
movb $0x0, %al
callq 0x13ec0
movq 0x4e125(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x76ed5
cmpq $0x0, 0x40(%rsp)
je 0x76eec
cmpq $0x0, 0x28(%rsp)
je 0x76eec
cmpl $0x0, 0x24(%rsp)
jne 0x76ef1
jmp 0x7702d
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rdi
movl 0x20(%rsp), %esi
callq *%rax
movss %xmm0, 0x18(%rsp)
movss %xmm0, 0x14(%rsp)
movl $0x0, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
cmpl 0x24(%rsp), %eax
jge 0x76fbb
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rdi
movl 0x1c(%rsp), %esi
addl 0x20(%rsp), %esi
callq *%rax
movss %xmm0, 0x10(%rsp)
movss 0x10(%rsp), %xmm1
movss 0x18(%rsp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x76f5c
movss 0x10(%rsp), %xmm0
movss %xmm0, 0xc(%rsp)
jmp 0x76f68
movss 0x18(%rsp), %xmm0
movss %xmm0, 0xc(%rsp)
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x18(%rsp)
movss 0x10(%rsp), %xmm1
movss 0x14(%rsp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x76f93
movss 0x14(%rsp), %xmm0
movss %xmm0, 0x8(%rsp)
jmp 0x76f9f
movss 0x10(%rsp), %xmm0
movss %xmm0, 0x8(%rsp)
movss 0x8(%rsp), %xmm0
movss %xmm0, 0x14(%rsp)
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x76f15
movq 0x40(%rsp), %rdi
movl 0x3c(%rsp), %esi
movl 0x24(%rsp), %edx
movss 0x18(%rsp), %xmm0
movss 0x14(%rsp), %xmm1
callq 0x13970
cmpl $0x0, %eax
je 0x7702d
movl $0x0, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
cmpl 0x24(%rsp), %eax
jge 0x77023
movq 0x40(%rsp), %rax
movq %rax, (%rsp)
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rdi
movl 0x1c(%rsp), %esi
addl 0x20(%rsp), %esi
callq *%rax
movq (%rsp), %rdi
callq 0x13d70
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x76fe6
movq 0x40(%rsp), %rdi
callq 0x151f0
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)