// File: /workspace/github_cpp_makefile_star2_O2/Ciaxur[P]yagb-emu/include/imgui/imgui_draw.cpp
// Function: ImFontAtlas::AddFontFromMemoryCompressedTTF(void const*, int, float, ImFontConfig const*, unsigned short const*)
ImFont* ImFontAtlas::AddFontFromMemoryCompressedTTF(const void* compressed_ttf_data, int compressed_ttf_size, float size_pixels, const ImFontConfig* font_cfg_template, const ImWchar* glyph_ranges)
{
    const unsigned int buf_decompressed_size = stb_decompress_length((const unsigned char*)compressed_ttf_data);
    unsigned char* buf_decompressed_data = (unsigned char*)IM_ALLOC(buf_decompressed_size);
    stb_decompress(buf_decompressed_data, (const unsigned char*)compressed_ttf_data, (unsigned int)compressed_ttf_size);

    ImFontConfig font_cfg = font_cfg_template ? *font_cfg_template : ImFontConfig();
    IM_ASSERT(font_cfg.FontData == NULL);
    font_cfg.FontDataOwnedByAtlas = true;
    return AddFontFromMemoryTTF(buf_decompressed_data, (int)buf_decompressed_size, size_pixels, &font_cfg, glyph_ranges);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %r8, %r12
movq %rcx, %r13
movss %xmm0, -0x2c(%rbp)
movq %rsi, %rbx
movq %rdi, -0x40(%rbp)
movq %rsi, %rdi
callq 0x669cc
movl %eax, %r15d
movl %eax, %edi
callq 0x3440d
movq %rax, %r14
movl (%rbx), %eax
bswapl %eax
cmpl $0x57bc0000, %eax       # imm = 0x57BC0000
jne 0x66886
movl 0x4(%rbx), %eax
bswapl %eax
testl %eax, %eax
jne 0x66886
movq %r12, -0x38(%rbp)
movq %rbx, %rdi
callq 0x669cc
movq %rbx, 0x84152(%rip)     # 0xea7c0
movl %eax, %eax
movq %r14, %r12
addq %rax, %r12
movq %r12, 0x8414b(%rip)     # 0xea7c8
movq %r14, 0x8414c(%rip)     # 0xea7d0
addq $0x10, %rbx
movq %r14, 0x84149(%rip)     # 0xea7d8
movq %r14, %rdi
movzbl (%rbx), %esi
cmpl $0x20, %esi
jb 0x666d2
testb %sil, %sil
js 0x6673b
cmpb $0x40, %sil
jb 0x66759
shll $0x8, %esi
movzbl 0x1(%rbx), %eax
addl %esi, %eax
addl $0xffffc001, %eax       # imm = 0xFFFFC001
subq %rax, %rdi
movzbl 0x2(%rbx), %esi
incl %esi
callq 0x6ef2b
addq $0x3, %rbx
jmp 0x66754
cmpb $0x18, %sil
jb 0x66703
shll $0x10, %esi
movzbl 0x1(%rbx), %eax
shll $0x8, %eax
movzbl 0x2(%rbx), %ecx
orl %esi, %ecx
addl %ecx, %eax
addl $0xffe80001, %eax       # imm = 0xFFE80001
subq %rax, %rdi
movzbl 0x3(%rbx), %esi
incl %esi
callq 0x6ef2b
addq $0x4, %rbx
jmp 0x66754
cmpb $0x10, %sil
jb 0x6676d
shll $0x10, %esi
movzbl 0x1(%rbx), %eax
shll $0x8, %eax
movzbl 0x2(%rbx), %ecx
orl %esi, %ecx
addl %ecx, %eax
addl $0xfff00001, %eax       # imm = 0xFFF00001
subq %rax, %rdi
movzwl 0x3(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %esi
incl %esi
callq 0x6ef2b
addq $0x5, %rbx
jmp 0x66754
movzbl 0x1(%rbx), %eax
notq %rax
addq %rdi, %rax
addl $-0x7f, %esi
movq %rax, %rdi
callq 0x6ef2b
addq $0x2, %rbx
movq %rbx, %rax
jmp 0x667ab
leaq 0x1(%rbx), %rdi
addl $-0x1f, %esi
callq 0x6ef9c
movzbl (%rbx), %ecx
pushq $-0x1e
popq %rax
jmp 0x6679c
cmpb $0x8, %sil
jb 0x667c3
leaq 0x2(%rbx), %rdi
shll $0x8, %esi
movzbl 0x1(%rbx), %eax
addl %eax, %esi
addl $0xfffff801, %esi       # imm = 0xFFFFF801
callq 0x6ef9c
movzwl (%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %ecx
movq $-0x7fd, %rax           # imm = 0xF803
addq %rbx, %rax
addq %rcx, %rax
cmpq %rbx, %rax
je 0x6685e
movq 0x84026(%rip), %rdi     # 0xea7d8
movq %rax, %rbx
cmpq %r12, %rdi
jbe 0x66692
jmp 0x6696f
cmpl $0x4, %esi
je 0x66825
cmpl $0x6, %esi
je 0x667fe
cmpl $0x7, %esi
jne 0x66861
leaq 0x3(%rbx), %rdi
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %esi
incl %esi
callq 0x6ef9c
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %ecx
pushq $0x4
jmp 0x6676a
movzbl 0x1(%rbx), %eax
shll $0x10, %eax
movzbl 0x2(%rbx), %ecx
shll $0x8, %ecx
movzbl 0x3(%rbx), %edx
orq %rax, %rdx
orq %rcx, %rdx
notq %rdx
addq %rdx, %rdi
movzbl 0x4(%rbx), %esi
jmp 0x6672e
movzbl 0x1(%rbx), %eax
shll $0x10, %eax
movzbl 0x2(%rbx), %ecx
shll $0x8, %ecx
movzbl 0x3(%rbx), %edx
orq %rax, %rdx
orq %rcx, %rdx
notq %rdx
addq %rdx, %rdi
movzwl 0x4(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %esi
incl %esi
callq 0x6ef2b
addq $0x6, %rbx
jmp 0x66754
movb (%rbx), %sil
cmpb $0x5, %sil
jne 0x6698e
cmpb $-0x6, 0x1(%rbx)
jne 0x6698e
cmpq %r12, 0x83f5c(%rip)     # 0xea7d8
movq -0x38(%rbp), %r12
jne 0x669ad
testq %r13, %r13
je 0x668cb
leaq -0xc8(%rbp), %rbx
movl $0x88, %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0xc080
cmpq $0x0, (%rbx)
je 0x6693b
leaq 0x4e18d(%rip), %rdi     # 0xb4a40
leaq 0x4dc1c(%rip), %rsi     # 0xb44d6
leaq 0x4e19b(%rip), %rcx     # 0xb4a5c
movl $0x7d7, %edx            # imm = 0x7D7
callq 0xc140
andq $0x0, -0xc8(%rbp)
andl $0x0, -0xc0(%rbp)
movaps 0x4737f(%rip), %xmm0    # 0xadc60
movups %xmm0, -0xb8(%rbp)
xorl %eax, %eax
movb %al, -0xa8(%rbp)
andq $0x0, -0x90(%rbp)
movabsq $0x7f7fffff00000000, %rcx # imm = 0x7F7FFFFF00000000
movq %rcx, -0x88(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0xa4(%rbp)
movb %al, -0x80(%rbp)
movabsq $0x3f80000000000000, %rax # imm = 0x3F80000000000000
movq %rax, -0x7c(%rbp)
orw $-0x1, -0x74(%rbp)
movups %xmm0, -0x72(%rbp)
andq $0x0, -0x52(%rbp)
movups %xmm0, -0x62(%rbp)
andq $0x0, -0x48(%rbp)
leaq -0xc8(%rbp), %rcx
movb $0x1, 0xc(%rcx)
movq -0x40(%rbp), %rdi
movq %r14, %rsi
movl %r15d, %edx
movss -0x2c(%rbp), %xmm0
movq %r12, %r8
callq 0x664b0
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4f252(%rip), %rdi     # 0xb5bc8
leaq 0x4db59(%rip), %rsi     # 0xb44d6
leaq 0x4f1f2(%rip), %rcx     # 0xb5b76
movl $0xecc, %edx            # imm = 0xECC
callq 0xc140
leaq 0x38787(%rip), %rdi     # 0x9f11c
leaq 0x4db3a(%rip), %rsi     # 0xb44d6
leaq 0x4f1d3(%rip), %rcx     # 0xb5b76
movl $0xec8, %edx            # imm = 0xEC8
callq 0xc140
leaq 0x4f1a7(%rip), %rdi     # 0xb5b5b
leaq 0x4db1b(%rip), %rsi     # 0xb44d6
leaq 0x4f1b4(%rip), %rcx     # 0xb5b76
movl $0xec2, %edx            # imm = 0xEC2
callq 0xc140