// File: /workspace/github_c_makefile_star2_O2/space222[P]silo/./nuklear.h
// Function: nk_panel_begin(nk_context*, char const*, nk_panel_type)
NK_LIB int
nk_panel_begin(struct nk_context *ctx, const char *title, enum nk_panel_type panel_type)
{
    struct nk_input *in;
    struct nk_window *win;
    struct nk_panel *layout;
    struct nk_command_buffer *out;
    const struct nk_style *style;
    const struct nk_user_font *font;

    struct nk_vec2 scrollbar_size;
    struct nk_vec2 panel_padding;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    if (!ctx || !ctx->current || !ctx->current->layout) return 0;
    nk_zero(ctx->current->layout, sizeof(*ctx->current->layout));
    if ((ctx->current->flags & NK_WINDOW_HIDDEN) || (ctx->current->flags & NK_WINDOW_CLOSED)) {
        nk_zero(ctx->current->layout, sizeof(struct nk_panel));
        ctx->current->layout->type = panel_type;
        return 0;
    }
    /* pull state into local stack */
    style = &ctx->style;
    font = style->font;
    win = ctx->current;
    layout = win->layout;
    out = &win->buffer;
    in = (win->flags & NK_WINDOW_NO_INPUT) ? 0: &ctx->input;
#ifdef NK_INCLUDE_COMMAND_USERDATA
    win->buffer.userdata = ctx->userdata;
#endif
    /* pull style configuration into local stack */
    scrollbar_size = style->window.scrollbar_size;
    panel_padding = nk_panel_get_padding(style, panel_type);

    /* window movement */
    if ((win->flags & NK_WINDOW_MOVABLE) && !(win->flags & NK_WINDOW_ROM)) {
        int left_mouse_down;
        int left_mouse_clicked;
        int left_mouse_click_in_cursor;

        /* calculate draggable window space */
        struct nk_rect header;
        header.x = win->bounds.x;
        header.y = win->bounds.y;
        header.w = win->bounds.w;
        if (nk_panel_has_header(win->flags, title)) {
            header.h = font->height + 2.0f * style->window.header.padding.y;
            header.h += 2.0f * style->window.header.label_padding.y;
        } else header.h = panel_padding.y;

        /* window movement by dragging */
        left_mouse_down = in->mouse.buttons[NK_BUTTON_LEFT].down;
        left_mouse_clicked = (int)in->mouse.buttons[NK_BUTTON_LEFT].clicked;
        left_mouse_click_in_cursor = nk_input_has_mouse_click_down_in_rect(in,
            NK_BUTTON_LEFT, header, nk_true);
        if (left_mouse_down && left_mouse_click_in_cursor && !left_mouse_clicked) {
            win->bounds.x = win->bounds.x + in->mouse.delta.x;
            win->bounds.y = win->bounds.y + in->mouse.delta.y;
            in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.x += in->mouse.delta.x;
            in->mouse.buttons[NK_BUTTON_LEFT].clicked_pos.y += in->mouse.delta.y;
            ctx->style.cursor_active = ctx->style.cursors[NK_CURSOR_MOVE];
        }
    }

    /* setup panel */
    layout->type = panel_type;
    layout->flags = win->flags;
    layout->bounds = win->bounds;
    layout->bounds.x += panel_padding.x;
    layout->bounds.w -= 2*panel_padding.x;
    if (win->flags & NK_WINDOW_BORDER) {
        layout->border = nk_panel_get_border(style, win->flags, panel_type);
        layout->bounds = nk_shrink_rect(layout->bounds, layout->border);
    } else layout->border = 0;
    layout->at_y = layout->bounds.y;
    layout->at_x = layout->bounds.x;
    layout->max_x = 0;
    layout->header_height = 0;
    layout->footer_height = 0;
    nk_layout_reset_min_row_height(ctx);
    layout->row.index = 0;
    layout->row.columns = 0;
    layout->row.ratio = 0;
    layout->row.item_width = 0;
    layout->row.tree_depth = 0;
    layout->row.height = panel_padding.y;
    layout->has_scrolling = nk_true;
    if (!(win->flags & NK_WINDOW_NO_SCROLLBAR))
        layout->bounds.w -= scrollbar_size.x;
    if (!nk_panel_is_nonblock(panel_type)) {
        layout->footer_height = 0;
        if (!(win->flags & NK_WINDOW_NO_SCROLLBAR) || win->flags & NK_WINDOW_SCALABLE)
            layout->footer_height = scrollbar_size.y;
        layout->bounds.h -= layout->footer_height;
    }

    /* panel header */
    if (nk_panel_has_header(win->flags, title))
    {
        struct nk_text text;
        struct nk_rect header;
        const struct nk_style_item *background = 0;

        /* calculate header bounds */
        header.x = win->bounds.x;
        header.y = win->bounds.y;
        header.w = win->bounds.w;
        header.h = font->height + 2.0f * style->window.header.padding.y;
        header.h += (2.0f * style->window.header.label_padding.y);

        /* shrink panel by header */
        layout->header_height = header.h;
        layout->bounds.y += header.h;
        layout->bounds.h -= header.h;
        layout->at_y += header.h;

        /* select correct header background and text color */
        if (ctx->active == win) {
            background = &style->window.header.active;
            text.text = style->window.header.label_active;
        } else if (nk_input_is_mouse_hovering_rect(&ctx->input, header)) {
            background = &style->window.header.hover;
            text.text = style->window.header.label_hover;
        } else {
            background = &style->window.header.normal;
            text.text = style->window.header.label_normal;
        }

        /* draw header background */
        header.h += 1.0f;
        if (background->type == NK_STYLE_ITEM_IMAGE) {
            text.background = nk_rgba(0,0,0,0);
            nk_draw_image(&win->buffer, header, &background->data.image, nk_white);
        } else {
            text.background = background->data.color;
            nk_fill_rect(out, header, 0, background->data.color);
        }

        /* window close button */
        {struct nk_rect button;
        button.y = header.y + style->window.header.padding.y;
        button.h = header.h - 2 * style->window.header.padding.y;
        button.w = button.h;
        if (win->flags & NK_WINDOW_CLOSABLE) {
            nk_flags ws = 0;
            if (style->window.header.align == NK_HEADER_RIGHT) {
                button.x = (header.w + header.x) - (button.w + style->window.header.padding.x);
                header.w -= button.w + style->window.header.spacing.x + style->window.header.padding.x;
            } else {
                button.x = header.x + style->window.header.padding.x;
                header.x += button.w + style->window.header.spacing.x + style->window.header.padding.x;
            }

            if (nk_do_button_symbol(&ws, &win->buffer, button,
                style->window.header.close_symbol, NK_BUTTON_DEFAULT,
                &style->window.header.close_button, in, style->font) && !(win->flags & NK_WINDOW_ROM))
            {
                layout->flags |= NK_WINDOW_HIDDEN;
                layout->flags &= (nk_flags)~NK_WINDOW_MINIMIZED;
            }
        }

        /* window minimize button */
        if (win->flags & NK_WINDOW_MINIMIZABLE) {
            nk_flags ws = 0;
            if (style->window.header.align == NK_HEADER_RIGHT) {
                button.x = (header.w + header.x) - button.w;
                if (!(win->flags & NK_WINDOW_CLOSABLE)) {
                    button.x -= style->window.header.padding.x;
                    header.w -= style->window.header.padding.x;
                }
                header.w -= button.w + style->window.header.spacing.x;
            } else {
                button.x = header.x;
                header.x += button.w + style->window.header.spacing.x + style->window.header.padding.x;
            }
            if (nk_do_button_symbol(&ws, &win->buffer, button, (layout->flags & NK_WINDOW_MINIMIZED)?
                style->window.header.maximize_symbol: style->window.header.minimize_symbol,
                NK_BUTTON_DEFAULT, &style->window.header.minimize_button, in, style->font) && !(win->flags & NK_WINDOW_ROM))
                layout->flags = (layout->flags & NK_WINDOW_MINIMIZED) ?
                    layout->flags & (nk_flags)~NK_WINDOW_MINIMIZED:
                    layout->flags | NK_WINDOW_MINIMIZED;
        }}

        {/* window header title */
        int text_len = nk_strlen(title);
        struct nk_rect label = {0,0,0,0};
        float t = font->width(font->userdata, font->height, title, text_len);
        text.padding = nk_vec2(0,0);

        label.x = header.x + style->window.header.padding.x;
        label.x += style->window.header.label_padding.x;
        label.y = header.y + style->window.header.label_padding.y;
        label.h = font->height + 2 * style->window.header.label_padding.y;
        label.w = t + 2 * style->window.header.spacing.x;
        label.w = NK_CLAMP(0, label.w, header.x + header.w - label.x);
        nk_widget_text(out, label,(const char*)title, text_len, &text, NK_TEXT_LEFT, font);}
    }

    /* draw window background */
    if (!(layout->flags & NK_WINDOW_MINIMIZED) && !(layout->flags & NK_WINDOW_DYNAMIC)) {
        struct nk_rect body;
        body.x = win->bounds.x;
        body.w = win->bounds.w;
        body.y = (win->bounds.y + layout->header_height);
        body.h = (win->bounds.h - layout->header_height);
        if (style->window.fixed_background.type == NK_STYLE_ITEM_IMAGE)
            nk_draw_image(out, body, &style->window.fixed_background.data.image, nk_white);
        else nk_fill_rect(out, body, 0, style->window.fixed_background.data.color);
    }

    /* set clipping rectangle */
    {struct nk_rect clip;
    layout->clip = layout->bounds;
    nk_unify(&clip, &win->buffer.clip, layout->clip.x, layout->clip.y,
        layout->clip.x + layout->clip.w, layout->clip.y + layout->clip.h);
    nk_push_scissor(out, clip);
    layout->clip = clip;}
    return !(layout->flags & NK_WINDOW_HIDDEN) && !(layout->flags & NK_WINDOW_MINIMIZED);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
testq %rdi, %rdi
je 0xb0fb
movq %rdi, %r14
movq 0x3fe8(%rdi), %rax
testq %rax, %rax
je 0xb11a
movq 0xa8(%rax), %rdi
testq %rdi, %rdi
je 0xb139
movl %edx, %ebp
movq %rsi, %r13
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x4e90
movq 0x3fe8(%r14), %rbx
movl 0x48(%rbx), %r15d
testw $0x6000, %r15w          # imm = 0x6000
je 0xa958
movq 0xa8(%rbx), %rdi
movl $0x1c0, %esi            # imm = 0x1C0
callq 0x4e90
movq 0x3fe8(%r14), %rax
movq 0xa8(%rax), %rax
movl %ebp, (%rax)
xorl %eax, %eax
jmp 0xb0e9
leaq 0x168(%r14), %rdi
movq 0x168(%r14), %rax
movq %rax, 0x58(%rsp)
movq 0xa8(%rbx), %r12
xorl %eax, %eax
btl $0xa, %r15d
cmovaeq %r14, %rax
movq %rax, 0x38(%rsp)
movss 0x1e94(%r14), %xmm0
movss %xmm0, 0x40(%rsp)
movss 0x1e98(%r14), %xmm0
movss %xmm0, 0x20(%rsp)
movl %ebp, %esi
callq 0xe40c
movaps %xmm0, %xmm2
movl %r15d, %eax
andl $0x1002, %eax           # imm = 0x1002
cmpl $0x2, %eax
movaps %xmm0, 0x10(%rsp)
jne 0xaa91
movsd 0x4c(%rbx), %xmm0
movss 0x54(%rbx), %xmm3
testq %r13, %r13
movq %r13, 0x88(%rsp)
je 0xaa0f
movl %r15d, %eax
andl $0x58, %eax
je 0xaa0f
movss 0x1df0(%r14), %xmm1
movss 0x1df8(%r14), %xmm2
addss %xmm1, %xmm1
movq 0x58(%rsp), %rax
addss 0x8(%rax), %xmm1
addss %xmm2, %xmm2
addss %xmm1, %xmm2
unpcklps %xmm2, %xmm3            # xmm3 = xmm3[0],xmm2[0],xmm3[1],xmm2[1]
movaps %xmm3, %xmm1
jmp 0xaa16
movaps %xmm2, %xmm1
movss %xmm3, %xmm1            # xmm1 = xmm3[0],xmm1[1,2,3]
movq 0x38(%rsp), %rdi
movl 0x108(%rdi), %eax
movl %eax, 0x50(%rsp)
movl 0x104(%rdi), %r13d
pushq $0x1
popq %rdx
xorl %esi, %esi
movaps %xmm0, 0x70(%rsp)
callq 0x7bdf
testl %r13d, %r13d
movq 0x88(%rsp), %r13
movaps 0x10(%rsp), %xmm2
je 0xaa91
testl %eax, %eax
je 0xaa91
cmpl $0x0, 0x50(%rsp)
jne 0xaa91
movq 0x38(%rsp), %rax
movsd 0x154(%rax), %xmm0
movaps 0x70(%rsp), %xmm1
addps %xmm0, %xmm1
movlps %xmm1, 0x4c(%rbx)
movsd 0x10c(%rax), %xmm1
addps %xmm0, %xmm1
movlps %xmm1, 0x10c(%rax)
movq 0x180(%r14), %rax
movq %rax, 0x1a8(%r14)
movl %ebp, (%r12)
movl %r15d, 0x4(%r12)
movups 0x4c(%rbx), %xmm0
movups %xmm0, 0x8(%r12)
movss 0x8(%r12), %xmm0
addss %xmm2, %xmm0
movss %xmm0, 0x8(%r12)
movss 0x10(%r12), %xmm1
addss %xmm2, %xmm2
subss %xmm2, %xmm1
movss %xmm1, 0x10(%r12)
testb $0x1, 0x48(%rbx)
jne 0xaae4
andl $0x0, 0x3c(%r12)
movss 0xc(%r12), %xmm1
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
jmp 0xab4f
cmpl $0x40, %ebp
je 0xab1e
cmpl $0x4, %ebp
je 0xab09
cmpl $0x10, %ebp
je 0xab17
cmpl $0x20, %ebp
je 0xab10
movl $0x1e68, %eax           # imm = 0x1E68
cmpl $0x2, %ebp
jne 0xab23
movl $0x1e78, %eax           # imm = 0x1E78
jmp 0xab23
movl $0x1e80, %eax           # imm = 0x1E80
jmp 0xab23
movl $0x1e6c, %eax           # imm = 0x1E6C
jmp 0xab23
movl $0x1e70, %eax           # imm = 0x1E70
jmp 0xab23
movl $0x1e74, %eax           # imm = 0x1E74
movss (%r14,%rax), %xmm2
movss %xmm2, 0x3c(%r12)
movsd 0x8(%r12), %xmm0
movsd 0x10(%r12), %xmm1
callq 0x19a20
movaps %xmm0, %xmm2
movlhps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0]
movups %xmm2, 0x8(%r12)
movq %xmm0, %xmm0            # xmm0 = xmm0[0],zero
movdqu %xmm0, 0x28(%r12)
andl $0x0, 0x38(%r12)
movq %r14, %rdi
callq 0x90be
andl $0x0, 0x74(%r12)
andl $0x0, 0x80(%r12)
andq $0x0, 0x88(%r12)
andl $0x0, 0x90(%r12)
andl $0x0, 0xb0(%r12)
movaps 0x10(%rsp), %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movss %xmm0, 0x78(%r12)
movl $0x1, 0x40(%r12)
movl 0x48(%rbx), %eax
testb $0x20, %al
jne 0xabc6
movss 0x10(%r12), %xmm0
subss 0x40(%rsp), %xmm0
movss %xmm0, 0x10(%r12)
testb $-0x10, %bpl
jne 0xabf9
andl $0x24, %eax
xorps %xmm0, %xmm0
cmpl $0x20, %eax
je 0xabdd
movss 0x20(%rsp), %xmm0
movss %xmm0, 0x34(%r12)
movss 0x14(%r12), %xmm1
subss %xmm0, %xmm1
movss %xmm1, 0x14(%r12)
movl 0x48(%rbx), %eax
leaq 0x68(%rbx), %rbp
testq %r13, %r13
je 0xb013
movl %eax, %ecx
andl $0x58, %ecx
je 0xb013
andl $0x2000, %eax           # imm = 0x2000
jne 0xb013
movsd 0x4c(%rbx), %xmm0
movss 0x54(%rbx), %xmm3
movss 0x1df0(%r14), %xmm1
movss 0x1df8(%r14), %xmm2
addss %xmm1, %xmm1
movq 0x58(%rsp), %rax
addss 0x8(%rax), %xmm1
addss %xmm2, %xmm2
addss %xmm1, %xmm2
movaps %xmm3, 0x70(%rsp)
unpcklps %xmm2, %xmm3            # xmm3 = xmm3[0],xmm2[0],xmm3[1],xmm2[1]
movss %xmm2, 0x38(%r12)
movss 0xc(%r12), %xmm1
addss %xmm2, %xmm1
movss %xmm1, 0xc(%r12)
movss 0x14(%r12), %xmm1
subss %xmm2, %xmm1
movss %xmm1, 0x14(%r12)
movss 0x2c(%r12), %xmm1
addss %xmm2, %xmm1
movss %xmm1, 0x2c(%r12)
cmpq %rbx, 0x3fe0(%r14)
movaps %xmm0, 0x10(%rsp)
je 0xacca
movaps %xmm2, 0x40(%rsp)
movq %r14, %rdi
movaps %xmm3, 0x20(%rsp)
movaps %xmm3, %xmm1
callq 0x7cd8
testl %eax, %eax
je 0xacde
leaq 0x1c30(%r14), %rsi
movl 0x1de0(%r14), %eax
jmp 0xacec
leaq 0x1c50(%r14), %rsi
movl 0x1de4(%r14), %eax
movl %eax, 0x6c(%rsp)
jmp 0xacff
leaq 0x1c10(%r14), %rsi
movl 0x1ddc(%r14), %eax
movl %eax, 0x6c(%rsp)
movaps 0x10(%rsp), %xmm0
movaps 0x40(%rsp), %xmm2
movaps 0x20(%rsp), %xmm3
addss 0x1531d(%rip), %xmm2    # 0x20024
movaps %xmm2, 0x40(%rsp)
movaps %xmm2, %xmm1
movlhps %xmm3, %xmm1            # xmm1 = xmm1[0],xmm3[0]
shufps $0xe2, %xmm3, %xmm1     # xmm1 = xmm1[2,0],xmm3[2,3]
cmpl $0x1, (%rsi)
movaps %xmm1, 0x20(%rsp)
jne 0xad36
andl $0x0, 0x68(%rsp)
addq $0x8, %rsi
pushq $-0x1
popq %rdx
movq %rbp, %rdi
callq 0x72e2
jmp 0xad48
movl 0x8(%rsi), %esi
movl %esi, 0x68(%rsp)
xorps %xmm2, %xmm2
movq %rbp, %rdi
callq 0x6858
movss 0x1df0(%r14), %xmm0
movaps 0x10(%rsp), %xmm3
movaps %xmm3, %xmm5
shufps $0x55, %xmm3, %xmm5     # xmm5 = xmm5[1,1],xmm3[1,1]
addss %xmm0, %xmm5
shufps $0x0, %xmm5, %xmm5      # xmm5 = xmm5[0,0,0,0]
addss %xmm0, %xmm0
movaps 0x40(%rsp), %xmm4
subss %xmm0, %xmm4
movaps %xmm4, %xmm1
shufps $0x0, %xmm4, %xmm1      # xmm1 = xmm1[0,0],xmm4[0,0]
movl 0x48(%rbx), %eax
testb $0x8, %al
je 0xae8e
andl $0x0, 0xc(%rsp)
cmpl $0x1, 0x1de8(%r14)
movaps %xmm4, 0x40(%rsp)
jne 0xade1
movaps %xmm3, %xmm0
movaps 0x70(%rsp), %xmm6
addss %xmm6, %xmm0
movss 0x1dec(%r14), %xmm3
movaps %xmm4, %xmm2
addss %xmm3, %xmm2
subss %xmm2, %xmm0
movss %xmm0, %xmm5            # xmm5 = xmm0[0],xmm5[1,2,3]
movss 0x1dfc(%r14), %xmm0
addss %xmm4, %xmm0
addss %xmm3, %xmm0
subss %xmm0, %xmm6
movaps 0x20(%rsp), %xmm0
movss %xmm6, %xmm0            # xmm0 = xmm6[0],xmm0[1,2,3]
movaps %xmm0, 0x20(%rsp)
jmp 0xae0f
movss 0x1dec(%r14), %xmm0
movaps %xmm3, %xmm2
addss %xmm0, %xmm2
movss %xmm2, %xmm5            # xmm5 = xmm2[0],xmm5[1,2,3]
movss 0x1dfc(%r14), %xmm2
addss %xmm4, %xmm2
addss %xmm0, %xmm2
addss %xmm2, %xmm3
movaps %xmm3, 0x10(%rsp)
movl 0x1dd0(%r14), %edx
leaq 0x1c70(%r14), %r8
movq 0x168(%r14), %rax
movq %rax, (%rsp)
leaq 0xc(%rsp), %rdi
movq %rbp, %rsi
movaps %xmm5, 0x70(%rsp)
movaps %xmm5, %xmm0
movaps %xmm1, 0x90(%rsp)
xorl %ecx, %ecx
movq 0x38(%rsp), %r9
callq 0xee9a
testl %eax, %eax
setne %cl
movl 0x48(%rbx), %eax
btl $0xc, %eax
setae %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0xae77
movl $0xffff5fff, %ecx       # imm = 0xFFFF5FFF
andl 0x4(%r12), %ecx
orl $0x2000, %ecx           # imm = 0x2000
movl %ecx, 0x4(%r12)
movaps 0x10(%rsp), %xmm3
movaps 0x40(%rsp), %xmm4
movaps 0x70(%rsp), %xmm5
movaps 0x90(%rsp), %xmm1
testb $0x10, %al
movq %rbp, 0x50(%rsp)
jne 0xaea1
movaps %xmm3, 0x10(%rsp)
jmp 0xaf73
andl $0x0, 0xc(%rsp)
cmpl $0x1, 0x1de8(%r14)
movaps 0x20(%rsp), %xmm2
jne 0xaee6
movaps %xmm3, %xmm0
addss %xmm2, %xmm0
subss %xmm4, %xmm0
movss %xmm0, %xmm5            # xmm5 = xmm0[0],xmm5[1,2,3]
testb $0x8, %al
jne 0xaf0b
movss 0x1dec(%r14), %xmm6
subss %xmm6, %xmm0
movss %xmm0, %xmm5            # xmm5 = xmm0[0],xmm5[1,2,3]
movaps %xmm2, %xmm0
subss %xmm6, %xmm2
movss %xmm2, %xmm0            # xmm0 = xmm2[0],xmm0[1,2,3]
jmp 0xaf0e
shufps $0x1, %xmm3, %xmm5      # xmm5 = xmm5[1,0],xmm3[0,0]
addss 0x1dfc(%r14), %xmm4
shufps $0xe2, %xmm3, %xmm5     # xmm5 = xmm5[2,0],xmm3[2,3]
addss 0x1dec(%r14), %xmm4
addss %xmm4, %xmm3
movaps %xmm3, 0x10(%rsp)
jmp 0xaf29
movaps %xmm2, %xmm0
movaps %xmm3, 0x10(%rsp)
addss 0x1dfc(%r14), %xmm4
subss %xmm4, %xmm2
movss %xmm2, %xmm0            # xmm0 = xmm2[0],xmm0[1,2,3]
movaps %xmm0, 0x20(%rsp)
movzwl 0x4(%r12), %eax
shrl $0xf, %eax
movl 0x1dd4(%r14,%rax,4), %edx
leaq 0x1d20(%r14), %r8
movq 0x168(%r14), %rax
movq %rax, (%rsp)
leaq 0xc(%rsp), %rdi
movq %rbp, %rsi
movaps %xmm5, %xmm0
xorl %ecx, %ecx
movq 0x38(%rsp), %r9
callq 0xee9a
testl %eax, %eax
je 0xaf73
testb $0x10, 0x49(%rbx)
jne 0xaf73
xorb $-0x80, 0x5(%r12)
movq %r13, %rdi
callq 0x37f3
movq %r13, %r15
movl %eax, %r13d
movq 0x58(%rsp), %rbp
movq (%rbp), %rdi
movss 0x8(%rbp), %xmm0
movq %r15, %rsi
movl %eax, %edx
callq *0x10(%rbp)
leaq 0x60(%rsp), %rcx
andq $0x0, (%rcx)
movsd 0x1df4(%r14), %xmm3
movaps 0x10(%rsp), %xmm1
movaps %xmm1, %xmm2
addss 0x1dec(%r14), %xmm2
addps %xmm3, %xmm2
shufps $0x55, %xmm3, %xmm3     # xmm3 = xmm3[1,1,1,1]
addss %xmm3, %xmm3
addss 0x8(%rbp), %xmm3
movss 0x1dfc(%r14), %xmm4
addss %xmm4, %xmm4
addss %xmm0, %xmm4
movaps 0x20(%rsp), %xmm0
addss %xmm1, %xmm0
subss %xmm2, %xmm0
minss %xmm0, %xmm4
xorps %xmm1, %xmm1
maxss %xmm4, %xmm1
unpcklps %xmm3, %xmm1            # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
pushq $0x11
popq %r8
movq 0x50(%rsp), %rdi
movaps %xmm2, %xmm0
movq %r15, %rsi
movl %r13d, %edx
movq %rbp, %r9
movq %rdi, %rbp
callq 0x12660
leaq 0x8(%r12), %r15
testb $-0x78, 0x5(%r12)
jne 0xb074
movss 0x38(%r12), %xmm2
movss 0x50(%rbx), %xmm1
addss %xmm2, %xmm1
movss 0x4c(%rbx), %xmm0
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movss 0x54(%rbx), %xmm1
movss 0x58(%rbx), %xmm3
subss %xmm2, %xmm3
unpcklps %xmm3, %xmm1            # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
leaq 0x1e10(%r14), %rsi
cmpl $0x1, 0x1e08(%r14)
jne 0xb067
pushq $-0x1
popq %rdx
movq %rbp, %rdi
callq 0x72e2
jmp 0xb074
movl (%rsi), %esi
xorps %xmm2, %xmm2
movq %rbp, %rdi
callq 0x6858
movups (%r15), %xmm0
movups %xmm0, 0x44(%r12)
addq $0x70, %rbx
movss 0x44(%r12), %xmm0
movss 0x48(%r12), %xmm1
movss 0x4c(%r12), %xmm2
addss %xmm0, %xmm2
movss 0x50(%r12), %xmm3
addss %xmm1, %xmm3
leaq 0x60(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1150c
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movq %rbp, %rdi
callq 0x643d
movups (%r14), %xmm0
movups %xmm0, 0x44(%r12)
movl 0x4(%r12), %ecx
xorl %eax, %eax
testw %cx, %cx
setns %al
xorl %edx, %edx
btl $0xd, %ecx
cmovbl %edx, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x185e1(%rip), %rdi     # 0x236e3
leaq 0x1559a(%rip), %rsi     # 0x206a3
leaq 0x1a4ca(%rip), %rcx     # 0x255da
movl $0x3cff, %edx           # imm = 0x3CFF
callq 0x20a0
leaq 0x1704a(%rip), %rdi     # 0x2216b
leaq 0x1557b(%rip), %rsi     # 0x206a3
leaq 0x1a4ab(%rip), %rcx     # 0x255da
movl $0x3d00, %edx           # imm = 0x3D00
callq 0x20a0
leaq 0x171a7(%rip), %rdi     # 0x222e7
leaq 0x1555c(%rip), %rsi     # 0x206a3
leaq 0x1a48c(%rip), %rcx     # 0x255da
movl $0x3d01, %edx           # imm = 0x3D01
callq 0x20a0