	.file	"extr_esp6.c_esp_init_authenc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"digest_null"
.LC1:
	.string	"("
.LC2:
	.string	")"
.LC3:
	.string	""
.LC4:
	.string	"%s%sauthencesn(%s,%s)%s"
.LC5:
	.string	"%s%sauthenc(%s,%s)%s"
.LC6:
	.string	"ESP: %s digestsize %u != %hu\n"
	.text
	.p2align 4
	.type	esp_init_authenc, @function
esp_init_authenc:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rdi
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR CRYPTO_MAX_ALG_NAME[rip]
	mov	rbx, rsp
	mov	rsi, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rbx, rax
	and	rdx, -16
	mov	rax, rbx
	cmp	rsp, rax
	je	.L3
.L42:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L42
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L43
.L4:
	mov	r15d, DWORD PTR EINVAL[rip]
	mov	rax, QWORD PTR [r14]
	mov	r12, rsp
	neg	r15d
	test	rax, rax
	je	.L1
	mov	r15d, DWORD PTR ENAMETOOLONG[rip]
	mov	rdi, QWORD PTR [rax]
	mov	rcx, QWORD PTR 24[r14]
	mov	rax, QWORD PTR 8[r14]
	mov	edx, DWORD PTR 32[r14]
	neg	r15d
	test	DWORD PTR XFRM_STATE_ESN[rip], edx
	je	.L7
	test	rcx, rcx
	je	.L44
	lea	r9, .LC0[rip]
	test	rax, rax
	je	.L22
	mov	r9, QWORD PTR [rax]
.L22:
	lea	r8, .LC1[rip]
	lea	rax, .LC2[rip]
.L20:
	push	rax
	lea	rdx, .LC4[rip]
	push	rdi
.L40:
	mov	rdi, r12
	call	snprintf@PLT
	cmp	eax, DWORD PTR CRYPTO_MAX_ALG_NAME[rip]
	pop	rdx
	pop	rcx
	jge	.L1
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r12
	call	crypto_alloc_aead@PLT
	mov	r13, rax
	mov	rdi, rax
	call	PTR_ERR@PLT
	mov	rdi, r13
	mov	r15d, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L1
	mov	rdx, QWORD PTR 8[r14]
	mov	QWORD PTR 16[r14], r13
	xor	eax, eax
	test	rdx, rdx
	je	.L14
	mov	eax, DWORD PTR 8[rdx]
	lea	r12d, 14[rax]
	add	eax, 7
	cmovns	r12d, eax
	mov	eax, r12d
	sar	eax, 3
.L14:
	mov	rdx, QWORD PTR [r14]
	mov	edi, 4
	mov	edx, DWORD PTR 8[rdx]
	lea	r12d, 14[rdx]
	add	edx, 7
	cmovns	r12d, edx
	sar	r12d, 3
	add	r12d, eax
	call	RTA_SPACE@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	r15d, DWORD PTR ENOMEM[rip]
	add	r12d, eax
	mov	edi, r12d
	neg	r15d
	call	kmalloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR CRYPTO_AUTHENC_KEYA_PARAM[rip]
	mov	edi, 4
	mov	DWORD PTR 4[rbx], eax
	call	RTA_LENGTH@PLT
	mov	rdi, rbx
	mov	DWORD PTR [rbx], eax
	call	RTA_DATA@PLT
	mov	edi, 4
	mov	QWORD PTR -72[rbp], rax
	call	RTA_SPACE@PLT
	mov	rcx, QWORD PTR 8[r14]
	movsx	r9, eax
	add	r9, rbx
	test	rcx, rcx
	je	.L16
	mov	eax, DWORD PTR 8[rcx]
	mov	esi, DWORD PTR 16[rcx]
	mov	rdi, r9
	mov	QWORD PTR -88[rbp], r9
	lea	edx, 14[rax]
	add	eax, 7
	cmovns	edx, eax
	sar	edx, 3
	call	memcpy@PLT
	mov	rax, QWORD PTR 8[r14]
	mov	esi, DWORD PTR 8[rax]
	mov	rdi, QWORD PTR [rax]
	mov	DWORD PTR -96[rbp], esi
	xor	esi, esi
	call	xfrm_aalg_get_byname@PLT
	test	rax, rax
	mov	QWORD PTR -80[rbp], rax
	sete	dil
	movzx	edi, dil
	call	BUG_ON@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	mov	rdx, QWORD PTR -80[rbp]
	mov	rdi, r13
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR [rdx]
	test	eax, eax
	lea	ecx, 7[rax]
	cmovs	eax, ecx
	sar	eax, 3
	mov	r15d, eax
	call	crypto_aead_authsize@PLT
	mov	r9, QWORD PTR -88[rbp]
	cmp	r15d, eax
	je	.L17
	mov	rdx, QWORD PTR -80[rbp]
	mov	r15d, DWORD PTR -92[rbp]
	mov	rdi, r13
	mov	ecx, DWORD PTR [rdx]
	neg	r15d
	lea	r12d, 7[rcx]
	test	ecx, ecx
	cmovns	r12d, ecx
	call	crypto_aead_authsize@PLT
	lea	rdi, .LC6[rip]
	mov	edx, eax
	mov	rax, QWORD PTR 8[r14]
	sar	r12d, 3
	mov	ecx, r12d
	mov	rsi, QWORD PTR [rax]
	call	pr_info@PLT
