	.file	"extr_aesni256.c_vk_ssl_aes_ctr_crypt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vk_ssl_aes_ctr_crypt
	.type	vk_ssl_aes_ctr_crypt, @function
vk_ssl_aes_ctr_crypt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r9d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	DWORD PTR 12[rsp], ecx
	mov	rcx, QWORD PTR 8[r8]
	mov	QWORD PTR [rsp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rax, r9
	mov	QWORD PTR 16[rsp], rcx
	shr	rax, 4
	add	rax, rcx
	mov	QWORD PTR 8[r8], rax
	and	r12d, 15
	jne	.L19
.L2:
	mov	eax, DWORD PTR 12[rsp]
	sar	eax, 4
	test	eax, eax
	jle	.L4
	lea	r14d, -1[rax]
	mov	rbp, QWORD PTR [rsp]
	add	r14, 1
	sal	r14, 4
	mov	QWORD PTR 24[rsp], r14
	lea	r12, [rbx+r14]
	lea	r14, 32[rsp]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, r13
	mov	rsi, r14
	mov	rdi, r15
	add	rbx, 16
	call	AES_encrypt@PLT
	add	QWORD PTR 8[r15], 1
	mov	rax, QWORD PTR -16[rbx]
	add	rbp, 16
	xor	rax, QWORD PTR 32[rsp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbx]
	xor	rax, QWORD PTR 40[rsp]
	mov	QWORD PTR -8[rbp], rax
	cmp	r12, rbx
	jne	.L5
	mov	rdi, QWORD PTR 24[rsp]
	add	QWORD PTR [rsp], rdi
.L4:
	mov	ebp, DWORD PTR 12[rsp]
	and	ebp, 15
	jne	.L6
.L8:
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 8[r15], rax
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	lea	r14, 32[rsp]
	mov	rdx, rdi
	mov	rdi, r8
	mov	rsi, r14
	call	AES_encrypt@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	eax, 16
	add	QWORD PTR 8[r15], 1
	mov	r9, QWORD PTR [rsp]
	lea	ecx, [r12+rdi]
	cmp	ecx, 16
	cmovg	ecx, eax
	mov	eax, ecx
	sub	eax, r12d
	sub	edi, eax
	movsx	rax, r12d
	mov	DWORD PTR 12[rsp], edi
	mov	rdi, rbx
	sub	r9, rax
	sub	rdi, rax
	.p2align 4,,10
	.p2align 3
.L3:
	movzx	edx, BYTE PTR [rdi+rax]
	xor	dl, BYTE PTR [r14+rax]
	mov	BYTE PTR [r9+rax], dl
	add	rax, 1
	cmp	ecx, eax
	jg	.L3
	mov	eax, r12d
	mov	edx, 1
	not	eax
	add	eax, ecx
	add	rax, 1
	cmp	ecx, r12d
	cmovle	rax, rdx
	add	QWORD PTR [rsp], rax
	add	rbx, rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	lea	r14, 32[rsp]
	mov	rdx, r13
	mov	rdi, r15
	mov	rsi, r14
	call	AES_encrypt@PLT
	lea	ecx, -1[rbp]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, QWORD PTR [rsp]
	movzx	edx, BYTE PTR [rbx+rax]
	xor	dl, BYTE PTR [r14+rax]
	mov	BYTE PTR [rsi+rax], dl
	mov	rdx, rax
	add	rax, 1
	cmp	rdx, rcx
	jne	.L7
	jmp	.L8
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vk_ssl_aes_ctr_crypt, .-vk_ssl_aes_ctr_crypt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_aesni256.c_vk_ssl_aes_ctr_crypt.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	vk_ssl_aes_ctr_crypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	vk_ssl_aes_ctr_crypt, %function
vk_ssl_aes_ctr_crypt:
	@ args = 16, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #44
	ldr	r6, [sp, #80]
	ldr	r4, [sp, #88]
	ldr	lr, [sp, #92]
	ldr	r5, [r6, #8]
	lsr	ip, r4, #4
	ldr	r7, [r6, #12]
	orr	ip, ip, lr, lsl #28
	adds	ip, ip, r5
	str	r3, [sp]
	lsr	lr, lr, #4
	ldr	r3, .L21
	adc	lr, lr, r7
	str	r7, [sp, #8]
	str	r5, [sp, #4]
	ands	r4, r4, #15
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r10, r0
	mov	r7, r1
	mov	r9, r2
	str	ip, [r6, #8]
	str	lr, [r6, #12]
	bne	.L19
.L2:
	ldr	r3, [sp]
	asr	r3, r3, #4
	cmp	r3, #0
	ble	.L4
	add	r4, r7, #16
	add	fp, r4, r3, lsl #4
	lsl	r3, r3, #4
	str	r3, [sp, #12]
	add	r5, r9, #16
	add	r8, sp, #16
.L5:
	mov	r2, r10
	mov	r1, r8
	mov	r0, r6
	bl	AES_encrypt
	ldr	r3, [r6, #8]
	ldr	r2, [r6, #12]
	adds	r3, r3, #1
	adc	r2, r2, #0
	str	r3, [r6, #8]
	str	r2, [r6, #12]
	ldr	r2, [r4, #-16]
	ldr	r3, [r4, #-12]
	ldr	r0, [sp, #16]
	ldr	r1, [sp, #20]
	eor	r2, r2, r0
	eor	r3, r3, r1
	str	r2, [r5, #-16]
	str	r3, [r5, #-12]
	ldr	r2, [r4, #-8]
	ldr	r3, [r4, #-4]
	ldr	r0, [sp, #24]
	ldr	r1, [sp, #28]
	add	r4, r4, #16
	eor	r2, r2, r0
	eor	r3, r3, r1
	cmp	r4, fp
	stmdb	r5, {r2, r3}
	add	r5, r5, #16
	bne	.L5
	ldr	r3, [sp, #12]
	add	r7, r7, r3
	add	r9, r9, r3
.L4:
	ldr	r3, [sp]
	ands	r4, r3, #15
	bne	.L6
.L8:
	ldr	r3, [sp, #4]
	str	r3, [r6, #8]
	ldr	r3, [sp, #8]
	str	r3, [r6, #12]
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	add	r8, sp, #16
	mov	r1, r8
	mov	r2, r0
	mov	r0, r6
	bl	AES_encrypt
	ldr	r2, [sp]
	ldr	r1, [r6, #8]
	ldr	r3, [r6, #12]
	adds	r1, r1, #1
	add	r5, r4, r2
	adc	r3, r3, #0
	cmp	r5, #16
	movge	r5, #16
	mov	ip, r9
	mov	r0, r7
	sub	fp, r5, r4
	str	r3, [r6, #12]
	sub	r3, r2, fp
	add	r8, r8, r4
	str	r1, [r6, #8]
	str	r3, [sp]
.L3:
	ldrb	r1, [r0], #1	@ zero_extendqisi2
	ldrb	r3, [r8], #1	@ zero_extendqisi2
	sub	r2, r0, r7
	add	r2, r2, r4
	eor	r3, r3, r1
	cmp	r5, r2
	strb	r3, [ip], #1
	bgt	.L3
	cmp	r5, r4
	movgt	r4, fp
	movle	r4, #1
	add	r7, r7, r4
	add	r9, r9, r4
	b	.L2
.L6:
	mov	r2, r10
	mov	r0, r6
	add	r1, sp, #16
	bl	AES_encrypt
	add	r10, r7, r4
	add	r2, sp, #15
.L7:
	ldrb	r3, [r7], #1	@ zero_extendqisi2
	ldrb	r1, [r2, #1]!	@ zero_extendqisi2
	cmp	r7, r10
	eor	r3, r3, r1
	strb	r3, [r9], #1
	bne	.L7
	b	.L8
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.size	vk_ssl_aes_ctr_crypt, .-vk_ssl_aes_ctr_crypt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
