// File: /workspace/github_cpp_makefile_star2_O3/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)
movl 0x8(%rsi), %r14d
bswapl %r14d
movq %r14, %rdi
callq 0x41c63
movq %rax, %r15
movl (%rbx), %eax
bswapl %eax
cmpl $0x57bc0000, %eax       # imm = 0x57BC0000
jne 0x7be77
movl 0x4(%rbx), %eax
bswapl %eax
testl %eax, %eax
jne 0x7be77
movq %r12, -0x38(%rbp)
movl 0x8(%rbx), %eax
bswapl %eax
movq %rbx, 0x86b52(%rip)     # 0x1027b0
movq %r15, %r12
addq %rax, %r12
movq %r12, 0x86b4d(%rip)     # 0x1027b8
movq %r15, 0x86b4e(%rip)     # 0x1027c0
addq $0x10, %rbx
movq %r15, 0x86b4b(%rip)     # 0x1027c8
movq %r15, %rdi
movzbl (%rbx), %esi
cmpl $0x20, %esi
jb 0x7bcc0
testb %sil, %sil
js 0x7bd29
cmpb $0x40, %sil
jb 0x7bd4a
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 0x85e2b
addq $0x3, %rbx
jmp 0x7bd42
cmpb $0x18, %sil
jb 0x7bcf1
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 0x85e2b
addq $0x4, %rbx
jmp 0x7bd42
cmpb $0x10, %sil
jb 0x7bd62
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 0x85e2b
addq $0x5, %rbx
jmp 0x7bd42
movzbl 0x1(%rbx), %eax
notq %rax
addq %rdi, %rax
addl $-0x7f, %esi
movq %rax, %rdi
callq 0x85e2b
addq $0x2, %rbx
movq %rbx, %rax
jmp 0x7bdd7
leaq 0x1(%rbx), %rdi
addl $-0x1f, %esi
callq 0x85e99
movzbl (%rbx), %ecx
movq $-0x1e, %rax
jmp 0x7bdcc
cmpb $0x8, %sil
jb 0x7bd93
leaq 0x2(%rbx), %rdi
shll $0x8, %esi
movzbl 0x1(%rbx), %eax
addl %eax, %esi
addl $0xfffff801, %esi       # imm = 0xFFFFF801
callq 0x85e99
movzwl (%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %ecx
movq $-0x7fd, %rax           # imm = 0xF803
jmp 0x7bdcc
cmpl $0x4, %esi
je 0x7be16
cmpl $0x6, %esi
je 0x7bdef
cmpl $0x7, %esi
jne 0x7be52
leaq 0x3(%rbx), %rdi
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %esi
incl %esi
callq 0x85e99
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %ecx
movl $0x4, %eax
addq %rbx, %rax
addq %rcx, %rax
cmpq %rbx, %rax
je 0x7be4f
movq 0x869ea(%rip), %rdi     # 0x1027c8
movq %rax, %rbx
cmpq %r12, %rdi
jbe 0x7bc80
jmp 0x7bf60
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 0x7bd1c
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 0x85e2b
addq $0x6, %rbx
jmp 0x7bd42
movb (%rbx), %sil
cmpb $0x5, %sil
jne 0x7bf7f
cmpb $-0x6, 0x1(%rbx)
jne 0x7bf7f
cmpq %r12, 0x8695b(%rip)     # 0x1027c8
movq -0x38(%rbp), %r12
jne 0x7bf9e
testq %r13, %r13
je 0x7bebc
leaq -0xc8(%rbp), %rbx
movl $0x88, %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0xc080
cmpq $0x0, (%rbx)
je 0x7bf2c
leaq 0x5186c(%rip), %rdi     # 0xcd710
leaq 0x512fb(%rip), %rsi     # 0xcd1a6
leaq 0x5187a(%rip), %rcx     # 0xcd72c
movl $0x7d7, %edx            # imm = 0x7D7
callq 0xc140
xorl %eax, %eax
movq %rax, -0xc8(%rbp)
movl $0x0, -0xc0(%rbp)
movaps 0x4aa5a(%rip), %xmm0    # 0xc6930
movups %xmm0, -0xb8(%rbp)
movb %al, -0xa8(%rbp)
movq %rax, -0x90(%rbp)
movabsq $0x7f7fffff00000000, %rcx # imm = 0x7F7FFFFF00000000
movq %rcx, -0x88(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0xa4(%rbp)
movb %al, -0x80(%rbp)
movabsq $0x3f80000000000000, %rcx # imm = 0x3F80000000000000
movq %rcx, -0x7c(%rbp)
movw $0xffff, -0x74(%rbp)    # imm = 0xFFFF
movups %xmm0, -0x72(%rbp)
movups %xmm0, -0x62(%rbp)
movq %rax, -0x52(%rbp)
movq %rax, -0x48(%rbp)
leaq -0xc8(%rbp), %rcx
movb $0x1, 0xc(%rcx)
movq -0x40(%rbp), %rdi
movq %r15, %rsi
movl %r14d, %edx
movss -0x2c(%rbp), %xmm0
movq %r12, %r8
callq 0x7baac
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x52931(%rip), %rdi     # 0xce898
leaq 0x51238(%rip), %rsi     # 0xcd1a6
leaq 0x528d1(%rip), %rcx     # 0xce846
movl $0xecc, %edx            # imm = 0xECC
callq 0xc140
leaq 0x3c166(%rip), %rdi     # 0xb80ec
leaq 0x51219(%rip), %rsi     # 0xcd1a6
leaq 0x528b2(%rip), %rcx     # 0xce846
movl $0xec8, %edx            # imm = 0xEC8
callq 0xc140
leaq 0x52886(%rip), %rdi     # 0xce82b
leaq 0x511fa(%rip), %rsi     # 0xcd1a6
leaq 0x52893(%rip), %rcx     # 0xce846
movl $0xec2, %edx            # imm = 0xEC2
callq 0xc140
nop