.L18:
	mov	rdi, rbx
	call	kfree@PLT
.L6:
	endbr64
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L45
	lea	rsp, -40[rbp]
	mov	eax, r15d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	test	rcx, rcx
	je	.L46
	lea	r9, .LC0[rip]
	test	rax, rax
	je	.L24
	mov	r9, QWORD PTR [rax]
.L24:
	lea	r8, .LC1[rip]
	lea	rax, .LC2[rip]
.L26:
	push	rax
	lea	rdx, .LC5[rip]
	push	rdi
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L46:
	test	rax, rax
	je	.L47
	lea	r8, .LC3[rip]
	mov	r9, QWORD PTR [rax]
	mov	rcx, r8
	mov	rax, r8
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L44:
	test	rax, rax
	je	.L48
	lea	r8, .LC3[rip]
	mov	r9, QWORD PTR [rax]
	mov	rcx, r8
	mov	rax, r8
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L43:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR 8[r14]
	mov	rdi, r13
	mov	QWORD PTR -80[rbp], r9
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	lea	esi, 7[rax]
	cmovns	esi, eax
	sar	esi, 3
	call	crypto_aead_setauthsize@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L18
	mov	ecx, DWORD PTR -96[rbp]
	mov	r9, QWORD PTR -80[rbp]
	lea	eax, 14[rcx]
	add	ecx, 7
	mov	r15d, ecx
	cmovs	r15d, eax
	sar	r15d, 3
	movsx	rax, r15d
	add	r9, rax
.L16:
	mov	rax, QWORD PTR [r14]
	mov	QWORD PTR -80[rbp], r9
	mov	eax, DWORD PTR 8[rax]
	lea	edi, 14[rax]
	add	eax, 7
	cmovns	edi, eax
	sar	edi, 3
	call	cpu_to_be32@PLT
	mov	rcx, QWORD PTR -72[rbp]
	mov	r9, QWORD PTR -80[rbp]
	mov	DWORD PTR [rcx], eax
	mov	rcx, QWORD PTR [r14]
	mov	rdi, r9
	mov	eax, DWORD PTR 8[rcx]
	mov	esi, DWORD PTR 12[rcx]
	lea	edx, 14[rax]
	add	eax, 7
	cmovns	edx, eax
	sar	edx, 3
	call	memcpy@PLT
	mov	edx, r12d
	mov	rsi, rbx
	mov	rdi, r13
	call	crypto_aead_setkey@PLT
	mov	r15d, eax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L47:
	lea	r8, .LC3[rip]
	lea	r9, .LC0[rip]
	mov	rax, r8
	mov	rcx, r8
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L48:
	lea	r8, .LC3[rip]
	lea	r9, .LC0[rip]
	mov	rax, r8
	mov	rcx, r8
	jmp	.L20
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	esp_init_authenc, .-esp_init_authenc
	.comm	XFRM_STATE_ESN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENAMETOOLONG,4,4
	.comm	EINVAL,4,4
	.comm	CRYPTO_MAX_ALG_NAME,4,4
	.comm	CRYPTO_AUTHENC_KEYA_PARAM,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_esp6.c_esp_init_authenc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"(\000"
	.align	2
