// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_convert
NK_API nk_flags
nk_convert(struct nk_context *ctx, struct nk_buffer *cmds,
    struct nk_buffer *vertices, struct nk_buffer *elements,
    const struct nk_convert_config *config)
{
    nk_flags res = NK_CONVERT_SUCCESS;
    const struct nk_command *cmd;
    NK_ASSERT(ctx);
    NK_ASSERT(cmds);
    NK_ASSERT(vertices);
    NK_ASSERT(elements);
    NK_ASSERT(config);
    NK_ASSERT(config->vertex_layout);
    NK_ASSERT(config->vertex_size);
    if (!ctx || !cmds || !vertices || !elements || !config || !config->vertex_layout)
        return NK_CONVERT_INVALID_PARAM;

    nk_draw_list_setup(&ctx->draw_list, config, cmds, vertices, elements,
        config->line_AA, config->shape_AA);
    nk_foreach(cmd, ctx)
    {
#ifdef NK_INCLUDE_COMMAND_USERDATA
        ctx->draw_list.userdata = cmd->userdata;
#endif
        switch (cmd->type) {
        case NK_COMMAND_NOP: break;
        case NK_COMMAND_SCISSOR: {
            const struct nk_command_scissor *s = (const struct nk_command_scissor*)cmd;
            nk_draw_list_add_clip(&ctx->draw_list, nk_rect(s->x, s->y, s->w, s->h));
        } break;
        case NK_COMMAND_LINE: {
            const struct nk_command_line *l = (const struct nk_command_line*)cmd;
            nk_draw_list_stroke_line(&ctx->draw_list, nk_vec2(l->begin.x, l->begin.y),
                nk_vec2(l->end.x, l->end.y), l->color, l->line_thickness);
        } break;
        case NK_COMMAND_CURVE: {
            const struct nk_command_curve *q = (const struct nk_command_curve*)cmd;
            nk_draw_list_stroke_curve(&ctx->draw_list, nk_vec2(q->begin.x, q->begin.y),
                nk_vec2(q->ctrl[0].x, q->ctrl[0].y), nk_vec2(q->ctrl[1].x,
                q->ctrl[1].y), nk_vec2(q->end.x, q->end.y), q->color,
                config->curve_segment_count, q->line_thickness);
        } break;
        case NK_COMMAND_RECT: {
            const struct nk_command_rect *r = (const struct nk_command_rect*)cmd;
            nk_draw_list_stroke_rect(&ctx->draw_list, nk_rect(r->x, r->y, r->w, r->h),
                r->color, (float)r->rounding, r->line_thickness);
        } break;
        case NK_COMMAND_RECT_FILLED: {
            const struct nk_command_rect_filled *r = (const struct nk_command_rect_filled*)cmd;
            nk_draw_list_fill_rect(&ctx->draw_list, nk_rect(r->x, r->y, r->w, r->h),
                r->color, (float)r->rounding);
        } break;
        case NK_COMMAND_RECT_MULTI_COLOR: {
            const struct nk_command_rect_multi_color *r = (const struct nk_command_rect_multi_color*)cmd;
            nk_draw_list_fill_rect_multi_color(&ctx->draw_list, nk_rect(r->x, r->y, r->w, r->h),
                r->left, r->top, r->right, r->bottom);
        } break;
        case NK_COMMAND_CIRCLE: {
            const struct nk_command_circle *c = (const struct nk_command_circle*)cmd;
            nk_draw_list_stroke_circle(&ctx->draw_list, nk_vec2((float)c->x + (float)c->w/2,
                (float)c->y + (float)c->h/2), (float)c->w/2, c->color,
                config->circle_segment_count, c->line_thickness);
        } break;
        case NK_COMMAND_CIRCLE_FILLED: {
            const struct nk_command_circle_filled *c = (const struct nk_command_circle_filled *)cmd;
            nk_draw_list_fill_circle(&ctx->draw_list, nk_vec2((float)c->x + (float)c->w/2,
                (float)c->y + (float)c->h/2), (float)c->w/2, c->color,
                config->circle_segment_count);
        } break;
        case NK_COMMAND_ARC: {
            const struct nk_command_arc *c = (const struct nk_command_arc*)cmd;
            nk_draw_list_path_line_to(&ctx->draw_list, nk_vec2(c->cx, c->cy));
            nk_draw_list_path_arc_to(&ctx->draw_list, nk_vec2(c->cx, c->cy), c->r,
                c->a[0], c->a[1], config->arc_segment_count);
            nk_draw_list_path_stroke(&ctx->draw_list, c->color, NK_STROKE_CLOSED, c->line_thickness);
        } break;
        case NK_COMMAND_ARC_FILLED: {
            const struct nk_command_arc_filled *c = (const struct nk_command_arc_filled*)cmd;
            nk_draw_list_path_line_to(&ctx->draw_list, nk_vec2(c->cx, c->cy));
            nk_draw_list_path_arc_to(&ctx->draw_list, nk_vec2(c->cx, c->cy), c->r,
                c->a[0], c->a[1], config->arc_segment_count);
            nk_draw_list_path_fill(&ctx->draw_list, c->color);
        } break;
        case NK_COMMAND_TRIANGLE: {
            const struct nk_command_triangle *t = (const struct nk_command_triangle*)cmd;
            nk_draw_list_stroke_triangle(&ctx->draw_list, nk_vec2(t->a.x, t->a.y),
                nk_vec2(t->b.x, t->b.y), nk_vec2(t->c.x, t->c.y), t->color,
                t->line_thickness);
        } break;
        case NK_COMMAND_TRIANGLE_FILLED: {
            const struct nk_command_triangle_filled *t = (const struct nk_command_triangle_filled*)cmd;
            nk_draw_list_fill_triangle(&ctx->draw_list, nk_vec2(t->a.x, t->a.y),
                nk_vec2(t->b.x, t->b.y), nk_vec2(t->c.x, t->c.y), t->color);
        } break;
        case NK_COMMAND_POLYGON: {
            int i;
            const struct nk_command_polygon*p = (const struct nk_command_polygon*)cmd;
            for (i = 0; i < p->point_count; ++i) {
                struct nk_vec2 pnt = nk_vec2((float)p->points[i].x, (float)p->points[i].y);
                nk_draw_list_path_line_to(&ctx->draw_list, pnt);
            }
            nk_draw_list_path_stroke(&ctx->draw_list, p->color, NK_STROKE_CLOSED, p->line_thickness);
        } break;
        case NK_COMMAND_POLYGON_FILLED: {
            int i;
            const struct nk_command_polygon_filled *p = (const struct nk_command_polygon_filled*)cmd;
            for (i = 0; i < p->point_count; ++i) {
                struct nk_vec2 pnt = nk_vec2((float)p->points[i].x, (float)p->points[i].y);
                nk_draw_list_path_line_to(&ctx->draw_list, pnt);
            }
            nk_draw_list_path_fill(&ctx->draw_list, p->color);
        } break;
        case NK_COMMAND_POLYLINE: {
            int i;
            const struct nk_command_polyline *p = (const struct nk_command_polyline*)cmd;
            for (i = 0; i < p->point_count; ++i) {
                struct nk_vec2 pnt = nk_vec2((float)p->points[i].x, (float)p->points[i].y);
                nk_draw_list_path_line_to(&ctx->draw_list, pnt);
            }
            nk_draw_list_path_stroke(&ctx->draw_list, p->color, NK_STROKE_OPEN, p->line_thickness);
        } break;
        case NK_COMMAND_TEXT: {
            const struct nk_command_text *t = (const struct nk_command_text*)cmd;
            nk_draw_list_add_text(&ctx->draw_list, t->font, nk_rect(t->x, t->y, t->w, t->h),
                t->string, t->length, t->height, t->foreground);
        } break;
        case NK_COMMAND_IMAGE: {
            const struct nk_command_image *i = (const struct nk_command_image*)cmd;
            nk_draw_list_add_image(&ctx->draw_list, i->img, nk_rect(i->x, i->y, i->w, i->h), i->col);
        } break;
        case NK_COMMAND_CUSTOM: {
            const struct nk_command_custom *c = (const struct nk_command_custom*)cmd;
            c->callback(&ctx->draw_list, c->x, c->y, c->w, c->h, c->callback_data);
        } break;
        default: break;
        }
    }
    res |= (cmds->needed > cmds->allocated + (cmds->memory.size - cmds->size)) ? NK_CONVERT_COMMAND_BUFFER_FULL: 0;
    res |= (vertices->needed > vertices->allocated) ? NK_CONVERT_VERTEX_BUFFER_FULL: 0;
    res |= (elements->needed > elements->allocated) ? NK_CONVERT_ELEMENT_BUFFER_FULL: 0;
    return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r12
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %rbp
movq %rdi, %r13
testq %rdi, %rdi
jne 0x2bcf7
movq 0x5c31e(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x460b0(%rip), %rsi     # 0x71d8c
leaq 0x460c7(%rip), %rdx     # 0x71daa
movl $0x29b7, %ecx           # imm = 0x29B7
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %rbp, %rbp
jne 0x2bd28
movq 0x5c2ed(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x4607f(%rip), %rsi     # 0x71d8c
leaq 0x46096(%rip), %rdx     # 0x71daa
movl $0x29b8, %ecx           # imm = 0x29B8
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %r15, %r15
jne 0x2bd59
movq 0x5c2bc(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x4604e(%rip), %rsi     # 0x71d8c
leaq 0x46065(%rip), %rdx     # 0x71daa
movl $0x29b9, %ecx           # imm = 0x29B9
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %r14, %r14
jne 0x2bd8a
movq 0x5c28b(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x4601d(%rip), %rsi     # 0x71d8c
leaq 0x46034(%rip), %rdx     # 0x71daa
movl $0x29ba, %ecx           # imm = 0x29BA
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %r12, %r12
jne 0x2bdbb
movq 0x5c25a(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x45fec(%rip), %rsi     # 0x71d8c
leaq 0x46003(%rip), %rdx     # 0x71daa
movl $0x29bb, %ecx           # imm = 0x29BB
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
cmpq $0x0, 0x28(%r12)
jne 0x2bdef
movq 0x5c226(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x45fb8(%rip), %rsi     # 0x71d8c
leaq 0x45fcf(%rip), %rdx     # 0x71daa
movl $0x29bc, %ecx           # imm = 0x29BC
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
cmpq $0x0, 0x30(%r12)
jne 0x2be23
movq 0x5c1f2(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x45f84(%rip), %rsi     # 0x71d8c
leaq 0x45f9b(%rip), %rdx     # 0x71daa
movl $0x29bd, %ecx           # imm = 0x29BD
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %r12, %r12
sete %cl
testq %r14, %r14
sete %al
testq %r15, %r15
sete %dl
testq %rbp, %rbp
sete %sil
testq %r13, %r13
sete %dil
orb %sil, %dil
orb %al, %dl
orb %dil, %dl
movl $0x1, %eax
orb %cl, %dl
jne 0x2c486
cmpq $0x0, 0x28(%r12)
je 0x2c486
movq %rbp, 0x20(%rsp)
movq %rbp, 0x3190(%r13)
movq 0x4(%r12), %rax
movups 0x30(%r12), %xmm0
movups %xmm0, 0x3180(%r13)
movups 0x20(%r12), %xmm0
movups %xmm0, 0x3170(%r13)
movups 0x10(%r12), %xmm0
movups %xmm0, 0x3160(%r13)
movups (%r12), %xmm0
movups %xmm0, 0x3150(%r13)
movq %r14, 0x30(%rsp)
movq %r14, 0x31a0(%r13)
movq %r15, 0x28(%rsp)
movq %r15, 0x3198(%r13)
movq %rax, 0x31c8(%r13)
movups 0x429ce(%rip), %xmm0    # 0x6e8a0
movups %xmm0, 0x30e0(%r13)
xorl %eax, %eax
movq %rax, 0x31b8(%r13)
movq %rax, 0x31a8(%r13)
movl %eax, 0x31b0(%r13)
movl %eax, 0x31c0(%r13)
movq %r13, %rdi
callq 0x12810
testq %rax, %rax
je 0x2c43e
movq %rax, %rbp
leaq 0x30e0(%r13), %rbx
leaq 0x42b26(%rip), %r14     # 0x6ea40
movl (%rbp), %eax
decl %eax
cmpl $0x11, %eax
ja 0x2c413
movslq (%r14,%rax,4), %rax
addq %r14, %rax
jmpq *%rax
movq 0x10(%rbp), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x14(%rbp), %xmm1
punpcklwd 0x42661(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1],xmm1[2],mem[2],xmm1[3],mem[3]
cvtdq2ps %xmm1, %xmm1
movq %rbx, %rdi
callq 0x2a66a
jmp 0x2c413
movq 0x10(%rbp), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x14(%rbp), %xmm1
punpcklwd 0x42633(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1],xmm1[2],mem[2],xmm1[3],mem[3]
cvtdq2ps %xmm1, %xmm1
movl 0x30(%rbp), %esi
movq 0x28(%rbp), %rax
movq %rax, 0x10(%rsp)
movups 0x18(%rbp), %xmm2
movups %xmm2, (%rsp)
movq %rbx, %rdi
callq 0x12250
jmp 0x2c413
cmpw $0x0, 0x16(%rbp)
je 0x2bfd3
xorl %r15d, %r15d
movd 0x18(%rbp,%r15,4), %xmm0
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movq %rbx, %rdi
callq 0x12970
incq %r15
movzwl 0x16(%rbp), %eax
cmpq %rax, %r15
jb 0x2bfab
movzwl 0x14(%rbp), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movl 0x10(%rbp), %esi
movq %rbx, %rdi
xorl %edx, %edx
jmp 0x2c40e
movq 0x10(%rbp), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x14(%rbp), %xmm1
pshuflw $0x60, %xmm1, %xmm1     # xmm1 = xmm1[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm1
cvtdq2ps %xmm1, %xmm1
movq 0x18(%rbp), %xmm2
punpcklwd %xmm2, %xmm2    # xmm2 = xmm2[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm2
cvtdq2ps %xmm2, %xmm2
movl 0x1c(%rbp), %esi
movq %rbx, %rdi
callq 0x12a60
jmp 0x2c413
movd 0x12(%rbp), %xmm0
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x16(%rbp), %xmm1
punpcklwd 0x42562(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1],xmm1[2],mem[2],xmm1[3],mem[3]
cvtdq2ps %xmm1, %xmm1
movzwl 0x10(%rbp), %eax
xorps %xmm2, %xmm2
cvtsi2ss %eax, %xmm2
movl 0x1a(%rbp), %esi
movq %rbx, %rdi
callq 0x13050
jmp 0x2c413
cmpw $0x0, 0x16(%rbp)
je 0x2c09e
xorl %r15d, %r15d
movd 0x18(%rbp,%r15,4), %xmm0
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movq %rbx, %rdi
callq 0x12970
incq %r15
movzwl 0x16(%rbp), %eax
cmpq %rax, %r15
jb 0x2c076
movzwl 0x14(%rbp), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movl 0x10(%rbp), %esi
jmp 0x2c406
movq 0x10(%rbp), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movq %rbx, %rdi
callq 0x12970
movq 0x10(%rbp), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
movzwl 0x14(%rbp), %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
cvtdq2ps %xmm0, %xmm0
movss 0x18(%rbp), %xmm2
movss 0x1c(%rbp), %xmm3
movl 0x10(%r12), %esi
movq %rbx, %rdi
callq 0x13480
movl 0x20(%rbp), %esi
jmp 0x2c306
movd 0x12(%rbp), %xmm0
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x1a(%rbp), %xmm1
pshuflw $0x60, %xmm1, %xmm1     # xmm1 = xmm1[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm1
cvtdq2ps %xmm1, %xmm1
movd 0x1e(%rbp), %xmm2
pshuflw $0x60, %xmm2, %xmm2     # xmm2 = xmm2[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm2
cvtdq2ps %xmm2, %xmm2
movd 0x16(%rbp), %xmm3
pshuflw $0x60, %xmm3, %xmm3     # xmm3 = xmm3[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm3
cvtdq2ps %xmm3, %xmm3
movl 0x14(%r12), %edx
movzwl 0x10(%rbp), %eax
xorps %xmm4, %xmm4
cvtsi2ss %eax, %xmm4
movl 0x22(%rbp), %esi
movq %rbx, %rdi
callq 0x127d0
jmp 0x2c413
movq 0x10(%rbp), %rsi
movq 0x20(%rbp), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x24(%rbp), %xmm1
punpcklwd 0x42421(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1],xmm1[2],mem[2],xmm1[3],mem[3]
cvtdq2ps %xmm1, %xmm1
leaq 0x30(%rbp), %rdx
movl 0x2c(%rbp), %ecx
movss 0x28(%rbp), %xmm2
movl 0x1c(%rbp), %r8d
movq %rbx, %rdi
callq 0x126e0
jmp 0x2c413
movd 0x14(%rbp), %xmm0
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movq 0x18(%rbp), %xmm1
punpcklwd 0x423e2(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1],xmm1[2],mem[2],xmm1[3],mem[3]
cvtdq2ps %xmm1, %xmm1
movzwl 0x10(%rbp), %eax
xorps %xmm2, %xmm2
cvtsi2ss %eax, %xmm2
movzwl 0x12(%rbp), %eax
xorps %xmm3, %xmm3
cvtsi2ss %eax, %xmm3
movl 0x1c(%rbp), %esi
movq %rbx, %rdi
callq 0x126f0
jmp 0x2c413
movq 0x10(%rbp), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x14(%rbp), %xmm1
punpcklwd 0x4239b(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1],xmm1[2],mem[2],xmm1[3],mem[3]
cvtdq2ps %xmm1, %xmm1
mulps 0x423b1(%rip), %xmm1    # 0x6e5d0
addps %xmm1, %xmm0
movl 0xc(%r12), %edx
movl 0x18(%rbp), %esi
movq %rbx, %rdi
callq 0x12110
jmp 0x2c413
movd 0x12(%rbp), %xmm0
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x16(%rbp), %xmm1
pshuflw $0x60, %xmm1, %xmm1     # xmm1 = xmm1[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm1
cvtdq2ps %xmm1, %xmm1
movzwl 0x10(%rbp), %eax
xorps %xmm2, %xmm2
cvtsi2ss %eax, %xmm2
movl 0x1a(%rbp), %esi
movq %rbx, %rdi
callq 0x12280
jmp 0x2c413
movswl 0x10(%rbp), %esi
movswl 0x12(%rbp), %edx
movzwl 0x14(%rbp), %ecx
movzwl 0x16(%rbp), %r8d
movq 0x18(%rbp), %r9
movq %rbx, %rdi
callq *0x20(%rbp)
jmp 0x2c413
movq 0x10(%rbp), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x14(%rbp), %xmm1
punpcklwd 0x422fc(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1],xmm1[2],mem[2],xmm1[3],mem[3]
cvtdq2ps %xmm1, %xmm1
movl 0x18(%rbp), %esi
movl 0x1c(%rbp), %edx
movl 0x24(%rbp), %ecx
movl 0x20(%rbp), %r8d
movq %rbx, %rdi
callq 0x13810
jmp 0x2c413
cmpw $0x0, 0x14(%rbp)
je 0x2c303
xorl %r15d, %r15d
movd 0x16(%rbp,%r15,4), %xmm0
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movq %rbx, %rdi
callq 0x12970
incq %r15
movzwl 0x14(%rbp), %eax
cmpq %rax, %r15
jb 0x2c2db
movl 0x10(%rbp), %esi
movq %rbx, %rdi
callq 0x12800
jmp 0x2c413
movq 0x10(%rbp), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x16(%rbp), %xmm1
punpcklwd 0x4227f(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1],xmm1[2],mem[2],xmm1[3],mem[3]
cvtdq2ps %xmm1, %xmm1
mulps 0x42295(%rip), %xmm1    # 0x6e5d0
addps %xmm1, %xmm0
movl 0xc(%r12), %edx
movzwl 0x14(%rbp), %eax
xorps %xmm2, %xmm2
cvtsi2ss %eax, %xmm2
movl 0x1a(%rbp), %esi
movq %rbx, %rdi
callq 0x13740
jmp 0x2c413
movd 0x12(%rbp), %xmm0
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x16(%rbp), %xmm1
pshuflw $0x60, %xmm1, %xmm1     # xmm1 = xmm1[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm1
cvtdq2ps %xmm1, %xmm1
movd 0x1a(%rbp), %xmm2
pshuflw $0x60, %xmm2, %xmm2     # xmm2 = xmm2[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm2
cvtdq2ps %xmm2, %xmm2
movzwl 0x10(%rbp), %eax
xorps %xmm3, %xmm3
cvtsi2ss %eax, %xmm3
movl 0x1e(%rbp), %esi
movq %rbx, %rdi
callq 0x12ac0
jmp 0x2c413
movq 0x10(%rbp), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movq %rbx, %rdi
callq 0x12970
movq 0x10(%rbp), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
movzwl 0x14(%rbp), %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
cvtdq2ps %xmm0, %xmm0
movss 0x18(%rbp), %xmm2
movss 0x1c(%rbp), %xmm3
movl 0x10(%r12), %esi
movq %rbx, %rdi
callq 0x13480
movzwl 0x16(%rbp), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movl 0x20(%rbp), %esi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x13b80
cmpl $0x0, 0x4790(%r13)
je 0x2c433
movq 0x8(%rbp), %rbp
cmpq 0x2560(%r13), %rbp
jae 0x2c433
addq 0x2548(%r13), %rbp
jmp 0x2c435
xorl %ebp, %ebp
testq %rbp, %rbp
jne 0x2bf1a
movq 0x20(%rsp), %rdx
movq 0x48(%rdx), %rax
addq 0x58(%rdx), %rax
subq 0x70(%rdx), %rax
xorl %ecx, %ecx
cmpq %rax, 0x60(%rdx)
seta %cl
movq 0x28(%rsp), %rsi
movq 0x60(%rsi), %rax
xorl %edx, %edx
cmpq 0x58(%rsi), %rax
seta %dl
shll $0x2, %edx
movq 0x30(%rsp), %rdi
movq 0x60(%rdi), %rax
xorl %esi, %esi
cmpq 0x58(%rdi), %rax
leal (%rdx,%rcx,2), %eax
seta %sil
leal (%rax,%rsi,8), %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq