// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rdx, %r14
movss %xmm0, 0x4(%rsp)
movq %rsi, %r15
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x318b2
movq 0x53765(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x38476(%rip), %rsi     # 0x69d0c
leaq 0x3848d(%rip), %rdx     # 0x69d2a
movl $0x44b5, %ecx           # imm = 0x44B5
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
cmpq $0x0, 0x30(%rbx)
jne 0x318e7
movq 0x53730(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x38441(%rip), %rsi     # 0x69d0c
leaq 0x38458(%rip), %rdx     # 0x69d2a
movl $0x44b6, %ecx           # imm = 0x44B6
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
cmpq $0x0, 0x38(%rbx)
jne 0x3191c
movq 0x536fb(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x3840c(%rip), %rsi     # 0x69d0c
leaq 0x38423(%rip), %rdx     # 0x69d2a
movl $0x44b7, %ecx           # imm = 0x44B7
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
cmpq $0x0, 0x18(%rbx)
jne 0x31951
movq 0x536c6(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x383d7(%rip), %rsi     # 0x69d0c
leaq 0x383ee(%rip), %rdx     # 0x69d2a
movl $0x44b8, %ecx           # imm = 0x44B8
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
cmpq $0x0, 0x20(%rbx)
jne 0x31986
movq 0x53691(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x383a2(%rip), %rsi     # 0x69d0c
leaq 0x383b9(%rip), %rdx     # 0x69d2a
movl $0x44b9, %ecx           # imm = 0x44B9
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
testq %rbx, %rbx
sete %al
testq %r15, %r15
sete %cl
orb %al, %cl
jne 0x31a27
leaq 0x38d10(%rip), %rsi     # 0x6a6b1
movq %r15, %rdi
callq 0x13ca0
testq %rax, %rax
je 0x31a27
movq %rax, %r15
pushq $0x2
popq %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x137d0
movq %r15, %rdi
callq 0x130e0
testq %rax, %rax
js 0x31a1f
movq %rax, %r13
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x137d0
movq 0x10(%rbx), %rdi
xorl %esi, %esi
movq %r13, %rdx
callq *0x18(%rbx)
testq %rax, %rax
je 0x31a3a
movq %rax, %r12
pushq $0x1
popq %rsi
movq %rax, %rdi
movq %r13, %rdx
movq %r15, %rcx
callq 0x124f0
movq %rax, %r13
movq %r15, %rdi
callq 0x12740
testq %r14, %r14
je 0x31a72
pushq $0xb
popq %rcx
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
jmp 0x31a82
movq %r15, %rdi
callq 0x12740
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x535af(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x382c1(%rip), %rsi     # 0x69d0c
leaq 0x382d8(%rip), %rdx     # 0x69d2a
xorl %ebx, %ebx
movl $0x1d5e, %ecx           # imm = 0x1D5E
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq %r15, %rdi
callq 0x12740
jmp 0x31a29
leaq 0x8(%rsp), %rdi
movss 0x4(%rsp), %xmm0
callq 0x12580
movss 0x4(%rsp), %xmm0
leaq 0x8(%rsp), %rsi
movq %r12, 0x8(%rsi)
movq %r13, 0x10(%rsi)
movss %xmm0, 0x20(%rsi)
movb $0x1, 0x18(%rsi)
movq %rbx, %rdi
callq 0x13be0
movq %rax, %rbx
jmp 0x31a29