// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_atlas_bake
NK_API const void*
nk_font_atlas_bake(struct nk_font_atlas *atlas, int *width, int *height,
    enum nk_font_atlas_format fmt)
{
    int i = 0;
    void *tmp = 0;
    nk_size tmp_size, img_size;
    struct nk_font *font_iter;
    struct nk_font_baker *baker;

    NK_ASSERT(atlas);
    NK_ASSERT(atlas->temporary.alloc);
    NK_ASSERT(atlas->temporary.free);
    NK_ASSERT(atlas->permanent.alloc);
    NK_ASSERT(atlas->permanent.free);

    NK_ASSERT(width);
    NK_ASSERT(height);
    if (!atlas || !width || !height ||
        !atlas->temporary.alloc || !atlas->temporary.free ||
        !atlas->permanent.alloc || !atlas->permanent.free)
        return 0;

#ifdef NK_INCLUDE_DEFAULT_FONT
    /* no font added so just use default font */
    if (!atlas->font_num)
        atlas->default_font = nk_font_atlas_add_default(atlas, 13.0f, 0);
#endif
    NK_ASSERT(atlas->font_num);
    if (!atlas->font_num) return 0;

    /* allocate temporary baker memory required for the baking process */
    nk_font_baker_memory(&tmp_size, &atlas->glyph_count, atlas->config, atlas->font_num);
    tmp = atlas->temporary.alloc(atlas->temporary.userdata,0, tmp_size);
    NK_ASSERT(tmp);
    if (!tmp) goto failed;
    NK_MEMSET(tmp,0,tmp_size);

    /* allocate glyph memory for all fonts */
    baker = nk_font_baker(tmp, atlas->glyph_count, atlas->font_num, &atlas->temporary);
    atlas->glyphs = (struct nk_font_glyph*)atlas->permanent.alloc(
        atlas->permanent.userdata,0, sizeof(struct nk_font_glyph)*(nk_size)atlas->glyph_count);
    NK_ASSERT(atlas->glyphs);
    if (!atlas->glyphs)
        goto failed;

    /* pack all glyphs into a tight fit space */
    atlas->custom.w = (NK_CURSOR_DATA_W*2)+1;
    atlas->custom.h = NK_CURSOR_DATA_H + 1;
    if (!nk_font_bake_pack(baker, &img_size, width, height, &atlas->custom,
        atlas->config, atlas->font_num, &atlas->temporary))
        goto failed;

    /* allocate memory for the baked image font atlas */
    atlas->pixel = atlas->temporary.alloc(atlas->temporary.userdata,0, img_size);
    NK_ASSERT(atlas->pixel);
    if (!atlas->pixel)
        goto failed;

    /* bake glyphs and custom white pixel into image */
    nk_font_bake(baker, atlas->pixel, *width, *height,
        atlas->glyphs, atlas->glyph_count, atlas->config, atlas->font_num);
    nk_font_bake_custom_data(atlas->pixel, *width, *height, atlas->custom,
            nk_custom_cursor_data, NK_CURSOR_DATA_W, NK_CURSOR_DATA_H, '.', 'X');

    if (fmt == NK_FONT_ATLAS_RGBA32) {
        /* convert alpha8 image into rgba32 image */
        void *img_rgba = atlas->temporary.alloc(atlas->temporary.userdata,0,
                            (nk_size)(*width * *height * 4));
        NK_ASSERT(img_rgba);
        if (!img_rgba) goto failed;
        nk_font_bake_convert(img_rgba, *width, *height, atlas->pixel);
        atlas->temporary.free(atlas->temporary.userdata, atlas->pixel);
        atlas->pixel = img_rgba;
    }
    atlas->tex_width = *width;
    atlas->tex_height = *height;

    /* initialize each font */
    for (font_iter = atlas->fonts; font_iter; font_iter = font_iter->next) {
        struct nk_font *font = font_iter;
        struct nk_font_config *config = font->config;
        nk_font_init(font, config->size, config->fallback_glyph, atlas->glyphs,
            config->font, nk_handle_ptr(0));
    }

