	.file	"extr_aes.c_esp_aes_crypt_cfb8.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	esp_aes_crypt_cfb8
	.type	esp_aes_crypt_cfb8, @function
esp_aes_crypt_cfb8:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	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, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 8[rsp], rdx
	lea	r14, 16[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	esp_aes_acquire_hardware@PLT
	mov	esi, DWORD PTR ESP_AES_ENCRYPT[rip]
	mov	rdi, r13
	lea	r13, 17[rsp]
	call	esp_aes_setkey_hardware@PLT
	mov	rdx, QWORD PTR 8[rsp]
	lea	rax, [rbx+rdx]
	mov	QWORD PTR 8[rsp], rax
	test	rdx, rdx
	je	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, 16
	mov	rsi, r15
	mov	rdi, r14
	call	memcpy@PLT
	mov	rsi, r15
	mov	rdi, r15
	call	esp_aes_block@PLT
	cmp	DWORD PTR ESP_AES_DECRYPT[rip], r12d
	movzx	eax, BYTE PTR 0[rbp]
	jne	.L4
	mov	BYTE PTR 32[rsp], al
.L4:
	add	rbx, 1
	xor	al, BYTE PTR [r15]
	add	rbp, 1
	mov	BYTE PTR -1[rbx], al
	cmp	DWORD PTR ESP_AES_ENCRYPT[rip], r12d
	jne	.L5
	mov	BYTE PTR 32[rsp], al
.L5:
	mov	edx, 16
	mov	rsi, r13
	mov	rdi, r15
	call	memcpy@PLT
	cmp	rbx, QWORD PTR 8[rsp]
	jne	.L6
.L7:
	xor	eax, eax
	call	esp_aes_release_hardware@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	esp_aes_crypt_cfb8, .-esp_aes_crypt_cfb8
	.comm	ESP_AES_ENCRYPT,4,4
	.comm	ESP_AES_DECRYPT,4,4
	.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_aes.c_esp_aes_crypt_cfb8.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	esp_aes_crypt_cfb8
	.syntax unified
	.arm
	.fpu softvfp
	.type	esp_aes_crypt_cfb8, %function
esp_aes_crypt_cfb8:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r10, r0
	mov	r8, r2
	mov	r4, r3
	ldr	r9, .L14
	ldr	r3, .L14+4
	sub	sp, sp, #24
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r5, [sp, #60]
	ldr	r6, [sp, #56]
	bl	esp_aes_acquire_hardware
	mov	r0, r10
	ldr	r1, [r9]
	bl	esp_aes_setkey_hardware
	cmp	r8, #0
	ldrne	r10, .L14+8
	addne	r8, r5, r8
	beq	.L7
.L6:
	mov	r2, #16
	mov	r1, r4
	mov	r0, sp
	bl	memcpy
	mov	r1, r4
	mov	r0, r4
	bl	esp_aes_block
	ldr	r3, [r10]
	ldrb	r2, [r4]	@ zero_extendqisi2
	cmp	r3, r7
	ldrb	r3, [r6]	@ zero_extendqisi2
	mov	r0, r4
	strbeq	r3, [sp, #16]
	eor	r3, r3, r2
	strb	r3, [r5], #1
	ldr	r2, [r9]
	add	r1, sp, #1
	cmp	r2, r7
	mov	r2, #16
	strbeq	r3, [sp, #16]
	bl	memcpy
	cmp	r5, r8
	add	r6, r6, #1
	bne	.L6
.L7:
	bl	esp_aes_release_hardware
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, #0
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	ESP_AES_ENCRYPT
	.word	.LC0
	.word	ESP_AES_DECRYPT
	.size	esp_aes_crypt_cfb8, .-esp_aes_crypt_cfb8
	.comm	ESP_AES_ENCRYPT,4,4
	.comm	ESP_AES_DECRYPT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
