	.file	"extr_aead.c_aead_prepare_alg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aead_prepare_alg, @function
aead_prepare_alg:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	esi, DWORD PTR 4[rdi]
	mov	edx, DWORD PTR [rbx]
	mov	edi, DWORD PTR 8[rdi]
	call	max3@PLT
	mov	edx, DWORD PTR PAGE_SIZE[rip]
	mov	r8d, eax
	test	edx, edx
	lea	eax, 7[rdx]
	cmovns	eax, edx
	sar	eax, 3
	cmp	r8d, eax
	jg	.L7
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR 32[rbx]
	mov	DWORD PTR [rbx], eax
.L4:
	lea	rax, crypto_aead_type[rip]
	mov	QWORD PTR 24[rbx], rax
	mov	eax, DWORD PTR CRYPTO_ALG_TYPE_MASK[rip]
	not	eax
	and	eax, DWORD PTR 16[rbx]
	or	eax, DWORD PTR CRYPTO_ALG_TYPE_AEAD[rip]
	mov	DWORD PTR 16[rbx], eax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	aead_prepare_alg, .-aead_prepare_alg
	.comm	crypto_aead_type,4,4
	.comm	PAGE_SIZE,4,4
	.comm	EINVAL,4,4
	.comm	CRYPTO_ALG_TYPE_MASK,4,4
	.comm	CRYPTO_ALG_TYPE_AEAD,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_aead.c_aead_prepare_alg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aead_prepare_alg, %function
aead_prepare_alg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	push	{r4, lr}
	ldr	r1, [r0, #4]
	mov	r4, r0
	ldr	r0, [r0, #8]
	bl	max3
	ldr	r3, .L8
	ldr	r3, [r3]
	cmp	r3, #0
	add	r2, r3, #7
	movlt	r3, r2
	cmp	r0, r3, asr #3
	bgt	.L7
	ldr	r3, [r4]
	ldr	r1, .L8+4
	cmp	r3, #0
	ldreq	r3, [r4, #20]
	ldr	r1, [r1]
	streq	r3, [r4]
	ldr	r3, .L8+8
	mov	r0, #0
	ldr	r2, [r3]
	ldr	r3, [r4, #12]
	bic	r3, r3, r2
	ldr	r2, .L8+12
	orr	r3, r3, r1
	str	r3, [r4, #12]
	str	r2, [r4, #16]
	pop	{r4, pc}
.L7:
	ldr	r3, .L8+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L9:
	.align	2
.L8:
	.word	PAGE_SIZE
	.word	CRYPTO_ALG_TYPE_AEAD
	.word	CRYPTO_ALG_TYPE_MASK
	.word	crypto_aead_type
	.word	EINVAL
	.size	aead_prepare_alg, .-aead_prepare_alg
	.comm	crypto_aead_type,4,4
	.comm	PAGE_SIZE,4,4
	.comm	EINVAL,4,4
	.comm	CRYPTO_ALG_TYPE_MASK,4,4
	.comm	CRYPTO_ALG_TYPE_AEAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
