// File: /workspace/github_cpp_makefile_star2_O2/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, 0x3af5(%rip)      # 0x70e0
jne 0x363c
leaq 0x3afc(%rip), %rax      # 0x70f0
xorl %ecx, %ecx
leaq 0xcf3(%rip), %rsi       # 0x42f0
cmpq $0x100, %rcx            # imm = 0x100
je 0x3635
movzbl (%rcx,%rsi), %edi
leal (%rdi,%rdi), %r8d
imull $0x10101, %edi, %r9d    # imm = 0x10101
shrl $0x7, %edi
imull $0x11b, %edi, %edi      # imm = 0x11B
xorl %r8d, %edi
imull $0x1010000, %edi, %edi  # imm = 0x1010000
xorl %r9d, %edi
movl %edi, (%rax)
incq %rcx
addq $0x4, %rax
jmp 0x35fd
movb $0x1, 0x3aa4(%rip)      # 0x70e0
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, 0xc(%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 0xc(%rsp), %edi
movl %edi, -0xc(%r12)
movl %r13d, -0x8(%r12)
movl %ebx, -0x4(%r12)
leaq 0x9c(%rsp), %rcx
leaq 0xc27(%rip), %rdx       # 0x42f0
movq %rbp, 0x38(%rsp)
movl %ebp, %esi
movl %r14d, 0x44(%rsp)
movl %r13d, 0x10(%rsp)
movl %r13d, %r8d
movl %ebx, 0x14(%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 0x37cf
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 0x36ef
movq 0x48(%rsp), %r9
movq 0x50(%rsp), %rax
xorl %eax, %r9d
shrq $0x20, %rax
movq 0x18(%rsp), %r13
xorl %eax, %r13d
movq 0x20(%rsp), %r12
movq 0x30(%rsp), %rax
xorl %eax, %r12d
shrq $0x20, %rax
movq 0x38(%rsp), %r15
xorl %eax, %r15d
leaq 0x38e8(%rip), %rcx      # 0x70f0
movl $0x3fc, %edx            # imm = 0x3FC
movl $0xff, %esi
movl %r15d, %eax
shrl $0xe, %eax
andl %edx, %eax
movl (%rax,%rcx), %r10d
roll $0x18, %r10d
movl %r9d, %eax
movl %r12d, %edi
shrl $0x8, %edi
andl %esi, %edi
movl (%rcx,%rdi,4), %r8d
roll $0x10, %r8d
movl %r13d, %edi
andl %esi, %edi
movl (%rcx,%rdi,4), %edi
roll $0x8, %edi
shrl $0x18, %eax
xorl %r8d, %edi
xorl (%rcx,%rax,4), %r10d
xorl 0xc(%rsp), %edi
movl %r15d, %eax
shrl $0x8, %eax
andl %esi, %eax
movl (%rcx,%rax,4), %eax
roll $0x10, %eax
movl %r12d, %r8d
andl %esi, %r8d
movl (%rcx,%r8,4), %r11d
roll $0x8, %r11d
movl %r13d, %r8d
xorl %eax, %r11d
movl %r9d, %eax
shrl $0xe, %eax
andl %edx, %eax
movl (%rax,%rcx), %r14d
roll $0x18, %r14d
shrl $0x18, %r8d
xorl (%rcx,%r8,4), %r14d
movl %r15d, %r8d
xorl 0x10(%rsp), %r11d
movl %r12d, %eax
shrl $0xe, %eax
andl %edx, %eax
movl (%rax,%rcx), %ebx
roll $0x18, %ebx
shrl $0x8, %r9d
andl %esi, %r9d
movl (%rcx,%r9,4), %eax
roll $0x10, %eax
andl %esi, %r15d
movl (%rcx,%r15,4), %r15d
roll $0x8, %r15d
xorl %r14d, %r11d
xorl %eax, %r15d
movl %r13d, %eax
shrl $0x8, %eax
andl %esi, %eax
movl (%rcx,%rax,4), %ebp
roll $0x10, %ebp
shrl $0x18, %r12d
shrl $0xe, %r13d
andl %edx, %r13d
movl (%r13,%rcx), %eax
roll $0x18, %eax
xorl (%rcx,%r12,4), %eax
xorl 0x14(%rsp), %r15d
xorl %eax, %r15d
movl %r15d, %eax
shrl $0x18, %eax
movl %r11d, %r9d
shrl $0xe, %r9d
andl %edx, %r9d
movl (%r9,%rcx), %r9d
roll $0x18, %r9d
xorl (%rcx,%rax,4), %r9d
xorl %r10d, %edi
movl %edi, %eax
shrl $0x8, %eax
andl %esi, %eax
movl (%rcx,%rax,4), %eax
roll $0x10, %eax
xorl %r9d, %eax
xorl 0x80(%rsp), %eax
movl %eax, 0x20(%rsp)
movl %r15d, %eax
shrl $0xe, %eax
andl %edx, %eax
movl (%rax,%rcx), %eax
roll $0x18, %eax
movl %r11d, %r9d
shrl $0x8, %r9d
andl %esi, %r9d
movl (%rcx,%r9,4), %r9d
roll $0x10, %r9d
movl %edi, %r10d
andl %esi, %r10d
movl (%rcx,%r10,4), %r10d
roll $0x8, %r10d
xorl %r9d, %r10d
xorl %eax, %r10d
xorl 0x84(%rsp), %r10d
movl %r10d, 0x18(%rsp)
shrl $0x18, %r8d
movl %edi, %eax
movl %r15d, %r9d
shrl $0x8, %r9d
andl %esi, %r9d
movl (%rcx,%r9,4), %r9d
roll $0x10, %r9d
shrl $0x18, %eax
xorl (%rcx,%rax,4), %r9d
movl %r11d, %eax
andl %esi, %eax
movl (%rcx,%rax,4), %eax
roll $0x8, %eax
xorl %r9d, %eax
xorl 0x88(%rsp), %eax
movl %eax, 0xc(%rsp)
shrl $0xe, %edi
andl %edx, %edi
movl (%rdi,%rcx), %eax
roll $0x18, %eax
shrl $0x18, %r11d
xorl (%rcx,%r11,4), %eax
andl %esi, %r15d
movl (%rcx,%r15,4), %r11d
roll $0x8, %r11d
xorl %eax, %r11d
xorl 0x8c(%rsp), %r11d
movl 0x140(%rsp), %eax
movl %eax, 0x14(%rsp)
movl 0x144(%rsp), %eax
movl %eax, 0x38(%rsp)
movl 0x148(%rsp), %eax
movl %eax, 0x10(%rsp)
xorl (%rcx,%r8,4), %ebx
movl 0x14c(%rsp), %eax
movl %eax, 0x30(%rsp)
xorl %ebp, %ebx
xorl %r13d, %r13d
xorl 0x44(%rsp), %ebx
movl %ebx, 0x28(%rsp)
cmpq $0x8, %r13
je 0x3ccc
movq 0x50(%rsp), %rax
addl %r13d, %eax
xorl 0x48(%rsp), %eax
andl %esi, %eax
movl (%rcx,%rax,4), %r8d
roll $0x8, %r8d
xorl 0x28(%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), %r15d
xorl 0x18(%rsp), %r15d
movl %r8d, %eax
shrl $0xe, %eax
andl $0x3fc, %eax            # imm = 0x3FC
movl (%rax,%rcx), %r12d
roll $0x18, %r12d
xorl 0xc(%rsp), %r12d
shrl $0x8, %r8d
andl %esi, %r8d
movl (%rcx,%r8,4), %r8d
roll $0x10, %r8d
xorl %r11d, %r8d
pushq $0x3c
popq %rbp
movl %r8d, %r9d
shrl $0x18, %r9d
cmpq $0xec, %rbp
je 0x3b90
movl %r12d, %eax
shrl $0xe, %eax
andl %edx, %eax
movl (%rax,%rcx), %eax
roll $0x18, %eax
xorl (%rcx,%r9,4), %eax
movl %r15d, %r9d
shrl $0x8, %r9d
andl %esi, %r9d
movl (%rcx,%r9,4), %r9d
roll $0x10, %r9d
movl %edi, %r10d
andl %esi, %r10d
movl (%rcx,%r10,4), %r14d
roll $0x8, %r14d
xorl %r9d, %r14d
xorl %eax, %r14d
xorl 0x54(%rsp,%rbp), %r14d
movl %edi, %eax
shrl $0x18, %eax
movl %r8d, %r9d
shrl $0xe, %r9d
andl %edx, %r9d
movl (%r9,%rcx), %r10d
roll $0x18, %r10d
xorl (%rcx,%rax,4), %r10d
movl %r12d, %eax
shrl $0x8, %eax
andl %esi, %eax
movl (%rcx,%rax,4), %eax
roll $0x10, %eax
movl %r15d, %r9d
andl %esi, %r9d
movl (%rcx,%r9,4), %r9d
roll $0x8, %r9d
xorl %eax, %r9d
xorl %r10d, %r9d
xorl 0x58(%rsp,%rbp), %r9d
movl %r15d, %eax
shrl $0x18, %eax
movl %edi, %r10d
shrl $0xe, %r10d
andl %edx, %r10d
movl (%r10,%rcx), %ebx
roll $0x18, %ebx
xorl (%rcx,%rax,4), %ebx
movl %r8d, %eax
shrl $0x8, %eax
andl %esi, %eax
movl (%rcx,%rax,4), %eax
roll $0x10, %eax
movl %r12d, %r10d
andl %esi, %r10d
movl (%rcx,%r10,4), %r10d
roll $0x8, %r10d
xorl %eax, %r10d
xorl %ebx, %r10d
xorl 0x5c(%rsp,%rbp), %r10d
shrl $0xe, %r15d
andl %edx, %r15d
movl (%r15,%rcx), %eax
roll $0x18, %eax
shrl $0x18, %r12d
xorl (%rcx,%r12,4), %eax
shrl $0x8, %edi
andl %esi, %edi
movl (%rcx,%rdi,4), %edi
roll $0x10, %edi
andl %esi, %r8d
movl (%rcx,%r8,4), %r8d
roll $0x8, %r8d
xorl %edi, %r8d
xorl %eax, %r8d
xorl 0x60(%rsp,%rbp), %r8d
addq $0x10, %rbp
movl %r14d, %edi
movl %r9d, %r15d
movl %r10d, %r12d
jmp 0x3a73
leaq 0x759(%rip), %rbx       # 0x42f0
movzbl (%r9,%rbx), %eax
shll $0x18, %eax
movl %r12d, %r9d
shrl $0x10, %r9d
andl %esi, %r9d
movzbl (%r9,%rbx), %r9d
shll $0x10, %r9d
orl %eax, %r9d
movl %r15d, %eax
shrl $0x8, %eax
andl %esi, %eax
movzbl (%rax,%rbx), %eax
shll $0x8, %eax
orl %r9d, %eax
movl %edi, %r9d
andl %esi, %r9d
movzbl (%r9,%rbx), %r9d
orl %eax, %r9d
xorl 0x14(%rsp), %r9d
movq %r13, %r14
shlq $0x4, %r14
movq 0x58(%rsp), %r10
movl %r9d, (%r10,%r14)
movl %edi, %eax
shrl $0x18, %eax
movzbl (%rax,%rbx), %eax
shll $0x18, %eax
movl %r8d, %r9d
shrl $0x10, %r9d
andl %esi, %r9d
movzbl (%r9,%rbx), %r9d
shll $0x10, %r9d
orl %eax, %r9d
movl %r12d, %eax
shrl $0x8, %eax
andl %esi, %eax
movzbl (%rax,%rbx), %eax
shll $0x8, %eax
orl %r9d, %eax
movl %r15d, %r9d
andl %esi, %r9d
movzbl (%r9,%rbx), %r9d
orl %eax, %r9d
xorl 0x38(%rsp), %r9d
movl %r9d, 0x4(%r10,%r14)
movl %r15d, %eax
shrl $0x18, %eax
movzbl (%rax,%rbx), %eax
shll $0x18, %eax
movl %edi, %r9d
shrl $0x10, %r9d
andl %esi, %r9d
movzbl (%r9,%rbx), %r9d
shll $0x10, %r9d
orl %eax, %r9d
movl %r8d, %eax
shrl $0x8, %eax
andl %esi, %eax
movzbl (%rax,%rbx), %eax
shll $0x8, %eax
orl %r9d, %eax
movl %r12d, %r9d
andl %esi, %r9d
movzbl (%r9,%rbx), %r9d
orl %eax, %r9d
xorl 0x10(%rsp), %r9d
movl %r9d, 0x8(%r10,%r14)
shrl $0x18, %r12d
movzbl (%r12,%rbx), %eax
shll $0x18, %eax
shrl $0x10, %r15d
andl %esi, %r15d
movzbl (%r15,%rbx), %r9d
shll $0x10, %r9d
orl %eax, %r9d
shrl $0x8, %edi
andl %esi, %edi
movzbl (%rdi,%rbx), %eax
shll $0x8, %eax
orl %r9d, %eax
andl %esi, %r8d
movzbl (%r8,%rbx), %edi
orl %eax, %edi
xorl 0x30(%rsp), %edi
movl %edi, 0xc(%r10,%r14)
incq %r13
jmp 0x3a03
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop