// File: /workspace/github_c_makefile_star2_O0/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:
subq $0xe8, %rsp
movq %rdi, 0xd8(%rsp)
movq %rsi, 0xd0(%rsp)
movss %xmm0, 0xcc(%rsp)
movq %rdx, 0xc0(%rsp)
cmpq $0x0, 0xd8(%rsp)
jne 0x47f66
movq 0x7d0b6(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x6945c(%rip), %rsi     # 0xb13a0
leaq 0x69473(%rip), %rdx     # 0xb13be
movl $0x44b5, %ecx           # imm = 0x44B5
movb $0x0, %al
callq 0x13ec0
movq 0x7d092(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x47f68
jmp 0x47f6a
movq 0xd8(%rsp), %rax
cmpq $0x0, 0x30(%rax)
jne 0x47fac
movq 0x7d070(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x69416(%rip), %rsi     # 0xb13a0
leaq 0x6942d(%rip), %rdx     # 0xb13be
movl $0x44b6, %ecx           # imm = 0x44B6
movb $0x0, %al
callq 0x13ec0
movq 0x7d04c(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x47fae
jmp 0x47fb0
movq 0xd8(%rsp), %rax
cmpq $0x0, 0x38(%rax)
jne 0x47ff2
movq 0x7d02a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x693d0(%rip), %rsi     # 0xb13a0
leaq 0x693e7(%rip), %rdx     # 0xb13be
movl $0x44b7, %ecx           # imm = 0x44B7
movb $0x0, %al
callq 0x13ec0
movq 0x7d006(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x47ff4
jmp 0x47ff6
movq 0xd8(%rsp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x48038
movq 0x7cfe4(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x6938a(%rip), %rsi     # 0xb13a0
leaq 0x693a1(%rip), %rdx     # 0xb13be
movl $0x44b8, %ecx           # imm = 0x44B8
movb $0x0, %al
callq 0x13ec0
movq 0x7cfc0(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x4803a
jmp 0x4803c
movq 0xd8(%rsp), %rax
cmpq $0x0, 0x20(%rax)
jne 0x4807e
movq 0x7cf9e(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x69344(%rip), %rsi     # 0xb13a0
leaq 0x6935b(%rip), %rdx     # 0xb13be
movl $0x44b9, %ecx           # imm = 0x44B9
movb $0x0, %al
callq 0x13ec0
movq 0x7cf7a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x48080
cmpq $0x0, 0xd8(%rsp)
je 0x48096
cmpq $0x0, 0xd0(%rsp)
jne 0x480a7
movq $0x0, 0xe0(%rsp)
jmp 0x4817b
movq 0xd0(%rsp), %rdi
movq 0xd8(%rsp), %rdx
addq $0x10, %rdx
leaq 0xb8(%rsp), %rsi
callq 0x48190
movq %rax, 0xb0(%rsp)
cmpq $0x0, 0xb0(%rsp)
jne 0x480ec
movq $0x0, 0xe0(%rsp)
jmp 0x4817b
cmpq $0x0, 0xc0(%rsp)
je 0x48110
movq 0xc0(%rsp), %rsi
leaq 0x58(%rsp), %rdi
movl $0x58, %edx
callq 0x14160
jmp 0x48133
movss 0xcc(%rsp), %xmm0
movq %rsp, %rdi
callq 0x135a0
leaq 0x58(%rsp), %rdi
movq %rsp, %rsi
movl $0x58, %edx
callq 0x14160
movq 0xb0(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x68(%rsp)
movss 0xcc(%rsp), %xmm0
movss %xmm0, 0x78(%rsp)
movb $0x1, 0x70(%rsp)
movq 0xd8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x14c20
movq %rax, 0xe0(%rsp)
movq 0xe0(%rsp), %rax
addq $0xe8, %rsp
retq
nopl (%rax,%rax)