	.file	"extr_crypto_user_base.c_crypto_add_alg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	crypto_add_alg, @function
crypto_add_alg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	nlmsg_data@PLT
	mov	esi, DWORD PTR CAP_NET_ADMIN[rip]
	mov	rdi, rbp
	mov	rbx, rax
	mov	rax, QWORD PTR CRYPTOCFGA_PRIORITY_VAL[rip]
	mov	r12, QWORD PTR [r12+rax*8]
	call	netlink_capable@PLT
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR EPERM[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	call	null_terminated@PLT
	test	eax, eax
	je	.L20
	mov	rdi, QWORD PTR 8[rbx]
	call	null_terminated@PLT
	test	eax, eax
	je	.L20
	mov	rax, QWORD PTR 8[rbx]
	cmp	BYTE PTR [rax], 0
	jne	.L11
	test	r12, r12
	je	.L12
.L20:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, 1
.L6:
	mov	rdi, rbx
	call	crypto_alg_match@PLT
	test	rax, rax
	jne	.L22
	mov	rdi, QWORD PTR 8[rbx]
	cmp	BYTE PTR [rdi], 0
	jne	.L8
	mov	rdi, QWORD PTR [rbx]
.L8:
	mov	edx, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR 20[rbx]
	call	crypto_alg_mod_lookup@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L23
	lea	rdi, crypto_alg_sem[rip]
	call	down_write@PLT
	test	r12, r12
	je	.L10
	mov	rdi, r12
	call	nla_get_u32@PLT
	mov	DWORD PTR 0[rbp], eax
.L10:
	lea	rdi, crypto_alg_sem[rip]
	call	up_write@PLT
	mov	rdi, rbp
	call	crypto_mod_put@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rax
	call	crypto_mod_put@PLT
	mov	eax, DWORD PTR EEXIST[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
.L12:
	.cfi_restore_state
	xor	esi, esi
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	crypto_add_alg, .-crypto_add_alg
	.comm	crypto_alg_sem,4,4
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.comm	EEXIST,4,4
	.comm	CRYPTOCFGA_PRIORITY_VAL,8,8
	.comm	CAP_NET_ADMIN,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_crypto_user_base.c_crypto_add_alg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	crypto_add_alg, %function
crypto_add_alg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	mov	r0, r1
	mov	r5, r2
	bl	nlmsg_data
	ldr	r3, .L24
	ldr	r2, .L24+4
	ldr	r3, [r3]
	mov	r4, r0
	ldr	r1, [r2]
	mov	r0, r6
	ldr	r5, [r5, r3, lsl #2]
	bl	netlink_capable
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L24+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r0, [r4]
	bl	null_terminated
	cmp	r0, #0
	beq	.L20
	ldr	r0, [r4, #4]
	bl	null_terminated
	cmp	r0, #0
	beq	.L20
	ldr	r3, [r4, #4]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	cmp	r5, #0
	beq	.L12
.L20:
	ldr	r3, .L24+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L11:
	mov	r1, #1
.L6:
	mov	r0, r4
	bl	crypto_alg_match
	cmp	r0, #0
	bne	.L22
	ldr	r0, [r4, #4]
	ldr	r2, [r4, #8]
	ldrb	r3, [r0]	@ zero_extendqisi2
	ldr	r1, [r4, #12]
	cmp	r3, #0
	ldreq	r0, [r4]
	bl	crypto_alg_mod_lookup
	mov	r6, r0
	bl	IS_ERR
	subs	r4, r0, #0
	bne	.L23
	ldr	r0, .L24+16
	bl	down_write
	cmp	r5, #0
	beq	.L10
	mov	r0, r5
	bl	nla_get_u32
	str	r0, [r6]
.L10:
	ldr	r0, .L24+16
	bl	up_write
	mov	r0, r6
	bl	crypto_mod_put
	b	.L1
.L22:
	bl	crypto_mod_put
	ldr	r3, .L24+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L23:
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	PTR_ERR
.L12:
	mov	r1, r5
	b	.L6
.L25:
	.align	2
.L24:
	.word	CRYPTOCFGA_PRIORITY_VAL
	.word	CAP_NET_ADMIN
	.word	EPERM
	.word	EINVAL
	.word	crypto_alg_sem
	.word	EEXIST
	.size	crypto_add_alg, .-crypto_add_alg
	.comm	crypto_alg_sem,4,4
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.comm	EEXIST,4,4
	.comm	CRYPTOCFGA_PRIORITY_VAL,4,4
	.comm	CAP_NET_ADMIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
