// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_baker_memory
NK_INTERN void
nk_font_baker_memory(nk_size *temp, int *glyph_count,
    struct nk_font_config *config_list, int count)
{
    int range_count = 0;
    int total_range_count = 0;
    struct nk_font_config *iter, *i;

    NK_ASSERT(config_list);
    NK_ASSERT(glyph_count);
    if (!config_list) {
        *temp = 0;
        *glyph_count = 0;
        return;
    }
    *glyph_count = 0;
    for (iter = config_list; iter; iter = iter->next) {
        i = iter;
        do {if (!i->range) iter->range = nk_font_default_glyph_ranges();
            range_count = nk_range_count(i->range);
            total_range_count += range_count;
            *glyph_count += nk_range_glyph_count(i->range, range_count);
        } while ((i = i->n) != iter);
    }
    *temp = (nk_size)*glyph_count * sizeof(struct stbrp_rect);
    *temp += (nk_size)total_range_count * sizeof(stbtt_pack_range);
    *temp += (nk_size)*glyph_count * sizeof(stbtt_packedchar);
    *temp += (nk_size)count * sizeof(struct nk_font_bake_data);
    *temp += sizeof(struct nk_font_baker);
    *temp += nk_rect_align + nk_range_align + nk_char_align;
    *temp += nk_build_align + nk_baker_align;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movl %ecx, 0x1c(%rsp)
movl $0x0, 0x18(%rsp)
movl $0x0, 0x14(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x49bb2
movq 0x7b46a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x67810(%rip), %rsi     # 0xb13a0
leaq 0x67827(%rip), %rdx     # 0xb13be
movl $0x4113, %ecx           # imm = 0x4113
movb $0x0, %al
callq 0x13ec0
movq 0x7b446(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x49bb4
jmp 0x49bb6
cmpq $0x0, 0x28(%rsp)
jne 0x49bf1
movq 0x7b42b(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x677d1(%rip), %rsi     # 0xb13a0
leaq 0x677e8(%rip), %rdx     # 0xb13be
movl $0x4114, %ecx           # imm = 0x4114
movb $0x0, %al
callq 0x13ec0
movq 0x7b407(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x49bf3
cmpq $0x0, 0x20(%rsp)
jne 0x49c17
movq 0x30(%rsp), %rax
movq $0x0, (%rax)
movq 0x28(%rsp), %rax
movl $0x0, (%rax)
jmp 0x49d40
movq 0x28(%rsp), %rax
movl $0x0, (%rax)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0x49cbd
movq 0x8(%rsp), %rax
movq %rax, (%rsp)
movq (%rsp), %rax
cmpq $0x0, 0x30(%rax)
jne 0x49c5d
callq 0x13330
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x30(%rax)
movq (%rsp), %rax
movq 0x30(%rax), %rdi
callq 0x46f70
movl %eax, 0x18(%rsp)
movl 0x18(%rsp), %eax
addl 0x14(%rsp), %eax
movl %eax, 0x14(%rsp)
movq (%rsp), %rax
movq 0x30(%rax), %rdi
movl 0x18(%rsp), %esi
callq 0x850a0
movl %eax, %ecx
movq 0x28(%rsp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
movq (%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, (%rsp)
cmpq 0x8(%rsp), %rax
jne 0x49c41
jmp 0x49cab
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x8(%rsp)
jmp 0x49c2c
movq 0x28(%rsp), %rax
movslq (%rax), %rax
imulq $0x18, %rax, %rcx
movq 0x30(%rsp), %rax
movq %rcx, (%rax)
movslq 0x14(%rsp), %rax
imulq $0x28, %rax, %rcx
movq 0x30(%rsp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
movq 0x28(%rsp), %rax
movslq (%rax), %rax
imulq $0x1c, %rax, %rcx
movq 0x30(%rsp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
movslq 0x1c(%rsp), %rax
imulq $0xb8, %rax, %rcx
movq 0x30(%rsp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
movq 0x30(%rsp), %rax
movq (%rax), %rcx
addq $0x78, %rcx
movq %rcx, (%rax)
movq 0x30(%rsp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
movq 0x30(%rsp), %rax
movq (%rax), %rcx
addq $0x10, %rcx
movq %rcx, (%rax)
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)