    /* initialize each cursor */
    {NK_STORAGE const struct nk_vec2 nk_cursor_data[NK_CURSOR_COUNT][3] = {
        /* Pos      Size        Offset */
        {{ 0, 3},   {12,19},    { 0, 0}},
        {{13, 0},   { 7,16},    { 4, 8}},
        {{31, 0},   {23,23},    {11,11}},
        {{21, 0},   { 9, 23},   { 5,11}},
        {{55,18},   {23, 9},    {11, 5}},
        {{73, 0},   {17,17},    { 9, 9}},
        {{55, 0},   {17,17},    { 9, 9}}
    };
    for (i = 0; i < NK_CURSOR_COUNT; ++i) {
        struct nk_cursor *cursor = &atlas->cursors[i];
        cursor->img.w = (unsigned short)*width;
        cursor->img.h = (unsigned short)*height;
        cursor->img.region[0] = (unsigned short)(atlas->custom.x + nk_cursor_data[i][0].x);
        cursor->img.region[1] = (unsigned short)(atlas->custom.y + nk_cursor_data[i][0].y);
        cursor->img.region[2] = (unsigned short)nk_cursor_data[i][1].x;
        cursor->img.region[3] = (unsigned short)nk_cursor_data[i][1].y;
        cursor->size = nk_cursor_data[i][1];
        cursor->offset = nk_cursor_data[i][2];
    }}
    /* free temporary memory */
    atlas->temporary.free(atlas->temporary.userdata, tmp);
    return atlas->pixel;

failed:
    /* error so cleanup all memory */
    if (tmp) atlas->temporary.free(atlas->temporary.userdata, tmp);
    if (atlas->glyphs) {
        atlas->permanent.free(atlas->permanent.userdata, atlas->glyphs);
        atlas->glyphs = 0;
    }
    if (atlas->pixel) {
        atlas->temporary.free(atlas->temporary.userdata, atlas->pixel);
        atlas->pixel = 0;
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
testq %rdi, %rdi
jne 0x324d0
movq 0x52b45(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x37857(%rip), %rsi     # 0x69d0c
leaq 0x3786e(%rip), %rdx     # 0x69d2a
movl $0x4520, %ecx           # imm = 0x4520
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
cmpq $0x0, 0x30(%r14)
jne 0x32503
movq 0x52b12(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x37824(%rip), %rsi     # 0x69d0c
leaq 0x3783b(%rip), %rdx     # 0x69d2a
movl $0x4521, %ecx           # imm = 0x4521
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
cmpq $0x0, 0x38(%r14)
jne 0x32536
movq 0x52adf(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x377f1(%rip), %rsi     # 0x69d0c
leaq 0x37808(%rip), %rdx     # 0x69d2a
movl $0x4522, %ecx           # imm = 0x4522
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
cmpq $0x0, 0x18(%r14)
jne 0x32569
movq 0x52aac(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x377be(%rip), %rsi     # 0x69d0c
leaq 0x377d5(%rip), %rdx     # 0x69d2a
movl $0x4523, %ecx           # imm = 0x4523
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
cmpq $0x0, 0x20(%r14)
jne 0x3259c
movq 0x52a79(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x3778b(%rip), %rsi     # 0x69d0c
leaq 0x377a2(%rip), %rdx     # 0x69d2a
movl $0x4524, %ecx           # imm = 0x4524
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
testq %r12, %r12
jne 0x325cd
movq 0x52a48(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x3775a(%rip), %rsi     # 0x69d0c
leaq 0x37771(%rip), %rdx     # 0x69d2a
movl $0x4526, %ecx           # imm = 0x4526
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
testq %r15, %r15
je 0x3270d
testq %r12, %r12
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0x32a8c
cmpq $0x0, 0x30(%r14)
je 0x32a8c
cmpq $0x0, 0x38(%r14)
je 0x32a8c
cmpq $0x0, 0x18(%r14)
je 0x32a8c
cmpq $0x0, 0x20(%r14)
je 0x32a8c
movl %ebp, 0x68(%rsp)
movl 0x188(%r14), %ebp
testl %ebp, %ebp
movq %r14, 0x8(%rsp)
jne 0x32690
movss 0x34286(%rip), %xmm0    # 0x668b8
movq %r14, %rdi
xorl %esi, %esi
callq 0x12f90
movq %rax, 0x170(%r14)
movl 0x188(%r14), %ebp
testl %ebp, %ebp
jne 0x32690
movq 0x5299b(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x376ad(%rip), %rsi     # 0x69d0c
leaq 0x376c4(%rip), %rdx     # 0x69d2a
xorl %ebx, %ebx
movl $0x4532, %ecx           # imm = 0x4532
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
movq 0x8(%rsp), %r14
callq 0x13960
movl 0x188(%r14), %ebp
testl %ebp, %ebp
je 0x32a8e
movq %r15, 0x10(%rsp)
movq 0x180(%r14), %rbx
testq %rbx, %rbx
movq %r12, 0x20(%rsp)
je 0x3276c
andl $0x0, 0x160(%r14)
xorl %eax, %eax
leaq 0x344f5(%rip), %r15     # 0x66bb0
xorl %r14d, %r14d
testq %rbx, %rbx
je 0x32740
movq %rbx, %r12
movq 0x30(%r12), %rdi
testq %rdi, %rdi
jne 0x326d9
movq %r15, 0x30(%rbx)
movq 0x30(%r12), %rdi
callq 0x30e38
addl %eax, %r14d
movq 0x30(%r12), %rdi
movl %eax, %esi
callq 0x514ab
movq 0x8(%rsp), %rcx
addl 0x160(%rcx), %eax
movl %eax, 0x160(%rcx)
movq 0x48(%r12), %r12
cmpq %rbx, %r12
jne 0x326c6
movq (%rbx), %rbx
jmp 0x326be
movq 0x528dc(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x375ee(%rip), %rsi     # 0x69d0c
leaq 0x37605(%rip), %rdx     # 0x69d2a
xorl %ebx, %ebx
movl $0x4527, %ecx           # imm = 0x4527
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
jmp 0x32a8e
cltq
movslq %r14d, %rcx
imulq $0x28, %rcx, %rcx
movslq %ebp, %rdx
imulq $0xb8, %rdx, %rdx
imulq $0x34, %rax, %rax
addq %rdx, %rax
leaq (%rcx,%rax), %rbx
addq $0x98, %rbx
movq 0x8(%rsp), %r14
jmp 0x327a7
movq 0x5287d(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x3758f(%rip), %rsi     # 0x69d0c
leaq 0x375a6(%rip), %rdx     # 0x69d2a
xorl %ebx, %ebx
movl $0x4113, %ecx           # imm = 0x4113
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
movq 0x8(%rsp), %r14
callq 0x13960
andl $0x0, 0x160(%r14)
movq 0x28(%r14), %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq *0x30(%r14)
testq %rax, %rax
je 0x32919
movq %rax, %r15
leaq 0x28(%r14), %r12
movq %rax, %rdi
movq %rbx, %rsi
callq 0x338b1
movslq 0x160(%r14), %rax
movslq 0x188(%r14), %rcx
movq %r15, 0xd8(%rsp)
addq $0x7, %r15
andq $-0x8, %r15
movq %r15, 0x18(%rsp)
leaq 0x7f(%r15), %rdx
andq $-0x8, %rdx
movq %rdx, 0x58(%r15)
imulq $0xb8, %rcx, %rcx
addq %rdx, %rcx
movq %rcx, 0x60(%r15)
imulq $0x1c, %rax, %rdx
addq %rcx, %rdx
movq %rdx, 0x68(%r15)
imulq $0x18, %rax, %rax
addq %rdx, %rax
addq $0x7, %rax
andq $-0x8, %rax
movq %rax, 0x70(%r15)
movups (%r12), %xmm0
movups %xmm0, (%r15)
movq %r12, 0x38(%rsp)
movq 0x10(%r12), %rax
movq %rax, 0x10(%r15)
movslq 0x160(%r14), %rax
imulq $0x30, %rax, %rdx
movq 0x10(%r14), %rdi
xorl %esi, %esi
callq *0x18(%r14)
movq %rax, 0x168(%r14)
testq %rax, %rax
jne 0x328a1
movq 0x52787(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x37499(%rip), %rsi     # 0x69d0c
leaq 0x374b0(%rip), %rdx     # 0x69d2a
movl $0x4540, %ecx           # imm = 0x4540
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movq 0x8(%rsp), %rax
cmpq $0x0, 0x168(%rax)
je 0x32a47
movq 0x8(%rsp), %rax
movl $0x1c00b5, 0x44(%rax)   # imm = 0x1C00B5
movq 0x180(%rax), %rcx
movl 0x188(%rax), %ebp
testq %rcx, %rcx
je 0x329eb
movq %rcx, 0x80(%rsp)
movl %ebp, 0x98(%rsp)
testl %ebp, %ebp
je 0x32a1b
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x80(%rsp), %r15
movq %r15, %rbx
testq %rbx, %rbx
je 0x3294a
movq %rbx, %r14
movq 0x30(%r14), %rdi
callq 0x30e38
addl %eax, %ebp
movq 0x30(%r14), %rdi
movl %eax, %esi
callq 0x514ab
addl %eax, %r13d
movq 0x48(%r14), %r14
cmpq %rbx, %r14
jne 0x328f2
movq (%rbx), %rbx
jmp 0x328ea
movq 0x526d0(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x373e2(%rip), %rsi     # 0x69d0c
leaq 0x373f9(%rip), %rdx     # 0x69d2a
movl $0x4538, %ecx           # imm = 0x4538
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
jmp 0x32a5c
xorl %eax, %eax
movq %r15, %rcx
movq 0x10(%rsp), %r15
movq 0x20(%rsp), %r12
movq 0x18(%rsp), %rbx
testq %rcx, %rcx
je 0x32aa3
cltq
imulq $0xb8, %rax, %r15
movq %rcx, %r12
movq %rcx, 0x70(%rsp)
movq %rax, 0x40(%rsp)
movq 0x18(%rsp), %rax
movq 0x58(%rax), %rbx
movq 0x38(%rsp), %rax
movq %rax, (%rbx,%r15)
addq %r15, %rbx
movq 0x8(%r12), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x139d0
movq %rbx, %rdi
movq 0x18(%rsp), %rbx
movq %r14, %rsi
movl %eax, %edx
callq 0x13f60
testl %eax, %eax
je 0x32a47
movq 0x40(%rsp), %rax
incq %rax
movq 0x48(%r12), %r12
addq $0xb8, %r15
movq 0x70(%rsp), %rcx
cmpq %rcx, %r12
jne 0x32978
movq (%rcx), %rcx
movq 0x10(%rsp), %r15
movq 0x20(%rsp), %r12
jmp 0x3295e
movq 0x525fe(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x37310(%rip), %rsi     # 0x69d0c
leaq 0x37327(%rip), %rdx     # 0x69d2a
movl $0x4149, %ecx           # imm = 0x4149
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
testl %ebp, %ebp
jne 0x32a47
movq 0x525ce(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x372e0(%rip), %rsi     # 0x69d0c
leaq 0x372f7(%rip), %rdx     # 0x69d2a
movl $0x414a, %ecx           # imm = 0x414A
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movq 0x8(%rsp), %r14
movq 0x28(%r14), %rdi
movq 0xd8(%rsp), %rsi
callq *0x38(%r14)
movq 0x168(%r14), %rsi
testq %rsi, %rsi
je 0x32a78
movq 0x10(%r14), %rdi
callq *0x20(%r14)
andq $0x0, 0x168(%r14)
movq (%r14), %rsi
testq %rsi, %rsi
je 0x32a8c
movq 0x28(%r14), %rdi
callq *0x38(%r14)
andq $0x0, (%r14)
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
andl $0x0, (%r15)
xorl %edx, %edx
cmpl $0x3e9, %r13d           # imm = 0x3E9
setge %dl
shll $0x9, %edx
addl $0x200, %edx            # imm = 0x200
movl %edx, (%r12)
leaq 0x18(%rbx), %rdi
subq $0x8, %rsp
pushq $0x1
popq %r9
movq %rdi, 0x78(%rsp)
xorl %esi, %esi
movl $0x8000, %ecx           # imm = 0x8000
xorl %r8d, %r8d
pushq 0x40(%rsp)
callq 0x12e00
addq $0x10, %rsp
leaq 0xb0(%rsp), %rbx
pushq $0x18
popq %rsi
movq %rbx, %rdi
callq 0x23ed0
movq 0x8(%rsp), %r14
movswl 0x44(%r14), %eax
movl %eax, 0x4(%rbx)
movswl 0x46(%r14), %eax
movl %eax, 0x8(%rbx)
movabsq $0x100000001, %rax      # imm = 0x100000001
movq 0x18(%rsp), %rcx
movq %rax, 0x3c(%rcx)
movq 0x20(%rcx), %rdi
movq %rbx, %rsi
pushq $0x1
popq %rdx
callq 0x12e30
movl (%r15), %eax
movl 0x8(%rbx), %ecx
movl 0x10(%rbx), %edx
leal (%rcx,%rdx), %esi
cmpl %esi, %eax
cmovgl %eax, %esi
movl %esi, (%r15)
movzwl 0xc(%rbx), %eax
movw %ax, 0x40(%r14)
movw %dx, 0x42(%r14)
movzwl 0x4(%rbx), %eax
movw %ax, 0x44(%r14)
movw %cx, 0x46(%r14)
xorl %ecx, %ecx
xorl %ebx, %ebx
xorl %r10d, %r10d
xorl %r15d, %r15d
cmpl 0x98(%rsp), %ecx
movq 0x80(%rsp), %rax
jge 0x32d4d
testq %rax, %rax
je 0x32d4d
movslq %ecx, %rcx
movq %rax, %r11
movl %ebx, %esi
imulq $0xb8, %rcx, %rbx
movq 0x18(%rsp), %rax
addq 0x58(%rax), %rbx
incq %rcx
movq %rcx, 0x40(%rsp)
movq 0x30(%r11), %rax
xorl %r12d, %r12d
xorl %r14d, %r14d
movl (%rax,%r12,8), %ecx
testl %ecx, %ecx
je 0x32bd3
movl 0x4(%rax,%r12,8), %edx
testl %edx, %edx
je 0x32bd3
subl %ecx, %r14d
addl %edx, %r14d
incl %r14d
incq %r12
jmp 0x32bb4
movq %rsi, 0x60(%rsp)
movslq %esi, %rcx
imulq $0x28, %rcx, %rcx
movq 0x18(%rsp), %rdx
addq 0x70(%rdx), %rcx
movq %rcx, 0xa8(%rbx)
movl %r12d, 0xb0(%rbx)
xorl %edx, %edx
cmpq %rdx, %r12
je 0x32c3d
movss 0x20(%r11), %xmm0
movss %xmm0, (%rcx)
movl (%rax,%rdx,8), %esi
movl %esi, 0x4(%rcx)
movl 0x4(%rax,%rdx,8), %edi
subl %esi, %edi
leal 0x1(%rdi), %esi
movl %esi, 0x10(%rcx)
movslq %r15d, %rsi
imulq $0x1c, %rsi, %r8
movq 0x18(%rsp), %r9
addq 0x60(%r9), %r8
movq %r8, 0x18(%rcx)
leal (%rdi,%rsi), %r15d
incl %r15d
incq %rdx
addq $0x28, %rcx
jmp 0x32bf8
movl %r10d, 0x38(%rsp)
movslq %r10d, %rax
imulq $0x18, %rax, %rax
movq 0x18(%rsp), %rcx
addq 0x68(%rcx), %rax
movq %rax, 0xa0(%rbx)
movzbl 0x1c(%r11), %esi
movq %r11, 0x28(%rsp)
movzbl 0x1b(%r11), %edx
movq 0x70(%rsp), %rdi
callq 0x14110
movq 0xa0(%rbx), %r8
movq 0xa8(%rbx), %rdx
movl 0xb0(%rbx), %ecx
movq 0x70(%rsp), %rdi
movq %rbx, %rsi
callq 0x12da0
movl %eax, %edx
movq %rdx, 0x48(%rsp)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0xa0(%rbx), %rsi
callq 0x12e30
movq 0x48(%rsp), %rcx
testl %ecx, %ecx
movl $0x0, %eax
cmovlel %eax, %ecx
imulq $0x18, %rcx, %rax
xorl %ecx, %ecx
movq 0x60(%rsp), %r9
cmpq %rcx, %rax
je 0x32cfa
movq 0xa0(%rbx), %rdx
cmpl $0x0, 0x14(%rdx,%rcx)
je 0x32cf4
movq 0x10(%rsp), %r8
movl (%r8), %esi
movl 0x8(%rdx,%rcx), %edi
addl 0x10(%rdx,%rcx), %edi
cmpl %edi, %esi
cmovgl %esi, %edi
movl %edi, (%r8)
addq $0x18, %rcx
jmp 0x32cc9
leal (%r9,%r12), %ebx
addl 0x38(%rsp), %r14d
movq 0x28(%rsp), %r11
movq 0x48(%r11), %r11
movl %r14d, %r10d
cmpq 0x80(%rsp), %r11
movq 0x40(%rsp), %rcx
jne 0x32b90
movq 0x80(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x80(%rsp)
addl %r12d, %r9d
movl %r9d, %ebx
movl %r14d, %r10d
movq 0x8(%rsp), %r14
movq 0x20(%rsp), %r12
jmp 0x32b6c
cmpl %r13d, %r10d
je 0x32d83
movq 0x52297(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x36fa9(%rip), %rsi     # 0x69d0c
leaq 0x36fc0(%rip), %rdx     # 0x69d2a
movl $0x41a7, %ecx           # imm = 0x41A7
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
movq 0x8(%rsp), %r14
callq 0x13960
cmpl %r13d, %r15d
je 0x32db9
movq 0x52261(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x36f73(%rip), %rsi     # 0x69d0c
leaq 0x36f8a(%rip), %rdx     # 0x69d2a
movl $0x41a8, %ecx           # imm = 0x41A8
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
movq 0x8(%rsp), %r14
callq 0x13960
cmpl %ebp, %ebx
movq 0x10(%rsp), %r15
je 0x32dee
movq 0x52227(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x36f39(%rip), %rsi     # 0x69d0c
leaq 0x36f50(%rip), %rdx     # 0x69d2a
movl $0x41a9, %ecx           # imm = 0x41A9
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movl (%r15), %edi
callq 0x4ef52
movl %eax, (%r15)
movslq (%r12), %rcx
movslq %eax, %rdx
imulq %rcx, %rdx
movq 0x28(%r14), %rdi
xorl %esi, %esi
callq *0x30(%r14)
movq %r14, %rcx
movq %rax, %r14
movq %rax, (%rcx)
testq %rax, %rax
jne 0x32e59
movq 0x521cd(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x36edf(%rip), %rsi     # 0x69d0c
leaq 0x36ef6(%rip), %rdx     # 0x69d2a
movl $0x454d, %ecx           # imm = 0x454D
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movq 0x8(%rsp), %rax
movq (%rax), %r14
testq %r14, %r14
je 0x32a47
movq 0x20(%rsp), %r12
movslq (%r12), %rcx
movq 0x10(%rsp), %r15
movl (%r15), %ebp
movq 0x8(%rsp), %rax
movq 0x168(%rax), %rsi
movq %rsi, 0x40(%rsp)
movl 0x160(%rax), %ebx
movq 0x180(%rax), %rsi
movq %rsi, 0x50(%rsp)
movl 0x188(%rax), %eax
movl %eax, 0x34(%rsp)
movq %rcx, 0x48(%rsp)
testq %rcx, %rcx
movl %ebp, 0x28(%rsp)
jne 0x32eda
movq 0x52144(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x36e56(%rip), %rsi     # 0x69d0c
leaq 0x36e6d(%rip), %rdx     # 0x69d2a
movl $0x41ba, %ecx           # imm = 0x41BA
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
movq 0x10(%rsp), %r15
callq 0x13960
movl 0x28(%rsp), %ebp
testl %ebp, %ebp
jne 0x32f13
movq 0x5210b(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x36e1d(%rip), %rsi     # 0x69d0c
leaq 0x36e34(%rip), %rdx     # 0x69d2a
movl $0x41bb, %ecx           # imm = 0x41BB
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
movq 0x10(%rsp), %r15
callq 0x13960
movl 0x28(%rsp), %ebp
cmpq $0x0, 0x50(%rsp)
jne 0x32f50
movq 0x520ce(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x36de0(%rip), %rsi     # 0x69d0c
leaq 0x36df7(%rip), %rdx     # 0x69d2a
movl $0x41bc, %ecx           # imm = 0x41BC
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
movq 0x10(%rsp), %r15
callq 0x13960
movl 0x28(%rsp), %ebp
cmpq $0x0, 0x18(%rsp)
jne 0x32f8d
movq 0x52091(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x36da3(%rip), %rsi     # 0x69d0c
leaq 0x36dba(%rip), %rdx     # 0x69d2a
movl $0x41bd, %ecx           # imm = 0x41BD
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
movq 0x10(%rsp), %r15
callq 0x13960
movl 0x28(%rsp), %ebp
cmpl $0x0, 0x34(%rsp)
jne 0x32fc9
movq 0x52055(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x36d67(%rip), %rsi     # 0x69d0c
leaq 0x36d7e(%rip), %rdx     # 0x69d2a
movl $0x41be, %ecx           # imm = 0x41BE
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
movq 0x10(%rsp), %r15
callq 0x13960
movl 0x28(%rsp), %ebp
testl %ebx, %ebx
jne 0x33002
movq 0x5201c(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x36d2e(%rip), %rsi     # 0x69d0c
leaq 0x36d45(%rip), %rdx     # 0x69d2a
movl $0x41bf, %ecx           # imm = 0x41BF
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
movq 0x10(%rsp), %r15
callq 0x13960
movl 0x28(%rsp), %ebp
testl %ebx, %ebx
movq 0x18(%rsp), %rbx
movq 0x50(%rsp), %r13
je 0x3344b
cmpl $0x0, 0x48(%rsp)
je 0x3344b
testl %ebp, %ebp
je 0x3344b
cmpq $0x0, 0x40(%rsp)
je 0x3344b
testq %r13, %r13
je 0x3344b
cmpl $0x0, 0x34(%rsp)
je 0x3344b
movslq %ebp, %rsi
imulq 0x48(%rsp), %rsi
movq %r14, %rdi
callq 0x23ed0
movq %r14, 0x48(%rbx)
movl %ebp, 0x2c(%rbx)
xorl %r14d, %r14d
movq %r13, %rbp
cmpl 0x34(%rsp), %r14d
jge 0x330fa
testq %rbp, %rbp
je 0x330fa
movslq %r14d, %rax
imulq $0xb8, %rax, %r12
movq %rbp, %r13
movq 0x58(%rbx), %r15
leaq (%r15,%r12), %rax
movq %rax, 0x38(%rsp)
movzbl 0x1c(%r13), %esi
movzbl 0x1b(%r13), %edx
movq 0x70(%rsp), %rbx
movq %rbx, %rdi
callq 0x14110
movq 0xa0(%r15,%r12), %r8
movq 0xa8(%r15,%r12), %rdx
movl 0xb0(%r15,%r12), %ecx
movq %rbx, %rdi
movq 0x38(%rsp), %rsi
movq 0x18(%rsp), %rbx
callq 0x13c60
movq 0x48(%r13), %r13
addq $0xb8, %r12
incl %r14d
cmpq %rbp, %r13
jne 0x33086
movq (%rbp), %rbp
movq 0x10(%rsp), %r15
movq 0x20(%rsp), %r12
jmp 0x33065
movq 0x70(%rsp), %rdi
callq 0x13810
movss 0x28(%rsp), %xmm0
movss 0x48(%rsp), %xmm1
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
cvtdq2ps %xmm1, %xmm0
movlhps %xmm0, %xmm0            # xmm0 = xmm0[0,0]
movaps %xmm0, 0x80(%rsp)
movl $0x0, 0x6c(%rsp)
movq $0x0, 0x58(%rsp)
movq 0x58(%rsp), %rax
cmpl 0x34(%rsp), %eax
movq 0x50(%rsp), %rax
jge 0x3344b
testq %rax, %rax
je 0x3344b
movq 0x58(%rbx), %rcx
movq %rcx, 0xe0(%rsp)
movq 0x58(%rsp), %rcx
movslq %ecx, %rcx
movq %rcx, 0x58(%rsp)
movq %rax, %r12
movq 0x58(%rsp), %rbx
imulq $0xb8, %rbx, %r14
addq 0xe0(%rsp), %r14
movq 0x38(%r12), %rax
movq %rax, 0x60(%rsp)
movss 0x20(%r12), %xmm0
movq %r14, %rdi
callq 0x121e0
movaps %xmm0, 0x70(%rsp)
movq %r14, %rdi
leaq 0xac(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
leaq 0x104(%rsp), %rcx
callq 0x121b0
cmpb $0x0, 0x19(%r12)
jne 0x33210
movq 0x30(%r12), %rax
movq 0x60(%rsp), %rcx
movq %rax, 0x18(%rcx)
movss 0x20(%r12), %xmm0
movss %xmm0, (%rcx)
movss 0xa8(%rsp), %xmm0
movss 0xac(%rsp), %xmm1
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
cvtdq2ps %xmm1, %xmm0
movaps 0x70(%rsp), %xmm1
unpcklps %xmm1, %xmm1            # xmm1 = xmm1[0,0,1,1]
mulps %xmm0, %xmm1
movlps %xmm1, 0x4(%rcx)
movl 0x6c(%rsp), %eax
movl %eax, 0xc(%rcx)
andl $0x0, 0x10(%rcx)
incq %rbx
movq %rbx, 0x58(%rsp)
movl 0xb0(%r14), %eax
movq %rax, 0xf0(%rsp)
xorl %edi, %edi
xorl %ecx, %ecx
movl 0x28(%rsp), %edx
movq %r14, 0xe8(%rsp)
cmpq 0xf0(%rsp), %rcx
je 0x33410
movq 0xa8(%r14), %rax
movq %rcx, 0xf8(%rsp)
imulq $0x28, %rcx, %rcx
movl 0x10(%rax,%rcx), %r8d
testl %r8d, %r8d
movl $0x0, %esi
cmovlel %esi, %r8d
movq %r8, 0x70(%rsp)
leaq (%rax,%rcx), %r14
movq %rdi, 0x98(%rsp)
movl %edi, %eax
movq %rax, 0x38(%rsp)
pushq $0x10
popq %r15
xorl %ebx, %ebx
cmpq %rbx, 0x70(%rsp)
je 0x333ee
andl $0x0, 0xa4(%rsp)
andl $0x0, 0xa0(%rsp)
movq 0x18(%r14), %r13
movl 0x4(%r14), %ebp
addl %ebx, %ebp
movq %r13, %rdi
movq 0x48(%rsp), %rsi
movl %ebx, %ecx
leaq 0xa4(%rsp), %r8
leaq 0xa0(%rsp), %r9
pushq $0x0
leaq 0xb8(%rsp), %rax
pushq %rax
callq 0x14020
popq %rax
popq %rcx
movq 0x60(%rsp), %rdx
movl 0xc(%rdx), %eax
addl 0x10(%rdx), %eax
movq 0x38(%rsp), %rcx
addl %ebx, %ecx
addl %ecx, %eax
imulq $0x30, %rax, %rax
movq 0x40(%rsp), %rcx
movl %ebp, (%rcx,%rax)
movss 0xb0(%rsp), %xmm0
movss %xmm0, 0x8(%rcx,%rax)
movss 0xb4(%rsp), %xmm1
movss 0xc0(%rsp), %xmm2
movss %xmm2, 0x10(%rcx,%rax)
movss 0x4(%rdx), %xmm3
addss 0x33504(%rip), %xmm3    # 0x66830
addss %xmm3, %xmm1
movss 0xc4(%rsp), %xmm4
movaps 0x33330(%rip), %xmm5    # 0x66670
movss %xmm4, %xmm5            # xmm5 = xmm4[0],xmm5[1,2,3]
movss %xmm1, 0xc(%rcx,%rax)
subss %xmm0, %xmm2
unpcklps %xmm2, %xmm3            # xmm3 = xmm3[0],xmm2[0],xmm3[1],xmm2[1]
addps %xmm5, %xmm3
movlps %xmm3, 0x14(%rcx,%rax)
subss %xmm1, %xmm3
movss %xmm3, 0x1c(%rcx,%rax)
cmpl $0x1, 0x24(%r12)
movss 0xb8(%rsp), %xmm0
jne 0x33392
movss 0xbc(%rsp), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movhps 0xc8(%rsp), %xmm0       # xmm0 = xmm0[0,1],mem[0,1]
mulps 0x80(%rsp), %xmm0
jmp 0x333a6
movss 0xbc(%rsp), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movhps 0xc8(%rsp), %xmm0       # xmm0 = xmm0[0,1],mem[0,1]
addq 0x40(%rsp), %rax
movups %xmm0, 0x20(%rax)
movss (%r13,%r15), %xmm0
addss 0x28(%r12), %xmm0
movss %xmm0, 0x4(%rax)
cmpb $0x0, 0x1a(%r12)
movl 0x28(%rsp), %edx
je 0x333e2
addss 0x3345a(%rip), %xmm0    # 0x66830
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm0
movss %xmm0, 0x4(%rax)
incq %rbx
addq $0x1c, %r15
jmp 0x33287
movq 0xf8(%rsp), %rcx
incq %rcx
movq 0x98(%rsp), %rdi
addl %ebx, %edi
movq 0xe8(%rsp), %r14
jmp 0x33237
movq 0x60(%rsp), %rax
addl %edi, 0x10(%rax)
addl %edi, 0x6c(%rsp)
movq 0x48(%r12), %r12
movq 0x50(%rsp), %rax
cmpq %rax, %r12
movq 0x10(%rsp), %r15
movq 0x18(%rsp), %rbx
jne 0x3316b
movq (%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x20(%rsp), %r12
jmp 0x33132
movq 0x8(%rsp), %rax
movq (%rax), %rbx
movl (%r12), %r14d
movl (%r15), %ebp
movl 0x40(%rax), %r15d
testq %rbx, %rbx
jne 0x33496
movq 0x51b86(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x36897(%rip), %rsi     # 0x69d0c
leaq 0x368ae(%rip), %rdx     # 0x69d2a
movl $0x422a, %ecx           # imm = 0x422A
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
movq 0x20(%rsp), %r12
callq 0x13960
testq %r14, %r14
jne 0x334ce
movq 0x51b4e(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x3685f(%rip), %rsi     # 0x69d0c
leaq 0x36876(%rip), %rdx     # 0x69d2a
movl $0x422b, %ecx           # imm = 0x422B
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
movq 0x20(%rsp), %r12
callq 0x13960
testl %ebp, %ebp
je 0x33551
testq %r14, %r14
sete %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
movl 0x68(%rsp), %r10d
jne 0x33582
movswl %r15w, %eax
sarl $0x10, %r15d
imull %r14d, %r15d
addl %eax, %r15d
xorl %eax, %eax
leaq 0x3740d(%rip), %rcx     # 0x6a910
xorl %edx, %edx
cmpl $0x1b, %edx
je 0x33582
cltq
xorl %esi, %esi
cmpq $0x5a, %rsi
je 0x33547
leal (%r15,%rsi), %edi
leaq (%rax,%rsi), %r8
movb (%rcx,%r8), %r8b
cmpb $0x2e, %r8b
sete %r9b
negb %r9b
movslq %edi, %rdi
movb %r9b, (%rbx,%rdi)
cmpb $0x58, %r8b
sete %r8b
negb %r8b
movb %r8b, 0x5b(%rbx,%rdi)
incq %rsi
jmp 0x3350e
incl %edx
addq %r14, %r15
addq %rsi, %rax
jmp 0x33505
movq 0x51a98(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x367aa(%rip), %rsi     # 0x69d0c
leaq 0x367c1(%rip), %rdx     # 0x69d2a
movl $0x422c, %ecx           # imm = 0x422C
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movl 0x68(%rsp), %r10d
movl (%r12), %eax
cmpl $0x1, %r10d
jne 0x3366b
movq 0x10(%rsp), %r12
imull (%r12), %eax
shll $0x2, %eax
movslq %eax, %rdx
movq 0x8(%rsp), %r14
movq 0x28(%r14), %rdi
xorl %esi, %esi
callq *0x30(%r14)
testq %rax, %rax
je 0x33672
movq %rax, %rbx
movq 0x20(%rsp), %rax
movl (%rax), %r15d
movl (%r12), %ebp
movq (%r14), %r14
testq %r14, %r14
jne 0x335fd
movq 0x51a1a(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x3672b(%rip), %rsi     # 0x69d0c
leaq 0x36742(%rip), %rdx     # 0x69d2a
movl $0x4245, %ecx           # imm = 0x4245
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
testl %r15d, %r15d
jne 0x33630
movq 0x519e7(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x366f8(%rip), %rsi     # 0x69d0c
leaq 0x3670f(%rip), %rdx     # 0x69d2a
movl $0x4246, %ecx           # imm = 0x4246
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
testl %ebp, %ebp
movq 0x20(%rsp), %r12
je 0x33694
testl %r15d, %r15d
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0x336c0
imull %r15d, %ebp
xorl %eax, %eax
testl %ebp, %ebp
jle 0x336c0
movzbl (%r14,%rax), %ecx
shll $0x18, %ecx
orl $0xffffff, %ecx         # imm = 0xFFFFFF
movl %ecx, (%rbx,%rax,4)
decl %ebp
incq %rax
jmp 0x3364f
movq 0x8(%rsp), %r14
jmp 0x336d7
movq 0x51977(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x36689(%rip), %rsi     # 0x69d0c
leaq 0x366a0(%rip), %rdx     # 0x69d2a
movl $0x455b, %ecx           # imm = 0x455B
jmp 0x32a38
movq 0x51955(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x36667(%rip), %rsi     # 0x69d0c
leaq 0x3667e(%rip), %rdx     # 0x69d2a
movl $0x4247, %ecx           # imm = 0x4247
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x8(%rsp), %r14
movq (%r14), %rsi
movq 0x28(%r14), %rdi
callq *0x38(%r14)
movq %rbx, (%r14)
movl (%r12), %eax
movq 0x10(%rsp), %rcx
movl %eax, 0x8(%r14)
movl (%rcx), %eax
movl %eax, 0xc(%r14)
leaq 0x178(%r14), %rbx
movq 0x518fc(%rip), %r12     # 0x84ff0
leaq 0x36611(%rip), %r14     # 0x69d0c
leaq 0x36628(%rip), %r15     # 0x69d2a
leaq 0x1df69(%rip), %rbp     # 0x51672
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x33822
movq 0x78(%rbx), %rcx
movq 0x8(%rsp), %rax
movq 0x168(%rax), %rax
movq 0x38(%rcx), %r13
testq %rax, %rax
je 0x337d6
testq %r13, %r13
je 0x337fe
movss 0x20(%rcx), %xmm0
movl 0x40(%rcx), %esi
movups (%r13), %xmm1
movups 0x10(%r13), %xmm2
movaps %xmm2, 0xc0(%rsp)
movaps %xmm1, 0xb0(%rsp)
andq $0x0, 0x60(%rbx)
movaps 0xb0(%rsp), %xmm1
movaps 0xc0(%rsp), %xmm2
movups %xmm1, 0x30(%rbx)
movups %xmm2, 0x40(%rbx)
divss 0x30(%rbx), %xmm0
movss %xmm0, 0x50(%rbx)
movl 0xc(%r13), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x58(%rbx)
andq $0x0, 0x70(%rbx)
movl %esi, 0x68(%rbx)
movq %rbx, %rdi
callq 0x141f0
movq %rax, 0x60(%rbx)
movss 0x30(%rbx), %xmm0
mulss 0x50(%rbx), %xmm0
movss %xmm0, 0x10(%rbx)
leaq 0x1dd71(%rip), %rax     # 0x5152e
movq %rax, 0x18(%rbx)
movq %rbx, 0x8(%rbx)
movq %rbp, 0x20(%rbx)
movq 0x70(%rbx), %rax
movq %rax, 0x28(%rbx)
jmp 0x33709
movq (%r12), %rdi
movq %r14, %rsi
movq %r15, %rdx
movl $0x42b4, %ecx           # imm = 0x42B4
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
testq %r13, %r13
jne 0x33709
movq (%r12), %rdi
movq %r14, %rsi
movq %r15, %rdx
movl $0x42b5, %ecx           # imm = 0x42B5
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
jmp 0x33709
movq 0x8(%rsp), %rbx
movq 0x40(%rbx), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
pushq $0x60
popq %rax
leaq 0x362d6(%rip), %rcx     # 0x69b18
movq 0x10(%rsp), %r8
movq 0x20(%rsp), %rdi
movq 0xd8(%rsp), %rsi
cmpq $0x178, %rax            # imm = 0x178
je 0x338a2
movzwl (%rdi), %edx
movw %dx, -0x10(%rbx,%rax)
movzwl (%r8), %edx
movw %dx, -0xe(%rbx,%rax)
movsd -0x8(%rcx), %xmm1
addps %xmm0, %xmm1
movhps (%rcx), %xmm1           # xmm1 = xmm1[0,1],mem[0,1]
cvttps2dq %xmm1, %xmm1
pshuflw $0xe8, %xmm1, %xmm1     # xmm1 = xmm1[0,2,2,3,4,5,6,7]
pshufhw $0xe8, %xmm1, %xmm1     # xmm1 = xmm1[0,1,2,3,4,6,6,7]
pshufd $0xe8, %xmm1, %xmm1     # xmm1 = xmm1[0,2,2,3]
movq %xmm1, -0xc(%rbx,%rax)
movups (%rcx), %xmm1
movups %xmm1, (%rbx,%rax)
addq $0x28, %rax
addq $0x18, %rcx
jmp 0x33854
movq 0x28(%rbx), %rdi
callq *0x38(%rbx)
movq (%rbx), %rbx
jmp 0x32a8e