// File: /workspace/github_c_makefile_star2_O2/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 0x2a070
movq 0x5afa5(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x3fcb7(%rip), %rsi     # 0x69d0c
leaq 0x3fcce(%rip), %rdx     # 0x69d2a
movl $0x29b7, %ecx           # imm = 0x29B7
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
testq %rbp, %rbp
jne 0x2a0a1
movq 0x5af74(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x3fc86(%rip), %rsi     # 0x69d0c
leaq 0x3fc9d(%rip), %rdx     # 0x69d2a
movl $0x29b8, %ecx           # imm = 0x29B8
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
testq %r15, %r15
jne 0x2a0d2
movq 0x5af43(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x3fc55(%rip), %rsi     # 0x69d0c
leaq 0x3fc6c(%rip), %rdx     # 0x69d2a
movl $0x29b9, %ecx           # imm = 0x29B9
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
testq %r14, %r14
jne 0x2a103
movq 0x5af12(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x3fc24(%rip), %rsi     # 0x69d0c
leaq 0x3fc3b(%rip), %rdx     # 0x69d2a
movl $0x29ba, %ecx           # imm = 0x29BA
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
testq %r12, %r12
jne 0x2a134
movq 0x5aee1(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x3fbf3(%rip), %rsi     # 0x69d0c
leaq 0x3fc0a(%rip), %rdx     # 0x69d2a
movl $0x29bb, %ecx           # imm = 0x29BB
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
cmpq $0x0, 0x28(%r12)
jne 0x2a168
movq 0x5aead(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x3fbbf(%rip), %rsi     # 0x69d0c
leaq 0x3fbd6(%rip), %rdx     # 0x69d2a
movl $0x29bc, %ecx           # imm = 0x29BC
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
cmpq $0x0, 0x30(%r12)
jne 0x2a19c
movq 0x5ae79(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x3fb8b(%rip), %rsi     # 0x69d0c
leaq 0x3fba2(%rip), %rdx     # 0x69d2a
movl $0x29bd, %ecx           # imm = 0x29BD
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
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
pushq $0x1
popq %rax
orb %cl, %dl
jne 0x2a7b1
cmpq $0x0, 0x28(%r12)
je 0x2a7b1
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 0x3c5d7(%rip), %xmm0    # 0x66820
movups %xmm0, 0x30e0(%r13)
andq $0x0, 0x31a8(%r13)
andq $0x0, 0x31b8(%r13)
andl $0x0, 0x31b0(%r13)
leaq 0x30e0(%r13), %rbp
andl $0x0, 0x31c0(%r13)
movq %r13, %rdi
callq 0x128c0
movq %rax, %rbx
leaq 0x3c736(%rip), %r14     # 0x669c0
testq %rbx, %rbx
je 0x2a769
movl (%rbx), %eax
decl %eax
cmpl $0x11, %eax
ja 0x2a756
movslq (%r14,%rax,4), %rax
addq %r14, %rax
jmpq *%rax
movq 0x10(%rbx), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x14(%rbx), %xmm1
punpcklwd 0x3c2e9(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1],xmm1[2],mem[2],xmm1[3],mem[3]
cvtdq2ps %xmm1, %xmm1
movq %rbp, %rdi
callq 0x28d33
jmp 0x2a756
movq 0x10(%rbx), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x14(%rbx), %xmm1
punpcklwd 0x3c2bb(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1],xmm1[2],mem[2],xmm1[3],mem[3]
cvtdq2ps %xmm1, %xmm1
movl 0x30(%rbx), %esi
movq 0x28(%rbx), %rax
movq %rax, 0x10(%rsp)
movups 0x18(%rbx), %xmm2
movups %xmm2, (%rsp)
movq %rbp, %rdi
callq 0x12290
jmp 0x2a756
xorl %r15d, %r15d
movzwl 0x16(%rbx), %eax
cmpq %rax, %r15
jae 0x2a346
movd 0x18(%rbx,%r15,4), %xmm0
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movq %rbp, %rdi
callq 0x12a20
incq %r15
jmp 0x2a31c
movzwl 0x14(%rbx), %eax
cvtsi2ss %eax, %xmm0
movl 0x10(%rbx), %esi
movq %rbp, %rdi
xorl %edx, %edx
jmp 0x2a751
movq 0x10(%rbx), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x14(%rbx), %xmm1
pshuflw $0x60, %xmm1, %xmm1     # xmm1 = xmm1[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm1
cvtdq2ps %xmm1, %xmm1
movq 0x18(%rbx), %xmm2
punpcklwd %xmm2, %xmm2    # xmm2 = xmm2[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm2
cvtdq2ps %xmm2, %xmm2
movl 0x1c(%rbx), %esi
movq %rbp, %rdi
callq 0x12b20
jmp 0x2a756
movd 0x12(%rbx), %xmm0
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x16(%rbx), %xmm1
punpcklwd 0x3c1f2(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1],xmm1[2],mem[2],xmm1[3],mem[3]
cvtdq2ps %xmm1, %xmm1
movzwl 0x10(%rbx), %eax
cvtsi2ss %eax, %xmm2
movl 0x1a(%rbx), %esi
movq %rbp, %rdi
callq 0x131a0
jmp 0x2a756
xorl %r15d, %r15d
movzwl 0x16(%rbx), %eax
cmpq %rax, %r15
jae 0x2a406
movd 0x18(%rbx,%r15,4), %xmm0
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movq %rbp, %rdi
callq 0x12a20
incq %r15
jmp 0x2a3dc
movzwl 0x14(%rbx), %eax
cvtsi2ss %eax, %xmm0
movl 0x10(%rbx), %esi
jmp 0x2a74b
movq 0x10(%rbx), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movq %rbp, %rdi
callq 0x12a20
movq 0x10(%rbx), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
movzwl 0x14(%rbx), %eax
cvtsi2ss %eax, %xmm1
cvtdq2ps %xmm0, %xmm0
movss 0x18(%rbx), %xmm2
movss 0x1c(%rbx), %xmm3
movl 0x10(%r12), %esi
movq %rbp, %rdi
callq 0x13610
movl 0x20(%rbx), %esi
jmp 0x2a657
movd 0x12(%rbx), %xmm0
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x1a(%rbx), %xmm1
pshuflw $0x60, %xmm1, %xmm1     # xmm1 = xmm1[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm1
cvtdq2ps %xmm1, %xmm1
movd 0x1e(%rbx), %xmm2
pshuflw $0x60, %xmm2, %xmm2     # xmm2 = xmm2[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm2
cvtdq2ps %xmm2, %xmm2
movd 0x16(%rbx), %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(%rbx), %eax
cvtsi2ss %eax, %xmm4
movl 0x22(%rbx), %esi
movq %rbp, %rdi
callq 0x12880
jmp 0x2a756
movq 0x10(%rbx), %rsi
movq 0x20(%rbx), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x24(%rbx), %xmm1
punpcklwd 0x3c0c2(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1],xmm1[2],mem[2],xmm1[3],mem[3]
cvtdq2ps %xmm1, %xmm1
leaq 0x30(%rbx), %rdx
movl 0x2c(%rbx), %ecx
movss 0x28(%rbx), %xmm2
movl 0x1c(%rbx), %r8d
movq %rbp, %rdi
callq 0x12760
jmp 0x2a756
movd 0x14(%rbx), %xmm0
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movq 0x18(%rbx), %xmm1
punpcklwd 0x3c083(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1],xmm1[2],mem[2],xmm1[3],mem[3]
cvtdq2ps %xmm1, %xmm1
movzwl 0x10(%rbx), %eax
cvtsi2ss %eax, %xmm2
movzwl 0x12(%rbx), %eax
cvtsi2ss %eax, %xmm3
movl 0x1c(%rbx), %esi
movq %rbp, %rdi
callq 0x12770
jmp 0x2a756
movq 0x10(%rbx), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x14(%rbx), %xmm1
punpcklwd 0x3c042(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1],xmm1[2],mem[2],xmm1[3],mem[3]
cvtdq2ps %xmm1, %xmm1
mulps 0x3c048(%rip), %xmm1    # 0x665c0
addps %xmm1, %xmm0
movl 0xc(%r12), %edx
movl 0x18(%rbx), %esi
movq %rbp, %rdi
callq 0x12120
jmp 0x2a756
movd 0x12(%rbx), %xmm0
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x16(%rbx), %xmm1
pshuflw $0x60, %xmm1, %xmm1     # xmm1 = xmm1[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm1
cvtdq2ps %xmm1, %xmm1
movzwl 0x10(%rbx), %eax
cvtsi2ss %eax, %xmm2
movl 0x1a(%rbx), %esi
movq %rbp, %rdi
callq 0x122c0
jmp 0x2a756
movswl 0x10(%rbx), %esi
movswl 0x12(%rbx), %edx
movzwl 0x14(%rbx), %ecx
movzwl 0x16(%rbx), %r8d
movq 0x18(%rbx), %r9
movq %rbp, %rdi
callq *0x20(%rbx)
jmp 0x2a756
movq 0x10(%rbx), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x14(%rbx), %xmm1
punpcklwd 0x3bfa6(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1],xmm1[2],mem[2],xmm1[3],mem[3]
cvtdq2ps %xmm1, %xmm1
movl 0x18(%rbx), %esi
movl 0x1c(%rbx), %edx
movl 0x24(%rbx), %ecx
movl 0x20(%rbx), %r8d
movq %rbp, %rdi
callq 0x13a00
jmp 0x2a756
xorl %r15d, %r15d
movzwl 0x14(%rbx), %eax
cmpq %rax, %r15
jae 0x2a654
movd 0x16(%rbx,%r15,4), %xmm0
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movq %rbp, %rdi
callq 0x12a20
incq %r15
jmp 0x2a62a
movl 0x10(%rbx), %esi
movq %rbp, %rdi
callq 0x128b0
jmp 0x2a756
movq 0x10(%rbx), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x16(%rbx), %xmm1
punpcklwd 0x3bf2e(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1],xmm1[2],mem[2],xmm1[3],mem[3]
cvtdq2ps %xmm1, %xmm1
mulps 0x3bf34(%rip), %xmm1    # 0x665c0
addps %xmm1, %xmm0
movl 0xc(%r12), %edx
movzwl 0x14(%rbx), %eax
cvtsi2ss %eax, %xmm2
movl 0x1a(%rbx), %esi
movq %rbp, %rdi
callq 0x13920
jmp 0x2a756
movd 0x12(%rbx), %xmm0
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movd 0x16(%rbx), %xmm1
pshuflw $0x60, %xmm1, %xmm1     # xmm1 = xmm1[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm1
cvtdq2ps %xmm1, %xmm1
movd 0x1a(%rbx), %xmm2
pshuflw $0x60, %xmm2, %xmm2     # xmm2 = xmm2[0,0,2,1,4,5,6,7]
psrad $0x10, %xmm2
cvtdq2ps %xmm2, %xmm2
movzwl 0x10(%rbx), %eax
cvtsi2ss %eax, %xmm3
movl 0x1e(%rbx), %esi
movq %rbp, %rdi
callq 0x12b80
jmp 0x2a756
movq 0x10(%rbx), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
movq %rbp, %rdi
callq 0x12a20
movq 0x10(%rbx), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
movzwl 0x14(%rbx), %eax
cvtsi2ss %eax, %xmm1
cvtdq2ps %xmm0, %xmm0
movss 0x18(%rbx), %xmm2
movss 0x1c(%rbx), %xmm3
movl 0x10(%r12), %esi
movq %rbp, %rdi
callq 0x13610
movzwl 0x16(%rbx), %eax
cvtsi2ss %eax, %xmm0
movl 0x20(%rbx), %esi
movq %rbp, %rdi
pushq $0x1
popq %rdx
callq 0x13d80
movq %r13, %rdi
movq %rbx, %rsi
callq 0x12480
movq %rax, %rbx
jmp 0x2a28a
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