.LC2:
	.ascii	")\000"
	.align	2
.LC3:
	.ascii	"digest_null\000"
	.align	2
.LC4:
	.ascii	"%s%sauthencesn(%s,%s)%s\000"
	.align	2
.LC5:
	.ascii	"%s%sauthenc(%s,%s)%s\000"
	.align	2
.LC6:
	.ascii	"ESP: %s digestsize %u != %hu\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	esp_init_authenc, %function
esp_init_authenc:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	ldr	r5, .L37
	ldr	r2, [r0]
	ldr	r1, [r5]
	cmp	r2, #0
	add	r3, r1, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L37+4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	beq	.L31
	mov	r4, r0
	ldr	r3, .L37+8
	ldr	ip, .L37+12
	ldr	r3, [r3]
	ldr	r0, [r0, #16]
	ldr	r8, [ip]
	tst	r0, r3
	add	r6, sp, #16
	ldr	r0, [r2]
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #4]
	rsb	r8, r8, #0
	beq	.L4
	cmp	r3, #0
	beq	.L5
	cmp	r2, #0
	beq	.L32
	ldr	lr, [r2]
	ldr	ip, .L37+16
	ldr	r2, .L37+20
	b	.L17
.L4:
	cmp	r3, #0
	beq	.L8
	cmp	r2, #0
	beq	.L33
	ldr	lr, [r2]
	ldr	ip, .L37+16
	ldr	r2, .L37+20
	b	.L19
.L8:
	cmp	r2, #0
	ldr	ip, .L37+24
	beq	.L34
	ldr	lr, [r2]
	mov	r3, ip
	mov	r2, ip
.L19:
	str	r2, [sp, #12]
	stm	sp, {ip, lr}
	ldr	r2, .L37+28
	str	r0, [sp, #8]
	b	.L29
.L5:
	cmp	r2, #0
	ldr	r3, .L37+24
	beq	.L35
	ldr	lr, [r2]
	mov	ip, r3
	mov	r2, r3
.L17:
	stm	sp, {ip, lr}
	str	r2, [sp, #12]
	ldr	r2, .L37+32
	str	r0, [sp, #8]
.L29:
	mov	r0, r6
	bl	snprintf
	ldr	r3, [r5]
	cmp	r0, r3
	bge	.L1
	mov	r2, #0
	mov	r0, r6
	mov	r1, r2
	bl	crypto_alloc_aead
	mov	r6, r0
	bl	PTR_ERR
	mov	r8, r0
	mov	r0, r6
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, [r4, #4]
	str	r6, [r4, #8]
	cmp	r3, #0
	beq	.L11
	ldr	r5, [r3, #4]
	adds	r0, r5, #7
	addmi	r0, r5, #14
	asr	r5, r0, #3
.L11:
	ldr	r3, [r4]
	mov	r0, #4
	ldr	r2, [r3, #4]
	adds	r3, r2, #7
	addmi	r3, r2, #14
	add	r5, r5, r3, asr #3
	bl	RTA_SPACE
	ldr	r2, .L37+36
	ldr	r3, .L37+40
	add	r5, r5, r0
	mov	r0, r5
	ldr	r1, [r2]
	ldr	r8, [r3]
	bl	kmalloc
	subs	r7, r0, #0
	rsbeq	r8, r8, #0
	beq	.L1
	ldr	r3, .L37+44
	mov	r0, #4
	ldr	r3, [r3]
	str	r3, [r7, #4]
	bl	RTA_LENGTH
	mov	r3, r0
	mov	r0, r7
	str	r3, [r7]
	bl	RTA_DATA
	mov	r9, r0
	mov	r0, #4
	bl	RTA_SPACE
	ldr	r1, [r4, #4]
	add	r10, r7, r0
	cmp	r1, #0
	beq	.L13
	ldr	r0, [r1, #4]
	ldr	r1, [r1, #12]
	adds	r2, r0, #7
	addmi	r2, r0, #14
	asr	r2, r2, #3
	mov	r0, r10
	bl	memcpy
	ldr	r2, [r4, #4]
	mov	r1, #0
	ldm	r2, {r0, r3}
	str	r3, [fp, #-56]
	bl	xfrm_aalg_get_byname
	mov	r8, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	ldr	r2, [r8]
	ldr	r1, .L37+48
	cmp	r2, #0
	add	r0, r2, #7
	movlt	r2, r0
	ldr	r3, [r1]
	asr	r2, r2, #3
	mov	r0, r6
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	bl	crypto_aead_authsize
	ldr	r2, [fp, #-48]
	cmp	r2, r0
	beq	.L14
	ldr	r3, [r4, #4]
	mov	r0, r6
	ldr	r4, [r3]
	bl	crypto_aead_authsize
	ldr	r3, [r8]
	mov	r2, r0
	cmp	r3, #0
	add	r0, r3, #7
	movlt	r3, r0
	ldr	ip, [fp, #-52]
	mov	r1, r4
	ldr	r0, .L37+52
	asr	r3, r3, #3
	rsb	r8, ip, #0
	bl	pr_info
.L15:
.L3:
	mov	r0, r7
	bl	kfree
.L1:
	ldr	r3, .L37+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	mov	r0, r8
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	ldr	lr, .L37+56
	ldr	ip, .L37+16
	ldr	r2, .L37+20
	b	.L19
.L35:
	mov	ip, r3
	mov	r2, r3
	ldr	lr, .L37+56
	b	.L17
.L34:
	mov	r3, ip
	mov	r2, ip
	ldr	lr, .L37+56
	b	.L19
.L32:
	ldr	lr, .L37+56
	ldr	ip, .L37+16
	ldr	r2, .L37+20
	b	.L17
.L31:
	ldr	r3, .L37+48
	ldr	r8, [r3]
	rsb	r8, r8, #0
	b	.L1
.L14:
	ldr	r2, [r4, #4]
	mov	r0, r6
	ldr	r1, [r2, #8]
	cmp	r1, #0
	add	r2, r1, #7
	movlt	r1, r2
	asr	r1, r1, #3
	bl	crypto_aead_setauthsize
	subs	r8, r0, #0
	bne	.L15
	ldr	r3, [fp, #-56]
	adds	r2, r3, #7
	addmi	r3, r3, #14
	movpl	r3, r2
	add	r10, r10, r3, asr #3
.L13:
	ldr	r2, [r4]
	ldr	r2, [r2, #4]
	adds	r0, r2, #7
	addmi	r0, r2, #14
	asr	r0, r0, #3
	bl	cpu_to_be32
	ldr	ip, [r4]
	str	r0, [r9]
	ldr	r1, [ip, #4]
	mov	r0, r10
	adds	r2, r1, #7
	addmi	r2, r1, #14
	asr	r2, r2, #3
	ldr	r1, [ip, #8]
	bl	memcpy
	mov	r2, r5
	mov	r1, r7
	mov	r0, r6
	bl	crypto_aead_setkey
	mov	r8, r0
	b	.L15
.L36:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	CRYPTO_MAX_ALG_NAME
	.word	.LC7
	.word	XFRM_STATE_ESN
	.word	ENAMETOOLONG
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.word	.LC5
	.word	.LC4
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	CRYPTO_AUTHENC_KEYA_PARAM
	.word	EINVAL
	.word	.LC6
	.word	.LC3
	.size	esp_init_authenc, .-esp_init_authenc
	.comm	XFRM_STATE_ESN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENAMETOOLONG,4,4
	.comm	EINVAL,4,4
	.comm	CRYPTO_MAX_ALG_NAME,4,4
	.comm	CRYPTO_AUTHENC_KEYA_PARAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
