// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_panel_begin
NK_LIB nk_bool
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)) {
        nk_bool left_mouse_down;
        unsigned 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 = 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;

        switch(background->type) {
            case NK_STYLE_ITEM_IMAGE:
                text.background = nk_rgba(0,0,0,0);
                nk_draw_image(&win->buffer, header, &background->data.image, nk_white);
                break;
            case NK_STYLE_ITEM_NINE_SLICE:
                text.background = nk_rgba(0, 0, 0, 0);
                nk_draw_nine_slice(&win->buffer, header, &background->data.slice, nk_white);
                break;
            case NK_STYLE_ITEM_COLOR:
                text.background = background->data.color;
                nk_fill_rect(out, header, 0, background->data.color);
                break;
        }

        /* 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);

        switch(style->window.fixed_background.type) {
            case NK_STYLE_ITEM_IMAGE:
                nk_draw_image(out, body, &style->window.fixed_background.data.image, nk_white);
                break;
            case NK_STYLE_ITEM_NINE_SLICE:
                nk_draw_nine_slice(out, body, &style->window.fixed_background.data.slice, nk_white);
                break;
            case NK_STYLE_ITEM_COLOR:
                nk_fill_rect(out, body, 0, style->window.fixed_background.data.color);
                break;
        }
    }

    /* 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:
subq $0x178, %rsp            # imm = 0x178
movq %rdi, 0x168(%rsp)
movq %rsi, 0x160(%rsp)
movl %edx, 0x15c(%rsp)
cmpq $0x0, 0x168(%rsp)
jne 0x55dac
movq 0x6f270(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x5b616(%rip), %rsi     # 0xb13a0
leaq 0x5b62d(%rip), %rdx     # 0xb13be
movl $0x4ced, %ecx           # imm = 0x4CED
movb $0x0, %al
callq 0x13ec0
movq 0x6f24c(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x55dae
jmp 0x55db0
movq 0x168(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x55df5
movq 0x6f227(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x5b5cd(%rip), %rsi     # 0xb13a0
leaq 0x5b5e4(%rip), %rdx     # 0xb13be
movl $0x4cee, %ecx           # imm = 0x4CEE
movb $0x0, %al
callq 0x13ec0
movq 0x6f203(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x55df7
jmp 0x55df9
movq 0x168(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x55e45
movq 0x6f1d7(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x5b57d(%rip), %rsi     # 0xb13a0
leaq 0x5b594(%rip), %rdx     # 0xb13be
movl $0x4cef, %ecx           # imm = 0x4CEF
movb $0x0, %al
callq 0x13ec0
movq 0x6f1b3(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x55e47
cmpq $0x0, 0x168(%rsp)
je 0x55e7d
movq 0x168(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x55e7d
movq 0x168(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x55e8d
movl $0x0, 0x174(%rsp)
jmp 0x5711d
movq 0x168(%rsp), %rax
movq 0x4780(%rax), %rax
movq 0xa8(%rax), %rdi
movl $0x1d0, %esi            # imm = 0x1D0
callq 0x2f0e0
movq 0x168(%rsp), %rax
movq 0x4780(%rax), %rax
movl 0x48(%rax), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
jne 0x55ee5
movq 0x168(%rsp), %rax
movq 0x4780(%rax), %rax
movl 0x48(%rax), %eax
andl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %eax
je 0x55f34
movq 0x168(%rsp), %rax
movq 0x4780(%rax), %rax
movq 0xa8(%rax), %rdi
movl $0x1d0, %esi            # imm = 0x1D0
callq 0x2f0e0
movl 0x15c(%rsp), %ecx
movq 0x168(%rsp), %rax
movq 0x4780(%rax), %rax
movq 0xa8(%rax), %rax
movl %ecx, (%rax)
movl $0x0, 0x174(%rsp)
jmp 0x5711d
movq 0x168(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0x130(%rsp)
movq 0x130(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x128(%rsp)
movq 0x168(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x148(%rsp)
movq 0x148(%rsp), %rax
movq 0xa8(%rax), %rax
movq %rax, 0x140(%rsp)
movq 0x148(%rsp), %rax
addq $0x68, %rax
movq %rax, 0x138(%rsp)
movq 0x148(%rsp), %rax
movl 0x48(%rax), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0x55fbd
xorl %eax, %eax
movq %rax, 0x48(%rsp)
jmp 0x55fca
movq 0x168(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x150(%rsp)
movq 0x130(%rsp), %rax
movq 0x2354(%rax), %rax
movq %rax, 0x120(%rsp)
movq 0x130(%rsp), %rdi
movl 0x15c(%rsp), %esi
callq 0x5d770
movlpd %xmm0, 0x110(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x118(%rsp)
movq 0x148(%rsp), %rax
movl 0x48(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x5625d
movq 0x148(%rsp), %rax
movl 0x48(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
jne 0x5625d
movq 0x148(%rsp), %rax
movss 0x4c(%rax), %xmm0
movss %xmm0, 0xf4(%rsp)
movq 0x148(%rsp), %rax
movss 0x50(%rax), %xmm0
movss %xmm0, 0xf8(%rsp)
movq 0x148(%rsp), %rax
movss 0x54(%rax), %xmm0
movss %xmm0, 0xfc(%rsp)
movq 0x148(%rsp), %rax
movl 0x48(%rax), %edi
movq 0x160(%rsp), %rsi
callq 0x85b90
cmpl $0x0, %eax
je 0x56104
movq 0x128(%rsp), %rax
movss 0x8(%rax), %xmm1
movq 0x130(%rsp), %rax
movss 0x22a0(%rax), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x100(%rsp)
movq 0x130(%rsp), %rax
movss 0x22a8(%rax), %xmm0
movss 0x100(%rsp), %xmm1
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x100(%rsp)
jmp 0x56116
movss 0x11c(%rsp), %xmm0
movss %xmm0, 0x100(%rsp)
movq 0x150(%rsp), %rax
movl 0x104(%rax), %eax
movl %eax, 0x10c(%rsp)
movq 0x150(%rsp), %rax
movl 0x108(%rax), %eax
movl %eax, 0x108(%rsp)
movq 0x150(%rsp), %rdi
movsd 0xf4(%rsp), %xmm0
movsd 0xfc(%rsp), %xmm1
xorl %eax, %eax
xorl %esi, %esi
movl $0x1, %edx
callq 0x13780
movl %eax, 0x104(%rsp)
cmpl $0x0, 0x10c(%rsp)
je 0x5625b
cmpl $0x0, 0x104(%rsp)
je 0x5625b
cmpl $0x0, 0x108(%rsp)
jne 0x5625b
movq 0x148(%rsp), %rax
movss 0x4c(%rax), %xmm0
movq 0x150(%rsp), %rax
addss 0x154(%rax), %xmm0
movq 0x148(%rsp), %rax
movss %xmm0, 0x4c(%rax)
movq 0x148(%rsp), %rax
movss 0x50(%rax), %xmm0
movq 0x150(%rsp), %rax
addss 0x158(%rax), %xmm0
movq 0x148(%rsp), %rax
movss %xmm0, 0x50(%rax)
movq 0x150(%rsp), %rax
movss 0x154(%rax), %xmm0
movq 0x150(%rsp), %rax
addss 0x10c(%rax), %xmm0
movss %xmm0, 0x10c(%rax)
movq 0x150(%rsp), %rax
movss 0x158(%rax), %xmm0
movq 0x150(%rsp), %rax
addss 0x110(%rax), %xmm0
movss %xmm0, 0x110(%rax)
movq 0x168(%rsp), %rax
movq 0x180(%rax), %rcx
movq 0x168(%rsp), %rax
movq %rcx, 0x1a8(%rax)
jmp 0x5625d
movl 0x15c(%rsp), %ecx
movq 0x140(%rsp), %rax
movl %ecx, (%rax)
movq 0x148(%rsp), %rax
movl 0x48(%rax), %ecx
movq 0x140(%rsp), %rax
movl %ecx, 0x4(%rax)
movq 0x140(%rsp), %rax
movq 0x148(%rsp), %rcx
movq 0x4c(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x54(%rcx), %rcx
movq %rcx, 0x10(%rax)
movss 0x118(%rsp), %xmm0
movq 0x140(%rsp), %rax
addss 0x8(%rax), %xmm0
movss %xmm0, 0x8(%rax)
movss 0x118(%rsp), %xmm1
movq 0x140(%rsp), %rax
movss 0x10(%rax), %xmm0
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x10(%rax)
movq 0x148(%rsp), %rax
movl 0x48(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x56373
movq 0x130(%rsp), %rdi
movq 0x148(%rsp), %rax
movl 0x48(%rax), %esi
movl 0x15c(%rsp), %edx
callq 0x85c20
movq 0x140(%rsp), %rax
movss %xmm0, 0x3c(%rax)
movq 0x140(%rsp), %rax
movq %rax, 0x40(%rsp)
movss 0x3c(%rax), %xmm2
movsd 0x8(%rax), %xmm0
movsd 0x10(%rax), %xmm1
callq 0x75600
movq 0x40(%rsp), %rax
movlpd %xmm0, 0xe4(%rsp)
movlpd %xmm1, 0xec(%rsp)
movq 0xe4(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq 0xec(%rsp), %rcx
movq %rcx, 0x10(%rax)
jmp 0x56383
movq 0x140(%rsp), %rax
xorps %xmm0, %xmm0
movss %xmm0, 0x3c(%rax)
movq 0x140(%rsp), %rax
movss 0xc(%rax), %xmm0
movq 0x140(%rsp), %rax
movss %xmm0, 0x2c(%rax)
movq 0x140(%rsp), %rax
movss 0x8(%rax), %xmm0
movq 0x140(%rsp), %rax
movss %xmm0, 0x28(%rax)
movq 0x140(%rsp), %rax
xorps %xmm0, %xmm0
movss %xmm0, 0x30(%rax)
movq 0x140(%rsp), %rax
xorps %xmm0, %xmm0
movss %xmm0, 0x38(%rax)
movq 0x140(%rsp), %rax
xorps %xmm0, %xmm0
movss %xmm0, 0x34(%rax)
movq 0x168(%rsp), %rdi
callq 0x14e40
movq 0x140(%rsp), %rax
movl $0x0, 0x74(%rax)
movq 0x140(%rsp), %rax
movl $0x0, 0x80(%rax)
movq 0x140(%rsp), %rax
movq $0x0, 0x88(%rax)
movq 0x140(%rsp), %rax
xorps %xmm0, %xmm0
movss %xmm0, 0x90(%rax)
movq 0x140(%rsp), %rax
movl $0x0, 0xb0(%rax)
movss 0x11c(%rsp), %xmm0
movq 0x140(%rsp), %rax
movss %xmm0, 0x78(%rax)
movq 0x140(%rsp), %rax
movl $0x1, 0x40(%rax)
movq 0x148(%rsp), %rax
movl 0x48(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
jne 0x564a4
movss 0x120(%rsp), %xmm1
movq 0x140(%rsp), %rax
movss 0x10(%rax), %xmm0
subss %xmm1, %xmm0
movss %xmm0, 0x10(%rax)
movl 0x15c(%rsp), %edi
callq 0x85d40
cmpl $0x0, %eax
jne 0x56524
movq 0x140(%rsp), %rax
xorps %xmm0, %xmm0
movss %xmm0, 0x34(%rax)
movq 0x148(%rsp), %rax
movl 0x48(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x564eb
movq 0x148(%rsp), %rax
movl 0x48(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x56501
movss 0x124(%rsp), %xmm0
movq 0x140(%rsp), %rax
movss %xmm0, 0x34(%rax)
movq 0x140(%rsp), %rax
movss 0x34(%rax), %xmm1
movq 0x140(%rsp), %rax
movss 0x14(%rax), %xmm0
subss %xmm1, %xmm0
movss %xmm0, 0x14(%rax)
movq 0x148(%rsp), %rax
movl 0x48(%rax), %edi
movq 0x160(%rsp), %rsi
callq 0x85b90
cmpl $0x0, %eax
je 0x56ef5
movq $0x0, 0xb8(%rsp)
movq 0x148(%rsp), %rax
movss 0x4c(%rax), %xmm0
movss %xmm0, 0xc4(%rsp)
movq 0x148(%rsp), %rax
movss 0x50(%rax), %xmm0
movss %xmm0, 0xc8(%rsp)
movq 0x148(%rsp), %rax
movss 0x54(%rax), %xmm0
movss %xmm0, 0xcc(%rsp)
movq 0x128(%rsp), %rax
movss 0x8(%rax), %xmm1
movq 0x130(%rsp), %rax
movss 0x22a0(%rax), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0xd0(%rsp)
movq 0x130(%rsp), %rax
movss 0x22a8(%rax), %xmm0
movss 0xd0(%rsp), %xmm1
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0xd0(%rsp)
movss 0xd0(%rsp), %xmm0
movq 0x140(%rsp), %rax
movss %xmm0, 0x38(%rax)
movss 0xd0(%rsp), %xmm0
movq 0x140(%rsp), %rax
addss 0xc(%rax), %xmm0
movss %xmm0, 0xc(%rax)
movss 0xd0(%rsp), %xmm1
movq 0x140(%rsp), %rax
movss 0x14(%rax), %xmm0
subss %xmm1, %xmm0
movss %xmm0, 0x14(%rax)
movss 0xd0(%rsp), %xmm0
movq 0x140(%rsp), %rax
addss 0x2c(%rax), %xmm0
movss %xmm0, 0x2c(%rax)
movq 0x168(%rsp), %rax
movq 0x4778(%rax), %rax
cmpq 0x148(%rsp), %rax
jne 0x566a3
movq 0x130(%rsp), %rax
addq $0x2058, %rax           # imm = 0x2058
addq $0x50, %rax
movq %rax, 0xb8(%rsp)
movq 0x130(%rsp), %rax
movl 0x2294(%rax), %eax
movl %eax, 0xe0(%rsp)
jmp 0x56725
movq 0x168(%rsp), %rdi
movsd 0xc4(%rsp), %xmm0
movsd 0xcc(%rsp), %xmm1
callq 0x15440
cmpl $0x0, %eax
je 0x566f8
movq 0x130(%rsp), %rax
addq $0x2058, %rax           # imm = 0x2058
addq $0x28, %rax
movq %rax, 0xb8(%rsp)
movq 0x130(%rsp), %rax
movl 0x2290(%rax), %eax
movl %eax, 0xe0(%rsp)
jmp 0x56723
movq 0x130(%rsp), %rax
addq $0x2058, %rax           # imm = 0x2058
movq %rax, 0xb8(%rsp)
movq 0x130(%rsp), %rax
movl 0x228c(%rax), %eax
movl %eax, 0xe0(%rsp)
jmp 0x56725
movss 0xd0(%rsp), %xmm0
movss 0x56db2(%rip), %xmm1    # 0xad4e8
addss %xmm1, %xmm0
movss %xmm0, 0xd0(%rsp)
movq 0xb8(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x3c(%rsp)
testl %eax, %eax
je 0x56829
jmp 0x5675b
movl 0x3c(%rsp), %eax
subl $0x1, %eax
je 0x56774
jmp 0x56766
movl 0x3c(%rsp), %eax
subl $0x2, %eax
je 0x567d0
jmp 0x56868
xorl %ecx, %ecx
movl %ecx, %edi
movl %ecx, %esi
movl %ecx, %edx
callq 0x14680
movl %eax, 0xb4(%rsp)
movl 0xb4(%rsp), %eax
movl %eax, 0xdc(%rsp)
movq 0x148(%rsp), %rdi
addq $0x68, %rdi
movq 0xb8(%rsp), %rsi
addq $0x8, %rsi
movsd 0xc4(%rsp), %xmm0
movsd 0xcc(%rsp), %xmm1
movl 0x5aaea(%rip), %edx     # 0xb12b0
callq 0x14690
jmp 0x56868
xorl %ecx, %ecx
movl %ecx, %edi
movl %ecx, %esi
movl %ecx, %edx
callq 0x14680
movl %eax, 0xb0(%rsp)
movl 0xb0(%rsp), %eax
movl %eax, 0xdc(%rsp)
movq 0x148(%rsp), %rdi
addq $0x68, %rdi
movq 0xb8(%rsp), %rsi
addq $0x8, %rsi
movsd 0xc4(%rsp), %xmm0
movsd 0xcc(%rsp), %xmm1
movl 0x5aa8e(%rip), %edx     # 0xb12b0
callq 0x152a0
jmp 0x56868
movq 0xb8(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, 0xdc(%rsp)
movq 0x138(%rsp), %rdi
movq 0xb8(%rsp), %rax
movsd 0xc4(%rsp), %xmm0
movsd 0xcc(%rsp), %xmm1
movl 0x8(%rax), %esi
xorps %xmm2, %xmm2
callq 0x13f10
movss 0xc8(%rsp), %xmm0
movq 0x130(%rsp), %rax
addss 0x22a0(%rax), %xmm0
movss %xmm0, 0xa4(%rsp)
movss 0xd0(%rsp), %xmm0
movq 0x130(%rsp), %rax
movss 0x22a0(%rax), %xmm1
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0xac(%rsp)
movss 0xac(%rsp), %xmm0
movss %xmm0, 0xa8(%rsp)
movq 0x148(%rsp), %rax
movl 0x48(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x56a69
movl $0x0, 0x9c(%rsp)
movq 0x130(%rsp), %rax
cmpl $0x1, 0x2298(%rax)
jne 0x56972
movss 0xcc(%rsp), %xmm0
addss 0xc4(%rsp), %xmm0
movss 0xa8(%rsp), %xmm1
movq 0x130(%rsp), %rax
addss 0x229c(%rax), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0xa0(%rsp)
movss 0xa8(%rsp), %xmm1
movq 0x130(%rsp), %rax
addss 0x22ac(%rax), %xmm1
movq 0x130(%rsp), %rax
addss 0x229c(%rax), %xmm1
movss 0xcc(%rsp), %xmm0
subss %xmm1, %xmm0
movss %xmm0, 0xcc(%rsp)
jmp 0x569cf
movss 0xc4(%rsp), %xmm0
movq 0x130(%rsp), %rax
addss 0x229c(%rax), %xmm0
movss %xmm0, 0xa0(%rsp)
movss 0xa8(%rsp), %xmm0
movq 0x130(%rsp), %rax
addss 0x22ac(%rax), %xmm0
movq 0x130(%rsp), %rax
addss 0x229c(%rax), %xmm0
addss 0xc4(%rsp), %xmm0
movss %xmm0, 0xc4(%rsp)
movq 0x148(%rsp), %rsi
addq $0x68, %rsi
movq 0x130(%rsp), %rax
movl 0x2280(%rax), %edx
movq %rax, %r8
addq $0x20d0, %r8            # imm = 0x20D0
movq 0x150(%rsp), %r9
movq (%rax), %rcx
movsd 0xa0(%rsp), %xmm0
movsd 0xa8(%rsp), %xmm1
movq %rsp, %rax
movq %rcx, (%rax)
leaq 0x9c(%rsp), %rdi
xorl %ecx, %ecx
callq 0x5e910
cmpl $0x0, %eax
je 0x56a67
movq 0x148(%rsp), %rax
movl 0x48(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
jne 0x56a67
movq 0x140(%rsp), %rax
movl 0x4(%rax), %ecx
orl $0x2000, %ecx           # imm = 0x2000
movl %ecx, 0x4(%rax)
movq 0x140(%rsp), %rax
movl 0x4(%rax), %ecx
andl $0xffff7fff, %ecx       # imm = 0xFFFF7FFF
movl %ecx, 0x4(%rax)
jmp 0x56a69
movq 0x148(%rsp), %rax
movl 0x48(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x56ca4
movl $0x0, 0x98(%rsp)
movq 0x130(%rsp), %rax
cmpl $0x1, 0x2298(%rax)
jne 0x56b54
movss 0xcc(%rsp), %xmm0
addss 0xc4(%rsp), %xmm0
subss 0xa8(%rsp), %xmm0
movss %xmm0, 0xa0(%rsp)
movq 0x148(%rsp), %rax
movl 0x48(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
jne 0x56b23
movq 0x130(%rsp), %rax
movss 0x229c(%rax), %xmm1
movss 0xa0(%rsp), %xmm0
subss %xmm1, %xmm0
movss %xmm0, 0xa0(%rsp)
movq 0x130(%rsp), %rax
movss 0x229c(%rax), %xmm1
movss 0xcc(%rsp), %xmm0
subss %xmm1, %xmm0
movss %xmm0, 0xcc(%rsp)
movss 0xa8(%rsp), %xmm1
movq 0x130(%rsp), %rax
addss 0x22ac(%rax), %xmm1
movss 0xcc(%rsp), %xmm0
subss %xmm1, %xmm0
movss %xmm0, 0xcc(%rsp)
jmp 0x56ba1
movss 0xc4(%rsp), %xmm0
movss %xmm0, 0xa0(%rsp)
movss 0xa8(%rsp), %xmm0
movq 0x130(%rsp), %rax
addss 0x22ac(%rax), %xmm0
movq 0x130(%rsp), %rax
addss 0x229c(%rax), %xmm0
addss 0xc4(%rsp), %xmm0
movss %xmm0, 0xc4(%rsp)
movq 0x148(%rsp), %rax
addq $0x68, %rax
movq %rax, 0x30(%rsp)
movq 0x140(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %eax
je 0x56bdb
movq 0x130(%rsp), %rax
movl 0x2288(%rax), %eax
movl %eax, 0x2c(%rsp)
jmp 0x56bed
movq 0x130(%rsp), %rax
movl 0x2284(%rax), %eax
movl %eax, 0x2c(%rsp)
movq 0x30(%rsp), %rsi
movl 0x2c(%rsp), %edx
movq 0x130(%rsp), %rax
movq %rax, %r8
addq $0x21a8, %r8            # imm = 0x21A8
movq 0x150(%rsp), %r9
movq (%rax), %rcx
movsd 0xa0(%rsp), %xmm0
movsd 0xa8(%rsp), %xmm1
movq %rsp, %rax
movq %rcx, (%rax)
leaq 0x98(%rsp), %rdi
xorl %ecx, %ecx
callq 0x5e910
cmpl $0x0, %eax
je 0x56ca2
movq 0x148(%rsp), %rax
movl 0x48(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
jne 0x56ca2
movq 0x140(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %eax
je 0x56c7f
movq 0x140(%rsp), %rax
movl 0x4(%rax), %eax
andl $0xffff7fff, %eax       # imm = 0xFFFF7FFF
movl %eax, 0x28(%rsp)
jmp 0x56c93
movq 0x140(%rsp), %rax
movl 0x4(%rax), %eax
orl $0x8000, %eax           # imm = 0x8000
movl %eax, 0x28(%rsp)
movl 0x28(%rsp), %ecx
movq 0x140(%rsp), %rax
movl %ecx, 0x4(%rax)
jmp 0x56ca4
movq 0x160(%rsp), %rdi
callq 0x14050
movl %eax, 0x94(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movq 0x128(%rsp), %rcx
movq 0x10(%rcx), %rax
movss 0x8(%rcx), %xmm0
movq 0x160(%rsp), %rsi
movl 0x94(%rsp), %edx
movq (%rcx), %rdi
callq *%rax
movss %xmm0, 0x7c(%rsp)
xorps %xmm1, %xmm1
movaps %xmm1, %xmm0
callq 0x13460
movlpd %xmm0, 0x74(%rsp)
movq 0x74(%rsp), %rax
movq %rax, 0xd4(%rsp)
movss 0xc4(%rsp), %xmm0
movq 0x130(%rsp), %rax
addss 0x229c(%rax), %xmm0
movss %xmm0, 0x80(%rsp)
movq 0x130(%rsp), %rax
movss 0x22a4(%rax), %xmm0
addss 0x80(%rsp), %xmm0
movss %xmm0, 0x80(%rsp)
movss 0xc8(%rsp), %xmm0
movq 0x130(%rsp), %rax
addss 0x22a8(%rax), %xmm0
movss %xmm0, 0x84(%rsp)
movq 0x128(%rsp), %rax
movss 0x8(%rax), %xmm1
movq 0x130(%rsp), %rax
movss 0x22a8(%rax), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x8c(%rsp)
movss 0x7c(%rsp), %xmm1
movq 0x130(%rsp), %rax
movss 0x22ac(%rax), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x88(%rsp)
movss 0x88(%rsp), %xmm1
movss 0xc4(%rsp), %xmm0
addss 0xcc(%rsp), %xmm0
subss 0x80(%rsp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x56e01
movss 0x88(%rsp), %xmm0
movss %xmm0, 0x24(%rsp)
jmp 0x56e22
movss 0xc4(%rsp), %xmm0
addss 0xcc(%rsp), %xmm0
subss 0x80(%rsp), %xmm0
movss %xmm0, 0x24(%rsp)
movss 0x24(%rsp), %xmm1
xorps %xmm0, %xmm0
ucomiss %xmm1, %xmm0
jbe 0x56e3b
xorps %xmm0, %xmm0
movss %xmm0, 0x20(%rsp)
jmp 0x56ea2
movss 0x88(%rsp), %xmm1
movss 0xc4(%rsp), %xmm0
addss 0xcc(%rsp), %xmm0
subss 0x80(%rsp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x56e75
movss 0x88(%rsp), %xmm0
movss %xmm0, 0x1c(%rsp)
jmp 0x56e96
movss 0xc4(%rsp), %xmm0
addss 0xcc(%rsp), %xmm0
subss 0x80(%rsp), %xmm0
movss %xmm0, 0x1c(%rsp)
movss 0x1c(%rsp), %xmm0
movss %xmm0, 0x20(%rsp)
movss 0x20(%rsp), %xmm0
movss %xmm0, 0x88(%rsp)
movq 0x138(%rsp), %rdi
movq 0x160(%rsp), %rsi
movl 0x94(%rsp), %edx
movq 0x128(%rsp), %r9
movsd 0x80(%rsp), %xmm0
movsd 0x88(%rsp), %xmm1
leaq 0xd4(%rsp), %rcx
movl $0x11, %r8d
callq 0x66ac0
movq 0x140(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %eax
jne 0x57052
movq 0x140(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
jne 0x57052
movq 0x148(%rsp), %rax
movss 0x4c(%rax), %xmm0
movss %xmm0, 0x64(%rsp)
movq 0x148(%rsp), %rax
movss 0x54(%rax), %xmm0
movss %xmm0, 0x6c(%rsp)
movq 0x148(%rsp), %rax
movss 0x50(%rax), %xmm0
movq 0x140(%rsp), %rax
movss 0x38(%rax), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0x68(%rsp)
movq 0x148(%rsp), %rax
movss 0x58(%rax), %xmm0
movq 0x140(%rsp), %rax
movss 0x38(%rax), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x70(%rsp)
movq 0x130(%rsp), %rax
movl 0x22b8(%rax), %eax
movl %eax, 0x18(%rsp)
testl %eax, %eax
je 0x57026
jmp 0x56fad
movl 0x18(%rsp), %eax
subl $0x1, %eax
je 0x56fc6
jmp 0x56fb8
movl 0x18(%rsp), %eax
subl $0x2, %eax
je 0x56ff6
jmp 0x57050
movq 0x138(%rsp), %rdi
movq 0x130(%rsp), %rsi
addq $0x22c0, %rsi           # imm = 0x22C0
movsd 0x64(%rsp), %xmm0
movsd 0x6c(%rsp), %xmm1
movl 0x5a2c1(%rip), %edx     # 0xb12b0
callq 0x14690
jmp 0x57050
movq 0x138(%rsp), %rdi
movq 0x130(%rsp), %rsi
addq $0x22c0, %rsi           # imm = 0x22C0
movsd 0x64(%rsp), %xmm0
movsd 0x6c(%rsp), %xmm1
movl 0x5a291(%rip), %edx     # 0xb12b0
callq 0x152a0
jmp 0x57050
movq 0x138(%rsp), %rdi
movq 0x130(%rsp), %rax
movsd 0x64(%rsp), %xmm0
movsd 0x6c(%rsp), %xmm1
movl 0x22c0(%rax), %esi
xorps %xmm2, %xmm2
callq 0x13f10
jmp 0x57052
movq 0x140(%rsp), %rax
movups 0x8(%rax), %xmm0
movups %xmm0, 0x44(%rax)
movq 0x148(%rsp), %rsi
addq $0x70, %rsi
movq 0x140(%rsp), %rax
movss 0x44(%rax), %xmm0
movss 0x48(%rax), %xmm1
movss 0x4c(%rax), %xmm3
movaps %xmm0, %xmm2
addss %xmm3, %xmm2
movss 0x50(%rax), %xmm4
movaps %xmm1, %xmm3
addss %xmm4, %xmm3
leaq 0x54(%rsp), %rdi
callq 0x63b70
movq 0x138(%rsp), %rdi
movsd 0x54(%rsp), %xmm0
movsd 0x5c(%rsp), %xmm1
callq 0x14c90
movq 0x140(%rsp), %rax
movq 0x54(%rsp), %rcx
movq %rcx, 0x44(%rax)
movq 0x5c(%rsp), %rcx
movq %rcx, 0x4c(%rax)
movq 0x140(%rsp), %rax
movl 0x4(%rax), %ecx
andl $0x2000, %ecx           # imm = 0x2000
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0x17(%rsp)
jne 0x5710d
movq 0x140(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
movb %al, 0x17(%rsp)
movb 0x17(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x174(%rsp)
movl 0x174(%rsp), %eax
addq $0x178, %rsp            # imm = 0x178
retq
nopl (%rax)