// File: /workspace/github_cpp_makefile_star2_O3/donqustix[P]SoftwareRenderer/src/main.cpp
// Function: (anonymous namespace)::render_triangle(SDL_Surface*, (anonymous namespace)::Vertex const&, (anonymous namespace)::Vertex const&, (anonymous namespace)::Vertex const&, (anonymous namespace)::Matrix<float> const&)
void render_triangle(SDL_Surface* surface, const Vertex& vert1, const Vertex& vert2,
                                                                    const Vertex& vert3, const mat4f& matrix) noexcept
    {
        const vec4f virtual_pos1 = matrix * vert1.position, virtual_pos2 = matrix * vert2.position,
                    virtual_pos3 = matrix * vert3.position;

        if (::check_virtual_position(virtual_pos1) ||
            ::check_virtual_position(virtual_pos2) || ::check_virtual_position(virtual_pos3)) return;

        const auto screenspace_matrix = mat4f::create_screenspace(surface->w, surface->h);

        const auto screenspace_pos1 = screenspace_matrix * virtual_pos1,
                   screenspace_pos2 = screenspace_matrix * virtual_pos2,
                   screenspace_pos3 = screenspace_matrix * virtual_pos3;

        ::rasterize_triangle(surface, {screenspace_pos1 / screenspace_pos1.get_w(), vert1.color},
                                      {screenspace_pos2 / screenspace_pos2.get_w(), vert2.color},
                                      {screenspace_pos3 / screenspace_pos3.get_w(), vert3.color});
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x338, %rsp            # imm = 0x338
movq %r8, %r13
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq %r8, %rdi
callq 0x45c3
movaps %xmm0, -0x60(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm0, %xmm2
movlhps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0]
movups %xmm2, -0x320(%rbp)
movq %r13, %rdi
movq %r15, %rsi
callq 0x45c3
movaps %xmm0, -0x90(%rbp)
movaps %xmm1, -0x50(%rbp)
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movups %xmm0, -0x310(%rbp)
movq %r13, %rdi
movq %r14, %rsi
callq 0x45c3
movaps -0x60(%rbp), %xmm5
movaps -0xa0(%rbp), %xmm4
movaps %xmm0, %xmm2
movlhps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0]
movups %xmm2, -0x300(%rbp)
movaps %xmm4, %xmm2
shufps $0x55, %xmm4, %xmm2     # xmm2 = xmm2[1,1],xmm4[1,1]
movaps 0x1d02(%rip), %xmm3     # 0x5100
xorps %xmm2, %xmm3
ucomiss %xmm5, %xmm3
ja 0x4399
ucomiss %xmm2, %xmm5
ja 0x4399
shufps $0x55, %xmm5, %xmm5     # xmm5 = xmm5[1,1,1,1]
ucomiss %xmm5, %xmm3
ja 0x4399
ucomiss %xmm2, %xmm5
ja 0x4399
ucomiss %xmm4, %xmm3
ja 0x4399
ucomiss %xmm2, %xmm4
ja 0x4399
movaps -0x50(%rbp), %xmm2
shufps $0x55, %xmm2, %xmm2     # xmm2 = xmm2[1,1,1,1]
movaps 0x1cb6(%rip), %xmm3     # 0x5100
xorps %xmm2, %xmm3
ucomiss -0x90(%rbp), %xmm3
ja 0x4399
movaps -0x90(%rbp), %xmm4
ucomiss %xmm2, %xmm4
ja 0x4399
movaps -0x90(%rbp), %xmm5
shufps $0x55, %xmm5, %xmm5     # xmm5 = xmm5[1,1,1,1]
ucomiss %xmm5, %xmm3
ja 0x4399
ucomiss %xmm2, %xmm5
ja 0x4399
ucomiss -0x50(%rbp), %xmm3
ja 0x4399
movaps -0x50(%rbp), %xmm3
ucomiss %xmm2, %xmm3
ja 0x4399
movaps %xmm1, %xmm2
shufps $0x55, %xmm1, %xmm2     # xmm2 = xmm2[1,1],xmm1[1,1]
movaps 0x1c54(%rip), %xmm3     # 0x5100
xorps %xmm2, %xmm3
ucomiss %xmm0, %xmm3
ja 0x4399
ucomiss %xmm2, %xmm0
ja 0x4399
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
ucomiss %xmm0, %xmm3
ja 0x4399
ucomiss %xmm2, %xmm0
ja 0x4399
ucomiss %xmm1, %xmm3
ja 0x4399
ucomiss %xmm2, %xmm1
ja 0x4399
xorps %xmm0, %xmm0
cvtsi2ssl 0x10(%rbx), %xmm0
movl 0x14(%rbx), %eax
movl %eax, -0x40(%rbp)
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
movss 0x1c0a(%rip), %xmm2     # 0x5110
mulss %xmm2, %xmm0
mulss %xmm2, %xmm1
movaps 0x1beb(%rip), %xmm2     # 0x5100
xorps %xmm1, %xmm2
leaq -0x360(%rbp), %r13
movss %xmm0, (%r13)
xorl %eax, %eax
movq %rax, 0x4(%r13)
movss %xmm0, 0xc(%r13)
movl %eax, 0x10(%r13)
movss %xmm2, 0x14(%r13)
movl %eax, 0x18(%r13)
movss %xmm1, 0x1c(%r13)
movq %rax, 0x20(%r13)
movl $0x3f800000, %eax       # imm = 0x3F800000
movl %eax, 0x28(%r13)
xorps %xmm0, %xmm0
movups %xmm0, 0x2c(%r13)
movl %eax, 0x3c(%r13)
leaq -0x320(%rbp), %rsi
movq %r13, %rdi
callq 0x45c3
movaps %xmm0, -0xa0(%rbp)
movaps %xmm1, -0x50(%rbp)
leaq -0x310(%rbp), %rsi
movq %r13, %rdi
callq 0x45c3
movaps %xmm0, -0x90(%rbp)
movaps %xmm1, -0x60(%rbp)
leaq -0x300(%rbp), %rsi
movq %r13, %rdi
callq 0x45c3
movaps -0xa0(%rbp), %xmm15
movaps -0x90(%rbp), %xmm14
movaps -0x50(%rbp), %xmm2
movaps %xmm2, %xmm3
shufps $0x55, %xmm2, %xmm3     # xmm3 = xmm3[1,1],xmm2[1,1]
movaps %xmm15, %xmm13
divss %xmm3, %xmm13
shufps $0x55, %xmm15, %xmm15   # xmm15 = xmm15[1,1,1,1]
divss %xmm3, %xmm15
divss %xmm3, %xmm2
divss %xmm3, %xmm3
unpcklps %xmm3, %xmm2            # xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
unpcklps %xmm15, %xmm13          # xmm13 = xmm13[0],xmm15[0],xmm13[1],xmm15[1]
movsd 0x10(%r12), %xmm3
movsd 0x18(%r12), %xmm4
movaps -0x60(%rbp), %xmm10
movaps %xmm10, %xmm5
shufps $0x55, %xmm10, %xmm5    # xmm5 = xmm5[1,1],xmm10[1,1]
movaps %xmm14, %xmm7
divss %xmm5, %xmm7
shufps $0x55, %xmm14, %xmm14   # xmm14 = xmm14[1,1,1,1]
divss %xmm5, %xmm14
divss %xmm5, %xmm10
divss %xmm5, %xmm5
unpcklps %xmm5, %xmm10           # xmm10 = xmm10[0],xmm5[0],xmm10[1],xmm5[1]
unpcklps %xmm14, %xmm7           # xmm7 = xmm7[0],xmm14[0],xmm7[1],xmm14[1]
movsd 0x10(%r15), %xmm9
movsd 0x18(%r15), %xmm8
movaps %xmm1, %xmm6
shufps $0x55, %xmm1, %xmm6     # xmm6 = xmm6[1,1],xmm1[1,1]
movaps %xmm0, %xmm5
divss %xmm6, %xmm5
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
divss %xmm6, %xmm0
movaps %xmm0, %xmm12
divss %xmm6, %xmm1
divss %xmm6, %xmm6
ucomiss %xmm14, %xmm15
jbe 0x366e
movaps %xmm4, %xmm11
movaps %xmm3, -0x80(%rbp)
movaps %xmm2, -0x50(%rbp)
movaps %xmm7, %xmm0
movaps %xmm10, %xmm2
movaps %xmm9, %xmm3
movaps %xmm8, %xmm4
jmp 0x3688
movaps %xmm13, %xmm0
movaps %xmm7, %xmm13
movaps %xmm10, -0x50(%rbp)
movaps %xmm9, -0x80(%rbp)
movaps %xmm8, %xmm11
movaps %xmm15, %xmm14
unpcklps %xmm12, %xmm5           # xmm5 = xmm5[0],xmm12[0],xmm5[1],xmm12[1]
unpcklps %xmm6, %xmm1            # xmm1 = xmm1[0],xmm6[0],xmm1[1],xmm6[1]
movsd 0x10(%r14), %xmm7
movsd 0x18(%r14), %xmm6
ucomiss %xmm12, %xmm14
jbe 0x36c5
movaps %xmm0, %xmm12
shufps $0x55, %xmm0, %xmm12    # xmm12 = xmm12[1,1],xmm0[1,1]
movaps %xmm5, -0x170(%rbp)
movaps %xmm1, -0x200(%rbp)
movaps %xmm7, %xmm9
movaps %xmm6, -0x1e0(%rbp)
jmp 0x36ea
movaps %xmm0, -0x170(%rbp)
movaps %xmm2, -0x200(%rbp)
movaps %xmm3, %xmm9
movaps %xmm4, -0x1e0(%rbp)
movaps %xmm5, %xmm0
movaps %xmm1, %xmm2
movaps %xmm7, %xmm3
movaps %xmm6, %xmm4
movaps %xmm13, %xmm5
shufps $0x55, %xmm13, %xmm5    # xmm5 = xmm5[1,1],xmm13[1,1]
ucomiss %xmm12, %xmm5
jbe 0x3730
movaps %xmm5, -0x1d0(%rbp)
movaps %xmm0, %xmm1
shufps $0x55, %xmm0, %xmm1     # xmm1 = xmm1[1,1],xmm0[1,1]
movaps %xmm0, -0x210(%rbp)
movaps %xmm2, -0x160(%rbp)
movaps %xmm3, -0x110(%rbp)
movaps %xmm4, -0x100(%rbp)
movaps %xmm1, %xmm0
movaps -0x80(%rbp), %xmm3
movaps %xmm11, %xmm4
jmp 0x3769
movaps %xmm12, -0x1d0(%rbp)
movaps %xmm13, -0x210(%rbp)
movaps -0x50(%rbp), %xmm1
movaps %xmm1, -0x160(%rbp)
movaps -0x80(%rbp), %xmm1
movaps %xmm1, -0x110(%rbp)
movaps %xmm11, -0x100(%rbp)
movaps %xmm0, %xmm13
movaps %xmm2, -0x50(%rbp)
movaps %xmm5, %xmm0
movaps -0x170(%rbp), %xmm2
shufps $0x55, %xmm2, %xmm2     # xmm2 = xmm2[1,1,1,1]
movaps %xmm9, %xmm1
shufps $0x55, %xmm9, %xmm1     # xmm1 = xmm1[1,1],xmm9[1,1]
movaps %xmm1, -0x230(%rbp)
movaps -0x1e0(%rbp), %xmm1
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
movaps %xmm1, -0x2a0(%rbp)
movaps %xmm3, -0x80(%rbp)
shufps $0x55, %xmm3, %xmm3     # xmm3 = xmm3[1,1,1,1]
movaps %xmm3, -0x280(%rbp)
movaps %xmm4, -0x180(%rbp)
shufps $0x55, %xmm4, %xmm4     # xmm4 = xmm4[1,1,1,1]
movaps %xmm4, -0x290(%rbp)
movaps %xmm0, -0x240(%rbp)
movaps %xmm2, -0x220(%rbp)
subss %xmm2, %xmm0
xorps %xmm1, %xmm1
movss %xmm0, -0x34(%rbp)
ucomiss %xmm1, %xmm0
jne 0x37dc
jnp 0x3dd2
movaps -0x1d0(%rbp), %xmm0
movaps -0x220(%rbp), %xmm1
subss %xmm1, %xmm0
movaps %xmm13, %xmm12
movaps -0x170(%rbp), %xmm2
subss %xmm2, %xmm12
movaps -0x210(%rbp), %xmm8
subss %xmm2, %xmm8
movss -0x34(%rbp), %xmm6
divss %xmm6, %xmm8
divss %xmm0, %xmm12
movaps %xmm1, %xmm14
subss %xmm1, %xmm14
movaps -0x110(%rbp), %xmm1
subps %xmm9, %xmm1
movaps %xmm1, %xmm4
shufps $0x55, %xmm1, %xmm4     # xmm4 = xmm4[1,1],xmm1[1,1]
movaps -0x100(%rbp), %xmm2
movaps -0x1e0(%rbp), %xmm7
subps %xmm7, %xmm2
movaps %xmm2, %xmm5
shufps $0x55, %xmm2, %xmm5     # xmm5 = xmm5[1,1],xmm2[1,1]
movaps -0x80(%rbp), %xmm15
subss %xmm9, %xmm15
movaps -0x280(%rbp), %xmm3
subss -0x230(%rbp), %xmm3
movaps -0x180(%rbp), %xmm11
subss %xmm7, %xmm11
divss %xmm6, %xmm1
divss %xmm6, %xmm4
unpcklps %xmm4, %xmm1            # xmm1 = xmm1[0],xmm4[0],xmm1[1],xmm4[1]
movaps -0x290(%rbp), %xmm4
movaps -0x2a0(%rbp), %xmm10
subss %xmm10, %xmm4
divss %xmm6, %xmm2
divss %xmm6, %xmm5
unpcklps %xmm5, %xmm2            # xmm2 = xmm2[0],xmm5[0],xmm2[1],xmm5[1]
divss %xmm0, %xmm15
divss %xmm0, %xmm3
divss %xmm0, %xmm11
movss %xmm0, -0x60(%rbp)
divss %xmm0, %xmm4
movaps %xmm14, %xmm5
mulss %xmm15, %xmm5
unpcklps %xmm3, %xmm15           # xmm15 = xmm15[0],xmm3[0],xmm15[1],xmm3[1]
mulss %xmm14, %xmm3
addss %xmm9, %xmm5
addss -0x230(%rbp), %xmm3
unpcklps %xmm3, %xmm5            # xmm5 = xmm5[0],xmm3[0],xmm5[1],xmm3[1]
movaps -0x170(%rbp), %xmm6
movaps %xmm14, %xmm3
mulss %xmm11, %xmm3
unpcklps %xmm4, %xmm11           # xmm11 = xmm11[0],xmm4[0],xmm11[1],xmm4[1]
mulss %xmm14, %xmm4
addss %xmm7, %xmm3
addss %xmm10, %xmm4
unpcklps %xmm4, %xmm3            # xmm3 = xmm3[0],xmm4[0],xmm3[1],xmm4[1]
movss %xmm14, -0xb0(%rbp)
mulss %xmm12, %xmm14
addss %xmm6, %xmm14
ucomiss %xmm12, %xmm8
movaps %xmm13, -0x1c0(%rbp)
movaps %xmm9, -0x1b0(%rbp)
jbe 0x397a
movss %xmm14, -0x2c(%rbp)
movaps %xmm11, -0x2d0(%rbp)
movaps %xmm15, -0x190(%rbp)
movaps %xmm12, -0x1a0(%rbp)
movaps %xmm2, -0x2c0(%rbp)
movaps %xmm1, -0x2b0(%rbp)
movaps %xmm3, -0x130(%rbp)
movaps %xmm5, -0x1f0(%rbp)
movaps %xmm7, -0xc0(%rbp)
movaps %xmm9, -0xd0(%rbp)
movss %xmm6, -0x30(%rbp)
movss %xmm8, -0x6c(%rbp)
jmp 0x39ce
movaps %xmm3, -0xc0(%rbp)
movaps %xmm5, -0xd0(%rbp)
movaps %xmm11, -0x2c0(%rbp)
movaps %xmm15, -0x2b0(%rbp)
movaps %xmm7, -0x130(%rbp)
movaps %xmm9, -0x1f0(%rbp)
movaps %xmm1, -0x190(%rbp)
movaps %xmm2, -0x2d0(%rbp)
movss %xmm14, -0x30(%rbp)
movss %xmm6, -0x2c(%rbp)
movss %xmm12, -0x6c(%rbp)
movaps %xmm8, -0x1a0(%rbp)
movaps -0x220(%rbp), %xmm0
callq 0x2160
cvttss2si %xmm0, %r14d
movaps -0x240(%rbp), %xmm0
callq 0x2160
testl %r14d, %r14d
movaps -0x1c0(%rbp), %xmm13
movaps -0x1b0(%rbp), %xmm9
movss -0x2c(%rbp), %xmm4
js 0x3dd2
cvttss2si %xmm0, %eax
movl %eax, -0x70(%rbp)
cmpl %eax, %r14d
jge 0x3dd2
movl -0x70(%rbp), %eax
cmpl %eax, -0x40(%rbp)
jle 0x3dd2
movaps -0x50(%rbp), %xmm2
movaps -0x200(%rbp), %xmm0
subss %xmm0, %xmm2
divss -0x60(%rbp), %xmm2
movaps -0x160(%rbp), %xmm3
subss %xmm0, %xmm3
movss -0xb0(%rbp), %xmm1
movaps %xmm2, -0x2f0(%rbp)
mulss %xmm2, %xmm1
divss -0x34(%rbp), %xmm3
movaps %xmm3, -0x2e0(%rbp)
addss %xmm0, %xmm1
movss %xmm1, -0xb0(%rbp)
movl %r14d, %eax
movq %rax, -0x118(%rbp)
leaq (%rax,%rax,4), %rax
shlq $0x9, %rax
leaq 0x3778(%rip), %rcx      # 0x7200
addq %rax, %rcx
movq %rcx, -0xf0(%rbp)
movss %xmm0, -0x40(%rbp)
movss %xmm4, -0x2c(%rbp)
movaps %xmm4, %xmm0
callq 0x2160
cvttss2si %xmm0, %r15d
movss -0x30(%rbp), %xmm0
callq 0x2160
movss -0x2c(%rbp), %xmm4
movaps -0x1b0(%rbp), %xmm9
movaps -0x1c0(%rbp), %xmm13
testl %r15d, %r15d
js 0x3dd2
cvttss2si %xmm0, %r12d
cmpl %r12d, 0x10(%rbx)
jle 0x3dd2
cmpl %r12d, %r15d
movaps -0x1a0(%rbp), %xmm2
movaps -0x190(%rbp), %xmm3
movss -0x40(%rbp), %xmm6
movq -0xf0(%rbp), %rdi
jge 0x3d22
movaps -0xd0(%rbp), %xmm0
movaps %xmm0, %xmm7
movaps -0x1f0(%rbp), %xmm5
subss %xmm5, %xmm7
movaps %xmm0, %xmm8
shufps $0x55, %xmm0, %xmm8     # xmm8 = xmm8[1,1],xmm0[1,1]
movaps %xmm5, %xmm0
shufps $0x55, %xmm5, %xmm0     # xmm0 = xmm0[1,1],xmm5[1,1]
subss %xmm0, %xmm8
movaps -0xc0(%rbp), %xmm0
movaps %xmm0, %xmm10
movaps -0x130(%rbp), %xmm1
subss %xmm1, %xmm10
movaps %xmm0, %xmm11
shufps $0x55, %xmm0, %xmm11    # xmm11 = xmm11[1,1],xmm0[1,1]
movaps %xmm1, %xmm0
shufps $0x55, %xmm1, %xmm0     # xmm0 = xmm0[1,1],xmm1[1,1]
subss %xmm0, %xmm11
movss -0x30(%rbp), %xmm12
subss %xmm4, %xmm12
divss %xmm12, %xmm7
divss %xmm12, %xmm8
divss %xmm12, %xmm10
divss %xmm12, %xmm11
movss -0xb0(%rbp), %xmm14
subss %xmm6, %xmm14
movl %r15d, %r13d
xorl %r14d, %r14d
movslq -0x118(%rbp), %rax
movq %rax, -0x68(%rbp)
movaps %xmm1, %xmm15
movaps %xmm7, -0x270(%rbp)
movaps %xmm8, -0x260(%rbp)
movaps %xmm10, -0x250(%rbp)
movaps %xmm11, -0xe0(%rbp)
movss %xmm12, -0x150(%rbp)
movss %xmm14, -0x140(%rbp)
xorps %xmm0, %xmm0
cvtsi2ss %r14d, %xmm0
mulss %xmm14, %xmm0
divss %xmm12, %xmm0
addss %xmm6, %xmm0
movss (%rdi,%r13,4), %xmm1
ucomiss %xmm0, %xmm1
jbe 0x3cda
movss %xmm0, (%rdi,%r13,4)
movaps %xmm5, %xmm0
movss 0x1512(%rip), %xmm1     # 0x5114
mulss %xmm1, %xmm0
cvttss2si %xmm0, %esi
movaps %xmm5, -0x60(%rbp)
movaps %xmm5, %xmm0
shufps $0x55, %xmm5, %xmm0     # xmm0 = xmm0[1,1],xmm5[1,1]
movaps %xmm0, -0xa0(%rbp)
mulss %xmm1, %xmm0
cvttss2si %xmm0, %edx
movaps %xmm15, %xmm0
mulss %xmm1, %xmm0
cvttss2si %xmm0, %ecx
movq 0x8(%rbx), %rdi
movl $0xff, %eax
andl %eax, %esi
andl %eax, %ecx
andl %eax, %edx
movaps %xmm15, -0x90(%rbp)
callq 0x2110
movslq 0x10(%rbx), %rcx
imulq -0x68(%rbp), %rcx
shlq $0x2, %rcx
addq 0x20(%rbx), %rcx
movl %eax, (%rcx,%r13,4)
movaps -0x90(%rbp), %xmm15
movaps %xmm15, %xmm0
movaps -0x1c0(%rbp), %xmm13
movaps -0x1b0(%rbp), %xmm9
movaps -0x1a0(%rbp), %xmm2
movaps -0x190(%rbp), %xmm3
movss -0x2c(%rbp), %xmm4
movss -0x40(%rbp), %xmm6
movq -0xf0(%rbp), %rdi
movaps -0x270(%rbp), %xmm7
movaps -0x260(%rbp), %xmm8
movaps -0x250(%rbp), %xmm10
movaps -0xe0(%rbp), %xmm11
movss -0x150(%rbp), %xmm12
movss -0x140(%rbp), %xmm14
movaps -0x60(%rbp), %xmm5
movaps -0xa0(%rbp), %xmm1
jmp 0x3ce5
movaps %xmm5, %xmm1
shufps $0x55, %xmm5, %xmm1     # xmm1 = xmm1[1,1],xmm5[1,1]
movaps %xmm15, %xmm0
addss %xmm7, %xmm5
addss %xmm8, %xmm1
unpcklps %xmm1, %xmm5            # xmm5 = xmm5[0],xmm1[0],xmm5[1],xmm1[1]
addss %xmm10, %xmm0
shufps $0x55, %xmm15, %xmm15   # xmm15 = xmm15[1,1,1,1]
addss %xmm11, %xmm15
unpcklps %xmm15, %xmm0           # xmm0 = xmm0[0],xmm15[0],xmm0[1],xmm15[1]
incq %r13
leal (%r15,%r14), %eax
incl %eax
movl %r14d, %ecx
incl %ecx
movl %ecx, %r14d
movaps %xmm0, %xmm15
cmpl %r12d, %eax
jl 0x3bcc
addss %xmm2, %xmm4
movss -0x30(%rbp), %xmm0
addss -0x6c(%rbp), %xmm0
movss %xmm0, -0x30(%rbp)
addss -0x2e0(%rbp), %xmm6
movss %xmm6, -0x40(%rbp)
movss -0xb0(%rbp), %xmm0
addss -0x2f0(%rbp), %xmm0
movss %xmm0, -0xb0(%rbp)
movaps -0x1f0(%rbp), %xmm0
addps %xmm3, %xmm0
movaps %xmm0, -0x1f0(%rbp)
movaps -0x130(%rbp), %xmm0
addps -0x2d0(%rbp), %xmm0
movaps %xmm0, -0x130(%rbp)
movaps -0xd0(%rbp), %xmm0
addps -0x2b0(%rbp), %xmm0
movaps %xmm0, -0xd0(%rbp)
movaps -0xc0(%rbp), %xmm0
addps -0x2c0(%rbp), %xmm0
movaps %xmm0, -0xc0(%rbp)
movq -0x118(%rbp), %rax
incq %rax
addq $0xa00, %rdi            # imm = 0xA00
movq %rdi, -0xf0(%rbp)
movq %rax, -0x118(%rbp)
cmpl -0x70(%rbp), %eax
jl 0x3a97
movaps -0x1d0(%rbp), %xmm0
movaps %xmm0, %xmm14
subss -0x240(%rbp), %xmm14
ucomiss 0x132a(%rip), %xmm14    # 0x5118
jne 0x3df6
jnp 0x4399
movaps %xmm0, %xmm15
subss -0x220(%rbp), %xmm15
movaps %xmm13, %xmm11
movaps -0x170(%rbp), %xmm0
subss %xmm0, %xmm11
divss %xmm15, %xmm11
movss -0x34(%rbp), %xmm8
movaps %xmm8, %xmm12
mulss %xmm11, %xmm12
addss %xmm0, %xmm12
movaps -0x80(%rbp), %xmm4
movaps %xmm4, %xmm0
movaps -0x110(%rbp), %xmm6
subps %xmm6, %xmm0
movaps %xmm0, %xmm2
shufps $0x55, %xmm0, %xmm2     # xmm2 = xmm2[1,1],xmm0[1,1]
movaps -0x180(%rbp), %xmm5
movaps %xmm5, %xmm1
movaps -0x100(%rbp), %xmm7
subps %xmm7, %xmm1
divss %xmm14, %xmm0
divss %xmm14, %xmm2
unpcklps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
movaps %xmm1, %xmm2
shufps $0x55, %xmm1, %xmm2     # xmm2 = xmm2[1,1],xmm1[1,1]
subss %xmm9, %xmm4
divss %xmm14, %xmm1
divss %xmm14, %xmm2
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
divss %xmm15, %xmm4
movaps %xmm8, %xmm2
mulss %xmm4, %xmm2
addss %xmm9, %xmm2
movaps -0x230(%rbp), %xmm3
movaps -0x280(%rbp), %xmm10
subss %xmm3, %xmm10
divss %xmm15, %xmm10
unpcklps %xmm10, %xmm4           # xmm4 = xmm4[0],xmm10[0],xmm4[1],xmm10[1]
mulss %xmm8, %xmm10
addss %xmm3, %xmm10
movaps -0x1e0(%rbp), %xmm9
subss %xmm9, %xmm5
divss %xmm15, %xmm5
unpcklps %xmm10, %xmm2           # xmm2 = xmm2[0],xmm10[0],xmm2[1],xmm10[1]
movaps %xmm8, %xmm3
mulss %xmm5, %xmm3
addss %xmm9, %xmm3
movaps -0x2a0(%rbp), %xmm9
movaps -0x290(%rbp), %xmm10
subss %xmm9, %xmm10
movss %xmm15, -0xa0(%rbp)
divss %xmm15, %xmm10
unpcklps %xmm10, %xmm5           # xmm5 = xmm5[0],xmm10[0],xmm5[1],xmm10[1]
mulss %xmm8, %xmm10
addss %xmm9, %xmm10
unpcklps %xmm10, %xmm3           # xmm3 = xmm3[0],xmm10[0],xmm3[1],xmm10[1]
movaps -0x210(%rbp), %xmm8
subss %xmm8, %xmm13
divss %xmm14, %xmm13
ucomiss %xmm13, %xmm11
movss %xmm14, -0x60(%rbp)
jbe 0x3f76
movss %xmm12, -0x2c(%rbp)
movaps %xmm11, -0xf0(%rbp)
movaps %xmm5, -0x180(%rbp)
movaps %xmm4, -0x80(%rbp)
movaps %xmm1, -0xb0(%rbp)
movaps %xmm0, -0xd0(%rbp)
movaps %xmm3, -0x150(%rbp)
movaps %xmm2, -0x140(%rbp)
movss %xmm8, -0xe0(%rbp)
movss %xmm13, -0xc0(%rbp)
jmp 0x3fcb
movaps %xmm5, -0xb0(%rbp)
movaps %xmm4, -0xd0(%rbp)
movaps %xmm7, -0x150(%rbp)
movaps %xmm6, -0x140(%rbp)
movaps %xmm3, -0x100(%rbp)
movaps %xmm2, -0x110(%rbp)
movaps %xmm0, -0x80(%rbp)
movaps %xmm1, -0x180(%rbp)
movss %xmm12, -0xe0(%rbp)
movss %xmm8, -0x2c(%rbp)
movss %xmm11, -0xc0(%rbp)
movaps %xmm13, -0xf0(%rbp)
movaps -0x240(%rbp), %xmm0
callq 0x2160
cvttss2si %xmm0, %r14d
movaps -0x1d0(%rbp), %xmm0
callq 0x2160
testl %r14d, %r14d
movss -0x2c(%rbp), %xmm7
movss -0x60(%rbp), %xmm4
js 0x4399
cvttss2si %xmm0, %eax
movl %eax, -0x30(%rbp)
cmpl %eax, %r14d
jge 0x4399
movl -0x30(%rbp), %eax
cmpl %eax, 0x14(%rbx)
jle 0x4399
movaps -0x50(%rbp), %xmm0
movaps %xmm0, %xmm3
movaps -0x200(%rbp), %xmm2
subss %xmm2, %xmm3
divss -0xa0(%rbp), %xmm3
subss -0x160(%rbp), %xmm0
movss -0x34(%rbp), %xmm1
movaps %xmm3, -0x130(%rbp)
mulss %xmm3, %xmm1
divss %xmm4, %xmm0
movaps %xmm0, -0x50(%rbp)
addss %xmm2, %xmm1
movss %xmm1, -0x34(%rbp)
movl %r14d, %eax
movq %rax, -0x68(%rbp)
leaq (%rax,%rax,4), %rax
shlq $0x9, %rax
leaq 0x3190(%rip), %rcx      # 0x7200
addq %rax, %rcx
movq %rcx, -0x40(%rbp)
movss %xmm7, -0x2c(%rbp)
movaps %xmm7, %xmm0
callq 0x2160
cvttss2si %xmm0, %r15d
movss -0xe0(%rbp), %xmm0
callq 0x2160
movss -0x2c(%rbp), %xmm7
testl %r15d, %r15d
js 0x4399
cvttss2si %xmm0, %r12d
cmpl %r12d, 0x10(%rbx)
jle 0x4399
cmpl %r12d, %r15d
movaps -0x50(%rbp), %xmm2
movaps -0x160(%rbp), %xmm3
movaps -0x110(%rbp), %xmm4
movaps -0x100(%rbp), %xmm5
movaps -0xf0(%rbp), %xmm6
movq -0x40(%rbp), %rdi
jge 0x42fe
movaps %xmm4, %xmm9
movaps -0x140(%rbp), %xmm8
subss %xmm8, %xmm9
movaps %xmm4, %xmm10
shufps $0x55, %xmm4, %xmm10    # xmm10 = xmm10[1,1],xmm4[1,1]
movaps %xmm8, %xmm0
shufps $0x55, %xmm8, %xmm0     # xmm0 = xmm0[1,1],xmm8[1,1]
subss %xmm0, %xmm10
movaps %xmm5, %xmm11
movaps -0x150(%rbp), %xmm1
subss %xmm1, %xmm11
movaps %xmm5, %xmm12
shufps $0x55, %xmm5, %xmm12    # xmm12 = xmm12[1,1],xmm5[1,1]
movaps %xmm1, %xmm0
shufps $0x55, %xmm1, %xmm0     # xmm0 = xmm0[1,1],xmm1[1,1]
subss %xmm0, %xmm12
movss -0xe0(%rbp), %xmm13
subss %xmm7, %xmm13
divss %xmm13, %xmm9
divss %xmm13, %xmm10
divss %xmm13, %xmm11
divss %xmm13, %xmm12
movss -0x34(%rbp), %xmm14
subss %xmm3, %xmm14
movl %r15d, %r13d
xorl %r14d, %r14d
movslq -0x68(%rbp), %rax
movq %rax, -0x250(%rbp)
movaps %xmm1, %xmm15
movaps %xmm9, -0x1c0(%rbp)
movaps %xmm10, -0x1b0(%rbp)
movaps %xmm11, -0x1a0(%rbp)
movaps %xmm12, -0x190(%rbp)
movss %xmm13, -0x270(%rbp)
movss %xmm14, -0x260(%rbp)
xorps %xmm0, %xmm0
cvtsi2ss %r14d, %xmm0
mulss %xmm14, %xmm0
divss %xmm13, %xmm0
addss %xmm3, %xmm0
movss (%rdi,%r13,4), %xmm1
ucomiss %xmm0, %xmm1
jbe 0x42b2
movss %xmm0, (%rdi,%r13,4)
movaps %xmm8, %xmm0
movss 0xf3c(%rip), %xmm1      # 0x5114
mulss %xmm1, %xmm0
cvttss2si %xmm0, %esi
movaps %xmm8, -0x60(%rbp)
movaps %xmm8, %xmm0
shufps $0x55, %xmm8, %xmm0     # xmm0 = xmm0[1,1],xmm8[1,1]
movaps %xmm0, -0xa0(%rbp)
mulss %xmm1, %xmm0
cvttss2si %xmm0, %edx
movaps %xmm15, %xmm0
mulss %xmm1, %xmm0
cvttss2si %xmm0, %ecx
movq 0x8(%rbx), %rdi
movl $0xff, %eax
andl %eax, %esi
andl %eax, %ecx
andl %eax, %edx
movaps %xmm15, -0x90(%rbp)
callq 0x2110
movslq 0x10(%rbx), %rcx
imulq -0x250(%rbp), %rcx
shlq $0x2, %rcx
addq 0x20(%rbx), %rcx
movl %eax, (%rcx,%r13,4)
movaps -0x90(%rbp), %xmm15
movaps %xmm15, %xmm0
movaps -0x50(%rbp), %xmm2
movaps -0x160(%rbp), %xmm3
movaps -0x110(%rbp), %xmm4
movaps -0x100(%rbp), %xmm5
movaps -0xf0(%rbp), %xmm6
movss -0x2c(%rbp), %xmm7
movq -0x40(%rbp), %rdi
movaps -0x1c0(%rbp), %xmm9
movaps -0x1b0(%rbp), %xmm10
movaps -0x1a0(%rbp), %xmm11
movaps -0x190(%rbp), %xmm12
movss -0x270(%rbp), %xmm13
movss -0x260(%rbp), %xmm14
movaps -0x60(%rbp), %xmm8
movaps -0xa0(%rbp), %xmm1
jmp 0x42bf
movaps %xmm8, %xmm1
shufps $0x55, %xmm8, %xmm1     # xmm1 = xmm1[1,1],xmm8[1,1]
movaps %xmm15, %xmm0
addss %xmm9, %xmm8
addss %xmm10, %xmm1
unpcklps %xmm1, %xmm8            # xmm8 = xmm8[0],xmm1[0],xmm8[1],xmm1[1]
addss %xmm11, %xmm0
shufps $0x55, %xmm15, %xmm15   # xmm15 = xmm15[1,1,1,1]
addss %xmm12, %xmm15
unpcklps %xmm15, %xmm0           # xmm0 = xmm0[0],xmm15[0],xmm0[1],xmm15[1]
incq %r13
leal (%r15,%r14), %eax
incl %eax
movl %r14d, %ecx
incl %ecx
movl %ecx, %r14d
movaps %xmm0, %xmm15
cmpl %r12d, %eax
jl 0x41a1
addss %xmm6, %xmm7
movss -0xe0(%rbp), %xmm0
addss -0xc0(%rbp), %xmm0
movss %xmm0, -0xe0(%rbp)
addss %xmm2, %xmm3
movaps %xmm3, -0x160(%rbp)
movss -0x34(%rbp), %xmm0
addss -0x130(%rbp), %xmm0
movss %xmm0, -0x34(%rbp)
movaps -0x140(%rbp), %xmm0
addps -0x80(%rbp), %xmm0
movaps %xmm0, -0x140(%rbp)
movaps -0x150(%rbp), %xmm0
addps -0x180(%rbp), %xmm0
movaps %xmm0, -0x150(%rbp)
addps -0xd0(%rbp), %xmm4
movaps %xmm4, -0x110(%rbp)
addps -0xb0(%rbp), %xmm5
movaps %xmm5, -0x100(%rbp)
movq -0x68(%rbp), %rax
incq %rax
addq $0xa00, %rdi            # imm = 0xA00
movq %rdi, -0x40(%rbp)
movq %rax, -0x68(%rbp)
cmpl -0x30(%rbp), %eax
jl 0x4077
addq $0x338, %rsp            # imm = 0x338
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x43ad
movq %rax, %rdi
callq 0x4632
nop