	.file	"extr_omap-aes-gcm.c_omap_aes_gcm_handle_queue.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	omap_aes_gcm_handle_queue, @function
omap_aes_gcm_handle_queue:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14, 24[rdi]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, r14
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	spin_lock_irqsave@PLT
	test	r13, r13
	je	.L2
	lea	rdi, 28[rbp]
	mov	rsi, r13
	call	aead_enqueue_request@PLT
	mov	r12d, eax
.L2:
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR FLAGS_BUSY[rip], eax
	jne	.L5
	lea	r13, 28[rbp]
	mov	rdi, r13
	call	aead_get_backlog@PLT
	mov	rdi, r13
	mov	rbx, rax
	call	aead_dequeue_request@PLT
	mov	r13, rax
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR FLAGS_BUSY[rip]
	or	DWORD PTR 0[rbp], eax
	xor	esi, esi
	mov	rdi, r14
	call	spin_unlock_irqrestore@PLT
	test	rbx, rbx
	je	.L6
	mov	esi, DWORD PTR EINPROGRESS[rip]
	mov	rdi, rbx
	neg	esi
	call	[QWORD PTR [rbx]]
.L6:
	mov	rdi, r13
	call	crypto_aead_reqtfm@PLT
	mov	edi, eax
	call	crypto_aead_ctx@PLT
	mov	rdi, r13
	mov	rbx, rax
	call	aead_request_ctx@PLT
	mov	QWORD PTR 16[rbp], rbx
	mov	rsi, r13
	mov	rdi, rbp
	mov	edx, DWORD PTR FLAGS_MODE_MASK[rip]
	mov	ecx, DWORD PTR [rax]
	mov	QWORD PTR 8[rax], rbp
	mov	QWORD PTR 8[rbp], r13
	and	ecx, edx
	not	edx
	and	edx, DWORD PTR 0[rbp]
	or	edx, ecx
	mov	DWORD PTR [rax], ecx
	mov	DWORD PTR 0[rbp], edx
	call	omap_aes_gcm_copy_buffers@PLT
	test	eax, eax
	je	.L21
	mov	r12d, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	rdi, rbp
	call	omap_aes_write_ctrl@PLT
	test	eax, eax
	je	.L22
.L7:
	mov	rdi, rbp
	mov	esi, eax
	call	omap_aes_gcm_finish_req@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	omap_aes_gcm_handle_queue
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r14
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdi, rbp
	call	omap_aes_crypt_dma_start@PLT
	test	eax, eax
	jne	.L7
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	omap_aes_gcm_handle_queue, .-omap_aes_gcm_handle_queue
	.comm	FLAGS_MODE_MASK,4,4
	.comm	FLAGS_BUSY,4,4
	.comm	EINPROGRESS,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_omap-aes-gcm.c_omap_aes_gcm_handle_queue.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	omap_aes_gcm_handle_queue, %function
omap_aes_gcm_handle_queue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	add	r8, r0, #12
	mov	r4, r0
	mov	r1, #0
	mov	r0, r8
	bl	spin_lock_irqsave
	cmp	r5, #0
	beq	.L2
	mov	r1, r5
	add	r0, r4, #16
	bl	aead_enqueue_request
	mov	r5, r0
.L2:
	ldr	r9, .L21
	ldr	r2, [r4]
	ldr	r3, [r9]
	tst	r2, r3
	bne	.L5
	add	r6, r4, #16
	mov	r0, r6
	bl	aead_get_backlog
	mov	r7, r0
	mov	r0, r6
	bl	aead_dequeue_request
	subs	r6, r0, #0
	beq	.L5
	ldr	r2, [r9]
	ldr	r3, [r4]
	mov	r0, r8
	orr	r3, r3, r2
	mov	r1, #0
	str	r3, [r4]
	bl	spin_unlock_irqrestore
	cmp	r7, #0
	beq	.L6
	ldr	r2, .L21+4
	mov	r0, r7
	ldr	r1, [r2]
	ldr	r3, [r7]
	rsb	r1, r1, #0
	blx	r3
.L6:
	mov	r0, r6
	bl	crypto_aead_reqtfm
	bl	crypto_aead_ctx
	mov	r7, r0
	mov	r0, r6
	bl	aead_request_ctx
	ldr	r3, .L21+8
	ldr	r2, [r0]
	ldr	r1, [r3]
	ldr	r3, [r4]
	and	r2, r2, r1
	bic	r3, r3, r1
	orr	r3, r3, r2
	str	r7, [r4, #8]
	mov	r1, r6
	str	r4, [r0, #4]
	str	r6, [r4, #4]
	str	r2, [r0]
	mov	r0, r4
	str	r3, [r4]
	bl	omap_aes_gcm_copy_buffers
	cmp	r0, #0
	movne	r5, r0
	beq	.L19
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	mov	r0, r4
	bl	omap_aes_write_ctrl
	subs	r1, r0, #0
	beq	.L20
.L7:
	mov	r0, r4
	bl	omap_aes_gcm_finish_req
	mov	r0, r4
	mov	r1, #0
	bl	omap_aes_gcm_handle_queue
	b	.L1
.L5:
	mov	r0, r8
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	mov	r0, r4
	bl	omap_aes_crypt_dma_start
	subs	r1, r0, #0
	bne	.L7
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	.align	2
.L21:
	.word	FLAGS_BUSY
	.word	EINPROGRESS
	.word	FLAGS_MODE_MASK
	.size	omap_aes_gcm_handle_queue, .-omap_aes_gcm_handle_queue
	.comm	FLAGS_MODE_MASK,4,4
	.comm	FLAGS_BUSY,4,4
	.comm	EINPROGRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
