// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_atlas_end
NK_API void
nk_font_atlas_end(struct nk_font_atlas *atlas, nk_handle texture,
    struct nk_draw_null_texture *tex_null)
{
    int i = 0;
    struct nk_font *font_iter;
    NK_ASSERT(atlas);
    if (!atlas) {
        if (!tex_null) return;
        tex_null->texture = texture;
        tex_null->uv = nk_vec2(0.5f,0.5f);
    }
    if (tex_null) {
        tex_null->texture = texture;
        tex_null->uv.x = (atlas->custom.x + 0.5f)/(float)atlas->tex_width;
        tex_null->uv.y = (atlas->custom.y + 0.5f)/(float)atlas->tex_height;
    }
    for (font_iter = atlas->fonts; font_iter; font_iter = font_iter->next) {
        font_iter->texture = texture;
#ifdef NK_INCLUDE_VERTEX_BUFFER_OUTPUT
        font_iter->handle.texture = texture;
#endif
    }
    for (i = 0; i < NK_CURSOR_COUNT; ++i)
        atlas->cursors[i].img.handle = texture;

    atlas->temporary.free(atlas->temporary.userdata, atlas->pixel);
    atlas->pixel = 0;
    atlas->tex_width = 0;
    atlas->tex_height = 0;
    atlas->custom.x = 0;
    atlas->custom.y = 0;
    atlas->custom.w = 0;
    atlas->custom.h = 0;
}

// Assembly:
subq $0x38, %rsp
movq %rsi, 0x30(%rsp)
movq %rdi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movl $0x0, 0x1c(%rsp)
cmpq $0x0, 0x28(%rsp)
jne 0x4bb26
movq 0x794f6(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x6589c(%rip), %rsi     # 0xb13a0
leaq 0x658b3(%rip), %rdx     # 0xb13be
movl $0x4599, %ecx           # imm = 0x4599
movb $0x0, %al
callq 0x13ec0
movq 0x794d2(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x4bb28
cmpq $0x0, 0x28(%rsp)
jne 0x4bb76
cmpq $0x0, 0x20(%rsp)
jne 0x4bb3d
jmp 0x4bcd6
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rcx, (%rax)
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movss 0x619b9(%rip), %xmm1    # 0xad514
movaps %xmm1, %xmm0
callq 0x13460
movq (%rsp), %rax
movlpd %xmm0, 0x8(%rsp)
movq 0x8(%rsp), %rcx
movq %rcx, 0x8(%rax)
cmpq $0x0, 0x20(%rsp)
je 0x4bbed
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rcx, (%rax)
movq 0x28(%rsp), %rax
movswl 0x40(%rax), %eax
cvtsi2ss %eax, %xmm0
movss 0x61974(%rip), %xmm1    # 0xad514
addss %xmm1, %xmm0
movq 0x28(%rsp), %rax
cvtsi2ssl 0x8(%rax), %xmm1
divss %xmm1, %xmm0
movq 0x20(%rsp), %rax
movss %xmm0, 0x8(%rax)
movq 0x28(%rsp), %rax
movswl 0x42(%rax), %eax
cvtsi2ss %eax, %xmm0
movss 0x61943(%rip), %xmm1    # 0xad514
addss %xmm1, %xmm0
movq 0x28(%rsp), %rax
cvtsi2ssl 0xc(%rax), %xmm1
divss %xmm1, %xmm0
movq 0x20(%rsp), %rax
movss %xmm0, 0xc(%rax)
movq 0x28(%rsp), %rax
movq 0x178(%rax), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x4bc31
movq 0x10(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rcx, 0x70(%rax)
movq 0x10(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rcx, 0x28(%rax)
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x10(%rsp)
jmp 0x4bbfe
movl $0x0, 0x1c(%rsp)
cmpl $0x7, 0x1c(%rsp)
jge 0x4bc6a
movq 0x28(%rsp), %rax
addq $0x48, %rax
movslq 0x1c(%rsp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x30(%rsp), %rcx
movq %rcx, (%rax)
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x4bc39
movq 0x28(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x28(%rsp), %rcx
movq 0x28(%rsp), %rdx
movq (%rdx), %rsi
movq 0x28(%rcx), %rdi
callq *%rax
movq 0x28(%rsp), %rax
movq $0x0, (%rax)
movq 0x28(%rsp), %rax
movl $0x0, 0x8(%rax)
movq 0x28(%rsp), %rax
movl $0x0, 0xc(%rax)
movq 0x28(%rsp), %rax
movw $0x0, 0x40(%rax)
movq 0x28(%rsp), %rax
movw $0x0, 0x42(%rax)
movq 0x28(%rsp), %rax
movw $0x0, 0x44(%rax)
movq 0x28(%rsp), %rax
movw $0x0, 0x46(%rax)
addq $0x38, %rsp
retq
nopl (%rax,%rax)