// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_color_pick
NK_API nk_bool
nk_color_pick(struct nk_context * ctx, struct nk_colorf *color,
    enum nk_color_format fmt)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_style *config;
    const struct nk_input *in;

    enum nk_widget_layout_states state;
    struct nk_rect bounds;

    NK_ASSERT(ctx);
    NK_ASSERT(color);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    if (!ctx || !ctx->current || !ctx->current->layout || !color)
        return 0;

    win = ctx->current;
    config = &ctx->style;
    layout = win->layout;
    state = nk_widget(&bounds, ctx);
    if (!state) return 0;
    in = (state == NK_WIDGET_ROM || state == NK_WIDGET_DISABLED || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    return nk_do_color_picker(&ctx->last_widget_state, &win->buffer, color, fmt, bounds,
                nk_vec2(0,0), in, config->font);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movl %edx, %r13d
movq %rsi, %r15
movq %rdi, %r12
testq %rdi, %rdi
jne 0x50459
movq 0x36bbc(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x2095e(%rip), %rsi     # 0x70d9c
leaq 0x20975(%rip), %rdx     # 0x70dba
movl $0x71a6, %ecx           # imm = 0x71A6
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %r15, %r15
jne 0x5048a
movq 0x36b8b(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x2092d(%rip), %rsi     # 0x70d9c
leaq 0x20944(%rip), %rdx     # 0x70dba
movl $0x71a7, %ecx           # imm = 0x71A7
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r12), %rbx
testq %rbx, %rbx
jne 0x504cb
movq 0x36b52(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x208f4(%rip), %rsi     # 0x70d9c
leaq 0x2090b(%rip), %rdx     # 0x70dba
movl $0x71a8, %ecx           # imm = 0x71A8
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r12), %rbx
cmpq $0x0, 0xa8(%rbx)
jne 0x50515
movq 0x36b14(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x208b6(%rip), %rsi     # 0x70d9c
leaq 0x208cd(%rip), %rdx     # 0x70dba
xorl %r14d, %r14d
movl $0x71a9, %ecx           # imm = 0x71A9
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r12), %rbx
testq %rbx, %rbx
je 0x510bb
xorl %r14d, %r14d
testq %r15, %r15
je 0x510bb
movq 0xa8(%rbx), %rbp
testq %rbp, %rbp
je 0x510bb
leaq 0x150(%rsp), %rdi
movq %r12, %rsi
callq 0x128e0
movl %eax, %r14d
testl %eax, %eax
je 0x510bb
movl %r13d, 0x1c(%rsp)
xorl %r13d, %r13d
cmpl $0x1, %r14d
jne 0x50562
testb $0x10, 0x5(%rbp)
cmoveq %r12, %r13
movq 0x168(%r12), %rax
testq %rax, %rax
je 0x505c8
movsd 0x150(%rsp), %xmm5
movsd 0x158(%rsp), %xmm4
movss 0x8(%rax), %xmm1
xorps %xmm0, %xmm0
movaps %xmm1, 0xb0(%rsp)
addss %xmm1, %xmm1
xorps %xmm2, %xmm2
addss %xmm1, %xmm2
movsd (%r15), %xmm6
movsd 0x8(%r15), %xmm3
movaps %xmm6, %xmm1
shufps $0x55, %xmm6, %xmm1     # xmm1 = xmm1[1,1],xmm6[1,1]
movaps %xmm1, 0xf0(%rsp)
ucomiss %xmm1, %xmm3
movaps %xmm3, 0xd0(%rsp)
ja 0x505fc
movaps %xmm3, %xmm7
jmp 0x50610
movq 0x36a21(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x207c3(%rip), %rsi     # 0x70d9c
leaq 0x207da(%rip), %rdx     # 0x70dba
xorl %r14d, %r14d
movl $0x717c, %ecx           # imm = 0x717C
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
jmp 0x510bb
movaps %xmm3, %xmm7
shufps $0x11, %xmm6, %xmm7     # xmm7 = xmm7[1,0],xmm6[1,0]
shufps $0xe2, %xmm6, %xmm7     # xmm7 = xmm7[2,0],xmm6[2,3]
movaps %xmm6, %xmm1
unpcklps %xmm3, %xmm1            # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
movaps %xmm1, %xmm6
addps %xmm5, %xmm0
movaps %xmm4, %xmm3
subss %xmm2, %xmm3
addq $0x2598, %r12           # imm = 0x2598
movaps %xmm4, %xmm1
subss %xmm2, %xmm1
movaps %xmm6, %xmm2
shufps $0x55, %xmm6, %xmm2     # xmm2 = xmm2[1,1],xmm6[1,1]
movaps %xmm2, 0xc0(%rsp)
ucomiss %xmm6, %xmm2
movaps %xmm5, 0x20(%rsp)
movaps %xmm6, 0x100(%rsp)
ja 0x5064e
movaps %xmm6, %xmm5
jmp 0x50655
movaps %xmm6, %xmm5
shufps $0xe1, %xmm6, %xmm5     # xmm5 = xmm5[1,0],xmm6[2,3]
movaps %xmm5, 0x80(%rsp)
movaps %xmm0, %xmm2
addss %xmm3, %xmm2
movaps %xmm2, 0x60(%rsp)
movaps %xmm4, %xmm2
shufps $0x55, %xmm4, %xmm2     # xmm2 = xmm2[1,1],xmm4[1,1]
movaps %xmm2, 0x90(%rsp)
movaps %xmm4, 0x50(%rsp)
movaps 0xb0(%rsp), %xmm2
movss %xmm2, %xmm4            # xmm4 = xmm2[0],xmm4[1,2,3]
movaps %xmm4, 0x120(%rsp)
movaps %xmm0, %xmm2
addss %xmm3, %xmm2
movaps %xmm2, (%rsp)
movaps %xmm5, %xmm2
shufps $0x55, %xmm5, %xmm2     # xmm2 = xmm2[1,1],xmm5[1,1]
movaps %xmm3, 0x130(%rsp)
movaps %xmm2, 0x160(%rsp)
minss %xmm7, %xmm2
movaps %xmm5, %xmm3
subss %xmm2, %xmm3
movaps %xmm3, 0x70(%rsp)
movaps %xmm7, 0xe0(%rsp)
movaps %xmm7, %xmm2
shufps $0x55, %xmm7, %xmm2     # xmm2 = xmm2[1,1],xmm7[1,1]
movaps %xmm2, 0x30(%rsp)
movq %r12, %rdi
movaps %xmm1, 0x140(%rsp)
movq %r13, %rsi
movl $0x1, %edx
movaps %xmm0, 0x40(%rsp)
callq 0x5160c
movaps 0x40(%rsp), %xmm2
testl %eax, %eax
je 0x5075e
movaps 0x50(%rsp), %xmm1
movaps 0x130(%rsp), %xmm0
movss %xmm0, %xmm1            # xmm1 = xmm0[0],xmm1[1,2,3]
addps 0x1d0eb(%rip), %xmm1    # 0x6d800
movsd 0x144(%r13), %xmm0
subps %xmm2, %xmm0
divps %xmm1, %xmm0
movaps %xmm0, %xmm1
shufps $0x11, %xmm0, %xmm1     # xmm1 = xmm1[1,0],xmm0[1,0]
movaps 0x1d11e(%rip), %xmm2    # 0x6d850
cmpltps %xmm1, %xmm2
movmskps %xmm2, %eax
movss 0x1d163(%rip), %xmm4    # 0x6d8a4
movaps %xmm4, %xmm2
testb $0x1, %al
jne 0x5074b
xorps %xmm2, %xmm2
movaps %xmm4, %xmm1
testb $0x4, %al
jne 0x50755
movaps %xmm2, %xmm1
testb $0x1, %al
jne 0x50788
movaps %xmm1, %xmm2
jmp 0x5078f
movaps 0x80(%rsp), %xmm0
addss 0x1d152(%rip), %xmm0    # 0x6d8c0
movaps 0x70(%rsp), %xmm1
divss %xmm0, %xmm1
movaps %xmm1, 0xa0(%rsp)
xorl %ebp, %ebp
movaps 0x60(%rsp), %xmm2
jmp 0x507cc
movaps %xmm0, %xmm2
shufps $0x55, %xmm0, %xmm2     # xmm2 = xmm2[1,1],xmm0[1,1]
testb $0x4, %al
jne 0x50796
movaps %xmm2, %xmm1
movaps %xmm4, %xmm5
testb $0xa, %al
jne 0x507a0
xorps %xmm5, %xmm5
testb $0x2, %al
movaps 0x60(%rsp), %xmm2
jne 0x507ac
movaps %xmm5, %xmm0
testb $0x8, %al
jne 0x507b3
movaps %xmm0, %xmm5
movaps %xmm5, 0xa0(%rsp)
subss %xmm1, %xmm4
movaps %xmm4, 0x80(%rsp)
movl $0x1, %ebp
movaps 0xb0(%rsp), %xmm0
addss %xmm2, %xmm0
movaps %xmm0, 0x110(%rsp)
movq %r12, %rdi
movaps (%rsp), %xmm0
movaps 0x120(%rsp), %xmm1
movq %r13, %rsi
movl $0x1, %edx
callq 0x5160c
movaps 0x40(%rsp), %xmm4
movaps %xmm4, %xmm0
shufps $0x55, %xmm4, %xmm0     # xmm0 = xmm0[1,1],xmm4[1,1]
testl %eax, %eax
movaps %xmm0, (%rsp)
je 0x50868
movss 0x148(%r13), %xmm7
subss %xmm0, %xmm7
movss 0x1d08f(%rip), %xmm0    # 0x6d8b4
addss 0x90(%rsp), %xmm0
divss %xmm0, %xmm7
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm7
setbe %al
movss 0x1d061(%rip), %xmm0    # 0x6d8a4
ucomiss %xmm0, %xmm7
seta %cl
ja 0x50853
cmpltss %xmm7, %xmm1
andps %xmm1, %xmm0
orb %al, %cl
movl $0x1, %ebp
je 0x508e8
movaps %xmm0, %xmm7
jmp 0x508e8
movaps 0xf0(%rsp), %xmm2
cmpltss 0xd0(%rsp), %xmm2
movss 0x1d032(%rip), %xmm0    # 0x6d8b4
andps %xmm0, %xmm2
movss 0x1d02b(%rip), %xmm0    # 0x6d8b8
subss %xmm2, %xmm0
movaps 0x100(%rsp), %xmm1
cmpltss 0xc0(%rsp), %xmm1
movaps 0x70(%rsp), %xmm3
mulss 0x1d00c(%rip), %xmm3    # 0x6d8bc
andps %xmm1, %xmm0
andnps %xmm2, %xmm1
orps %xmm0, %xmm1
movaps 0x160(%rsp), %xmm0
subss 0xe0(%rsp), %xmm0
addss 0x1cfee(%rip), %xmm3    # 0x6d8c0
divss %xmm3, %xmm0
addss %xmm1, %xmm0
movaps 0x1cc8f(%rip), %xmm7    # 0x6d570
xorps %xmm0, %xmm7
maxss %xmm0, %xmm7
movaps %xmm4, %xmm1
movaps 0x110(%rsp), %xmm0
movss %xmm0, %xmm1            # xmm1 = xmm0[0],xmm1[1,2,3]
cmpl $0x1, 0x1c(%rsp)
movaps %xmm1, 0xd0(%rsp)
jne 0x509ae
movq %r12, %rdi
movaps %xmm1, %xmm0
movaps 0x120(%rsp), %xmm1
movq %r13, %rsi
movl $0x1, %edx
movaps %xmm7, 0x70(%rsp)
callq 0x5160c
movaps 0x70(%rsp), %xmm7
movaps 0x40(%rsp), %xmm4
movl %ebp, %r14d
testl %eax, %eax
movaps 0x20(%rsp), %xmm5
movaps 0x30(%rsp), %xmm3
je 0x509bb
movss 0x148(%r13), %xmm0
subss (%rsp), %xmm0
movss 0x1cf59(%rip), %xmm1    # 0x6d8b4
addss 0x90(%rsp), %xmm1
divss %xmm1, %xmm0
xorps %xmm2, %xmm2
ucomiss %xmm2, %xmm0
movss 0x1cf2e(%rip), %xmm3    # 0x6d8a4
movaps %xmm3, %xmm1
cmpltss %xmm0, %xmm1
cmpltss %xmm0, %xmm2
andps %xmm3, %xmm2
movaps %xmm1, %xmm6
andnps %xmm2, %xmm6
andps %xmm3, %xmm1
orps %xmm6, %xmm1
movaps %xmm0, %xmm2
ja 0x5099a
movaps %xmm1, %xmm2
ucomiss %xmm3, %xmm0
ja 0x509a2
movaps %xmm2, %xmm1
subss %xmm1, %xmm3
movl $0x1, %r14d
jmp 0x509bb
movl %ebp, %r14d
movaps 0x20(%rsp), %xmm5
movaps 0x30(%rsp), %xmm3
movl (%r12), %eax
andl $0x2, %eax
orl $0x4, %eax
movl %eax, (%r12)
testl %ebp, %ebp
je 0x50a0d
movaps %xmm7, %xmm0
movaps 0xa0(%rsp), %xmm1
movaps 0x80(%rsp), %xmm2
movaps %xmm3, 0x30(%rsp)
callq 0x13400
movaps 0x30(%rsp), %xmm3
movaps 0x20(%rsp), %xmm5
movaps 0x40(%rsp), %xmm4
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movups %xmm0, (%r15)
movl $0x22, (%r12)
movl $0x22, %eax
testl %r14d, %r14d
je 0x50a25
movss %xmm3, 0xc(%r15)
movl $0x22, (%r12)
movl $0x22, %eax
testq %r13, %r13
je 0x50af9
movss 0x144(%r13), %xmm1
ucomiss %xmm5, %xmm1
movaps 0x50(%rsp), %xmm0
addss %xmm4, %xmm0
jb 0x50a7f
ucomiss %xmm1, %xmm0
jbe 0x50a7f
movss 0x148(%r13), %xmm1
movaps %xmm5, %xmm2
shufps $0x55, %xmm5, %xmm2     # xmm2 = xmm2[1,1],xmm5[1,1]
ucomiss %xmm2, %xmm1
jb 0x50a7f
movaps 0x50(%rsp), %xmm2
addps %xmm4, %xmm2
shufps $0x55, %xmm2, %xmm2     # xmm2 = xmm2[1,1,1,1]
ucomiss %xmm1, %xmm2
jbe 0x50a7f
movl $0x12, (%r12)
movl $0x12, %eax
jmp 0x50a8e
testb $0x10, %al
jne 0x50a8e
movss 0x14c(%r13), %xmm1
jmp 0x50ac7
movss 0x14c(%r13), %xmm1
ucomiss %xmm5, %xmm1
jb 0x50afd
ucomiss %xmm1, %xmm0
jbe 0x50afd
movss 0x150(%r13), %xmm2
movaps %xmm5, %xmm3
shufps $0x55, %xmm5, %xmm3     # xmm3 = xmm3[1,1],xmm5[1,1]
ucomiss %xmm3, %xmm2
jb 0x50afd
movaps 0x50(%rsp), %xmm3
addps %xmm4, %xmm3
shufps $0x55, %xmm3, %xmm3     # xmm3 = xmm3[1,1,1,1]
ucomiss %xmm2, %xmm3
jbe 0x50afd
ucomiss %xmm5, %xmm1
jb 0x50b04
ucomiss %xmm1, %xmm0
jbe 0x50b04
movss 0x150(%r13), %xmm0
shufps $0x55, %xmm5, %xmm5     # xmm5 = xmm5[1,1,1,1]
ucomiss %xmm5, %xmm0
jb 0x50b04
movaps 0x50(%rsp), %xmm1
addps %xmm4, %xmm1
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
ucomiss %xmm0, %xmm1
jbe 0x50b04
orl $0x40, %eax
jmp 0x50b00
testb $0x10, %al
je 0x50b04
orl $0x8, %eax
movl %eax, (%r12)
movsd (%r15), %xmm3
movsd 0x8(%r15), %xmm2
movaps %xmm3, %xmm0
shufps $0x55, %xmm3, %xmm0     # xmm0 = xmm0[1,1],xmm3[1,1]
ucomiss %xmm0, %xmm2
movaps %xmm0, %xmm4
cmpltss %xmm2, %xmm4
movss 0x1cd8b(%rip), %xmm1    # 0x6d8b4
andps %xmm1, %xmm4
ja 0x50b33
movaps %xmm2, %xmm0
jmp 0x50b36
unpcklps %xmm2, %xmm3            # xmm3 = xmm3[0],xmm2[0],xmm3[1],xmm2[1]
movss 0x1cd7a(%rip), %xmm1    # 0x6d8b8
movaps %xmm2, 0xc0(%rsp)
movaps %xmm3, %xmm2
shufps $0x55, %xmm3, %xmm2     # xmm2 = xmm2[1,1],xmm3[1,1]
movaps %xmm2, 0xf0(%rsp)
ucomiss %xmm3, %xmm2
movaps %xmm3, 0xa0(%rsp)
ja 0x50b67
movaps %xmm3, %xmm2
jmp 0x50b6e
movaps %xmm3, %xmm2
shufps $0xe1, %xmm3, %xmm2     # xmm2 = xmm2[1,0],xmm3[2,3]
addq $0x68, %rbx
movaps %xmm4, 0x100(%rsp)
subss %xmm4, %xmm1
movaps %xmm1, 0x70(%rsp)
movaps %xmm2, %xmm3
shufps $0x55, %xmm2, %xmm3     # xmm3 = xmm3[1,1],xmm2[1,1]
movaps %xmm3, %xmm1
minss %xmm0, %xmm1
movaps %xmm2, 0x80(%rsp)
subss %xmm1, %xmm2
movss 0x1cd17(%rip), %xmm1    # 0x6d8bc
movaps %xmm2, 0x20(%rsp)
mulss %xmm1, %xmm2
addss 0x1cd0a(%rip), %xmm2    # 0x6d8c0
subss %xmm0, %xmm3
divss %xmm2, %xmm3
movaps %xmm3, 0xe0(%rsp)
movaps 0x90(%rsp), %xmm0
divss %xmm1, %xmm0
movss 0x1ccc6(%rip), %xmm1    # 0x6d8a0
movss %xmm0, 0x30(%rsp)
addss %xmm0, %xmm1
movaps 0xb0(%rsp), %xmm0
movlhps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
shufps $0xe2, %xmm0, %xmm1     # xmm1 = xmm1[2,0],xmm0[2,3]
movaps %xmm1, 0x50(%rsp)
movl $0xff0000ff, %edx       # imm = 0xFF0000FF
xorl %r12d, %r12d
leaq 0x20179(%rip), %r13     # 0x70d80
xorps %xmm0, %xmm0
cvtsi2ss %r12d, %xmm0
mulss 0x30(%rsp), %xmm0
addss (%rsp), %xmm0
addss 0x1cc7e(%rip), %xmm0    # 0x6d8a0
movl 0x4(%r13,%r12,4), %r15d
incq %r12
movaps 0x60(%rsp), %xmm1
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
shufps $0xe2, %xmm1, %xmm0     # xmm0 = xmm0[2,0],xmm1[2,3]
movq %rbx, %rdi
movaps 0x50(%rsp), %xmm1
movl %edx, %esi
movl %r15d, %ecx
movl %r15d, %r8d
callq 0x13680
movl %r15d, %edx
cmpq $0x6, %r12
jne 0x50c07
movaps 0xa0(%rsp), %xmm1
cmpltss 0xf0(%rsp), %xmm1
movaps 0x70(%rsp), %xmm0
andps %xmm1, %xmm0
andnps 0x100(%rsp), %xmm1
orps %xmm0, %xmm1
addss 0xe0(%rsp), %xmm1
movaps 0x1c8e7(%rip), %xmm0    # 0x6d570
xorps %xmm1, %xmm0
maxss %xmm1, %xmm0
movaps %xmm0, 0x30(%rsp)
movl $0x20, %edx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x27250
movaps 0x30(%rsp), %xmm5
testq %rax, %rax
je 0x50d11
movss 0x1cc53(%rip), %xmm0    # 0x6d90c
addss 0x110(%rsp), %xmm0
movaps 0x60(%rsp), %xmm2
addss 0x1cbe5(%rip), %xmm2    # 0x6d8b4
movaps %xmm5, %xmm1
mulss 0x90(%rsp), %xmm1
addss (%rsp), %xmm1
addss 0x1cbb8(%rip), %xmm1    # 0x6d8a0
cvttss2si %xmm1, %ecx
cvttss2si %xmm2, %edx
movw $0x1, 0x10(%rax)
movw %dx, 0x12(%rax)
cvttss2si %xmm0, %edx
movw %cx, 0x14(%rax)
movw %dx, 0x16(%rax)
movw %cx, 0x18(%rax)
movl $0xffffffff, 0x1a(%rax) # imm = 0xFFFFFFFF
cmpl $0x1, 0x1c(%rsp)
jne 0x50df2
movq %rbx, %rdi
movaps 0xd0(%rsp), %xmm0
movaps 0x120(%rsp), %xmm1
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0xff000000, %ecx       # imm = 0xFF000000
movl $0xff000000, %r8d       # imm = 0xFF000000
callq 0x13680
movl $0x20, %edx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x27250
movaps 0x30(%rsp), %xmm5
testq %rax, %rax
je 0x50df2
movaps 0xb0(%rsp), %xmm3
movaps 0x110(%rsp), %xmm4
addss %xmm4, %xmm3
addss 0x1cb87(%rip), %xmm3    # 0x6d90c
addss 0x1cb27(%rip), %xmm4    # 0x6d8b4
movaps 0xc0(%rsp), %xmm2
shufps $0x55, %xmm2, %xmm2     # xmm2 = xmm2[1,1,1,1]
movss 0x1cb03(%rip), %xmm0    # 0x6d8a4
movaps %xmm0, %xmm1
minss %xmm2, %xmm1
xorps %xmm2, %xmm2
maxss %xmm2, %xmm1
subss %xmm1, %xmm0
mulss 0x90(%rsp), %xmm0
addss (%rsp), %xmm0
addss 0x1cad7(%rip), %xmm0    # 0x6d8a0
cvttss2si %xmm0, %ecx
cvttss2si %xmm4, %edx
movw $0x1, 0x10(%rax)
movw %dx, 0x12(%rax)
cvttss2si %xmm3, %edx
movw %cx, 0x14(%rax)
movw %dx, 0x16(%rax)
movw %cx, 0x18(%rax)
movl $0xffffffff, 0x1a(%rax) # imm = 0xFFFFFFFF
divss 0x1cab2(%rip), %xmm5    # 0x6d8ac
cvttss2si %xmm5, %eax
cvttps2dq %xmm5, %xmm0
cvtdq2ps %xmm0, %xmm0
subss %xmm0, %xmm5
movss 0x1ca93(%rip), %xmm3    # 0x6d8a4
movaps %xmm3, %xmm6
subss %xmm5, %xmm6
movaps %xmm3, %xmm4
subss %xmm6, %xmm4
xorps %xmm2, %xmm2
decl %eax
cmpl $0x4, %eax
ja 0x50e81
leaq 0x1cca4(%rip), %rcx     # 0x6dad4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movss 0x1ca63(%rip), %xmm1    # 0x6d8a4
movaps %xmm6, %xmm0
jmp 0x50e87
xorps %xmm1, %xmm1
movaps %xmm3, %xmm0
movaps %xmm6, %xmm2
jmp 0x50e87
movss 0x1ca4b(%rip), %xmm2    # 0x6d8a4
xorps %xmm0, %xmm0
movaps %xmm6, %xmm1
jmp 0x50e87
movss 0x1ca3b(%rip), %xmm2    # 0x6d8a4
xorps %xmm1, %xmm1
movaps %xmm4, %xmm0
jmp 0x50e87
movss 0x1ca2b(%rip), %xmm1    # 0x6d8a4
xorps %xmm0, %xmm0
movaps %xmm4, %xmm2
jmp 0x50e87
movaps %xmm3, %xmm0
movaps %xmm4, %xmm1
movss 0x1ca31(%rip), %xmm4    # 0x6d8c0
addss 0x80(%rsp), %xmm4
movaps 0x20(%rsp), %xmm5
divss %xmm4, %xmm5
movaps %xmm5, 0x20(%rsp)
callq 0x131e0
movq %rbx, %rdi
movaps 0x40(%rsp), %xmm0
movaps 0x140(%rsp), %xmm1
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl %eax, %edx
movl %eax, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x13680
movq %rbx, %rdi
movaps 0x40(%rsp), %xmm0
movaps 0x140(%rsp), %xmm1
xorl %esi, %esi
xorl %edx, %edx
movl $0xff000000, %ecx       # imm = 0xFF000000
movl $0xff000000, %r8d       # imm = 0xFF000000
callq 0x13680
movaps 0x20(%rsp), %xmm0
mulss 0x130(%rsp), %xmm0
addss 0x40(%rsp), %xmm0
movaps %xmm0, 0x20(%rsp)
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movss 0x1c984(%rip), %xmm0    # 0x6d8a4
subss 0x80(%rsp), %xmm0
mulss 0x90(%rsp), %xmm0
addss (%rsp), %xmm0
cvttss2si %xmm0, %ebp
cvttps2dq %xmm0, %xmm0
movaps %xmm0, (%rsp)
movl $0x20, %edx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x27250
movaps 0x60(%rsp), %xmm2
testq %rax, %rax
je 0x50f9c
movss 0x1c9a1(%rip), %xmm0    # 0x6d908
addss %xmm2, %xmm0
movss 0x1c9d1(%rip), %xmm1    # 0x6d944
addss %xmm2, %xmm1
cvttss2si %xmm1, %ecx
movw $0x1, 0x10(%rax)
movw %cx, 0x12(%rax)
cvttss2si %xmm0, %ecx
movw %bp, 0x14(%rax)
movw %cx, 0x16(%rax)
movw %bp, 0x18(%rax)
movl $0xffffffff, 0x1a(%rax) # imm = 0xFFFFFFFF
cvtdq2ps (%rsp), %xmm0
movaps %xmm0, (%rsp)
movl $0x20, %edx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x27250
testq %rax, %rax
je 0x51001
movss 0x1c921(%rip), %xmm0    # 0x6d8e4
movaps 0x60(%rsp), %xmm1
addss %xmm1, %xmm0
addss 0x1c974(%rip), %xmm1    # 0x6d948
addss 0x1c8c8(%rip), %xmm1    # 0x6d8a4
cvttss2si %xmm1, %ecx
movw $0x1, 0x10(%rax)
movw %cx, 0x12(%rax)
cvttss2si %xmm0, %ecx
movw %bp, 0x14(%rax)
movw %cx, 0x16(%rax)
movw %bp, 0x18(%rax)
movl $0xffffffff, 0x1a(%rax) # imm = 0xFFFFFFFF
cvttss2si 0x20(%rsp), %ebp
movl $0x20, %edx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x27250
testq %rax, %rax
je 0x51067
movss 0x1c8be(%rip), %xmm0    # 0x6d8e4
movaps (%rsp), %xmm2
addss %xmm2, %xmm0
movss 0x1c912(%rip), %xmm1    # 0x6d948
addss %xmm2, %xmm1
addss 0x1c862(%rip), %xmm1    # 0x6d8a4
movw $0x1, 0x10(%rax)
movw %bp, 0x12(%rax)
cvttss2si %xmm1, %ecx
movw %cx, 0x14(%rax)
movw %bp, 0x16(%rax)
cvttss2si %xmm0, %ecx
movw %cx, 0x18(%rax)
movl $0xffffffff, 0x1a(%rax) # imm = 0xFFFFFFFF
movl $0x20, %edx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x27250
testq %rax, %rax
je 0x510bb
movss 0x1c882(%rip), %xmm0    # 0x6d908
movaps (%rsp), %xmm1
addss %xmm1, %xmm0
addss 0x1c8ae(%rip), %xmm1    # 0x6d944
movw $0x1, 0x10(%rax)
movw %bp, 0x12(%rax)
cvttss2si %xmm1, %ecx
movw %cx, 0x14(%rax)
movw %bp, 0x16(%rax)
cvttss2si %xmm0, %ecx
movw %cx, 0x18(%rax)
movl $0xffffffff, 0x1a(%rax) # imm = 0xFFFFFFFF
movl %r14d, %eax
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq