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

    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 || !file_path) return 0;
    memory = nk_file_load(file_path, &size, &atlas->permanent);
    if (!memory) 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 = 1;
    return nk_font_atlas_add(atlas, &cfg);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r14
movss %xmm0, 0xc(%rsp)
movq %rsi, %r15
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x3444c
movq 0x53bcb(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3d95c(%rip), %rsi     # 0x71d8c
leaq 0x3d973(%rip), %rdx     # 0x71daa
movl $0x44b5, %ecx           # imm = 0x44B5
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x30(%rbx)
jne 0x34481
movq 0x53b96(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3d927(%rip), %rsi     # 0x71d8c
leaq 0x3d93e(%rip), %rdx     # 0x71daa
movl $0x44b6, %ecx           # imm = 0x44B6
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x38(%rbx)
jne 0x344b6
movq 0x53b61(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3d8f2(%rip), %rsi     # 0x71d8c
leaq 0x3d909(%rip), %rdx     # 0x71daa
movl $0x44b7, %ecx           # imm = 0x44B7
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x18(%rbx)
jne 0x344eb
movq 0x53b2c(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3d8bd(%rip), %rsi     # 0x71d8c
leaq 0x3d8d4(%rip), %rdx     # 0x71daa
movl $0x44b8, %ecx           # imm = 0x44B8
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x20(%rbx)
jne 0x34520
movq 0x53af7(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3d888(%rip), %rsi     # 0x71d8c
leaq 0x3d89f(%rip), %rdx     # 0x71daa
movl $0x44b9, %ecx           # imm = 0x44B9
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %rbx, %rbx
sete %al
testq %r15, %r15
sete %cl
orb %al, %cl
jne 0x3460a
leaq 0x3e234(%rip), %rsi     # 0x7276f
movq %r15, %rdi
callq 0x13aa0
testq %rax, %rax
je 0x345a5
movq %rax, %r13
xorl %r12d, %r12d
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x13610
movq %r13, %rdi
callq 0x12fa0
testq %rax, %rax
js 0x345aa
movq %rax, %r15
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x13610
movq 0x10(%rbx), %rdi
xorl %esi, %esi
movq %r15, %rdx
callq *0x18(%rbx)
testq %rax, %rax
je 0x345ac
movq %rax, %r12
movl $0x1, %esi
movq %rax, %rdi
movq %r15, %rdx
movq %r13, %rcx
callq 0x124b0
movq %rax, %r15
jmp 0x345dd
xorl %r12d, %r12d
jmp 0x345e5
jmp 0x345dd
movq 0x53a3d(%rip), %rbp     # 0x87ff0
movq (%rbp), %rdi
leaq 0x3d7ce(%rip), %rsi     # 0x71d8c
leaq 0x3d7e5(%rip), %rdx     # 0x71daa
xorl %r12d, %r12d
movl $0x1d5e, %ecx           # imm = 0x1D5E
xorl %eax, %eax
callq 0x12d80
movq (%rbp), %rdi
callq 0x13780
movq %r13, %rdi
callq 0x126c0
testq %r12, %r12
movss 0xc(%rsp), %xmm2
je 0x3460a
testq %r14, %r14
je 0x34611
leaq 0x30(%rsp), %rdi
movl $0xb, %ecx
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
jmp 0x346a6
xorl %eax, %eax
jmp 0x346c4
xorps %xmm0, %xmm0
movups %xmm0, 0x19(%rsp)
movaps %xmm0, 0x10(%rsp)
xorl %eax, %eax
movb %al, 0x4f(%rsp)
movw $0x0, 0x4d(%rsp)
movups %xmm0, 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 %xmm2, 0x50(%rsp)
movl %eax, 0x54(%rsp)
movq %rax, 0x58(%rsp)
leaq 0x3a5a8(%rip), %rcx     # 0x6ec30
movq %rcx, 0x60(%rsp)
movq %rax, 0x68(%rsp)
movl $0x3f, 0x70(%rsp)
movl %eax, 0x84(%rsp)
movups %xmm0, 0x74(%rsp)
leaq 0x30(%rsp), %rsi
movq %r12, 0x8(%rsi)
movq %r15, 0x10(%rsi)
movss %xmm2, 0x20(%rsi)
movb $0x1, 0x18(%rsi)
movq %rbx, %rdi
callq 0x139e0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq