// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_find_glyph
NK_API const struct nk_font_glyph*
nk_font_find_glyph(struct nk_font *font, nk_rune unicode)
{
    int i = 0;
    int count;
    int total_glyphs = 0;
    const struct nk_font_glyph *glyph = 0;
    const struct nk_font_config *iter = 0;

    NK_ASSERT(font);
    NK_ASSERT(font->glyphs);
    NK_ASSERT(font->info.ranges);
    if (!font || !font->glyphs) return 0;

    glyph = font->fallback;
    iter = font->config;
    do {count = nk_range_count(iter->range);
        for (i = 0; i < count; ++i) {
            nk_rune f = iter->range[(i*2)+0];
            nk_rune t = iter->range[(i*2)+1];
            int diff = (int)((t - f) + 1);
            if (unicode >= f && unicode <= t)
                return &font->glyphs[((nk_rune)total_glyphs + (unicode - f))];
            total_glyphs += diff;
        }
    } while ((iter = iter->n) != font->config);
    return glyph;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movl %esi, 0x34(%rsp)
movl $0x0, 0x30(%rsp)
movl $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x18(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x46daa
movq 0x7e272(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x6a618(%rip), %rsi     # 0xb13a0
leaq 0x6a62f(%rip), %rdx     # 0xb13be
movl $0x429a, %ecx           # imm = 0x429A
movb $0x0, %al
callq 0x13ec0
movq 0x7e24e(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x46dac
jmp 0x46dae
movq 0x38(%rsp), %rax
cmpq $0x0, 0x58(%rax)
jne 0x46ded
movq 0x7e22f(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x6a5d5(%rip), %rsi     # 0xb13a0
leaq 0x6a5ec(%rip), %rdx     # 0xb13be
movl $0x429b, %ecx           # imm = 0x429B
movb $0x0, %al
callq 0x13ec0
movq 0x7e20b(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x46def
jmp 0x46df1
movq 0x38(%rsp), %rax
cmpq $0x0, 0x48(%rax)
jne 0x46e30
movq 0x7e1ec(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x6a592(%rip), %rsi     # 0xb13a0
leaq 0x6a5a9(%rip), %rdx     # 0xb13be
movl $0x429c, %ecx           # imm = 0x429C
movb $0x0, %al
callq 0x13ec0
movq 0x7e1c8(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x46e32
cmpq $0x0, 0x38(%rsp)
je 0x46e46
movq 0x38(%rsp), %rax
cmpq $0x0, 0x58(%rax)
jne 0x46e54
movq $0x0, 0x40(%rsp)
jmp 0x46f5f
movq 0x38(%rsp), %rax
movq 0x60(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rax
movq 0x78(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0x30(%rax), %rdi
callq 0x46f70
movl %eax, 0x2c(%rsp)
movl $0x0, 0x30(%rsp)
movl 0x30(%rsp), %eax
cmpl 0x2c(%rsp), %eax
jge 0x46f36
movq 0x18(%rsp), %rax
movq 0x30(%rax), %rax
movl 0x30(%rsp), %ecx
shll %ecx
addl $0x0, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x14(%rsp)
movq 0x18(%rsp), %rax
movq 0x30(%rax), %rax
movl 0x30(%rsp), %ecx
shll %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %eax
subl 0x14(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
movl 0x34(%rsp), %eax
cmpl 0x14(%rsp), %eax
jb 0x46f1a
movl 0x34(%rsp), %eax
cmpl 0x10(%rsp), %eax
ja 0x46f1a
movq 0x38(%rsp), %rax
movq 0x58(%rax), %rax
movl 0x28(%rsp), %ecx
movl 0x34(%rsp), %edx
subl 0x14(%rsp), %edx
addl %edx, %ecx
movl %ecx, %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x40(%rsp)
jmp 0x46f5f
movl 0xc(%rsp), %eax
addl 0x28(%rsp), %eax
movl %eax, 0x28(%rsp)
movl 0x30(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
jmp 0x46e8a
jmp 0x46f38
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rcx
cmpq 0x78(%rcx), %rax
jne 0x46e70
movq 0x20(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nopl (%rax)