// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_init
NK_INTERN void
nk_font_init(struct nk_font *font, float pixel_height,
    nk_rune fallback_codepoint, struct nk_font_glyph *glyphs,
    const struct nk_baked_font *baked_font, nk_handle atlas)
{
    struct nk_baked_font baked;
    NK_ASSERT(font);
    NK_ASSERT(glyphs);
    NK_ASSERT(baked_font);
    if (!font || !glyphs || !baked_font)
        return;

    baked = *baked_font;
    font->fallback = 0;
    font->info = baked;
    font->scale = (float)pixel_height / (float)font->info.height;
    font->glyphs = &glyphs[baked_font->glyph_offset];
    font->texture = atlas;
    font->fallback_codepoint = fallback_codepoint;
    font->fallback = nk_font_find_glyph(font, fallback_codepoint);

    font->handle.height = font->info.height * font->scale;
    font->handle.width = nk_font_text_width;
    font->handle.userdata.ptr = font;
#ifdef NK_INCLUDE_VERTEX_BUFFER_OUTPUT
    font->handle.query = nk_font_query_font_glyph;
    font->handle.texture = font->texture;
#endif
}

// Assembly:
subq $0x48, %rsp
movq %r8, 0x40(%rsp)
movq %rdi, 0x38(%rsp)
movss %xmm0, 0x34(%rsp)
movl %esi, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x4b8cd
movq 0x7974f(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x65af5(%rip), %rsi     # 0xb13a0
leaq 0x65b0c(%rip), %rdx     # 0xb13be
movl $0x42b3, %ecx           # imm = 0x42B3
movb $0x0, %al
callq 0x13ec0
movq 0x7972b(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x4b8cf
jmp 0x4b8d1
cmpq $0x0, 0x28(%rsp)
jne 0x4b90c
movq 0x79710(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x65ab6(%rip), %rsi     # 0xb13a0
leaq 0x65acd(%rip), %rdx     # 0xb13be
movl $0x42b4, %ecx           # imm = 0x42B4
movb $0x0, %al
callq 0x13ec0
movq 0x796ec(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x4b90e
jmp 0x4b910
cmpq $0x0, 0x20(%rsp)
jne 0x4b94b
movq 0x796d1(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x65a77(%rip), %rsi     # 0xb13a0
leaq 0x65a8e(%rip), %rdx     # 0xb13be
movl $0x42b5, %ecx           # imm = 0x42B5
movb $0x0, %al
callq 0x13ec0
movq 0x796ad(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x4b94d
cmpq $0x0, 0x38(%rsp)
je 0x4b965
cmpq $0x0, 0x28(%rsp)
je 0x4b965
cmpq $0x0, 0x20(%rsp)
jne 0x4b96a
jmp 0x4ba8f
movq 0x20(%rsp), %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rax
movq $0x0, 0x60(%rax)
movq 0x38(%rsp), %rax
movq (%rsp), %rcx
movq %rcx, 0x30(%rax)
movq 0x8(%rsp), %rcx
movq %rcx, 0x38(%rax)
movq 0x10(%rsp), %rcx
movq %rcx, 0x40(%rax)
movq 0x18(%rsp), %rcx
movq %rcx, 0x48(%rax)
movss 0x34(%rsp), %xmm0
movq 0x38(%rsp), %rax
divss 0x30(%rax), %xmm0
movq 0x38(%rsp), %rax
movss %xmm0, 0x50(%rax)
movq 0x28(%rsp), %rcx
movq 0x20(%rsp), %rax
movl 0xc(%rax), %eax
imulq $0x30, %rax, %rax
addq %rax, %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x58(%rax)
movq 0x38(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rcx, 0x70(%rax)
movl 0x30(%rsp), %ecx
movq 0x38(%rsp), %rax
movl %ecx, 0x68(%rax)
movq 0x38(%rsp), %rdi
movl 0x30(%rsp), %esi
callq 0x15260
movq %rax, %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x60(%rax)
movq 0x38(%rsp), %rax
movss 0x30(%rax), %xmm0
movq 0x38(%rsp), %rax
mulss 0x50(%rax), %xmm0
movq 0x38(%rsp), %rax
movss %xmm0, 0x10(%rax)
movq 0x38(%rsp), %rax
leaq 0x39725(%rip), %rcx     # 0x85180
movq %rcx, 0x18(%rax)
movq 0x38(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x38(%rsp), %rax
leaq 0x398f7(%rip), %rcx     # 0x85370
movq %rcx, 0x20(%rax)
movq 0x38(%rsp), %rax
movq 0x38(%rsp), %rcx
movq 0x70(%rcx), %rcx
movq %rcx, 0x28(%rax)
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)