// File: /workspace/github_c_makefile_star2_O1/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 $0x90, %rsp
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
testq %rsi, %rsi
movss %xmm0, 0xc(%rsp)
jne 0x34189
movq 0x53e94(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x3dc25(%rip), %rsi     # 0x71d8c
leaq 0x3dc3c(%rip), %rdx     # 0x71daa
movl $0x4499, %ecx           # imm = 0x4499
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movss 0xc(%rsp), %xmm0
testq %r14, %r14
jne 0x341c2
movq 0x53e5b(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x3dbec(%rip), %rsi     # 0x71d8c
leaq 0x3dc03(%rip), %rdx     # 0x71daa
movl $0x449a, %ecx           # imm = 0x449A
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movss 0xc(%rsp), %xmm0
testq %rbx, %rbx
jne 0x341fb
movq 0x53e22(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x3dbb3(%rip), %rsi     # 0x71d8c
leaq 0x3dbca(%rip), %rdx     # 0x71daa
movl $0x449c, %ecx           # imm = 0x449C
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movss 0xc(%rsp), %xmm0
cmpq $0x0, 0x30(%rbx)
jne 0x34236
movq 0x53de7(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x3db78(%rip), %rsi     # 0x71d8c
leaq 0x3db8f(%rip), %rdx     # 0x71daa
movl $0x449d, %ecx           # imm = 0x449D
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movss 0xc(%rsp), %xmm0
cmpq $0x0, 0x38(%rbx)
jne 0x34271
movq 0x53dac(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x3db3d(%rip), %rsi     # 0x71d8c
leaq 0x3db54(%rip), %rdx     # 0x71daa
movl $0x449e, %ecx           # imm = 0x449E
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movss 0xc(%rsp), %xmm0
cmpq $0x0, 0x18(%rbx)
jne 0x342ac
movq 0x53d71(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x3db02(%rip), %rsi     # 0x71d8c
leaq 0x3db19(%rip), %rdx     # 0x71daa
movl $0x449f, %ecx           # imm = 0x449F
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movss 0xc(%rsp), %xmm0
cmpq $0x0, 0x20(%rbx)
jne 0x342e7
movq 0x53d36(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x3dac7(%rip), %rsi     # 0x71d8c
leaq 0x3dade(%rip), %rdx     # 0x71daa
movl $0x44a0, %ecx           # imm = 0x44A0
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movss 0xc(%rsp), %xmm0
testq %rbx, %rbx
je 0x3432e
cmpq $0x0, 0x30(%rbx)
je 0x3432e
xorl %eax, %eax
testq %r14, %r14
je 0x34330
testq %r15, %r15
je 0x34330
cmpq $0x0, 0x38(%rbx)
je 0x34330
cmpq $0x0, 0x18(%rbx)
je 0x3432e
cmpq $0x0, 0x20(%rbx)
je 0x3432e
testq %r12, %r12
je 0x34341
leaq 0x30(%rsp), %rdi
movl $0xb, %ecx
movq %r12, %rsi
rep  movsq (%rsi), %es:(%rdi)
jmp 0x343d6
xorl %eax, %eax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
xorps %xmm2, %xmm2
movups %xmm2, 0x19(%rsp)
movaps %xmm2, 0x10(%rsp)
xorl %eax, %eax
movb %al, 0x4f(%rsp)
movw $0x0, 0x4d(%rsp)
movups %xmm2, 0x18(%rsp)
movb %al, 0x28(%rsp)
movaps 0x10(%rsp), %xmm1
movaps %xmm1, 0x30(%rsp)
movq 0x19(%rsp), %rcx
movq %rcx, 0x39(%rsp)
movl 0x21(%rsp), %ecx
movl %ecx, 0x41(%rsp)
movzwl 0x25(%rsp), %ecx
movw %cx, 0x45(%rsp)
movb 0x27(%rsp), %cl
movb %cl, 0x47(%rsp)
movb 0x28(%rsp), %cl
movb %cl, 0x48(%rsp)
movl $0x3010000, 0x49(%rsp)  # imm = 0x3010000
movss %xmm0, 0x50(%rsp)
movl %eax, 0x54(%rsp)
movq %rax, 0x58(%rsp)
leaq 0x3a878(%rip), %rcx     # 0x6ec30
movq %rcx, 0x60(%rsp)
movq %rax, 0x68(%rsp)
movl $0x3f, 0x70(%rsp)
movl %eax, 0x84(%rsp)
movups %xmm2, 0x74(%rsp)
leaq 0x30(%rsp), %rsi
movq %r15, 0x8(%rsi)
movq %r14, 0x10(%rsi)
movss %xmm0, 0x20(%rsi)
movb $0x0, 0x18(%rsi)
movq %rbx, %rdi
callq 0x139e0
jmp 0x34330