// File: /workspace/github_cpp_makefile_star2_O2/donfreiday[P]gb/./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((unsigned char*)compressed_ttf_data);
    unsigned char* buf_decompressed_data = (unsigned char *)ImGui::MemAlloc(buf_decompressed_size);
    stb_decompress(buf_decompressed_data, (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_template, glyph_ranges);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, -0x40(%rbp)
movq %rcx, %r14
movss %xmm0, -0x2c(%rbp)
movl %edx, %r15d
movq %rsi, %rbx
movq %rdi, -0x38(%rbp)
movq %rsi, %rdi
callq 0x2db58
movl %eax, %r12d
movl %eax, %edi
callq 0x82c4
movq %rax, %r13
movl (%rbx), %eax
bswapl %eax
cmpl $0x57bc0000, %eax       # imm = 0x57BC0000
jne 0x2daa8
movl 0x4(%rbx), %eax
bswapl %eax
testl %eax, %eax
jne 0x2daa8
movq %rbx, %rdi
callq 0x2db58
movq %rbx, 0x2d4f5(%rip)     # 0x5ad80
movl %r15d, %ecx
addq %rbx, %rcx
movq %rcx, 0x2d4f0(%rip)     # 0x5ad88
movl %eax, %eax
movq %r13, %r15
addq %rax, %r15
movq %r15, 0x2d4e9(%rip)     # 0x5ad90
movq %r13, 0x2d4ea(%rip)     # 0x5ad98
addq $0x10, %rbx
movq %r13, 0x2d4e7(%rip)     # 0x5ada0
movq %r13, %rdi
movzbl (%rbx), %esi
cmpl $0x20, %esi
jb 0x2d8fc
testb %sil, %sil
js 0x2d965
cmpb $0x40, %sil
jb 0x2d983
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 0x2fdf9
addq $0x3, %rbx
jmp 0x2d97e
cmpb $0x18, %sil
jb 0x2d92d
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 0x2fdf9
addq $0x4, %rbx
jmp 0x2d97e
cmpb $0x10, %sil
jb 0x2d997
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 0x2fdf9
addq $0x5, %rbx
jmp 0x2d97e
movzbl 0x1(%rbx), %eax
notq %rax
addq %rdi, %rax
addl $-0x7f, %esi
movq %rax, %rdi
callq 0x2fdf9
addq $0x2, %rbx
movq %rbx, %rax
jmp 0x2d9d5
leaq 0x1(%rbx), %rdi
addl $-0x1f, %esi
callq 0x2fe6a
movzbl (%rbx), %ecx
pushq $-0x1e
popq %rax
jmp 0x2d9c6
cmpb $0x8, %sil
jb 0x2d9ed
leaq 0x2(%rbx), %rdi
shll $0x8, %esi
movzbl 0x1(%rbx), %eax
addl %eax, %esi
addl $0xfffff801, %esi       # imm = 0xFFFFF801
callq 0x2fe6a
movzwl (%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %ecx
movq $-0x7fd, %rax           # imm = 0xF803
addq %rbx, %rax
addq %rcx, %rax
cmpq %rbx, %rax
je 0x2da88
movq 0x2d3c4(%rip), %rdi     # 0x5ada0
movq %rax, %rbx
cmpq %r15, %rdi
jbe 0x2d8bc
jmp 0x2dadc
cmpl $0x4, %esi
je 0x2da4f
cmpl $0x6, %esi
je 0x2da28
cmpl $0x7, %esi
jne 0x2da8b
leaq 0x3(%rbx), %rdi
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %esi
incl %esi
callq 0x2fe6a
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %ecx
pushq $0x4
jmp 0x2d994
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 0x2d958
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 0x2fdf9
addq $0x6, %rbx
jmp 0x2d97e
movb (%rbx), %sil
cmpb $0x5, %sil
jne 0x2db1a
cmpb $-0x6, 0x1(%rbx)
jne 0x2db1a
cmpq %r15, 0x2d2fe(%rip)     # 0x5ada0
jne 0x2db39
testq %r14, %r14
je 0x2dab3
cmpq $0x0, (%r14)
jne 0x2dafb
movq -0x38(%rbp), %rdi
movq %r13, %rsi
movl %r12d, %edx
movss -0x2c(%rbp), %xmm0
movq %r14, %rcx
movq -0x40(%rbp), %r8
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2d77e
leaq 0x12941(%rip), %rdi     # 0x40424
leaq 0x11ebc(%rip), %rsi     # 0x3f9a6
leaq 0x128e7(%rip), %rcx     # 0x403d8
movl $0x842, %edx            # imm = 0x842
callq 0x7140
leaq 0x12142(%rip), %rdi     # 0x3fc44
leaq 0x11e9d(%rip), %rsi     # 0x3f9a6
leaq 0x121b5(%rip), %rcx     # 0x3fcc5
movl $0x474, %edx            # imm = 0x474
callq 0x7140
leaq 0xa10e(%rip), %rdi      # 0x37c2f
leaq 0x11e7e(%rip), %rsi     # 0x3f9a6
leaq 0x128a9(%rip), %rcx     # 0x403d8
movl $0x83e, %edx            # imm = 0x83E
callq 0x7140
leaq 0x1287d(%rip), %rdi     # 0x403bd
leaq 0x11e5f(%rip), %rsi     # 0x3f9a6
leaq 0x1288a(%rip), %rcx     # 0x403d8
movl $0x838, %edx            # imm = 0x838
callq 0x7140