	.file	"extr_encrypted.c_encrypted_update.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	encrypted_update, @function
encrypted_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r13, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	rbx, QWORD PTR [rax]
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	call	key_is_negative@PLT
	test	rax, rax
	jne	.L12
	lea	rax, -1[r13]
	cmp	rax, 32766
	ja	.L4
	cmp	QWORD PTR 8[r12], 0
	je	.L4
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	rdi, 1[r13]
	call	kmalloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L13
	mov	BYTE PTR [rax+r13], 0
	mov	rsi, QWORD PTR 8[r12]
	mov	rdx, r13
	mov	rdi, rax
	call	memcpy@PLT
	lea	rdx, 8[rsp]
	xor	r8d, r8d
	xor	ecx, ecx
	lea	rsi, 16[rsp]
	mov	rdi, r14
	call	datablob_parse@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L7
	mov	esi, DWORD PTR 36[rbx]
	mov	rdi, QWORD PTR 8[rsp]
	call	valid_master_desc@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L7
	mov	ecx, DWORD PTR 28[rbx]
	mov	esi, DWORD PTR 32[rbx]
	mov	rdi, rbp
	mov	rdx, QWORD PTR 8[rsp]
	call	encrypted_key_alloc@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L14
	mov	ecx, DWORD PTR 28[rbx]
	mov	esi, DWORD PTR 32[rbx]
	mov	rdi, r13
	mov	rdx, QWORD PTR 8[rsp]
	call	__ekey_init@PLT
	mov	rdx, QWORD PTR ivsize[rip]
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, QWORD PTR 0[r13]
	call	memcpy@PLT
	mov	rdx, QWORD PTR 16[rbx]
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR 8[r13]
	call	memcpy@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	rcu_assign_keypointer@PLT
	mov	esi, DWORD PTR encrypted_rcu_free[rip]
	lea	rdi, 24[rbx]
	call	call_rcu@PLT
.L7:
	mov	rdi, r14
	call	kzfree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L12:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOKEY[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, r13
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L7
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	encrypted_update, .-encrypted_update
	.comm	ivsize,8,8
	.comm	encrypted_rcu_free,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENOKEY,4,4
	.comm	EINVAL,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_encrypted.c_encrypted_update.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	encrypted_update, %function
encrypted_update:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r3, #0
	mov	r4, r1
	ldr	r2, [r0]
	ldr	r1, .L16
	sub	sp, sp, #28
	ldr	r1, [r1]
	str	r1, [sp, #20]
	mov	r1,#0
	ldr	r7, [r2]
	mov	r6, r0
	ldr	r5, [r4]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	bl	key_is_negative
	subs	r8, r0, #0
	bne	.L12
	ldr	r2, .L16+4
	sub	r1, r5, #1
	cmp	r1, r2
	bhi	.L4
	ldr	r2, [r4, #4]
	cmp	r2, #0
	beq	.L4
	ldr	r3, .L16+8
	add	r0, r5, #1
	ldr	r1, [r3]
	bl	kmalloc
	subs	r9, r0, #0
	beq	.L13
	strb	r8, [r9, r5]
	ldr	r1, [r4, #4]
	mov	r2, r5
	bl	memcpy
	mov	r3, r8
	mov	r0, r9
	str	r8, [sp]
	add	r2, sp, #12
	add	r1, sp, #16
	bl	datablob_parse
	subs	r4, r0, #0
	blt	.L7
	ldr	r1, [r7, #24]
	ldr	r0, [sp, #12]
	bl	valid_master_desc
	subs	r4, r0, #0
	blt	.L7
	ldr	r3, [r7, #16]
	ldr	r2, [sp, #12]
	ldr	r1, [r7, #20]
	mov	r0, r6
	bl	encrypted_key_alloc
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L14
	ldr	r3, [r7, #16]
	ldr	r2, [sp, #12]
	ldr	r1, [r7, #20]
	mov	r0, r5
	bl	__ekey_init
	ldr	r3, .L16+12
	ldr	r1, [r7]
	ldr	r2, [r3]
	ldr	r0, [r5]
	bl	memcpy
	ldmib	r7, {r1, r2}
	ldr	r0, [r5, #4]
	bl	memcpy
	mov	r1, r5
	mov	r0, r6
	bl	rcu_assign_keypointer
	ldr	r3, .L16+16
	add	r0, r7, #12
	ldr	r1, [r3]
	bl	call_rcu
.L7:
	mov	r0, r9
	bl	kzfree
	b	.L1
.L4:
	ldr	r3, .L16+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	ldr	r3, .L16+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L13:
	ldr	r3, .L16+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L14:
	mov	r0, r5
	bl	PTR_ERR
	mov	r4, r0
	b	.L7
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	32766
	.word	GFP_KERNEL
	.word	ivsize
	.word	encrypted_rcu_free
	.word	EINVAL
	.word	ENOKEY
	.word	ENOMEM
	.size	encrypted_update, .-encrypted_update
	.comm	ivsize,4,4
	.comm	encrypted_rcu_free,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENOKEY,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
