	.file	"extr_ccm.c_crypto_ccm_create_common.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cbcmac("
.LC1:
	.string	"ctr("
.LC2:
	.string	"ccm(%s"
.LC3:
	.string	"ccm_base(%s,%s)"
	.text
	.p2align 4
	.type	crypto_ccm_create_common, @function
crypto_ccm_create_common:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	call	crypto_get_attr_type@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	mov	rdi, rbp
	test	rax, rax
	jne	.L12
	mov	eax, DWORD PTR 0[rbp]
	xor	eax, DWORD PTR CRYPTO_ALG_TYPE_AEAD[rip]
	test	DWORD PTR 4[rbp], eax
	je	.L3
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L3:
	.cfi_restore_state
	mov	edx, DWORD PTR CRYPTO_ALG_TYPE_HASH[rip]
	mov	ecx, DWORD PTR CRYPTO_ALG_TYPE_AHASH_MASK[rip]
	lea	rsi, crypto_ahash_type[rip]
	mov	rdi, r12
	or	ecx, DWORD PTR CRYPTO_ALG_ASYNC[rip]
	call	crypto_find_alg@PLT
	mov	rdi, rax
	mov	r15, rax
	call	IS_ERR@PLT
	mov	rdi, r15
	test	rax, rax
	jne	.L12
	call	__crypto_hash_alg_common@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	edx, 7
	lea	rsi, .LC0[rip]
	mov	rdi, QWORD PTR 8[rax]
	mov	rbx, rax
	neg	r12d
	call	strncmp@PLT
	test	rax, rax
	jne	.L6
	cmp	DWORD PTR [rbx], 16
	jne	.L6
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 76
	call	kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L6
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	aead_instance_ctx@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	r12, rax
	mov	rdi, r9
	call	aead_crypto_instance@PLT
	mov	rdi, r12
	mov	rsi, rbx
	mov	QWORD PTR 16[rsp], r12
	mov	edx, eax
	call	crypto_init_ahash_spawn@PLT
	mov	r9, QWORD PTR 8[rsp]
	test	eax, eax
	mov	r12d, eax
	jne	.L8
	mov	rdi, r9
	mov	QWORD PTR 24[rsp], r9
	call	aead_crypto_instance@PLT
	mov	r12, QWORD PTR 16[rsp]
	mov	esi, eax
	lea	r11, 4[r12]
	mov	rdi, r11
	mov	QWORD PTR 8[rsp], r11
	call	crypto_set_skcipher_spawn@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR 0[rbp]
	call	crypto_requires_sync@PLT
	mov	r11, QWORD PTR 8[rsp]
	xor	edx, edx
	mov	rsi, r14
	mov	ecx, eax
	mov	rdi, r11
	call	crypto_grab_skcipher@PLT
	mov	r9, QWORD PTR 24[rsp]
	test	eax, eax
	mov	r12d, eax
	jne	.L9
	mov	r11, QWORD PTR 8[rsp]
	mov	rdi, r11
	call	crypto_spawn_skcipher_alg@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	edx, 4
	lea	rsi, .LC1[rip]
	mov	rdi, QWORD PTR [rax]
	mov	rbp, rax
	neg	r12d
	call	strncmp@PLT
	mov	r11, QWORD PTR 8[rsp]
	mov	r9, QWORD PTR 24[rsp]
	test	rax, rax
	jne	.L10
	mov	rdi, rbp
	call	crypto_skcipher_alg_ivsize@PLT
	mov	r11, QWORD PTR 8[rsp]
	mov	r9, QWORD PTR 24[rsp]
	cmp	eax, 16
	jne	.L10
	cmp	DWORD PTR 8[rbp], 1
	je	.L14
.L10:
	mov	rdi, r11
	mov	QWORD PTR 8[rsp], r9
	call	crypto_drop_skcipher@PLT
	mov	r9, QWORD PTR 8[rsp]
.L9:
	mov	rdi, QWORD PTR 16[rsp]
	mov	QWORD PTR 8[rsp], r9
	call	crypto_drop_ahash@PLT
	mov	r9, QWORD PTR 8[rsp]
