// File: /workspace/github_cpp_makefile_star2_O3/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, %r12d
movq %rsi, %rbx
movq %rdi, -0x38(%rbp)
movl 0x8(%rsi), %r15d
bswapl %r15d
movq %r15, %rdi
callq 0x8589
movq %rax, %r13
movl (%rbx), %eax
bswapl %eax
cmpl $0x57bc0000, %eax       # imm = 0x57BC0000
jne 0x3449d
movl 0x4(%rbx), %eax
bswapl %eax
testl %eax, %eax
jne 0x3449d
movl 0x8(%rbx), %eax
bswapl %eax
movq %rbx, 0x2bb01(%rip)     # 0x5fd80
movl %r12d, %ecx
addq %rbx, %rcx
movq %rcx, 0x2bafc(%rip)     # 0x5fd88
movq %r13, %r12
addq %rax, %r12
movq %r12, 0x2baf7(%rip)     # 0x5fd90
movq %r13, 0x2baf8(%rip)     # 0x5fd98
addq $0x10, %rbx
movq %r13, 0x2baf5(%rip)     # 0x5fda0
movq %r13, %rdi
movzbl (%rbx), %esi
cmpl $0x20, %esi
jb 0x342ee
testb %sil, %sil
js 0x34357
cmpb $0x40, %sil
jb 0x34378
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 0x36b00
addq $0x3, %rbx
jmp 0x34370
cmpb $0x18, %sil
jb 0x3431f
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 0x36b00
addq $0x4, %rbx
jmp 0x34370
cmpb $0x10, %sil
jb 0x34390
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 0x36b00
addq $0x5, %rbx
jmp 0x34370
movzbl 0x1(%rbx), %eax
notq %rax
addq %rdi, %rax
addl $-0x7f, %esi
movq %rax, %rdi
callq 0x36b00
addq $0x2, %rbx
movq %rbx, %rax
jmp 0x34405
leaq 0x1(%rbx), %rdi
addl $-0x1f, %esi
callq 0x36b6e
movzbl (%rbx), %ecx
movq $-0x1e, %rax
jmp 0x343fa
cmpb $0x8, %sil
jb 0x343c1
leaq 0x2(%rbx), %rdi
shll $0x8, %esi
movzbl 0x1(%rbx), %eax
addl %eax, %esi
addl $0xfffff801, %esi       # imm = 0xFFFFF801
callq 0x36b6e
movzwl (%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %ecx
movq $-0x7fd, %rax           # imm = 0xF803
jmp 0x343fa
cmpl $0x4, %esi
je 0x34444
cmpl $0x6, %esi
je 0x3441d
cmpl $0x7, %esi
jne 0x34480
leaq 0x3(%rbx), %rdi
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %esi
incl %esi
callq 0x36b6e
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %ecx
movl $0x4, %eax
addq %rbx, %rax
addq %rcx, %rax
cmpq %rbx, %rax
je 0x3447d
movq 0x2b994(%rip), %rdi     # 0x5fda0
movq %rax, %rbx
cmpq %r12, %rdi
jbe 0x342ae
jmp 0x344d1
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 0x3434a
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 0x36b00
addq $0x6, %rbx
jmp 0x34370
movb (%rbx), %sil
cmpb $0x5, %sil
jne 0x3450f
cmpb $-0x6, 0x1(%rbx)
jne 0x3450f
cmpq %r12, 0x2b909(%rip)     # 0x5fda0
jne 0x3452e
testq %r14, %r14
je 0x344a8
cmpq $0x0, (%r14)
jne 0x344f0
movq -0x38(%rbp), %rdi
movq %r13, %rsi
movl %r15d, %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 0x34174
leaq 0x12d3c(%rip), %rdi     # 0x47214
leaq 0x122b7(%rip), %rsi     # 0x46796
leaq 0x12ce2(%rip), %rcx     # 0x471c8
movl $0x842, %edx            # imm = 0x842
callq 0x7140
leaq 0x1253d(%rip), %rdi     # 0x46a34
leaq 0x12298(%rip), %rsi     # 0x46796
leaq 0x125b0(%rip), %rcx     # 0x46ab5
movl $0x474, %edx            # imm = 0x474
callq 0x7140
leaq 0xa72c(%rip), %rdi      # 0x3ec42
leaq 0x12279(%rip), %rsi     # 0x46796
leaq 0x12ca4(%rip), %rcx     # 0x471c8
movl $0x83e, %edx            # imm = 0x83E
callq 0x7140
leaq 0x12c78(%rip), %rdi     # 0x471ad
leaq 0x1225a(%rip), %rsi     # 0x46796
leaq 0x12c85(%rip), %rcx     # 0x471c8
movl $0x838, %edx            # imm = 0x838
callq 0x7140
nop