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