// File: /workspace/github_c_makefile_star2_O0/tvlabs[P]edge264/./edge264_residual.c
// Function: add_idct4x4
static noinline void add_idct4x4(Edge264Context *ctx, int iYCbCr, int DCidx, uint8_t *p)
{
	// loading and scaling
	unsigned qP = ctx->t.QP[iYCbCr];
	int sh = qP / 6;
	i8x16 vm = load32(&normAdjust4x4[qP % 6]);
	i8x16 nA = shuffle(vm, (i8x16){0, 2, 0, 2, 2, 1, 2, 1, 0, 2, 0, 2, 2, 1, 2, 1});
	i8x16 wS = ctx->t.pps.weightScale4x4_v[iYCbCr + mb->mbIsInterFlag * 3];
	i16x8 LS0 = mullou8(wS, nA);
	i16x8 LS1 = mulhiu8(wS, nA);
	i32x4 s8 = set32(8); // for SSE
	i32x4 d0 = shlrrs32(ctx->c_v[0] * cvtlo16u32(LS0), sh, 4, s8);
	i32x4 d1 = shlrrs32(ctx->c_v[1] * cvthi16u32(LS0), sh, 4, s8);
	i32x4 d2 = shlrrs32(ctx->c_v[2] * cvtlo16u32(LS1), sh, 4, s8);
	i32x4 d3 = shlrrs32(ctx->c_v[3] * cvthi16u32(LS1), sh, 4, s8);
	ctx->c_v[0] = ctx->c_v[1] = ctx->c_v[2] = ctx->c_v[3] = (i8x16){};
	if (DCidx >= 0)
		d0[0] = ctx->c[16 + DCidx];
	
	// horizontal 1D transform
	i32x4 e0 = d0 + d2;
	i32x4 e1 = d0 - d2;
	i32x4 e2 = (d1 >> 1) - d3;
	i32x4 e3 = (d3 >> 1) + d1;
	i32x4 f0 = e0 + e3;
	i32x4 f1 = e1 + e2;
	i32x4 f2 = e1 - e2;
	i32x4 f3 = e0 - e3;
	
	// matrix transposition
	i32x4 x0 = ziplo32(f0, f1);
	i32x4 x1 = ziplo32(f2, f3);
	i32x4 x2 = ziphi32(f0, f1);
	i32x4 x3 = ziphi32(f2, f3);
	f0 = (i32x4)ziplo64(x0, x1) + 32;
	f1 = ziphi64(x0, x1);
	f2 = ziplo64(x2, x3);
	f3 = ziphi64(x2, x3);
	
	// vertical 1D transform
	i32x4 g0 = f0 + f2;
	i32x4 g1 = f0 - f2;
	i32x4 g2 = (f1 >> 1) - f3;
	i32x4 g3 = (f3 >> 1) + f1;
	i32x4 h0 = g0 + g3;
	i32x4 h1 = g1 + g2;
	i32x4 h2 = g1 - g2;
	i32x4 h3 = g0 - g3;
	
	// final residual values
	i16x8 r0 = shrps32(h0, h1, 6);
	i16x8 r1 = shrps32(h2, h3, 6);
	
	// addition to values in place, clipping and storage
	size_t stride = ctx->t.stride[iYCbCr];
	INIT_P();
	if (ctx->t.samples_clip[iYCbCr][0] == 255) {
		i8x16 p0 = (i32x4){*(int32_t *)P(0, 0), *(int32_t *)P(0, 1)};
		i8x16 p1 = (i32x4){*(int32_t *)P(0, 2), *(int32_t *)P(0, 3)};
		i32x4 u = packus16(addlou8s16(p0, r0), addlou8s16(p1, r1));
		*(int32_t *)P(0, 0) = u[0];
		*(int32_t *)P(0, 1) = u[1];
		*(int32_t *)P(0, 2) = u[2];
		*(int32_t *)P(0, 3) = u[3];
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x530, %rsp            # imm = 0x530
movq %rdi, -0x2b8(%rbp)
movl %esi, -0x2bc(%rbp)
movl %edx, -0x2c0(%rbp)
movq %rcx, -0x2c8(%rbp)
movq -0x2b8(%rbp), %rax
movslq -0x2bc(%rbp), %rcx
movsbl 0x50(%rax,%rcx), %eax
movl %eax, -0x2cc(%rbp)
movl -0x2cc(%rbp), %eax
movl $0xaaaaaaab, %edx       # imm = 0xAAAAAAAB
imulq %rdx, %rax
shrq $0x22, %rax
movl %eax, -0x2d0(%rbp)
movl -0x2cc(%rbp), %eax
movl %eax, %ecx
movl %ecx, %eax
imulq %rdx, %rcx
shrq $0x22, %rcx
movl %ecx, %edx
addl %edx, %edx
movl %edx, %ecx
leal (%rcx,%rcx,2), %ecx
subl %ecx, %eax
movl %eax, %ecx
leaq 0x98823(%rip), %rax     # 0xcc8d0
vmovd (%rax,%rcx,4), %xmm0
vmovdqa %xmm0, -0x2f0(%rbp)
vmovdqa -0x2f0(%rbp), %xmm0
vmovdqa %xmm0, -0x2e0(%rbp)
vmovdqa -0x2e0(%rbp), %xmm1
vmovdqa 0x95396(%rip), %xmm0    # 0xc9470
vmovdqa %xmm0, -0x310(%rbp)
vmovdqa -0x310(%rbp), %xmm0
vmovdqa %xmm1, -0x2a0(%rbp)
vmovdqa %xmm0, -0x2b0(%rbp)
vmovdqa -0x2a0(%rbp), %xmm1
vmovdqa -0x2b0(%rbp), %xmm0
vmovdqa %xmm1, -0x10(%rbp)
vmovdqa %xmm0, -0x20(%rbp)
vmovdqa -0x10(%rbp), %xmm0
vmovdqa -0x20(%rbp), %xmm1
vpshufb %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x300(%rbp)
movq -0x2b8(%rbp), %rax
movl -0x2bc(%rbp), %ecx
movq 0x680(%rax), %rdx
movsbl 0x2(%rdx), %esi
movl %esi, %edx
leal (%rdx,%rdx,2), %edx
addl %edx, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
vmovdqa 0x230(%rax,%rcx), %xmm0
vmovdqa %xmm0, -0x320(%rbp)
vmovdqa -0x320(%rbp), %xmm0
vmovdqa %xmm0, -0x110(%rbp)
vpmovzxbw -0x110(%rbp), %xmm0
vmovdqa -0x300(%rbp), %xmm1
vmovdqa %xmm1, -0x120(%rbp)
vpmovzxbw -0x120(%rbp), %xmm1
vpmullw %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x330(%rbp)
vmovdqa -0x320(%rbp), %xmm2
vpxor %xmm0, %xmm0, %xmm0
vmovdqa %xmm0, -0x350(%rbp)
vmovdqa -0x350(%rbp), %xmm1
vmovdqa %xmm2, -0x240(%rbp)
vmovdqa %xmm1, -0x250(%rbp)
vmovdqa -0x240(%rbp), %xmm1
vmovdqa -0x250(%rbp), %xmm2
vpunpckhbw %xmm2, %xmm1, %xmm1 # xmm1 = xmm1[8],xmm2[8],xmm1[9],xmm2[9],xmm1[10],xmm2[10],xmm1[11],xmm2[11],xmm1[12],xmm2[12],xmm1[13],xmm2[13],xmm1[14],xmm2[14],xmm1[15],xmm2[15]
vmovdqa -0x300(%rbp), %xmm3
vmovdqa %xmm0, -0x360(%rbp)
vmovdqa -0x360(%rbp), %xmm2
vmovdqa %xmm3, -0x260(%rbp)
vmovdqa %xmm2, -0x270(%rbp)
vmovdqa -0x260(%rbp), %xmm2
vmovdqa -0x270(%rbp), %xmm3
vpunpckhbw %xmm3, %xmm2, %xmm2 # xmm2 = xmm2[8],xmm3[8],xmm2[9],xmm3[9],xmm2[10],xmm3[10],xmm2[11],xmm3[11],xmm2[12],xmm3[12],xmm2[13],xmm3[13],xmm2[14],xmm3[14],xmm2[15],xmm3[15]
vpmullw %xmm2, %xmm1, %xmm1
vmovdqa %xmm1, -0x340(%rbp)
movl $0x8, -0x164(%rbp)
movl -0x164(%rbp), %eax
movl %eax, -0x144(%rbp)
movl %eax, -0x148(%rbp)
movl %eax, -0x14c(%rbp)
movl %eax, -0x150(%rbp)
movl -0x14c(%rbp), %edx
movl -0x148(%rbp), %ecx
movl -0x144(%rbp), %eax
vmovd -0x150(%rbp), %xmm1
vpinsrd $0x1, %edx, %xmm1, %xmm1
vpinsrd $0x2, %ecx, %xmm1, %xmm1
vpinsrd $0x3, %eax, %xmm1, %xmm1
vmovdqa %xmm1, -0x160(%rbp)
vmovdqa -0x160(%rbp), %xmm1
vmovdqa %xmm1, -0x370(%rbp)
movq -0x2b8(%rbp), %rax
vmovdqa 0x1b60(%rax), %xmm1
vmovdqa -0x330(%rbp), %xmm2
vmovdqa %xmm2, -0xf0(%rbp)
vpmovzxwd -0xf0(%rbp), %xmm2
vpmulld %xmm2, %xmm1, %xmm1
vmovd -0x2d0(%rbp), %xmm2
vpslld %xmm2, %xmm1, %xmm1
vmovdqa -0x370(%rbp), %xmm2
vpaddd %xmm2, %xmm1, %xmm1
vpsrad $0x4, %xmm1, %xmm1
vmovdqa %xmm1, -0x380(%rbp)
movq -0x2b8(%rbp), %rax
vmovdqa 0x1b70(%rax), %xmm1
vmovdqa -0x330(%rbp), %xmm3
vmovdqa %xmm0, -0x3a0(%rbp)
vmovdqa -0x3a0(%rbp), %xmm2
vmovdqa %xmm3, -0xb0(%rbp)
vmovdqa %xmm2, -0xc0(%rbp)
vmovdqa -0xb0(%rbp), %xmm2
vmovdqa -0xc0(%rbp), %xmm3
vpunpckhwd %xmm3, %xmm2, %xmm2 # xmm2 = xmm2[4],xmm3[4],xmm2[5],xmm3[5],xmm2[6],xmm3[6],xmm2[7],xmm3[7]
vpmulld %xmm2, %xmm1, %xmm1
vmovd -0x2d0(%rbp), %xmm2
vpslld %xmm2, %xmm1, %xmm1
vmovdqa -0x370(%rbp), %xmm2
vpaddd %xmm2, %xmm1, %xmm1
vpsrad $0x4, %xmm1, %xmm1
vmovdqa %xmm1, -0x390(%rbp)
movq -0x2b8(%rbp), %rax
vmovdqa 0x1b80(%rax), %xmm1
vmovdqa -0x340(%rbp), %xmm2
vmovdqa %xmm2, -0x100(%rbp)
vpmovzxwd -0x100(%rbp), %xmm2
vpmulld %xmm2, %xmm1, %xmm1
vmovd -0x2d0(%rbp), %xmm2
vpslld %xmm2, %xmm1, %xmm1
vmovdqa -0x370(%rbp), %xmm2
vpaddd %xmm2, %xmm1, %xmm1
vpsrad $0x4, %xmm1, %xmm1
vmovdqa %xmm1, -0x3b0(%rbp)
movq -0x2b8(%rbp), %rax
vmovdqa 0x1b90(%rax), %xmm1
vmovdqa -0x340(%rbp), %xmm3
vmovdqa %xmm0, -0x3d0(%rbp)
vmovdqa -0x3d0(%rbp), %xmm2
vmovdqa %xmm3, -0xd0(%rbp)
vmovdqa %xmm2, -0xe0(%rbp)
vmovdqa -0xd0(%rbp), %xmm2
vmovdqa -0xe0(%rbp), %xmm3
vpunpckhwd %xmm3, %xmm2, %xmm2 # xmm2 = xmm2[4],xmm3[4],xmm2[5],xmm3[5],xmm2[6],xmm3[6],xmm2[7],xmm3[7]
vpmulld %xmm2, %xmm1, %xmm1
vmovd -0x2d0(%rbp), %xmm2
vpslld %xmm2, %xmm1, %xmm1
vmovdqa -0x370(%rbp), %xmm2
vpaddd %xmm2, %xmm1, %xmm1
vpsrad $0x4, %xmm1, %xmm1
vmovdqa %xmm1, -0x3c0(%rbp)
vmovdqa %xmm0, -0x3e0(%rbp)
vmovdqa -0x3e0(%rbp), %xmm0
movq -0x2b8(%rbp), %rax
vmovdqa %xmm0, 0x1b90(%rax)
movq -0x2b8(%rbp), %rax
vmovdqa %xmm0, 0x1b80(%rax)
movq -0x2b8(%rbp), %rax
vmovdqa %xmm0, 0x1b70(%rax)
movq -0x2b8(%rbp), %rax
vmovdqa %xmm0, 0x1b60(%rax)
cmpl $0x0, -0x2c0(%rbp)
jl 0x344a2
movq -0x2b8(%rbp), %rax
movslq -0x2c0(%rbp), %rcx
movl 0x1ba0(%rax,%rcx,4), %eax
vmovdqa -0x380(%rbp), %xmm0
vpinsrd $0x0, %eax, %xmm0, %xmm0
vmovdqa %xmm0, -0x380(%rbp)
vmovdqa -0x380(%rbp), %xmm0
vmovdqa -0x3b0(%rbp), %xmm1
vpaddd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x3f0(%rbp)
vmovdqa -0x380(%rbp), %xmm0
vmovdqa -0x3b0(%rbp), %xmm1
vpsubd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x400(%rbp)
vmovdqa -0x390(%rbp), %xmm0
vpsrad $0x1, %xmm0, %xmm0
vmovdqa -0x3c0(%rbp), %xmm1
vpsubd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x410(%rbp)
vmovdqa -0x3c0(%rbp), %xmm0
vpsrad $0x1, %xmm0, %xmm0
vmovdqa -0x390(%rbp), %xmm1
vpaddd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x420(%rbp)
vmovdqa -0x3f0(%rbp), %xmm0
vmovdqa -0x420(%rbp), %xmm1
vpaddd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x430(%rbp)
vmovdqa -0x400(%rbp), %xmm0
vmovdqa -0x410(%rbp), %xmm1
vpaddd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x440(%rbp)
vmovdqa -0x400(%rbp), %xmm0
vmovdqa -0x410(%rbp), %xmm1
vpsubd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x450(%rbp)
vmovdqa -0x3f0(%rbp), %xmm0
vmovdqa -0x420(%rbp), %xmm1
vpsubd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x460(%rbp)
vmovdqa -0x430(%rbp), %xmm1
vmovdqa -0x440(%rbp), %xmm0
vmovdqa %xmm1, -0x1c0(%rbp)
vmovdqa %xmm0, -0x1d0(%rbp)
vmovdqa -0x1c0(%rbp), %xmm0
vmovdqa -0x1d0(%rbp), %xmm1
vpunpckldq %xmm1, %xmm0, %xmm0 # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
vmovdqa %xmm0, -0x470(%rbp)
vmovdqa -0x450(%rbp), %xmm1
vmovdqa -0x460(%rbp), %xmm0
vmovdqa %xmm1, -0x1e0(%rbp)
vmovdqa %xmm0, -0x1f0(%rbp)
vmovdqa -0x1e0(%rbp), %xmm0
vmovdqa -0x1f0(%rbp), %xmm1
vpunpckldq %xmm1, %xmm0, %xmm0 # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
vmovdqa %xmm0, -0x480(%rbp)
vmovdqa -0x430(%rbp), %xmm1
vmovdqa -0x440(%rbp), %xmm0
vmovdqa %xmm1, -0x70(%rbp)
vmovdqa %xmm0, -0x80(%rbp)
vmovdqa -0x70(%rbp), %xmm0
vmovdqa -0x80(%rbp), %xmm1
vpunpckhdq %xmm1, %xmm0, %xmm0 # xmm0 = xmm0[2],xmm1[2],xmm0[3],xmm1[3]
vmovdqa %xmm0, -0x490(%rbp)
vmovdqa -0x450(%rbp), %xmm1
vmovdqa -0x460(%rbp), %xmm0
vmovdqa %xmm1, -0x90(%rbp)
vmovdqa %xmm0, -0xa0(%rbp)
vmovdqa -0x90(%rbp), %xmm0
vmovdqa -0xa0(%rbp), %xmm1
vpunpckhdq %xmm1, %xmm0, %xmm0 # xmm0 = xmm0[2],xmm1[2],xmm0[3],xmm1[3]
vmovdqa %xmm0, -0x4a0(%rbp)
vmovdqa -0x470(%rbp), %xmm1
vmovdqa -0x480(%rbp), %xmm0
vmovdqa %xmm1, -0x200(%rbp)
vmovdqa %xmm0, -0x210(%rbp)
vmovdqa -0x200(%rbp), %xmm0
vmovdqa -0x210(%rbp), %xmm1
vpunpcklqdq %xmm1, %xmm0, %xmm0 # xmm0 = xmm0[0],xmm1[0]
vpbroadcastd 0x98d53(%rip), %xmm1 # 0xcd400
vpaddd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x430(%rbp)
vmovdqa -0x470(%rbp), %xmm1
vmovdqa -0x480(%rbp), %xmm0
vmovdqa %xmm1, -0x180(%rbp)
vmovdqa %xmm0, -0x190(%rbp)
vmovdqa -0x180(%rbp), %xmm0
vmovdqa -0x190(%rbp), %xmm1
vpunpckhqdq %xmm1, %xmm0, %xmm0 # xmm0 = xmm0[1],xmm1[1]
vmovdqa %xmm0, -0x440(%rbp)
vmovdqa -0x490(%rbp), %xmm1
vmovdqa -0x4a0(%rbp), %xmm0
vmovdqa %xmm1, -0x220(%rbp)
vmovdqa %xmm0, -0x230(%rbp)
vmovdqa -0x220(%rbp), %xmm0
vmovdqa -0x230(%rbp), %xmm1
vpunpcklqdq %xmm1, %xmm0, %xmm0 # xmm0 = xmm0[0],xmm1[0]
vmovdqa %xmm0, -0x450(%rbp)
vmovdqa -0x490(%rbp), %xmm1
vmovdqa -0x4a0(%rbp), %xmm0
vmovdqa %xmm1, -0x1a0(%rbp)
vmovdqa %xmm0, -0x1b0(%rbp)
vmovdqa -0x1a0(%rbp), %xmm0
vmovdqa -0x1b0(%rbp), %xmm1
vpunpckhqdq %xmm1, %xmm0, %xmm0 # xmm0 = xmm0[1],xmm1[1]
vmovdqa %xmm0, -0x460(%rbp)
vmovdqa -0x430(%rbp), %xmm0
vmovdqa -0x450(%rbp), %xmm1
vpaddd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x4b0(%rbp)
vmovdqa -0x430(%rbp), %xmm0
vmovdqa -0x450(%rbp), %xmm1
vpsubd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x4c0(%rbp)
vmovdqa -0x440(%rbp), %xmm0
vpsrad $0x1, %xmm0, %xmm0
vmovdqa -0x460(%rbp), %xmm1
vpsubd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x4d0(%rbp)
vmovdqa -0x460(%rbp), %xmm0
vpsrad $0x1, %xmm0, %xmm0
vmovdqa -0x440(%rbp), %xmm1
vpaddd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x4e0(%rbp)
vmovdqa -0x4b0(%rbp), %xmm0
vmovdqa -0x4e0(%rbp), %xmm1
vpaddd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x4f0(%rbp)
vmovdqa -0x4c0(%rbp), %xmm0
vmovdqa -0x4d0(%rbp), %xmm1
vpaddd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x500(%rbp)
vmovdqa -0x4c0(%rbp), %xmm0
vmovdqa -0x4d0(%rbp), %xmm1
vpsubd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x510(%rbp)
vmovdqa -0x4b0(%rbp), %xmm0
vmovdqa -0x4e0(%rbp), %xmm1
vpsubd %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x520(%rbp)
vmovdqa -0x4f0(%rbp), %xmm0
vpsrad $0x6, %xmm0, %xmm1
vmovdqa -0x500(%rbp), %xmm0
vpsrad $0x6, %xmm0, %xmm0
vmovdqa %xmm1, -0x30(%rbp)
vmovdqa %xmm0, -0x40(%rbp)
vmovdqa -0x30(%rbp), %xmm0
vmovdqa -0x40(%rbp), %xmm1
vpackssdw %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x530(%rbp)
vmovdqa -0x510(%rbp), %xmm0
vpsrad $0x6, %xmm0, %xmm1
vmovdqa -0x520(%rbp), %xmm0
vpsrad $0x6, %xmm0, %xmm0
vmovdqa %xmm1, -0x50(%rbp)
vmovdqa %xmm0, -0x60(%rbp)
vmovdqa -0x50(%rbp), %xmm0
vmovdqa -0x60(%rbp), %xmm1
vpackssdw %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x540(%rbp)
movq -0x2b8(%rbp), %rax
movslq -0x2bc(%rbp), %rcx
movzwl 0x34(%rax,%rcx,2), %eax
movq %rax, -0x548(%rbp)
xorl %eax, %eax
subq -0x548(%rbp), %rax
movq %rax, -0x550(%rbp)
movq -0x2c8(%rbp), %rax
movq -0x548(%rbp), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
addq -0x550(%rbp), %rax
movq %rax, -0x558(%rbp)
movq -0x558(%rbp), %rax
movq -0x548(%rbp), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
addq -0x550(%rbp), %rax
movq %rax, -0x560(%rbp)
movq -0x2b8(%rbp), %rax
addq $0x170, %rax            # imm = 0x170
movslq -0x2bc(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movzwl (%rax), %eax
cmpl $0xff, %eax
jne 0x34aaf
movq -0x2c8(%rbp), %rax
movq -0x548(%rbp), %rcx
vmovd (%rax,%rcx), %xmm1
vmovd (%rax), %xmm0
vpunpckldq %xmm1, %xmm0, %xmm0 # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
vmovq %xmm0, %xmm0            # xmm0 = xmm0[0],zero
vmovdqa %xmm0, -0x580(%rbp)
vmovdqa -0x580(%rbp), %xmm0
vmovdqa %xmm0, -0x570(%rbp)
movq -0x2c8(%rbp), %rax
movq -0x548(%rbp), %rcx
movq -0x558(%rbp), %rdx
movq -0x550(%rbp), %rsi
vmovd (%rdx,%rsi,4), %xmm1
vmovd (%rax,%rcx,2), %xmm0
vpunpckldq %xmm1, %xmm0, %xmm0 # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
vmovq %xmm0, %xmm0            # xmm0 = xmm0[0],zero
vmovdqa %xmm0, -0x5a0(%rbp)
vmovdqa -0x5a0(%rbp), %xmm0
vmovdqa %xmm0, -0x590(%rbp)
vmovdqa -0x570(%rbp), %xmm0
vmovdqa %xmm0, -0x130(%rbp)
vpmovzxbw -0x130(%rbp), %xmm0
vmovdqa -0x530(%rbp), %xmm1
vpaddw %xmm1, %xmm0, %xmm1
vmovdqa -0x590(%rbp), %xmm0
vmovdqa %xmm0, -0x140(%rbp)
vpmovzxbw -0x140(%rbp), %xmm0
vmovdqa -0x540(%rbp), %xmm2
vpaddw %xmm2, %xmm0, %xmm0
vmovdqa %xmm1, -0x280(%rbp)
vmovdqa %xmm0, -0x290(%rbp)
vmovdqa -0x280(%rbp), %xmm0
vmovdqa -0x290(%rbp), %xmm1
vpackuswb %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, -0x5b0(%rbp)
movl -0x5b0(%rbp), %ecx
movq -0x2c8(%rbp), %rax
movl %ecx, (%rax)
movl -0x5ac(%rbp), %edx
movq -0x2c8(%rbp), %rax
movq -0x548(%rbp), %rcx
movl %edx, (%rax,%rcx)
movl -0x5a8(%rbp), %edx
movq -0x2c8(%rbp), %rax
movq -0x548(%rbp), %rcx
movl %edx, (%rax,%rcx,2)
movl -0x5a4(%rbp), %edx
movq -0x558(%rbp), %rax
movq -0x550(%rbp), %rcx
shlq $0x2, %rcx
movl %edx, (%rax,%rcx)
addq $0x530, %rsp            # imm = 0x530
popq %rbp
retq
nopl (%rax,%rax)