// File: /workspace/github_cpp_makefile_star2_O3/bitwiseshiftleft[P]crandom/aes.c
// Function: crandom_aes_expand
extern_c void
crandom_aes_expand(u_int64_t iv,
                   u_int64_t ctr,
                   const unsigned char *key,
                   unsigned char *data) {
# if (MIGHT_HAVE(AESNI))
    if (HAVE(AESNI)) {
      crandom_aes_expand_aesni(iv, ctr, key, data);
      return;
    }
# endif
# if (!MUST_HAVE(AESNI))
    crandom_aes_expand_conventional(iv, ctr, key, data);
# endif
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rcx, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movq %rdi, 0x30(%rsp)
cmpb $0x0, 0x3d65(%rip)      # 0x90e0
jne 0x5429
leaq 0x3d68(%rip), %rax      # 0x90f0
xorl %ecx, %ecx
leaq 0x104f(%rip), %rsi      # 0x63e0
pxor %xmm0, %xmm0
movdqa 0x1013(%rip), %xmm1     # 0x63b0
movdqa 0x101b(%rip), %xmm2     # 0x63c0
movdqa 0x1023(%rip), %xmm3     # 0x63d0
movd (%rcx,%rsi), %xmm4
punpcklbw %xmm0, %xmm4    # xmm4 = xmm4[0],xmm0[0],xmm4[1],xmm0[1],xmm4[2],xmm0[2],xmm4[3],xmm0[3],xmm4[4],xmm0[4],xmm4[5],xmm0[5],xmm4[6],xmm0[6],xmm4[7],xmm0[7]
punpcklwd %xmm0, %xmm4    # xmm4 = xmm4[0],xmm0[0],xmm4[1],xmm0[1],xmm4[2],xmm0[2],xmm4[3],xmm0[3]
movdqa %xmm4, %xmm5
paddd %xmm4, %xmm5
movdqa %xmm4, %xmm6
psrld $0x7, %xmm6
pmaddwd %xmm1, %xmm6
pxor %xmm5, %xmm6
pshufd $0xf5, %xmm4, %xmm5     # xmm5 = xmm4[1,1,3,3]
pmuludq %xmm2, %xmm4
pshufd $0xe8, %xmm4, %xmm4     # xmm4 = xmm4[0,2,2,3]
pmuludq %xmm2, %xmm5
pshufd $0xe8, %xmm5, %xmm5     # xmm5 = xmm5[0,2,2,3]
punpckldq %xmm5, %xmm4    # xmm4 = xmm4[0],xmm5[0],xmm4[1],xmm5[1]
pshufd $0xf5, %xmm6, %xmm5     # xmm5 = xmm6[1,1,3,3]
pmuludq %xmm3, %xmm6
pshufd $0xe8, %xmm6, %xmm6     # xmm6 = xmm6[0,2,2,3]
pmuludq %xmm3, %xmm5
pshufd $0xe8, %xmm5, %xmm5     # xmm5 = xmm5[0,2,2,3]
punpckldq %xmm5, %xmm6    # xmm6 = xmm6[0],xmm5[0],xmm6[1],xmm5[1]
pxor %xmm4, %xmm6
movdqa %xmm6, (%rax)
addq $0x4, %rcx
addq $0x10, %rax
cmpq $0x100, %rcx            # imm = 0x100
jne 0x53ad
movb $0x1, 0x3cb7(%rip)      # 0x90e0
movl (%rdx), %r15d
movl 0x4(%rdx), %eax
movq %rax, 0x18(%rsp)
movl 0x8(%rdx), %eax
movq %rax, 0x20(%rsp)
movl 0xc(%rdx), %ebp
movl 0x10(%rdx), %r14d
movl 0x14(%rdx), %eax
movl %eax, 0x8(%rsp)
movl 0x18(%rdx), %r13d
movl 0x1c(%rdx), %ebx
leaq 0x80(%rsp), %r12
movq $0x0, 0x28(%rsp)
movl $0xd0, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x1090
movl %r15d, -0x20(%r12)
movq 0x18(%rsp), %rax
movl %eax, -0x1c(%r12)
movq 0x20(%rsp), %r10
movl %r10d, -0x18(%r12)
movl %ebp, -0x14(%r12)
movl %r14d, -0x10(%r12)
movl 0x8(%rsp), %edi
movl %edi, -0xc(%r12)
movl %r13d, -0x8(%r12)
movl %ebx, -0x4(%r12)
leaq 0x9c(%rsp), %rcx
leaq 0xf2a(%rip), %rdx       # 0x63e0
movq %rbp, 0x38(%rsp)
movl %ebp, %esi
movl %r14d, 0x14(%rsp)
movl %r13d, 0xc(%rsp)
movl %r13d, %r8d
movl %ebx, 0x10(%rsp)
movl %ebx, %r9d
movl %eax, %r11d
movq %r15, 0x48(%rsp)
movl %r15d, %r12d
movl %r9d, %ebp
shrl $0x18, %ebp
movzbl (%rbp,%rdx), %ebp
shll $0x10, %ebp
movl %r9d, %r13d
shrl $0x10, %r13d
movl $0xff, %r15d
andl %r15d, %r13d
movzbl (%r13,%rdx), %r13d
shll $0x8, %r13d
movl %r9d, %ebx
shrl $0x8, %ebx
andl %r15d, %ebx
movzbl (%rbx,%rdx), %ebx
movl %r9d, %eax
andl %r15d, %eax
movzbl (%rax,%rdx), %eax
shll $0x18, %eax
xorl %ebx, %eax
movq 0x28(%rsp), %r15
btcl %r15d, %r12d
xorl %ebp, %r12d
xorl %r13d, %r12d
xorl %eax, %r12d
movl %r12d, -0x1c(%rcx)
xorl %r12d, %r11d
movl %r11d, -0x18(%rcx)
xorl %r11d, %r10d
movl %r10d, -0x14(%rcx)
xorl %r10d, %esi
movl %esi, -0x10(%rcx)
cmpq $0x6, %r15
je 0x55bc
movl %esi, %eax
shrl $0x18, %eax
movzbl (%rax,%rdx), %eax
shll $0x18, %eax
xorl %eax, %r14d
movl %esi, %eax
shrl $0x10, %eax
movl $0xff, %ebp
andl %ebp, %eax
movzbl (%rax,%rdx), %eax
shll $0x10, %eax
xorl %r14d, %eax
movl %esi, %ebx
shrl $0x8, %ebx
andl %ebp, %ebx
movzbl (%rbx,%rdx), %ebx
shll $0x8, %ebx
movl %esi, %r14d
andl %ebp, %r14d
movzbl (%r14,%rdx), %r14d
xorl %ebx, %r14d
xorl %eax, %r14d
movl %r14d, -0xc(%rcx)
xorl %r14d, %edi
movl %edi, -0x8(%rcx)
xorl %edi, %r8d
movl %r8d, -0x4(%rcx)
xorl %r8d, %r9d
movl %r9d, (%rcx)
incq %r15
movq %r15, 0x28(%rsp)
addq $0x20, %rcx
jmp 0x54dc
movq 0x48(%rsp), %r8
movq 0x50(%rsp), %rax
xorl %eax, %r8d
shrq $0x20, %rax
movq 0x18(%rsp), %rbp
xorl %eax, %ebp
movq 0x20(%rsp), %r13
movq 0x30(%rsp), %rax
xorl %eax, %r13d
shrq $0x20, %rax
movq 0x38(%rsp), %r14
xorl %eax, %r14d
leaq 0x3afc(%rip), %rcx      # 0x90f0
movl $0x3fc, %edx            # imm = 0x3FC
movl $0xff, %esi
movl %r8d, %eax
shrl $0x18, %eax
movl %r14d, %edi
shrl $0xe, %edi
andl %edx, %edi
movl (%rdi,%rcx), %r9d
roll $0x18, %r9d
movl %r13d, %edi
shrl $0x8, %edi
andl %esi, %edi
movl (%rcx,%rdi,4), %r10d
roll $0x10, %r10d
movl %ebp, %edi
andl %esi, %edi
movl (%rcx,%rdi,4), %edi
roll $0x8, %edi
xorl %r10d, %edi
xorl (%rcx,%rax,4), %r9d
xorl 0x8(%rsp), %edi
movl %ebp, %eax
movl %r8d, %r10d
shrl $0xe, %r10d
andl %edx, %r10d
movl (%r10,%rcx), %r10d
roll $0x18, %r10d
movl %r14d, %r11d
shrl $0x8, %r11d
andl %esi, %r11d
movl (%rcx,%r11,4), %ebx
roll $0x10, %ebx
shrl $0x18, %eax
xorl (%rcx,%rax,4), %r10d
movl %r13d, %eax
andl %esi, %eax
movl (%rcx,%rax,4), %r11d
roll $0x8, %r11d
xorl %ebx, %r11d
xorl 0xc(%rsp), %r11d
movl %r14d, %r15d
xorl %r10d, %r11d
movl %r13d, %r10d
shrl $0x8, %r8d
andl %esi, %r8d
movl (%rcx,%r8,4), %eax
roll $0x10, %eax
andl %esi, %r14d
movl (%rcx,%r14,4), %r12d
roll $0x8, %r12d
xorl %eax, %r12d
movl %ebp, %r14d
shrl $0x18, %r13d
shrl $0xe, %ebp
andl %edx, %ebp
movl (%rbp,%rcx), %eax
roll $0x18, %eax
xorl (%rcx,%r13,4), %eax
xorl 0x10(%rsp), %r12d
xorl %eax, %r12d
movl %r12d, %eax
shrl $0x18, %eax
movl %r11d, %r8d
shrl $0xe, %r8d
andl %edx, %r8d
movl (%r8,%rcx), %r8d
roll $0x18, %r8d
xorl (%rcx,%rax,4), %r8d
xorl %r9d, %edi
movl %edi, %eax
shrl $0x8, %eax
andl %esi, %eax
movl (%rcx,%rax,4), %r9d
roll $0x10, %r9d
xorl %r8d, %r9d
movl %r11d, %eax
shrl $0x8, %eax
andl %esi, %eax
movl (%rcx,%rax,4), %eax
roll $0x10, %eax
movl %edi, %r8d
andl %esi, %r8d
movl (%rcx,%r8,4), %ebx
roll $0x8, %ebx
xorl %eax, %ebx
movl %edi, %eax
shrl $0x18, %eax
movl %r12d, %r8d
shrl $0x8, %r8d
andl %esi, %r8d
movl (%rcx,%r8,4), %r8d
roll $0x10, %r8d
xorl (%rcx,%rax,4), %r8d
movl %r12d, %eax
shrl $0xe, %eax
andl %edx, %eax
movl (%rax,%rcx), %eax
roll $0x18, %eax
xorl %eax, %ebx
movl %r11d, %eax
andl %esi, %eax
movl (%rcx,%rax,4), %eax
roll $0x8, %eax
xorl %r8d, %eax
shrl $0xe, %r10d
andl %edx, %r10d
movl (%r10,%rcx), %r10d
roll $0x18, %r10d
shrl $0x18, %r15d
shrl $0x8, %r14d
andl %esi, %r14d
movl (%rcx,%r14,4), %r8d
roll $0x10, %r8d
xorl 0x80(%rsp), %r9d
movl %r9d, 0x20(%rsp)
xorl 0x84(%rsp), %ebx
movl %ebx, 0x18(%rsp)
xorl 0x88(%rsp), %eax
movl %eax, 0x8(%rsp)
shrl $0x18, %r11d
shrl $0xe, %edi
andl %edx, %edi
movl (%rdi,%rcx), %eax
roll $0x18, %eax
xorl (%rcx,%r11,4), %eax
andl %esi, %r12d
movl (%rcx,%r12,4), %edi
roll $0x8, %edi
xorl %eax, %edi
xorl 0x8c(%rsp), %edi
movl %edi, 0x10(%rsp)
movl 0x140(%rsp), %eax
movl %eax, 0x38(%rsp)
movl 0x144(%rsp), %eax
movl %eax, 0xc(%rsp)
xorl (%rcx,%r15,4), %r10d
movl 0x148(%rsp), %eax
movl %eax, 0x30(%rsp)
xorl %r8d, %r10d
movl 0x14c(%rsp), %eax
movl %eax, 0x44(%rsp)
xorl 0x14(%rsp), %r10d
movl %r10d, 0x14(%rsp)
xorl %r11d, %r11d
movq 0x50(%rsp), %rax
movq %r11, 0x28(%rsp)
addl %r11d, %eax
xorl 0x48(%rsp), %eax
andl %esi, %eax
movl (%rcx,%rax,4), %r8d
roll $0x8, %r8d
xorl 0x14(%rsp), %r8d
movl %r8d, %eax
andl %esi, %eax
movl (%rcx,%rax,4), %edi
roll $0x8, %edi
xorl 0x20(%rsp), %edi
movl %r8d, %eax
shrl $0x18, %eax
movl (%rcx,%rax,4), %r12d
xorl 0x18(%rsp), %r12d
movl %r8d, %eax
shrl $0xe, %eax
andl $0x3fc, %eax            # imm = 0x3FC
movl (%rax,%rcx), %r14d
roll $0x18, %r14d
xorl 0x8(%rsp), %r14d
shrl $0x8, %r8d
andl %esi, %r8d
movl (%rcx,%r8,4), %r15d
roll $0x10, %r15d
xorl 0x10(%rsp), %r15d
movl $0x3c, %ebp
movl %r15d, %eax
shrl $0x18, %eax
movl %r14d, %r8d
shrl $0xe, %r8d
andl %edx, %r8d
movl (%r8,%rcx), %r9d
roll $0x18, %r9d
xorl (%rcx,%rax,4), %r9d
movl %r12d, %eax
shrl $0x8, %eax
andl %esi, %eax
movl (%rcx,%rax,4), %eax
roll $0x10, %eax
movl %edi, %r8d
andl %esi, %edi
movl (%rcx,%rdi,4), %edi
roll $0x8, %edi
xorl %eax, %edi
xorl %r9d, %edi
xorl 0x54(%rsp,%rbp), %edi
movl %r8d, %eax
shrl $0x18, %eax
movl %r15d, %r9d
shrl $0xe, %r9d
andl %edx, %r9d
movl (%r9,%rcx), %r9d
roll $0x18, %r9d
xorl (%rcx,%rax,4), %r9d
movl %r8d, %r10d
shrl $0x8, %r8d
andl %esi, %r8d
movl (%rcx,%r8,4), %r8d
movl %r14d, %eax
shrl $0x8, %eax
andl %esi, %eax
movl (%rcx,%rax,4), %eax
roll $0x10, %eax
movl %r12d, %ebx
andl %esi, %ebx
movl %r12d, %r13d
shrl $0xe, %r12d
andl %edx, %r12d
movl (%r12,%rcx), %r11d
movl (%rcx,%rbx,4), %r12d
roll $0x8, %r12d
xorl %eax, %r12d
xorl %r9d, %r12d
xorl 0x58(%rsp,%rbp), %r12d
shrl $0x18, %r13d
shrl $0xe, %r10d
andl %edx, %r10d
movl (%r10,%rcx), %eax
roll $0x18, %eax
xorl (%rcx,%r13,4), %eax
movl %r15d, %r9d
shrl $0x8, %r9d
andl %esi, %r9d
movl (%rcx,%r9,4), %r9d
roll $0x10, %r9d
movl %r14d, %r10d
shrl $0x18, %r14d
roll $0x18, %r11d
xorl (%rcx,%r14,4), %r11d
andl %esi, %r10d
movl (%rcx,%r10,4), %r14d
roll $0x8, %r14d
xorl %r9d, %r14d
xorl %eax, %r14d
xorl 0x5c(%rsp,%rbp), %r14d
roll $0x10, %r8d
andl %esi, %r15d
movl (%rcx,%r15,4), %r15d
roll $0x8, %r15d
xorl %r8d, %r15d
xorl %r11d, %r15d
xorl 0x60(%rsp,%rbp), %r15d
addq $0x10, %rbp
cmpq $0xec, %rbp
jne 0x5863
movl %r15d, %eax
shrl $0x18, %eax
leaq 0xa5c(%rip), %r10       # 0x63e0
movzbl (%rax,%r10), %eax
shll $0x18, %eax
movl %r14d, %r8d
shrl $0x10, %r8d
andl %esi, %r8d
movzbl (%r8,%r10), %r8d
shll $0x10, %r8d
orl %eax, %r8d
movl %r12d, %eax
shrl $0x8, %eax
andl %esi, %eax
movzbl (%rax,%r10), %eax
shll $0x8, %eax
orl %r8d, %eax
movl %edi, %r8d
andl %esi, %r8d
movzbl (%r8,%r10), %r8d
orl %eax, %r8d
xorl 0x38(%rsp), %r8d
movq 0x28(%rsp), %r11
movq %r11, %rbp
shlq $0x4, %rbp
movq 0x58(%rsp), %r9
movl %r8d, (%r9,%rbp)
movl %edi, %eax
shrl $0x18, %eax
movzbl (%rax,%r10), %eax
shll $0x18, %eax
movl %r15d, %r8d
shrl $0x10, %r8d
andl %esi, %r8d
movzbl (%r8,%r10), %r8d
shll $0x10, %r8d
orl %eax, %r8d
movl %r14d, %eax
shrl $0x8, %eax
andl %esi, %eax
movzbl (%rax,%r10), %eax
shll $0x8, %eax
orl %r8d, %eax
movl %r12d, %r8d
andl %esi, %r8d
movzbl (%r8,%r10), %r8d
orl %eax, %r8d
xorl 0xc(%rsp), %r8d
movl %r8d, 0x4(%r9,%rbp)
movl %r12d, %eax
shrl $0x18, %eax
movzbl (%rax,%r10), %eax
shll $0x18, %eax
movl %edi, %r8d
shrl $0x10, %r8d
andl %esi, %r8d
movzbl (%r8,%r10), %r8d
shll $0x10, %r8d
orl %eax, %r8d
movl %r15d, %eax
shrl $0x8, %eax
andl %esi, %eax
movzbl (%rax,%r10), %eax
shll $0x8, %eax
orl %r8d, %eax
movl %r14d, %r8d
andl %esi, %r8d
movzbl (%r8,%r10), %r8d
orl %eax, %r8d
xorl 0x30(%rsp), %r8d
movl %r8d, 0x8(%r9,%rbp)
shrl $0x18, %r14d
movzbl (%r14,%r10), %eax
shll $0x18, %eax
shrl $0x10, %r12d
andl %esi, %r12d
movzbl (%r12,%r10), %r8d
shll $0x10, %r8d
orl %eax, %r8d
shrl $0x8, %edi
andl %esi, %edi
movzbl (%rdi,%r10), %eax
shll $0x8, %eax
orl %r8d, %eax
andl %esi, %r15d
movzbl (%r15,%r10), %edi
orl %eax, %edi
xorl 0x44(%rsp), %edi
movl %edi, 0xc(%r9,%rbp)
incq %r11
cmpq $0x8, %r11
jne 0x57f4
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop