// File: /workspace/github_c_makefile_star2_O1/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, 0x4(%rsp)
movq %rdx, %rbp
movq %rsi, %r15
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x34729
movq 0x538ee(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3d67f(%rip), %rsi     # 0x71d8c
leaq 0x3d696(%rip), %rdx     # 0x71daa
movl $0x44d0, %ecx           # imm = 0x44D0
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x30(%rbx)
jne 0x3475e
movq 0x538b9(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3d64a(%rip), %rsi     # 0x71d8c
leaq 0x3d661(%rip), %rdx     # 0x71daa
movl $0x44d1, %ecx           # imm = 0x44D1
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x38(%rbx)
jne 0x34793
movq 0x53884(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3d615(%rip), %rsi     # 0x71d8c
leaq 0x3d62c(%rip), %rdx     # 0x71daa
movl $0x44d2, %ecx           # imm = 0x44D2
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x18(%rbx)
jne 0x347c8
movq 0x5384f(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3d5e0(%rip), %rsi     # 0x71d8c
leaq 0x3d5f7(%rip), %rdx     # 0x71daa
movl $0x44d3, %ecx           # imm = 0x44D3
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x20(%rbx)
jne 0x347fd
movq 0x5381a(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3d5ab(%rip), %rsi     # 0x71d8c
leaq 0x3d5c2(%rip), %rdx     # 0x71daa
movl $0x44d4, %ecx           # imm = 0x44D4
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %r15, %r15
jne 0x34830
movq 0x537e7(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3d578(%rip), %rsi     # 0x71d8c
leaq 0x3d58f(%rip), %rdx     # 0x71daa
movl $0x44d6, %ecx           # imm = 0x44D6
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %rbp, %rbp
jne 0x34863
movq 0x537b4(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3d545(%rip), %rsi     # 0x71d8c
leaq 0x3d55c(%rip), %rdx     # 0x71daa
movl $0x44d7, %ecx           # imm = 0x44D7
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %r15, %r15
sete %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
jne 0x348e9
cmpq $0x0, 0x30(%rbx)
je 0x348e9
cmpq $0x0, 0x38(%rbx)
je 0x348e9
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x348e9
cmpq $0x0, 0x20(%rbx)
je 0x348e9
movl 0x8(%r15), %r12d
bswapl %r12d
movq 0x10(%rbx), %rdi
xorl %esi, %esi
movq %r12, %rdx
callq *%rax
testq %rax, %rax
je 0x348fd
movq %rax, 0x18(%rsp)
movq %r12, 0x10(%rsp)
movl (%r15), %eax
bswapl %eax
cmpl $0x57bc0000, %eax       # imm = 0x57BC0000
movss 0x4(%rsp), %xmm0
jne 0x348d2
movl 0x4(%r15), %eax
bswapl %eax
testl %eax, %eax
je 0x3496b
leaq 0x20(%rsp), %rdi
testq %r14, %r14
je 0x3492d
movl $0xb, %ecx
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
jmp 0x3493e
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x536ec(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x3d47e(%rip), %rsi     # 0x71d8c
leaq 0x3d495(%rip), %rdx     # 0x71daa
xorl %ebx, %ebx
movl $0x44de, %ecx           # imm = 0x44DE
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
jmp 0x348eb
movss 0x4(%rsp), %xmm0
callq 0x12520
movss 0x4(%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 0x139e0
movq %rax, %rbx
jmp 0x348eb
movl 0x8(%r15), %ecx
bswapl %ecx
movq %r15, 0x547a0(%rip)     # 0x89118
movl %ebp, %eax
addq %r15, %rax
movq %rax, 0x5479c(%rip)     # 0x89120
movq 0x18(%rsp), %rax
movq %rax, %r13
addq %rcx, %r13
movq %r13, 0x54792(%rip)     # 0x89128
movq %rax, 0x54793(%rip)     # 0x89130
addq $0x10, %r15
movq %rax, 0x54790(%rip)     # 0x89138
imulq $0x5e6ea9af, %rcx, %rax # imm = 0x5E6EA9AF
shrq $0x2b, %rax
imull $0x15b0, %eax, %eax     # imm = 0x15B0
movq %rcx, 0x8(%rsp)
movl %ecx, %ebp
subl %eax, %ebp
movzbl (%r15), %esi
cmpl $0x20, %esi
jb 0x34a0c
testb %sil, %sil
js 0x34a8c
cmpb $0x40, %sil
jb 0x34aa9
movq 0x54753(%rip), %rdi     # 0x89138
shll $0x8, %esi
movzbl 0x1(%r15), %eax
addl %esi, %eax
addl $0xffffc001, %eax       # imm = 0xFFFFC001
subq %rax, %rdi
movzbl 0x2(%r15), %esi
incl %esi
callq 0x57285
leaq 0x3(%r15), %r12
jmp 0x34afc
cmpb $0x18, %sil
jb 0x34a4a
movq 0x5471f(%rip), %rdi     # 0x89138
shll $0x10, %esi
movzbl 0x1(%r15), %eax
shll $0x8, %eax
movzbl 0x2(%r15), %ecx
orl %esi, %ecx
addl %ecx, %eax
addl $0xffe80001, %eax       # imm = 0xFFE80001
subq %rax, %rdi
movzbl 0x3(%r15), %esi
incl %esi
callq 0x57285
leaq 0x4(%r15), %r12
jmp 0x34afc
cmpb $0x10, %sil
jb 0x34ac3
movq 0x546e1(%rip), %rdi     # 0x89138
shll $0x10, %esi
movzbl 0x1(%r15), %eax
shll $0x8, %eax
movzbl 0x2(%r15), %ecx
orl %esi, %ecx
addl %ecx, %eax
addl $0xfff00001, %eax       # imm = 0xFFF00001
subq %rax, %rdi
movzwl 0x3(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %esi
incl %esi
callq 0x57285
leaq 0x5(%r15), %r12
jmp 0x34afc
movzbl 0x1(%r15), %edi
notq %rdi
addq 0x5469d(%rip), %rdi     # 0x89138
addl $-0x7f, %esi
callq 0x57285
leaq 0x2(%r15), %r12
jmp 0x34afc
leaq 0x1(%r15), %rdi
addl $-0x1f, %esi
callq 0x5732a
movzbl (%r15), %eax
leaq (%r15,%rax), %r12
addq $-0x1e, %r12
jmp 0x34afc
cmpb $0x8, %sil
jb 0x34b55
leaq 0x2(%r15), %rdi
shll $0x8, %esi
movzbl 0x1(%r15), %eax
addl %eax, %esi
addl $0xfffff801, %esi       # imm = 0xFFFFF801
callq 0x5732a
movzwl (%r15), %eax
rolw $0x8, %ax
movzwl %ax, %eax
leaq (%r15,%rax), %r12
addq $-0x7fd, %r12           # imm = 0xF803
cmpq %r15, %r12
je 0x34c07
cmpq %r13, 0x5462c(%rip)     # 0x89138
jbe 0x34b3a
movq 0x534db(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x3d26d(%rip), %rsi     # 0x71d8c
leaq 0x3d284(%rip), %rdx     # 0x71daa
movl $0x43cc, %ecx           # imm = 0x43CC
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq %r12, %r15
cmpq %r13, 0x545f4(%rip)     # 0x89138
movss 0x4(%rsp), %xmm0
jbe 0x349c2
jmp 0x348d2
cmpl $0x4, %esi
je 0x34bc6
cmpl $0x6, %esi
je 0x34b97
movq %r15, %r12
cmpl $0x7, %esi
jne 0x34afc
leaq 0x3(%r15), %rdi
movzwl 0x1(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %esi
incl %esi
callq 0x5732a
movzwl 0x1(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %eax
leaq (%r15,%rax), %r12
addq $0x4, %r12
jmp 0x34afc
movzbl 0x1(%r15), %eax
shll $0x10, %eax
movzbl 0x2(%r15), %ecx
shll $0x8, %ecx
movzbl 0x3(%r15), %edi
orq %rax, %rdi
orq %rcx, %rdi
notq %rdi
addq 0x5457c(%rip), %rdi     # 0x89138
movzbl 0x4(%r15), %esi
jmp 0x34a7f
movzbl 0x1(%r15), %eax
shll $0x10, %eax
movzbl 0x2(%r15), %ecx
shll $0x8, %ecx
movzbl 0x3(%r15), %edi
orq %rax, %rdi
orq %rcx, %rdi
notq %rdi
addq 0x5454d(%rip), %rdi     # 0x89138
movzwl 0x4(%r15), %eax
rolw $0x8, %ax
movzwl %ax, %esi
incl %esi
callq 0x57285
leaq 0x6(%r15), %r12
jmp 0x34afc
cmpb $0x5, (%r12)
jne 0x34c99
cmpb $-0x6, 0x1(%r12)
jne 0x34c99
cmpq %r13, 0x54517(%rip)     # 0x89138
je 0x34c4f
movq 0x533c6(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x3d158(%rip), %rsi     # 0x71d8c
leaq 0x3d16f(%rip), %rdx     # 0x71daa
movl $0x43c2, %ecx           # imm = 0x43C2
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq %r13, 0x544e2(%rip)     # 0x89138
movss 0x4(%rsp), %xmm0
jne 0x348d2
cmpl $0x0, 0x8(%rsp)
je 0x348d2
cmpq $0x8, %rbp
jb 0x34c81
movl $0x7, %eax
addq $0x8, %rax
cmpq %rbp, %rax
jb 0x34c78
movq 0x8(%rsp), %rax
subl %ebp, %eax
movq %rax, 0x8(%rsp)
movl $0x15b0, %ebp           # imm = 0x15B0
jne 0x34c6d
jmp 0x348d2
movq 0x53350(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x3d0e2(%rip), %rsi     # 0x71d8c
leaq 0x3d0f9(%rip), %rdx     # 0x71daa
movl $0x43c8, %ecx           # imm = 0x43C8
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movss 0x4(%rsp), %xmm0
jmp 0x348d2