.L8:
	mov	rdi, r9
	call	kfree@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r15
	call	crypto_mod_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	add	rsp, 40
	.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
	jmp	PTR_ERR@PLT
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	lea	rsi, 7[rax]
	mov	rax, QWORD PTR 0[rbp]
	lea	rdi, 4[rax]
	call	strcmp@PLT
	mov	r11, QWORD PTR 8[rsp]
	mov	r9, QWORD PTR 24[rsp]
	test	rax, rax
	jne	.L10
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR 60[r9]
	lea	rdx, .LC2[rip]
	mov	QWORD PTR 24[rsp], r11
	mov	rsi, QWORD PTR CRYPTO_MAX_ALG_NAME[rip]
	mov	QWORD PTR 8[rsp], r9
	lea	rcx, 4[rax]
	xor	eax, eax
	mov	r12d, DWORD PTR ENAMETOOLONG[rip]
	call	snprintf@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	r11, QWORD PTR 24[rsp]
	mov	rsi, QWORD PTR CRYPTO_MAX_ALG_NAME[rip]
	neg	r12d
	cmp	rax, rsi
	jge	.L10
	mov	edi, DWORD PTR 56[r9]
	mov	rcx, QWORD PTR 16[rbp]
	xor	eax, eax
	lea	rdx, .LC3[rip]
	mov	r8, QWORD PTR 16[rbx]
	call	snprintf@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	r11, QWORD PTR 24[rsp]
	cmp	rax, QWORD PTR CRYPTO_MAX_ALG_NAME[rip]
	jge	.L10
	mov	eax, DWORD PTR 24[rbp]
	and	eax, DWORD PTR CRYPTO_ALG_ASYNC[rip]
	mov	ecx, 2
	mov	rdi, rbp
	mov	DWORD PTR 36[r9], eax
	mov	eax, DWORD PTR 28[rbp]
	add	eax, DWORD PTR 24[rbx]
	mov	DWORD PTR 44[r9], 1
	cdq
	idiv	ecx
	mov	DWORD PTR 40[r9], eax
	mov	eax, DWORD PTR 28[rbx]
	or	eax, DWORD PTR 32[rbp]
	mov	DWORD PTR 4[r9], 16
	mov	DWORD PTR 48[r9], eax
	call	crypto_skcipher_alg_chunksize@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	rdi, r13
	mov	DWORD PTR 64[r9], eax
	mov	eax, DWORD PTR crypto_ccm_init_tfm[rip]
	mov	rsi, r9
	mov	DWORD PTR 8[r9], 16
	mov	DWORD PTR 32[r9], eax
	mov	eax, DWORD PTR crypto_ccm_exit_tfm[rip]
	mov	DWORD PTR 52[r9], 4
	mov	DWORD PTR 28[r9], eax
	mov	eax, DWORD PTR crypto_ccm_setkey[rip]
	mov	DWORD PTR 24[r9], eax
	mov	eax, DWORD PTR crypto_ccm_setauthsize[rip]
	mov	DWORD PTR 20[r9], eax
	mov	eax, DWORD PTR crypto_ccm_encrypt[rip]
	mov	DWORD PTR 16[r9], eax
	mov	eax, DWORD PTR crypto_ccm_decrypt[rip]
	mov	DWORD PTR 12[r9], eax
	mov	eax, DWORD PTR crypto_ccm_free[rip]
	mov	DWORD PTR [r9], eax
	call	aead_register_instance@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	r11, QWORD PTR 24[rsp]
	test	eax, eax
	mov	r12d, eax
	je	.L6
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	crypto_ccm_create_common, .-crypto_ccm_create_common
	.comm	crypto_ccm_setkey,4,4
	.comm	crypto_ccm_setauthsize,4,4
	.comm	crypto_ccm_init_tfm,4,4
	.comm	crypto_ccm_free,4,4
	.comm	crypto_ccm_exit_tfm,4,4
	.comm	crypto_ccm_encrypt,4,4
	.comm	crypto_ccm_decrypt,4,4
	.comm	crypto_ahash_type,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENAMETOOLONG,4,4
	.comm	EINVAL,4,4
	.comm	CRYPTO_MAX_ALG_NAME,8,8
	.comm	CRYPTO_ALG_TYPE_HASH,4,4
	.comm	CRYPTO_ALG_TYPE_AHASH_MASK,4,4
	.comm	CRYPTO_ALG_TYPE_AEAD,4,4
	.comm	CRYPTO_ALG_ASYNC,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_ccm.c_crypto_ccm_create_common.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cbcmac(\000"
	.align	2
.LC1:
	.ascii	"ctr(\000"
	.align	2
.LC2:
	.ascii	"ccm(%s\000"
	.align	2
.LC3:
	.ascii	"ccm_base(%s,%s)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	crypto_ccm_create_common, %function
crypto_ccm_create_common:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	sub	sp, sp, #28
	mov	r0, r1
	mov	r5, r2
	mov	r7, r3
	bl	crypto_get_attr_type
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	movne	r0, r4
	bne	.L12
	ldr	r2, .L15
	ldr	r3, [r4]
	ldr	r1, [r2]
	ldr	r2, [r4, #4]
	eor	r3, r3, r1
	tst	r3, r2
	beq	.L3
	ldr	r3, .L15+4
	ldr	r7, [r3]
	rsb	r7, r7, #0
	mov	r0, r7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r3, .L15+8
	ldr	r10, .L15+12
	ldr	r1, [r3]
	ldr	r2, .L15+16
	ldr	r3, [r10]
	ldr	r2, [r2]
	orr	r3, r1, r3
	mov	r0, r7
	ldr	r1, .L15+20
	bl	crypto_find_alg
	mov	r8, r0
	bl	IS_ERR
	cmp	r0, #0
	mov	r0, r8
	bne	.L12
	bl	__crypto_hash_alg_common
	mov	r2, #7
	mov	r9, r0
	ldr	r1, .L15+24
	ldr	r0, [r0, #4]
	bl	strncmp
	ldr	fp, .L15+4
	cmp	r0, #0
	ldr	r7, [fp]
	rsb	r7, r7, #0
	bne	.L6
	ldr	r3, [r9]
	cmp	r3, #16
	bne	.L6
	ldr	r3, .L15+28
	mov	r0, #76
	ldr	r1, [r3]
	bl	kzalloc
	subs	r3, r0, #0
	str	r3, [sp, #8]
	beq	.L14
	bl	aead_instance_ctx
	mov	r3, r0
	ldr	r0, [sp, #8]
	mov	r7, r3
	bl	aead_crypto_instance
	mov	r1, r9
	mov	r2, r0
	mov	r0, r7
	str	r7, [sp, #12]
	bl	crypto_init_ahash_spawn
	subs	r7, r0, #0
	bne	.L8
	ldr	r3, [sp, #12]
	ldr	r0, [sp, #8]
	add	r3, r3, #4
	str	r3, [sp, #16]
	bl	aead_crypto_instance
	mov	r1, r0
	ldr	r0, [sp, #16]
	bl	crypto_set_skcipher_spawn
	ldm	r4, {r0, r1}
	bl	crypto_requires_sync
	ldr	r4, [sp, #16]
	mov	r3, r0
	mov	r2, r7
	mov	r1, r5
	mov	r0, r4
	bl	crypto_grab_skcipher
	subs	r7, r0, #0
	bne	.L9
	mov	r0, r4
	bl	crypto_spawn_skcipher_alg
	mov	r2, #4
	mov	r4, r0
	ldr	r1, .L15+32
	ldr	r0, [r0]
	bl	strncmp
	ldr	r7, [fp]
	cmp	r0, #0
	rsb	r7, r7, #0
	bne	.L10
	mov	r0, r4
	bl	crypto_skcipher_alg_ivsize
	cmp	r0, #16
	bne	.L10
	ldr	r5, [r4, #4]
	cmp	r5, #1
	bne	.L10
	ldr	r3, [r4]
	ldr	r1, [r9, #4]
	add	r3, r3, #4
	mov	r0, r3
	add	r1, r1, #7
	str	r3, [sp, #20]
	bl	strcmp
	cmp	r0, #0
	bne	.L10
	ldr	r2, .L15+36
	ldr	fp, .L15+40
	ldr	r0, [sp, #8]
	ldr	r7, [r2]
	ldr	r1, [fp]
	ldr	r3, [sp, #20]
	ldr	r2, .L15+44
	ldr	r0, [r0, #60]
	bl	snprintf
	ldr	r1, [fp]
	rsb	r7, r7, #0
	cmp	r0, r1
	bge	.L10
	ldr	r3, [r9, #8]
	ldr	r0, [sp, #8]
	str	r3, [sp]
	ldr	r3, [r4, #8]
	ldr	r0, [r0, #56]
	ldr	r2, .L15+48
	bl	snprintf
	ldr	r3, [fp]
	cmp	r0, r3
	bge	.L10
	mov	r7, #16
	ldr	r0, [r4, #16]
	ldr	r3, [r9, #12]
	ldr	ip, [r4, #12]
	ldr	r2, [r9, #16]
	ldr	r1, [r10]
	add	r3, r3, r0
	ldr	r0, [r4, #20]
	ldr	r9, [sp, #8]
	add	r3, r3, r3, lsr #31
	and	r1, r1, ip
	orr	r2, r2, r0
	asr	r3, r3, #1
	mov	r0, r4
	str	r1, [r9, #36]
	str	r3, [r9, #40]
	str	r5, [r9, #44]
	str	r2, [r9, #48]
	str	r7, [r9, #4]
	bl	crypto_skcipher_alg_chunksize
	mov	r3, #4
	ldr	ip, .L15+52
	ldr	r2, .L15+56
	ldr	r4, [ip]
	ldr	ip, [r2]
	ldr	r2, .L15+60
	ldr	lr, .L15+64
	ldr	r1, .L15+68
	str	r7, [r9, #8]
	ldr	r7, [r2]
	ldr	r2, .L15+72
	ldr	r5, [lr]
	ldr	lr, [r1]
	ldr	r1, [r2]
	ldr	r2, .L15+76
	str	r0, [r9, #64]
	ldr	r2, [r2]
	str	r7, [r9, #16]
	str	r1, [r9, #12]
	mov	r0, r6
	mov	r1, r9
	str	r5, [r9, #32]
	str	r4, [r9, #28]
	str	lr, [r9, #24]
	str	ip, [r9, #20]
	str	r2, [r9]
	str	r3, [r9, #52]
	bl	aead_register_instance
	subs	r7, r0, #0
	beq	.L6
.L10:
	ldr	r0, [sp, #16]
	bl	crypto_drop_skcipher
.L9:
	ldr	r0, [sp, #12]
	bl	crypto_drop_ahash
.L8:
	ldr	r0, [sp, #8]
	bl	kfree
.L6:
	mov	r0, r8
	bl	crypto_mod_put
	mov	r0, r7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	PTR_ERR
.L14:
	ldr	r3, .L15+80
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L6
.L16:
	.align	2
.L15:
	.word	CRYPTO_ALG_TYPE_AEAD
	.word	EINVAL
	.word	CRYPTO_ALG_TYPE_AHASH_MASK
	.word	CRYPTO_ALG_ASYNC
	.word	CRYPTO_ALG_TYPE_HASH
	.word	crypto_ahash_type
	.word	.LC0
	.word	GFP_KERNEL
	.word	.LC1
	.word	ENAMETOOLONG
	.word	CRYPTO_MAX_ALG_NAME
	.word	.LC2
	.word	.LC3
	.word	crypto_ccm_exit_tfm
	.word	crypto_ccm_setauthsize
	.word	crypto_ccm_encrypt
	.word	crypto_ccm_init_tfm
	.word	crypto_ccm_setkey
	.word	crypto_ccm_decrypt
	.word	crypto_ccm_free
	.word	ENOMEM
	.size	crypto_ccm_create_common, .-crypto_ccm_create_common
	.comm	crypto_ccm_setkey,4,4
	.comm	crypto_ccm_setauthsize,4,4
	.comm	crypto_ccm_init_tfm,4,4
	.comm	crypto_ccm_free,4,4
	.comm	crypto_ccm_exit_tfm,4,4
	.comm	crypto_ccm_encrypt,4,4
	.comm	crypto_ccm_decrypt,4,4
	.comm	crypto_ahash_type,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_ALG_TYPE_HASH,4,4
	.comm	CRYPTO_ALG_TYPE_AHASH_MASK,4,4
	.comm	CRYPTO_ALG_TYPE_AEAD,4,4
	.comm	CRYPTO_ALG_ASYNC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
