// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_atlas_add_from_memory
NK_API struct nk_font*
nk_font_atlas_add_from_memory(struct nk_font_atlas *atlas, void *memory,
    nk_size size, float height, const struct nk_font_config *config)
{
    struct nk_font_config cfg;
    NK_ASSERT(memory);
    NK_ASSERT(size);

    NK_ASSERT(atlas);
    NK_ASSERT(atlas->temporary.alloc);
    NK_ASSERT(atlas->temporary.free);
    NK_ASSERT(atlas->permanent.alloc);
    NK_ASSERT(atlas->permanent.free);
    if (!atlas || !atlas->temporary.alloc || !atlas->temporary.free || !memory || !size ||
        !atlas->permanent.alloc || !atlas->permanent.free)
        return 0;

    cfg = (config) ? *config: nk_font_config(height);
    cfg.ttf_blob = memory;
    cfg.ttf_size = size;
    cfg.size = height;
    cfg.ttf_data_owned_by_atlas = 0;
    return nk_font_atlas_add(atlas, &cfg);
}

// Assembly:
subq $0xe8, %rsp
movq %rdi, 0xd8(%rsp)
movq %rsi, 0xd0(%rsp)
movq %rdx, 0xc8(%rsp)
movss %xmm0, 0xc4(%rsp)
movq %rcx, 0xb8(%rsp)
cmpq $0x0, 0xd0(%rsp)
jne 0x47c4e
movq 0x7d3ce(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x69774(%rip), %rsi     # 0xb13a0
leaq 0x6978b(%rip), %rdx     # 0xb13be
movl $0x4499, %ecx           # imm = 0x4499
movb $0x0, %al
callq 0x13ec0
movq 0x7d3aa(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x47c50
jmp 0x47c52
cmpq $0x0, 0xc8(%rsp)
jne 0x47c90
movq 0x7d38c(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x69732(%rip), %rsi     # 0xb13a0
leaq 0x69749(%rip), %rdx     # 0xb13be
movl $0x449a, %ecx           # imm = 0x449A
movb $0x0, %al
callq 0x13ec0
movq 0x7d368(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x47c92
jmp 0x47c94
cmpq $0x0, 0xd8(%rsp)
jne 0x47cd2
movq 0x7d34a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x696f0(%rip), %rsi     # 0xb13a0
leaq 0x69707(%rip), %rdx     # 0xb13be
movl $0x449c, %ecx           # imm = 0x449C
movb $0x0, %al
callq 0x13ec0
movq 0x7d326(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x47cd4
jmp 0x47cd6
movq 0xd8(%rsp), %rax
cmpq $0x0, 0x30(%rax)
jne 0x47d18
movq 0x7d304(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x696aa(%rip), %rsi     # 0xb13a0
leaq 0x696c1(%rip), %rdx     # 0xb13be
movl $0x449d, %ecx           # imm = 0x449D
movb $0x0, %al
callq 0x13ec0
movq 0x7d2e0(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x47d1a
jmp 0x47d1c
movq 0xd8(%rsp), %rax
cmpq $0x0, 0x38(%rax)
jne 0x47d5e
movq 0x7d2be(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x69664(%rip), %rsi     # 0xb13a0
leaq 0x6967b(%rip), %rdx     # 0xb13be
movl $0x449e, %ecx           # imm = 0x449E
movb $0x0, %al
callq 0x13ec0
movq 0x7d29a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x47d60
jmp 0x47d62
movq 0xd8(%rsp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x47da4
movq 0x7d278(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x6961e(%rip), %rsi     # 0xb13a0
leaq 0x69635(%rip), %rdx     # 0xb13be
movl $0x449f, %ecx           # imm = 0x449F
movb $0x0, %al
callq 0x13ec0
movq 0x7d254(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x47da6
jmp 0x47da8
movq 0xd8(%rsp), %rax
cmpq $0x0, 0x20(%rax)
jne 0x47dea
movq 0x7d232(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x695d8(%rip), %rsi     # 0xb13a0
leaq 0x695ef(%rip), %rdx     # 0xb13be
movl $0x44a0, %ecx           # imm = 0x44A0
movb $0x0, %al
callq 0x13ec0
movq 0x7d20e(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x47dec
cmpq $0x0, 0xd8(%rsp)
je 0x47e49
movq 0xd8(%rsp), %rax
cmpq $0x0, 0x30(%rax)
je 0x47e49
movq 0xd8(%rsp), %rax
cmpq $0x0, 0x38(%rax)
je 0x47e49
cmpq $0x0, 0xd0(%rsp)
je 0x47e49
cmpq $0x0, 0xc8(%rsp)
je 0x47e49
movq 0xd8(%rsp), %rax
cmpq $0x0, 0x18(%rax)
je 0x47e49
movq 0xd8(%rsp), %rax
cmpq $0x0, 0x20(%rax)
jne 0x47e5a
movq $0x0, 0xe0(%rsp)
jmp 0x47ef0
cmpq $0x0, 0xb8(%rsp)
je 0x47e7e
movq 0xb8(%rsp), %rsi
leaq 0x60(%rsp), %rdi
movl $0x58, %edx
callq 0x14160
jmp 0x47ea5
movss 0xc4(%rsp), %xmm0
leaq 0x8(%rsp), %rdi
callq 0x135a0
leaq 0x60(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl $0x58, %edx
callq 0x14160
movq 0xd0(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x70(%rsp)
movss 0xc4(%rsp), %xmm0
movss %xmm0, 0x80(%rsp)
movb $0x0, 0x78(%rsp)
movq 0xd8(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x14c20
movq %rax, 0xe0(%rsp)
movq 0xe0(%rsp), %rax
addq $0xe8, %rsp
retq