// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]libcperciva/liball/../crypto/crypto_aes_aesni.c
// Function: crypto_aes_key_expand_128_aesni
static void
crypto_aes_key_expand_128_aesni(const uint8_t key_unexpanded[16],
    __m128i rkeys[11])
{

	/* The first round key is just the key. */
	/*-
	 * XXX Compiler breakage:
	 * The intrinsic defined by Intel for _mm_loadu_si128 defines it as
	 * taking a (const __m128i *) parameter.  This forces us to write a
	 * bug: The cast to (const __m128i *) is invalid since it increases
	 * the alignment requirement of the pointer.  Alas, until compilers
	 * get fixed intrinsics, all we can do is code the bug and require
	 * that alignment-requirement-increasing compiler warnings get
	 * disabled.
	 */
	rkeys[0] = _mm_loadu_si128((const __m128i *)&key_unexpanded[0]);

	/*
	 * Each of the remaining round keys are computed from the preceding
	 * round key: rotword+subword+rcon (provided as aeskeygenassist) to
	 * compute the 'temp' value, then xor with 1, 2, 3, or all 4 of the
	 * 32-bit words from the preceding round key.  Unfortunately, 'rcon'
	 * is encoded as an immediate value, so we need to write the loop out
	 * ourselves rather than allowing the compiler to expand it.
	 */
	MKRKEY128(rkeys, 1, 0x01);
	MKRKEY128(rkeys, 2, 0x02);
	MKRKEY128(rkeys, 3, 0x04);
	MKRKEY128(rkeys, 4, 0x08);
	MKRKEY128(rkeys, 5, 0x10);
	MKRKEY128(rkeys, 6, 0x20);
	MKRKEY128(rkeys, 7, 0x40);
	MKRKEY128(rkeys, 8, 0x80);
	MKRKEY128(rkeys, 9, 0x1b);
	MKRKEY128(rkeys, 10, 0x36);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x4a0, %rsp            # imm = 0x4A0
movq %rdi, -0x3d8(%rbp)
movq %rsi, -0x3e0(%rbp)
movq -0x3d8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movdqu (%rax), %xmm0
movq -0x3e0(%rbp), %rax
movdqa %xmm0, (%rax)
movq -0x3e0(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x3f0(%rbp)
movq -0x3e0(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm0, -0x400(%rbp)
movaps -0x3f0(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm1, -0x20(%rbp)
movaps %xmm0, -0x30(%rbp)
movaps -0x20(%rbp), %xmm0
movaps -0x30(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x3f0(%rbp)
movaps -0x3f0(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movaps %xmm1, -0x40(%rbp)
movaps %xmm0, -0x50(%rbp)
movaps -0x40(%rbp), %xmm0
movaps -0x50(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x3f0(%rbp)
movaps -0x400(%rbp), %xmm0
aeskeygenassist $0x1, %xmm0, %xmm0
movaps %xmm0, -0x400(%rbp)
movaps -0x400(%rbp), %xmm0
pshufd $0xff, %xmm0, %xmm0     # xmm0 = xmm0[3,3,3,3]
movdqa %xmm0, -0x400(%rbp)
movdqa -0x3f0(%rbp), %xmm1
movdqa -0x400(%rbp), %xmm0
movdqa %xmm1, -0x60(%rbp)
movdqa %xmm0, -0x70(%rbp)
movdqa -0x60(%rbp), %xmm0
pxor -0x70(%rbp), %xmm0
movq -0x3e0(%rbp), %rax
movdqa %xmm0, 0x10(%rax)
jmp 0x3c17
movq -0x3e0(%rbp), %rax
movaps 0x10(%rax), %xmm0
movaps %xmm0, -0x410(%rbp)
movq -0x3e0(%rbp), %rax
movaps 0x10(%rax), %xmm0
movaps %xmm0, -0x420(%rbp)
movaps -0x410(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm1, -0x80(%rbp)
movaps %xmm0, -0x90(%rbp)
movaps -0x80(%rbp), %xmm0
movaps -0x90(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x410(%rbp)
movaps -0x410(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movaps %xmm1, -0xa0(%rbp)
movaps %xmm0, -0xb0(%rbp)
movaps -0xa0(%rbp), %xmm0
movaps -0xb0(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x410(%rbp)
movaps -0x420(%rbp), %xmm0
aeskeygenassist $0x2, %xmm0, %xmm0
movaps %xmm0, -0x420(%rbp)
movaps -0x420(%rbp), %xmm0
pshufd $0xff, %xmm0, %xmm0     # xmm0 = xmm0[3,3,3,3]
movdqa %xmm0, -0x420(%rbp)
movdqa -0x410(%rbp), %xmm1
movdqa -0x420(%rbp), %xmm0
movdqa %xmm1, -0xc0(%rbp)
movdqa %xmm0, -0xd0(%rbp)
movdqa -0xc0(%rbp), %xmm0
pxor -0xd0(%rbp), %xmm0
movq -0x3e0(%rbp), %rax
movdqa %xmm0, 0x20(%rax)
jmp 0x3d07
movq -0x3e0(%rbp), %rax
movaps 0x20(%rax), %xmm0
movaps %xmm0, -0x430(%rbp)
movq -0x3e0(%rbp), %rax
movaps 0x20(%rax), %xmm0
movaps %xmm0, -0x440(%rbp)
movaps -0x430(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm1, -0xe0(%rbp)
movaps %xmm0, -0xf0(%rbp)
movaps -0xe0(%rbp), %xmm0
movaps -0xf0(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x430(%rbp)
movaps -0x430(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movaps %xmm1, -0x100(%rbp)
movaps %xmm0, -0x110(%rbp)
movaps -0x100(%rbp), %xmm0
movaps -0x110(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x430(%rbp)
movaps -0x440(%rbp), %xmm0
aeskeygenassist $0x4, %xmm0, %xmm0
movaps %xmm0, -0x440(%rbp)
movaps -0x440(%rbp), %xmm0
pshufd $0xff, %xmm0, %xmm0     # xmm0 = xmm0[3,3,3,3]
movdqa %xmm0, -0x440(%rbp)
movdqa -0x430(%rbp), %xmm1
movdqa -0x440(%rbp), %xmm0
movdqa %xmm1, -0x120(%rbp)
movdqa %xmm0, -0x130(%rbp)
movdqa -0x120(%rbp), %xmm0
pxor -0x130(%rbp), %xmm0
movq -0x3e0(%rbp), %rax
movdqa %xmm0, 0x30(%rax)
jmp 0x3dfd
movq -0x3e0(%rbp), %rax
movaps 0x30(%rax), %xmm0
movaps %xmm0, -0x450(%rbp)
movq -0x3e0(%rbp), %rax
movaps 0x30(%rax), %xmm0
movaps %xmm0, -0x460(%rbp)
movaps -0x450(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm1, -0x140(%rbp)
movaps %xmm0, -0x150(%rbp)
movaps -0x140(%rbp), %xmm0
movaps -0x150(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x450(%rbp)
movaps -0x450(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movaps %xmm1, -0x160(%rbp)
movaps %xmm0, -0x170(%rbp)
movaps -0x160(%rbp), %xmm0
movaps -0x170(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x450(%rbp)
movaps -0x460(%rbp), %xmm0
aeskeygenassist $0x8, %xmm0, %xmm0
movaps %xmm0, -0x460(%rbp)
movaps -0x460(%rbp), %xmm0
pshufd $0xff, %xmm0, %xmm0     # xmm0 = xmm0[3,3,3,3]
movdqa %xmm0, -0x460(%rbp)
movdqa -0x450(%rbp), %xmm1
movdqa -0x460(%rbp), %xmm0
movdqa %xmm1, -0x180(%rbp)
movdqa %xmm0, -0x190(%rbp)
movdqa -0x180(%rbp), %xmm0
pxor -0x190(%rbp), %xmm0
movq -0x3e0(%rbp), %rax
movdqa %xmm0, 0x40(%rax)
jmp 0x3ef3
movq -0x3e0(%rbp), %rax
movaps 0x40(%rax), %xmm0
movaps %xmm0, -0x470(%rbp)
movq -0x3e0(%rbp), %rax
movaps 0x40(%rax), %xmm0
movaps %xmm0, -0x480(%rbp)
movaps -0x470(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm1, -0x1a0(%rbp)
movaps %xmm0, -0x1b0(%rbp)
movaps -0x1a0(%rbp), %xmm0
movaps -0x1b0(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x470(%rbp)
movaps -0x470(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movaps %xmm1, -0x1c0(%rbp)
movaps %xmm0, -0x1d0(%rbp)
movaps -0x1c0(%rbp), %xmm0
movaps -0x1d0(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x470(%rbp)
movaps -0x480(%rbp), %xmm0
aeskeygenassist $0x10, %xmm0, %xmm0
movaps %xmm0, -0x480(%rbp)
movaps -0x480(%rbp), %xmm0
pshufd $0xff, %xmm0, %xmm0     # xmm0 = xmm0[3,3,3,3]
movdqa %xmm0, -0x480(%rbp)
movdqa -0x470(%rbp), %xmm1
movdqa -0x480(%rbp), %xmm0
movdqa %xmm1, -0x1e0(%rbp)
movdqa %xmm0, -0x1f0(%rbp)
movdqa -0x1e0(%rbp), %xmm0
pxor -0x1f0(%rbp), %xmm0
movq -0x3e0(%rbp), %rax
movdqa %xmm0, 0x50(%rax)
jmp 0x3fe9
movq -0x3e0(%rbp), %rax
movaps 0x50(%rax), %xmm0
movaps %xmm0, -0x490(%rbp)
movq -0x3e0(%rbp), %rax
movaps 0x50(%rax), %xmm0
movaps %xmm0, -0x4a0(%rbp)
movaps -0x490(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm1, -0x200(%rbp)
movaps %xmm0, -0x210(%rbp)
movaps -0x200(%rbp), %xmm0
movaps -0x210(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x490(%rbp)
movaps -0x490(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movaps %xmm1, -0x220(%rbp)
movaps %xmm0, -0x230(%rbp)
movaps -0x220(%rbp), %xmm0
movaps -0x230(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x490(%rbp)
movaps -0x4a0(%rbp), %xmm0
aeskeygenassist $0x20, %xmm0, %xmm0
movaps %xmm0, -0x4a0(%rbp)
movaps -0x4a0(%rbp), %xmm0
pshufd $0xff, %xmm0, %xmm0     # xmm0 = xmm0[3,3,3,3]
movdqa %xmm0, -0x4a0(%rbp)
movdqa -0x490(%rbp), %xmm1
movdqa -0x4a0(%rbp), %xmm0
movdqa %xmm1, -0x240(%rbp)
movdqa %xmm0, -0x250(%rbp)
movdqa -0x240(%rbp), %xmm0
pxor -0x250(%rbp), %xmm0
movq -0x3e0(%rbp), %rax
movdqa %xmm0, 0x60(%rax)
jmp 0x40df
movq -0x3e0(%rbp), %rax
movaps 0x60(%rax), %xmm0
movaps %xmm0, -0x4b0(%rbp)
movq -0x3e0(%rbp), %rax
movaps 0x60(%rax), %xmm0
movaps %xmm0, -0x4c0(%rbp)
movaps -0x4b0(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm1, -0x260(%rbp)
movaps %xmm0, -0x270(%rbp)
movaps -0x260(%rbp), %xmm0
movaps -0x270(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x4b0(%rbp)
movaps -0x4b0(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movaps %xmm1, -0x280(%rbp)
movaps %xmm0, -0x290(%rbp)
movaps -0x280(%rbp), %xmm0
movaps -0x290(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x4b0(%rbp)
movaps -0x4c0(%rbp), %xmm0
aeskeygenassist $0x40, %xmm0, %xmm0
movaps %xmm0, -0x4c0(%rbp)
movaps -0x4c0(%rbp), %xmm0
pshufd $0xff, %xmm0, %xmm0     # xmm0 = xmm0[3,3,3,3]
movdqa %xmm0, -0x4c0(%rbp)
movdqa -0x4b0(%rbp), %xmm1
movdqa -0x4c0(%rbp), %xmm0
movdqa %xmm1, -0x2a0(%rbp)
movdqa %xmm0, -0x2b0(%rbp)
movdqa -0x2a0(%rbp), %xmm0
pxor -0x2b0(%rbp), %xmm0
movq -0x3e0(%rbp), %rax
movdqa %xmm0, 0x70(%rax)
jmp 0x41d5
movq -0x3e0(%rbp), %rax
movaps 0x70(%rax), %xmm0
movaps %xmm0, -0x4d0(%rbp)
movq -0x3e0(%rbp), %rax
movaps 0x70(%rax), %xmm0
movaps %xmm0, -0x4e0(%rbp)
movaps -0x4d0(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm1, -0x2c0(%rbp)
movaps %xmm0, -0x2d0(%rbp)
movaps -0x2c0(%rbp), %xmm0
movaps -0x2d0(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x4d0(%rbp)
movaps -0x4d0(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movaps %xmm1, -0x2e0(%rbp)
movaps %xmm0, -0x2f0(%rbp)
movaps -0x2e0(%rbp), %xmm0
movaps -0x2f0(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x4d0(%rbp)
movaps -0x4e0(%rbp), %xmm0
aeskeygenassist $0x80, %xmm0, %xmm0
movaps %xmm0, -0x4e0(%rbp)
movaps -0x4e0(%rbp), %xmm0
pshufd $0xff, %xmm0, %xmm0     # xmm0 = xmm0[3,3,3,3]
movdqa %xmm0, -0x4e0(%rbp)
movdqa -0x4d0(%rbp), %xmm1
movdqa -0x4e0(%rbp), %xmm0
movdqa %xmm1, -0x300(%rbp)
movdqa %xmm0, -0x310(%rbp)
movdqa -0x300(%rbp), %xmm0
pxor -0x310(%rbp), %xmm0
movq -0x3e0(%rbp), %rax
movdqa %xmm0, 0x80(%rax)
jmp 0x42ce
movq -0x3e0(%rbp), %rax
movaps 0x80(%rax), %xmm0
movaps %xmm0, -0x4f0(%rbp)
movq -0x3e0(%rbp), %rax
movaps 0x80(%rax), %xmm0
movaps %xmm0, -0x500(%rbp)
movaps -0x4f0(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm1, -0x320(%rbp)
movaps %xmm0, -0x330(%rbp)
movaps -0x320(%rbp), %xmm0
movaps -0x330(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x4f0(%rbp)
movaps -0x4f0(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movaps %xmm1, -0x340(%rbp)
movaps %xmm0, -0x350(%rbp)
movaps -0x340(%rbp), %xmm0
movaps -0x350(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x4f0(%rbp)
movaps -0x500(%rbp), %xmm0
aeskeygenassist $0x1b, %xmm0, %xmm0
movaps %xmm0, -0x500(%rbp)
movaps -0x500(%rbp), %xmm0
pshufd $0xff, %xmm0, %xmm0     # xmm0 = xmm0[3,3,3,3]
movdqa %xmm0, -0x500(%rbp)
movdqa -0x4f0(%rbp), %xmm1
movdqa -0x500(%rbp), %xmm0
movdqa %xmm1, -0x360(%rbp)
movdqa %xmm0, -0x370(%rbp)
movdqa -0x360(%rbp), %xmm0
pxor -0x370(%rbp), %xmm0
movq -0x3e0(%rbp), %rax
movdqa %xmm0, 0x90(%rax)
jmp 0x43cd
movq -0x3e0(%rbp), %rax
movaps 0x90(%rax), %xmm0
movaps %xmm0, -0x510(%rbp)
movq -0x3e0(%rbp), %rax
movaps 0x90(%rax), %xmm0
movaps %xmm0, -0x520(%rbp)
movaps -0x510(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x4, %xmm0             # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,9,10,11]
movaps %xmm1, -0x380(%rbp)
movaps %xmm0, -0x390(%rbp)
movaps -0x380(%rbp), %xmm0
movaps -0x390(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x510(%rbp)
movaps -0x510(%rbp), %xmm1
movaps %xmm1, %xmm0
pslldq $0x8, %xmm0             # xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7]
movaps %xmm1, -0x3a0(%rbp)
movaps %xmm0, -0x3b0(%rbp)
movaps -0x3a0(%rbp), %xmm0
movaps -0x3b0(%rbp), %xmm1
pxor %xmm1, %xmm0
movaps %xmm0, -0x510(%rbp)
movaps -0x520(%rbp), %xmm0
aeskeygenassist $0x36, %xmm0, %xmm0
movaps %xmm0, -0x520(%rbp)
movaps -0x520(%rbp), %xmm0
pshufd $0xff, %xmm0, %xmm0     # xmm0 = xmm0[3,3,3,3]
movdqa %xmm0, -0x520(%rbp)
movdqa -0x510(%rbp), %xmm1
movdqa -0x520(%rbp), %xmm0
movdqa %xmm1, -0x3c0(%rbp)
movdqa %xmm0, -0x3d0(%rbp)
movdqa -0x3c0(%rbp), %xmm0
pxor -0x3d0(%rbp), %xmm0
movq -0x3e0(%rbp), %rax
movdqa %xmm0, 0xa0(%rax)
addq $0x4a0, %rsp            # imm = 0x4A0
popq %rbp
retq
nopw %cs:(%rax,%rax)