// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_atlas_add_compressed
NK_API struct nk_font*
nk_font_atlas_add_compressed(struct nk_font_atlas *atlas,
    void *compressed_data, nk_size compressed_size, float height,
    const struct nk_font_config *config)
{
    unsigned int decompressed_size;
    void *decompressed_data;
    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);

    NK_ASSERT(compressed_data);
    NK_ASSERT(compressed_size);
    if (!atlas || !compressed_data || !atlas->temporary.alloc || !atlas->temporary.free ||
        !atlas->permanent.alloc || !atlas->permanent.free)
        return 0;

    decompressed_size = nk_decompress_length((unsigned char*)compressed_data);
    decompressed_data = atlas->permanent.alloc(atlas->permanent.userdata,0,decompressed_size);
    NK_ASSERT(decompressed_data);
    if (!decompressed_data) return 0;
    nk_decompress((unsigned char*)decompressed_data, (unsigned char*)compressed_data,
        (unsigned int)compressed_size);

    cfg = (config) ? *config: nk_font_config(height);
    cfg.ttf_blob = decompressed_data;
    cfg.ttf_size = decompressed_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 $0x78, %rsp
movq %rcx, %r14
movss %xmm0, 0x8(%rsp)
movq %rdx, %rbp
movq %rsi, %r12
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x31aff
movq 0x53516(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x38228(%rip), %rsi     # 0x69d0c
leaq 0x3823f(%rip), %rdx     # 0x69d2a
movl $0x44d0, %ecx           # imm = 0x44D0
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
cmpq $0x0, 0x30(%rbx)
jne 0x31b32
movq 0x534e3(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x381f5(%rip), %rsi     # 0x69d0c
leaq 0x3820c(%rip), %rdx     # 0x69d2a
movl $0x44d1, %ecx           # imm = 0x44D1
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
cmpq $0x0, 0x38(%rbx)
jne 0x31b65
movq 0x534b0(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x381c2(%rip), %rsi     # 0x69d0c
leaq 0x381d9(%rip), %rdx     # 0x69d2a
movl $0x44d2, %ecx           # imm = 0x44D2
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
cmpq $0x0, 0x18(%rbx)
jne 0x31b98
movq 0x5347d(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x3818f(%rip), %rsi     # 0x69d0c
leaq 0x381a6(%rip), %rdx     # 0x69d2a
movl $0x44d3, %ecx           # imm = 0x44D3
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
cmpq $0x0, 0x20(%rbx)
jne 0x31bcb
movq 0x5344a(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x3815c(%rip), %rsi     # 0x69d0c
leaq 0x38173(%rip), %rdx     # 0x69d2a
movl $0x44d4, %ecx           # imm = 0x44D4
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
testq %r12, %r12
jne 0x31bfc
movq 0x53419(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x3812b(%rip), %rsi     # 0x69d0c
leaq 0x38142(%rip), %rdx     # 0x69d2a
movl $0x44d6, %ecx           # imm = 0x44D6
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
testq %rbp, %rbp
jne 0x31c2d
movq 0x533e8(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x380fa(%rip), %rsi     # 0x69d0c
leaq 0x38111(%rip), %rdx     # 0x69d2a
movl $0x44d7, %ecx           # imm = 0x44D7
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
testq %r12, %r12
sete %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
jne 0x31cb8
cmpq $0x0, 0x30(%rbx)
je 0x31cb8
cmpq $0x0, 0x38(%rbx)
je 0x31cb8
movq 0x18(%rbx), %r15
testq %r15, %r15
je 0x31cb8
cmpq $0x0, 0x20(%rbx)
je 0x31cb8
movq %r12, %rdi
callq 0x320b0
movl %eax, %r13d
movq 0x10(%rbx), %rdi
xorl %esi, %esi
movq %r13, %rdx
callq *%r15
testq %rax, %rax
je 0x31ccc
movq %rax, 0x18(%rsp)
movq %r13, 0x10(%rsp)
movl (%r12), %eax
bswapl %eax
cmpl $0x57bc0000, %eax       # imm = 0x57BC0000
movss 0x8(%rsp), %xmm0
jne 0x31ca3
movl 0x4(%r12), %eax
bswapl %eax
testl %eax, %eax
je 0x31d42
testq %r14, %r14
je 0x31cfc
pushq $0xb
popq %rcx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
jmp 0x31d12
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x5331d(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x3802f(%rip), %rsi     # 0x69d0c
leaq 0x38046(%rip), %rdx     # 0x69d2a
xorl %ebx, %ebx
movl $0x44de, %ecx           # imm = 0x44DE
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
jmp 0x31cba
leaq 0x20(%rsp), %rdi
movss 0x8(%rsp), %xmm0
callq 0x12580
movss 0x8(%rsp), %xmm0
movq 0x10(%rsp), %rax
leaq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rcx
movq %rcx, 0x8(%rsi)
movq %rax, 0x10(%rsi)
movss %xmm0, 0x20(%rsi)
movb $0x1, 0x18(%rsi)
movq %rbx, %rdi
callq 0x13be0
movq %rax, %rbx
jmp 0x31cba
movq %r12, %rdi
callq 0x320b0
movss 0x8(%rsp), %xmm0
movq %r12, 0x54509(%rip)     # 0x86260
movl %ebp, %ecx
addq %r12, %rcx
movq %rcx, 0x54505(%rip)     # 0x86268
movl %eax, 0xc(%rsp)
movl %eax, %eax
movq 0x18(%rsp), %rdi
movq %rdi, %r13
addq %rax, %r13
movq %r13, 0x544f5(%rip)     # 0x86270
movq %rdi, 0x544f6(%rip)     # 0x86278
addq $0x10, %r12
movq %rdi, 0x544f3(%rip)     # 0x86280
movq 0x5325c(%rip), %rbp     # 0x84ff0
movzbl (%r12), %esi
cmpl $0x20, %esi
jb 0x31de3
testb %sil, %sil
js 0x31e64
cmpb $0x40, %sil
jb 0x31e8a
shll $0x8, %esi
movzbl 0x1(%r12), %eax
addl %esi, %eax
addl $0xffffc001, %eax       # imm = 0xFFFFC001
subq %rax, %rdi
movzbl 0x2(%r12), %esi
incl %esi
callq 0x51374
addq $0x3, %r12
movq %r12, %r15
movss 0x8(%rsp), %xmm0
jmp 0x31eef
cmpb $0x18, %sil
jb 0x31e20
shll $0x10, %esi
movzbl 0x1(%r12), %eax
shll $0x8, %eax
movzbl 0x2(%r12), %ecx
orl %esi, %ecx
addl %ecx, %eax
addl $0xffe80001, %eax       # imm = 0xFFE80001
subq %rax, %rdi
movzbl 0x3(%r12), %esi
incl %esi
callq 0x51374
movss 0x8(%rsp), %xmm0
addq $0x4, %r12
jmp 0x31e85
cmpb $0x10, %sil
jb 0x31ea2
shll $0x10, %esi
movzbl 0x1(%r12), %eax
shll $0x8, %eax
movzbl 0x2(%r12), %ecx
orl %esi, %ecx
addl %ecx, %eax
addl $0xfff00001, %eax       # imm = 0xFFF00001
subq %rax, %rdi
movzwl 0x3(%r12), %eax
rolw $0x8, %ax
movzwl %ax, %esi
incl %esi
callq 0x51374
movss 0x8(%rsp), %xmm0
addq $0x5, %r12
jmp 0x31e85
movzbl 0x1(%r12), %eax
notq %rax
addq %rdi, %rax
addl $-0x7f, %esi
movq %rax, %rdi
callq 0x51374
movss 0x8(%rsp), %xmm0
addq $0x2, %r12
movq %r12, %r15
jmp 0x31eef
leaq 0x1(%r12), %rdi
addl $-0x1f, %esi
callq 0x51414
movzbl (%r12), %eax
pushq $-0x1e
popq %r15
jmp 0x31eda
cmpb $0x8, %sil
jb 0x31f40
leaq 0x2(%r12), %rdi
shll $0x8, %esi
movzbl 0x1(%r12), %eax
addl %eax, %esi
addl $0xfffff801, %esi       # imm = 0xFFFFF801
callq 0x51414
movzwl (%r12), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movq $-0x7fd, %r15           # imm = 0xF803
addq %r12, %r15
addq %rax, %r15
cmpq %r12, %r15
movss 0x8(%rsp), %xmm0
je 0x31ff6
movq 0x5438a(%rip), %rdi     # 0x86280
cmpq %r13, %rdi
jbe 0x31f2f
movq (%rbp), %rdi
leaq 0x37e06(%rip), %rsi     # 0x69d0c
leaq 0x37e1d(%rip), %rdx     # 0x69d2a
movl $0x43cc, %ecx           # imm = 0x43CC
xorl %eax, %eax
callq 0x12ea0
movq (%rbp), %rdi
callq 0x13960
movss 0x8(%rsp), %xmm0
movq 0x54351(%rip), %rdi     # 0x86280
movq %r15, %r12
cmpq %r13, %rdi
jbe 0x31d94
jmp 0x31ca3
cmpl $0x4, %esi
je 0x31faf
cmpl $0x6, %esi
je 0x31f80
cmpl $0x7, %esi
jne 0x31ffa
leaq 0x3(%r12), %rdi
movzwl 0x1(%r12), %eax
rolw $0x8, %ax
movzwl %ax, %esi
incl %esi
callq 0x51414
movzwl 0x1(%r12), %eax
rolw $0x8, %ax
movzwl %ax, %eax
pushq $0x4
jmp 0x31e9e
movzbl 0x1(%r12), %eax
shll $0x10, %eax
movzbl 0x2(%r12), %ecx
shll $0x8, %ecx
movzbl 0x3(%r12), %edx
orq %rax, %rdx
orq %rcx, %rdx
notq %rdx
addq %rdx, %rdi
movzbl 0x4(%r12), %esi
jmp 0x31e51
movzbl 0x1(%r12), %eax
shll $0x10, %eax
movzbl 0x2(%r12), %ecx
shll $0x8, %ecx
movzbl 0x3(%r12), %edx
orq %rax, %rdx
orq %rcx, %rdx
notq %rdx
addq %rdx, %rdi
movzwl 0x4(%r12), %eax
rolw $0x8, %ax
movzwl %ax, %esi
incl %esi
callq 0x51374
movss 0x8(%rsp), %xmm0
addq $0x6, %r12
jmp 0x31e85
movb (%r12), %sil
cmpb $0x5, %sil
jne 0x3207e
cmpb $-0x6, 0x1(%r12)
jne 0x3207e
cmpq %r13, 0x54271(%rip)     # 0x86280
je 0x3204b
movq (%rbp), %rdi
leaq 0x37cf0(%rip), %rsi     # 0x69d0c
leaq 0x37d07(%rip), %rdx     # 0x69d2a
movl $0x43c2, %ecx           # imm = 0x43C2
xorl %eax, %eax
callq 0x12ea0
movq (%rbp), %rdi
callq 0x13960
movss 0x8(%rsp), %xmm0
cmpq %r13, 0x5423b(%rip)     # 0x86280
jne 0x31ca3
movl $0x15b0, %ecx           # imm = 0x15B0
movl 0xc(%rsp), %esi
movl %esi, %eax
xorl %edx, %edx
divl %ecx
pushq $-0x1
popq %rax
testl %esi, %esi
je 0x31ca3
movl %esi, %edi
movq %rax, %rcx
addq $0x8, %rcx
cmpq %rdx, %rcx
jb 0x3206a
movl %edi, %esi
subl %edx, %esi
movl $0x15b0, %edx           # imm = 0x15B0
jmp 0x3205d
movq (%rbp), %rdi
leaq 0x37c83(%rip), %rsi     # 0x69d0c
leaq 0x37c9a(%rip), %rdx     # 0x69d2a
movl $0x43c8, %ecx           # imm = 0x43C8
xorl %eax, %eax
callq 0x12ea0
movq (%rbp), %rdi
callq 0x13960
movss 0x8(%rsp), %xmm0
jmp 0x31ca3