// File: /workspace/github_c_makefile_star2_O2/opencoff[P]crypto-rand/./cipher.h
// Function: _chacha_crypt_buf
static void
__aes_reinit(crypto_rand_state *st)
{
    uint8_t *key = &st->buf[0];
    uint8_t *iv  = key + AESRAND_KEYSZ;

    __aes_key_setup(st, key, iv);

    // erase the key & iv, reduce the amount of rand we have
    memset(key, 0, AESRAND_KEYSZ + AESRAND_IVSZ);
    st->ptr = st->buf + (AESRAND_KEYSZ + AESRAND_IVSZ);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl 0x410(%rdi), %eax
movl %eax, -0x24(%rsp)
movl 0x414(%rdi), %eax
movl %eax, -0x28(%rsp)
movl 0x418(%rdi), %eax
movl %eax, -0x2c(%rsp)
movl 0x41c(%rdi), %eax
movl %eax, -0x30(%rsp)
movl 0x420(%rdi), %eax
movl %eax, -0x34(%rsp)
movl 0x424(%rdi), %eax
movl %eax, -0x38(%rsp)
movl 0x428(%rdi), %eax
movl %eax, -0x3c(%rsp)
movl 0x42c(%rdi), %eax
movl %eax, -0x40(%rsp)
movl 0x430(%rdi), %eax
movl %eax, -0x44(%rsp)
movl 0x434(%rdi), %eax
movl %eax, -0x48(%rsp)
movl 0x438(%rdi), %eax
movl %eax, -0x4c(%rsp)
movl 0x43c(%rdi), %eax
movl %eax, -0x50(%rsp)
movl 0x440(%rdi), %ebp
movl 0x444(%rdi), %r13d
movl 0x448(%rdi), %r8d
movl 0x44c(%rdi), %r10d
movl $0x400, -0x54(%rsp)     # imm = 0x400
movq %rdi, -0x8(%rsp)
movq %rdi, -0x10(%rsp)
movl %r10d, -0x58(%rsp)
movl %r8d, -0x5c(%rsp)
movl $0xffffffec, %ecx       # imm = 0xFFFFFFEC
movl -0x50(%rsp), %eax
movl %eax, -0x6c(%rsp)
movl %ebp, -0x20(%rsp)
movl %ebp, -0x64(%rsp)
movl %r13d, -0x1c(%rsp)
movl %r13d, %r11d
movl %r10d, -0x68(%rsp)
movl -0x4c(%rsp), %eax
movl %eax, -0x60(%rsp)
movl -0x48(%rsp), %r14d
movl -0x44(%rsp), %r12d
movl -0x40(%rsp), %eax
movl %eax, -0x78(%rsp)
movl -0x3c(%rsp), %eax
movl %eax, -0x70(%rsp)
movl -0x38(%rsp), %eax
movl %eax, -0x74(%rsp)
movl -0x34(%rsp), %edx
movl -0x30(%rsp), %r13d
movl -0x2c(%rsp), %edi
movl -0x28(%rsp), %r9d
movl -0x24(%rsp), %esi
movl %esi, -0x7c(%rsp)
testl %ecx, %ecx
je 0x1928
movl -0x7c(%rsp), %ebx
addl %edx, %ebx
movl -0x64(%rsp), %r15d
xorl %ebx, %r15d
roll $0x10, %r15d
movl %r12d, %r10d
addl %r15d, %r10d
xorl %r10d, %edx
roll $0xc, %edx
addl %edx, %ebx
xorl %ebx, %r15d
roll $0x8, %r15d
addl %r15d, %r10d
xorl %r10d, %edx
roll $0x7, %edx
movl %edx, -0x14(%rsp)
movl %r9d, %ebp
movl -0x74(%rsp), %edx
addl %edx, %ebp
movl %r11d, %r12d
xorl %ebp, %r12d
roll $0x10, %r12d
movl %r14d, %esi
addl %r12d, %esi
xorl %esi, %edx
roll $0xc, %edx
addl %edx, %ebp
xorl %ebp, %r12d
roll $0x8, %r12d
addl %r12d, %esi
xorl %esi, %edx
roll $0x7, %edx
movl %edi, %r11d
movl %ecx, -0x18(%rsp)
movl -0x70(%rsp), %ecx
addl %ecx, %r11d
movl %r8d, %r14d
xorl %r11d, %r14d
roll $0x10, %r14d
movl -0x60(%rsp), %r9d
addl %r14d, %r9d
xorl %r9d, %ecx
roll $0xc, %ecx
addl %ecx, %r11d
xorl %r11d, %r14d
roll $0x8, %r14d
addl %r14d, %r9d
xorl %r9d, %ecx
roll $0x7, %ecx
movl %r13d, %r8d
movl -0x78(%rsp), %eax
addl %eax, %r8d
movl -0x68(%rsp), %edi
xorl %r8d, %edi
roll $0x10, %edi
movl -0x6c(%rsp), %r13d
addl %edi, %r13d
xorl %r13d, %eax
roll $0xc, %eax
addl %eax, %r8d
xorl %r8d, %edi
roll $0x8, %edi
addl %edi, %r13d
xorl %r13d, %eax
roll $0x7, %eax
addl %edx, %ebx
xorl %ebx, %edi
roll $0x10, %edi
addl %edi, %r9d
xorl %r9d, %edx
roll $0xc, %edx
addl %edx, %ebx
movl %ebx, -0x7c(%rsp)
xorl %ebx, %edi
roll $0x8, %edi
movl %edi, -0x68(%rsp)
addl %edi, %r9d
movl %r9d, -0x60(%rsp)
xorl %r9d, %edx
roll $0x7, %edx
movl %edx, -0x74(%rsp)
movl -0x14(%rsp), %edx
addl %ecx, %ebp
xorl %ebp, %r15d
roll $0x10, %r15d
addl %r15d, %r13d
xorl %r13d, %ecx
roll $0xc, %ecx
addl %ecx, %ebp
movl %ebp, %r9d
xorl %ebp, %r15d
roll $0x8, %r15d
movl %r15d, -0x64(%rsp)
addl %r15d, %r13d
movl %r13d, -0x6c(%rsp)
xorl %r13d, %ecx
roll $0x7, %ecx
movl %ecx, -0x70(%rsp)
movl -0x18(%rsp), %ecx
addl %eax, %r11d
xorl %r11d, %r12d
roll $0x10, %r12d
addl %r12d, %r10d
xorl %r10d, %eax
roll $0xc, %eax
addl %eax, %r11d
movl %r11d, %edi
xorl %r11d, %r12d
roll $0x8, %r12d
movl %r12d, %r11d
addl %r12d, %r10d
movl %r10d, %r12d
xorl %r10d, %eax
roll $0x7, %eax
movl %eax, -0x78(%rsp)
addl %edx, %r8d
xorl %r8d, %r14d
roll $0x10, %r14d
addl %r14d, %esi
xorl %esi, %edx
roll $0xc, %edx
addl %edx, %r8d
movl %r8d, %r13d
xorl %r8d, %r14d
roll $0x8, %r14d
movl %r14d, %r8d
addl %r14d, %esi
movl %esi, %r14d
xorl %esi, %edx
roll $0x7, %edx
addl $0x2, %ecx
jmp 0x177a
movl -0x7c(%rsp), %eax
addl -0x24(%rsp), %eax
movl %r9d, %ecx
addl -0x28(%rsp), %ecx
movl %edi, %ebx
addl -0x2c(%rsp), %ebx
addl -0x30(%rsp), %r13d
movl %r13d, -0x7c(%rsp)
addl -0x34(%rsp), %edx
movl -0x74(%rsp), %esi
addl -0x38(%rsp), %esi
movl %esi, -0x74(%rsp)
movl -0x70(%rsp), %esi
addl -0x3c(%rsp), %esi
movl %esi, %r10d
movl -0x78(%rsp), %esi
addl -0x40(%rsp), %esi
movl %esi, -0x78(%rsp)
movl %r12d, %r13d
addl -0x44(%rsp), %r13d
movl %r14d, %r12d
addl -0x48(%rsp), %r12d
movl -0x60(%rsp), %r14d
addl -0x4c(%rsp), %r14d
movl -0x6c(%rsp), %ebp
addl -0x50(%rsp), %ebp
movl -0x64(%rsp), %r15d
addl -0x20(%rsp), %r15d
movl %r11d, %r9d
addl -0x1c(%rsp), %r9d
addl -0x5c(%rsp), %r8d
movl -0x68(%rsp), %esi
addl -0x58(%rsp), %esi
movl %esi, %r11d
movq -0x10(%rsp), %rsi
xorl (%rsi), %eax
xorl 0x4(%rsi), %ecx
xorl 0x8(%rsi), %ebx
movl -0x7c(%rsp), %edi
xorl 0xc(%rsi), %edi
movl %edi, -0x7c(%rsp)
xorl 0x10(%rsi), %edx
movl -0x74(%rsp), %edi
xorl 0x14(%rsi), %edi
xorl 0x18(%rsi), %r10d
movl %r10d, -0x70(%rsp)
movl -0x78(%rsp), %r10d
xorl 0x1c(%rsi), %r10d
movl %r10d, -0x78(%rsp)
xorl 0x20(%rsi), %r13d
movl %r13d, %r10d
movl -0x1c(%rsp), %r13d
xorl 0x24(%rsi), %r12d
xorl 0x28(%rsi), %r14d
xorl 0x2c(%rsi), %ebp
movl %ebp, -0x6c(%rsp)
movl -0x20(%rsp), %ebp
xorl 0x30(%rsi), %r15d
xorl 0x34(%rsi), %r9d
xorl 0x38(%rsi), %r8d
xorl 0x3c(%rsi), %r11d
movl %r11d, -0x68(%rsp)
addl $0x1, %ebp
adcl $0x0, %r13d
movb %al, (%rsi)
movb %ah, 0x1(%rsi)
movl %eax, %r11d
shrl $0x10, %r11d
movb %r11b, 0x2(%rsi)
shrl $0x18, %eax
movb %al, 0x3(%rsi)
movb %cl, 0x4(%rsi)
movb %ch, 0x5(%rsi)
movl %ecx, %r11d
shrl $0x10, %r11d
movb %r11b, 0x6(%rsi)
shrl $0x18, %ecx
movb %cl, 0x7(%rsi)
movb %bl, 0x8(%rsi)
movb %bh, 0x9(%rsi)
movl %ebx, %r11d
shrl $0x10, %r11d
movb %r11b, 0xa(%rsi)
shrl $0x18, %ebx
movb %bl, 0xb(%rsi)
movl -0x7c(%rsp), %eax
movb %al, 0xc(%rsi)
movb %ah, 0xd(%rsi)
movl %eax, %r11d
shrl $0x10, %r11d
movb %r11b, 0xe(%rsi)
shrl $0x18, %eax
movb %al, 0xf(%rsi)
movb %dl, 0x10(%rsi)
movb %dh, 0x11(%rsi)
movl %edx, %r11d
shrl $0x10, %r11d
movb %r11b, 0x12(%rsi)
shrl $0x18, %edx
movb %dl, 0x13(%rsi)
movl %edi, %eax
movb %al, 0x14(%rsi)
movb %ah, 0x15(%rsi)
movl %edi, %edx
shrl $0x10, %edx
movb %dl, 0x16(%rsi)
shrl $0x18, %eax
movb %al, 0x17(%rsi)
movl -0x70(%rsp), %eax
movb %al, 0x18(%rsi)
movb %ah, 0x19(%rsi)
movl %eax, %ecx
shrl $0x10, %ecx
movb %cl, 0x1a(%rsi)
shrl $0x18, %eax
movb %al, 0x1b(%rsi)
movl -0x78(%rsp), %ecx
movb %cl, 0x1c(%rsi)
movb %ch, 0x1d(%rsi)
movl %ecx, %eax
shrl $0x10, %eax
movb %al, 0x1e(%rsi)
shrl $0x18, %ecx
movb %cl, 0x1f(%rsi)
movl %r10d, %ecx
movb %cl, 0x20(%rsi)
movb %ch, 0x21(%rsi)
movl %r10d, %eax
shrl $0x10, %eax
movb %al, 0x22(%rsi)
shrl $0x18, %ecx
movb %cl, 0x23(%rsi)
movl %r12d, %ecx
movb %cl, 0x24(%rsi)
movb %ch, 0x25(%rsi)
movl %r12d, %eax
shrl $0x10, %eax
movb %al, 0x26(%rsi)
shrl $0x18, %ecx
movb %cl, 0x27(%rsi)
movl %r14d, %ecx
movb %cl, 0x28(%rsi)
movb %ch, 0x29(%rsi)
movl %r14d, %eax
shrl $0x10, %eax
movb %al, 0x2a(%rsi)
shrl $0x18, %ecx
movb %cl, 0x2b(%rsi)
movl -0x6c(%rsp), %ecx
movb %cl, 0x2c(%rsi)
movb %ch, 0x2d(%rsi)
movl %ecx, %eax
shrl $0x10, %eax
movb %al, 0x2e(%rsi)
shrl $0x18, %ecx
movb %cl, 0x2f(%rsi)
movl %r15d, %ecx
movb %cl, 0x30(%rsi)
movb %ch, 0x31(%rsi)
movl %r15d, %eax
shrl $0x10, %eax
movb %al, 0x32(%rsi)
shrl $0x18, %ecx
movb %cl, 0x33(%rsi)
movl %r9d, %ecx
movb %cl, 0x34(%rsi)
movb %ch, 0x35(%rsi)
movl %r9d, %eax
shrl $0x10, %eax
movb %al, 0x36(%rsi)
shrl $0x18, %ecx
movb %cl, 0x37(%rsi)
movl %r8d, %ecx
movb %cl, 0x38(%rsi)
movb %ch, 0x39(%rsi)
movl %r8d, %eax
shrl $0x10, %eax
movb %al, 0x3a(%rsi)
shrl $0x18, %ecx
movb %cl, 0x3b(%rsi)
movl -0x68(%rsp), %ecx
movb %cl, 0x3c(%rsi)
movb %ch, 0x3d(%rsi)
movl %ecx, %eax
shrl $0x10, %eax
movb %al, 0x3e(%rsi)
shrl $0x18, %ecx
movb %cl, 0x3f(%rsi)
movl -0x54(%rsp), %eax
cmpl $0x41, %eax
jb 0x1bca
addl $-0x40, %eax
movl %eax, -0x54(%rsp)
addq $0x40, %rsi
movq %rsi, -0x10(%rsp)
movl -0x5c(%rsp), %r8d
movl -0x58(%rsp), %r10d
jmp 0x1714
movq -0x8(%rsp), %rax
movl %ebp, 0x440(%rax)
movl %r13d, 0x444(%rax)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq