// File: /workspace/github_c_makefile_star2_O2/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:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
testq %rsi, %rsi
movss %xmm0, 0x4(%rsp)
jne 0x31682
movq 0x5399b(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x386ac(%rip), %rsi     # 0x69d0c
leaq 0x386c3(%rip), %rdx     # 0x69d2a
movl $0x4499, %ecx           # imm = 0x4499
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movss 0x4(%rsp), %xmm0
testq %r14, %r14
jne 0x316bb
movq 0x53962(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x38673(%rip), %rsi     # 0x69d0c
leaq 0x3868a(%rip), %rdx     # 0x69d2a
movl $0x449a, %ecx           # imm = 0x449A
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movss 0x4(%rsp), %xmm0
testq %rbx, %rbx
jne 0x316f4
movq 0x53929(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x3863a(%rip), %rsi     # 0x69d0c
leaq 0x38651(%rip), %rdx     # 0x69d2a
movl $0x449c, %ecx           # imm = 0x449C
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movss 0x4(%rsp), %xmm0
cmpq $0x0, 0x30(%rbx)
jne 0x3172f
movq 0x538ee(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x385ff(%rip), %rsi     # 0x69d0c
leaq 0x38616(%rip), %rdx     # 0x69d2a
movl $0x449d, %ecx           # imm = 0x449D
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movss 0x4(%rsp), %xmm0
cmpq $0x0, 0x38(%rbx)
jne 0x3176a
movq 0x538b3(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x385c4(%rip), %rsi     # 0x69d0c
leaq 0x385db(%rip), %rdx     # 0x69d2a
movl $0x449e, %ecx           # imm = 0x449E
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movss 0x4(%rsp), %xmm0
cmpq $0x0, 0x18(%rbx)
jne 0x317a5
movq 0x53878(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x38589(%rip), %rsi     # 0x69d0c
leaq 0x385a0(%rip), %rdx     # 0x69d2a
movl $0x449f, %ecx           # imm = 0x449F
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movss 0x4(%rsp), %xmm0
cmpq $0x0, 0x20(%rbx)
jne 0x317e0
movq 0x5383d(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x3854e(%rip), %rsi     # 0x69d0c
leaq 0x38565(%rip), %rdx     # 0x69d2a
movl $0x44a0, %ecx           # imm = 0x44A0
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movss 0x4(%rsp), %xmm0
cmpq $0x0, 0x30(%rbx)
je 0x3181d
xorl %eax, %eax
testq %r14, %r14
je 0x3181f
testq %r15, %r15
je 0x3181f
cmpq $0x0, 0x38(%rbx)
je 0x3181f
cmpq $0x0, 0x18(%rbx)
je 0x3181d
cmpq $0x0, 0x20(%rbx)
je 0x3181d
testq %r12, %r12
je 0x3182d
pushq $0xb
popq %rcx
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
rep  movsq (%rsi), %es:(%rdi)
jmp 0x31843
xorl %eax, %eax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x8(%rsp), %rdi
movss 0x4(%rsp), %xmm0
callq 0x12580
movss 0x4(%rsp), %xmm0
leaq 0x8(%rsp), %rsi
movq %r15, 0x8(%rsi)
movq %r14, 0x10(%rsi)
movss %xmm0, 0x20(%rsi)
movb $0x0, 0x18(%rsi)
movq %rbx, %rdi
callq 0x13be0
jmp 0x3181f