	.file	"extr_dsl_crypt.c_spa_do_crypt_abd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	spa_do_crypt_abd
	.type	spa_do_crypt_abd, @function
spa_do_crypt_abd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rdi, rbp
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	esi, DWORD PTR SPA_FEATURE_ENCRYPTION[rip]
	mov	rax, QWORD PTR 160[rsp]
	mov	DWORD PTR 20[rsp], ecx
	mov	QWORD PTR 64[rsp], r8
	mov	r13d, DWORD PTR 184[rsp]
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR 168[rsp]
	mov	QWORD PTR 48[rsp], r9
	mov	rbx, QWORD PTR 192[rsp]
	mov	QWORD PTR 32[rsp], rax
	mov	rax, QWORD PTR 176[rsp]
	mov	QWORD PTR 40[rsp], rax
	mov	rax, QWORD PTR 200[rsp]
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR 208[rsp]
	mov	QWORD PTR 56[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 80[rsp], 0
	call	spa_feature_is_active@PLT
	mov	edi, eax
	call	ASSERT@PLT
	mov	esi, DWORD PTR [r14]
	lea	rcx, 80[rsp]
	mov	rdi, rbp
	mov	edx, DWORD PTR FTAG[rip]
	call	spa_keystore_lookup_key@PLT
	test	eax, eax
	jne	.L42
	mov	r12d, eax
	mov	esi, r13d
	mov	rdi, rbx
	test	r15, r15
	jne	.L43
	call	abd_borrow_buf@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, r13d
	mov	r15, rax
	call	abd_borrow_buf_copy@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 168
	xor	edi, edi
	mov	QWORD PTR 72[rsp], rax
	push	QWORD PTR 64[rsp]
	.cfi_def_cfa_offset 176
	push	rax
	.cfi_def_cfa_offset 184
	push	r15
	.cfi_def_cfa_offset 192
	push	r13
	.cfi_def_cfa_offset 200
	push	QWORD PTR 80[rsp]
	.cfi_def_cfa_offset 208
	mov	r9, QWORD PTR 80[rsp]
	mov	r8, QWORD PTR 72[rsp]
	mov	rcx, QWORD PTR 96[rsp]
	mov	edx, DWORD PTR 68[rsp]
	mov	rsi, QWORD PTR 128[rsp]
	call	zio_do_crypt_data@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 160
	cmp	QWORD PTR zio_injection_enabled[rip], 0
	jne	.L44
.L32:
	test	eax, eax
	jne	.L30
.L39:
	mov	edx, r13d
	mov	rsi, r15
	mov	rdi, rbx
	call	abd_return_buf_copy@PLT
	mov	rsi, QWORD PTR 64[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	mov	edx, r13d
	call	abd_return_buf@PLT
.L18:
	mov	edx, DWORD PTR FTAG[rip]
	mov	rsi, QWORD PTR 80[rsp]
	mov	rdi, rbp
	call	spa_keystore_dsl_key_rele@PLT
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L45
	add	rsp, 104
	.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
.L43:
	.cfi_restore_state
	call	abd_borrow_buf_copy@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, r13d
	mov	r14, rax
	call	abd_borrow_buf@PLT
	mov	QWORD PTR 72[rsp], rax
	mov	eax, DWORD PTR 20[rsp]
	cmp	DWORD PTR DMU_OT_INTENT_LOG[rip], eax
	je	.L46
	cmp	QWORD PTR 64[rsp], 0
	mov	rdi, QWORD PTR 80[rsp]
	je	.L47
.L9:
	mov	r8, QWORD PTR 24[rsp]
	mov	rcx, QWORD PTR 32[rsp]
	mov	edx, r13d
	mov	rsi, r14
	call	zio_crypt_generate_iv_salt_dedup@PLT
	test	eax, eax
	jne	.L29
.L11:
	sub	rsp, 8
	.cfi_def_cfa_offset 168
	mov	rdi, r15
	push	QWORD PTR 64[rsp]
	.cfi_def_cfa_offset 176
	push	QWORD PTR 88[rsp]
	.cfi_def_cfa_offset 184
	push	r14
	.cfi_def_cfa_offset 192
	push	r13
	.cfi_def_cfa_offset 200
	push	QWORD PTR 80[rsp]
	.cfi_def_cfa_offset 208
	mov	r9, QWORD PTR 80[rsp]
	mov	r8, QWORD PTR 72[rsp]
	mov	rcx, QWORD PTR 96[rsp]
	mov	edx, DWORD PTR 68[rsp]
	mov	rsi, QWORD PTR 128[rsp]
	call	zio_do_crypt_data@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 160
.L33:
	test	eax, eax
	jne	.L29
.L40:
	mov	edx, r13d
	mov	rsi, r14
	mov	rdi, rbx
	call	abd_return_buf@PLT
	mov	rsi, QWORD PTR 72[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	mov	edx, r13d
	call	abd_return_buf_copy@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L42:
	mov	edi, DWORD PTR EACCES[rip]
	call	SET_ERROR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L47:
	mov	rsi, QWORD PTR 24[rsp]
	call	zio_crypt_key_get_salt@PLT
	test	eax, eax
	je	.L48
.L29:
	mov	rdi, QWORD PTR 24[rsp]
	mov	esi, DWORD PTR ZIO_DATA_SALT_LEN[rip]
	mov	r12d, eax
	call	bzero@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	esi, DWORD PTR ZIO_DATA_IV_LEN[rip]
	call	bzero@PLT
	mov	esi, DWORD PTR ZIO_DATA_MAC_LEN[rip]
	mov	rdi, QWORD PTR 40[rsp]
	call	bzero@PLT
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L44:
	mov	ecx, DWORD PTR 20[rsp]
	cmp	DWORD PTR DMU_OT_DNODE[rip], ecx
	je	.L32
	test	eax, eax
	je	.L49
.L30:
	mov	r12d, eax
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L46:
	cmp	QWORD PTR 64[rsp], 0
	mov	rdi, QWORD PTR 80[rsp]
	jne	.L9
	sub	rsp, 8
	.cfi_def_cfa_offset 168
	mov	rsi, rdi
	mov	rdi, r15
	push	QWORD PTR 64[rsp]
	.cfi_def_cfa_offset 176
	push	QWORD PTR 88[rsp]
	.cfi_def_cfa_offset 184
	push	r14
	.cfi_def_cfa_offset 192
	push	r13
	.cfi_def_cfa_offset 200
	push	QWORD PTR 80[rsp]
	.cfi_def_cfa_offset 208
	mov	r9, QWORD PTR 80[rsp]
	mov	r8, QWORD PTR 72[rsp]
	mov	rcx, QWORD PTR 96[rsp]
	mov	edx, DWORD PTR 68[rsp]
	call	zio_do_crypt_data@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 160
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L48:
	mov	rdi, QWORD PTR 32[rsp]
	call	zio_crypt_generate_iv@PLT
	test	eax, eax
	je	.L11
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L49:
	mov	ecx, DWORD PTR ECKSUM[rip]
	mov	edx, DWORD PTR 20[rsp]
	mov	rsi, r14
	mov	rdi, rbp
	call	zio_handle_decrypt_injection@PLT
	jmp	.L32
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	spa_do_crypt_abd, .-spa_do_crypt_abd
	.comm	zio_injection_enabled,8,8
	.comm	ZIO_DATA_SALT_LEN,4,4
	.comm	ZIO_DATA_MAC_LEN,4,4
	.comm	ZIO_DATA_IV_LEN,4,4
	.comm	SPA_FEATURE_ENCRYPTION,4,4
	.comm	FTAG,4,4
	.comm	ECKSUM,4,4
	.comm	EACCES,4,4
	.comm	DMU_OT_INTENT_LOG,4,4
	.comm	DMU_OT_DNODE,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_dsl_crypt.c_spa_do_crypt_abd.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	spa_do_crypt_abd
	.syntax unified
	.arm
	.fpu softvfp
	.type	spa_do_crypt_abd, %function
spa_do_crypt_abd:
	@ args = 36, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	mov	r7, r2
	sub	sp, sp, #68
	str	r3, [sp, #36]
	ldr	r3, .L50
	ldr	r2, .L50+4
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	ldr	r3, [sp, #112]
	mov	r10, r0
	str	r3, [sp, #40]
	ldr	r3, [sp, #116]
	mov	r0, r1
	str	r3, [sp, #44]
	ldr	r3, [sp, #120]
	ldr	r1, [r2]
	str	r3, [sp, #48]
	ldr	r3, [sp, #136]
	add	r6, sp, #124
	str	ip, [sp, #56]
	str	r3, [sp, #52]
	ldm	r6, {r6, r8, r9}
	bl	spa_feature_is_active
	bl	ASSERT
	ldr	r3, .L50+8
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r1, [r7]
	add	r3, sp, #56
	bl	spa_keystore_lookup_key
	subs	r4, r0, #0
	bne	.L42
	cmp	r10, #0
	mov	r1, r6
	mov	r0, r8
	bne	.L43
	bl	abd_borrow_buf
	mov	r1, r6
	mov	r10, r0
	mov	r0, r9
	bl	abd_borrow_buf_copy
	ldr	r3, [sp, #52]
	str	r0, [sp, #20]
	str	r3, [sp, #24]
	ldr	r3, [sp, #48]
	mov	fp, r0
	str	r3, [sp, #8]
	ldr	r3, [sp, #44]
	mov	r0, r4
	str	r3, [sp, #4]
	ldr	r3, [sp, #40]
	ldr	r2, [sp, #36]
	str	r3, [sp]
	ldr	r1, [sp, #56]
	ldr	r3, [sp, #108]
	str	r10, [sp, #16]
	str	r6, [sp, #12]
	bl	zio_do_crypt_data
	ldr	r3, .L50+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L44
.L32:
	cmp	r0, #0
	bne	.L30
.L39:
	mov	r1, r10
	mov	r2, r6
	mov	r0, r8
	bl	abd_return_buf_copy
	mov	r2, r6
	mov	r1, fp
	mov	r0, r9
	bl	abd_return_buf
.L18:
	ldr	r3, .L50+8
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r1, [sp, #56]
	bl	spa_keystore_dsl_key_rele
.L1:
	ldr	r3, .L50
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L45
	mov	r0, r4
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L43:
	bl	abd_borrow_buf_copy
	mov	r1, r6
	mov	r7, r0
	mov	r0, r9
	bl	abd_borrow_buf
	ldr	r3, .L50+16
	mov	fp, r0
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	cmp	r2, r3
	beq	.L46
	ldr	r3, [sp, #104]
	ldr	r0, [sp, #56]
	cmp	r3, #0
	beq	.L47
.L9:
	ldr	r3, [sp, #40]
	mov	r2, r6
	str	r3, [sp]
	mov	r1, r7
	ldr	r3, [sp, #44]
	bl	zio_crypt_generate_iv_salt_dedup
	cmp	r0, #0
	bne	.L29
.L11:
	ldr	r3, [sp, #52]
	mov	r0, r10
	str	r3, [sp, #24]
	ldr	r3, [sp, #48]
	ldr	r2, [sp, #36]
	str	r3, [sp, #8]
	ldr	r3, [sp, #44]
	ldr	r1, [sp, #56]
	str	r3, [sp, #4]
	ldr	r3, [sp, #40]
	str	fp, [sp, #20]
	str	r3, [sp]
	str	r7, [sp, #16]
	ldr	r3, [sp, #108]
	str	r6, [sp, #12]
	bl	zio_do_crypt_data
.L33:
	cmp	r0, #0
	moveq	r1, r7
	moveq	r0, r8
	moveq	r2, r6
	bne	.L29
.L40:
	bl	abd_return_buf
	mov	r2, r6
	mov	r1, fp
	mov	r0, r9
	bl	abd_return_buf_copy
	b	.L18
.L42:
	ldr	r3, .L50+20
	ldr	r0, [r3]
	bl	SET_ERROR
	mov	r4, r0
	b	.L1
.L47:
	ldr	r1, [sp, #40]
	bl	zio_crypt_key_get_salt
	cmp	r0, #0
	beq	.L48
.L29:
	ldr	r3, .L50+24
	mov	r4, r0
	ldr	r1, [r3]
	ldr	r0, [sp, #40]
	bl	bzero
	ldr	r3, .L50+28
	ldr	r0, [sp, #44]
	ldr	r1, [r3]
	bl	bzero
	ldr	r3, .L50+32
	ldr	r0, [sp, #48]
	ldr	r1, [r3]
	bl	bzero
	mov	r2, r6
	mov	r1, r7
	mov	r0, r8
	b	.L40
.L44:
	ldr	r3, .L50+36
	ldr	r2, [sp, #36]
	ldr	r3, [r3]
	cmp	r3, r2
	beq	.L32
	cmp	r0, #0
	beq	.L49
.L30:
	mov	r4, r0
	b	.L39
.L46:
	ldr	r3, [sp, #104]
	ldr	r0, [sp, #56]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [sp, #52]
	mov	r1, r0
	str	r3, [sp, #24]
	ldr	r3, [sp, #48]
	mov	r0, r10
	str	r3, [sp, #8]
	ldr	r3, [sp, #44]
	str	fp, [sp, #20]
	str	r3, [sp, #4]
	ldr	r3, [sp, #40]
	str	r7, [sp, #16]
	str	r3, [sp]
	str	r6, [sp, #12]
	ldr	r3, [sp, #108]
	bl	zio_do_crypt_data
	b	.L33
.L48:
	ldr	r0, [sp, #44]
	bl	zio_crypt_generate_iv
	cmp	r0, #0
	beq	.L11
	b	.L29
.L49:
	ldr	r3, .L50+40
	mov	r1, r7
	mov	r0, r5
	ldr	r3, [r3]
	bl	zio_handle_decrypt_injection
	b	.L32
.L45:
	bl	__stack_chk_fail
.L51:
	.align	2
.L50:
	.word	.LC0
	.word	SPA_FEATURE_ENCRYPTION
	.word	FTAG
	.word	zio_injection_enabled
	.word	DMU_OT_INTENT_LOG
	.word	EACCES
	.word	ZIO_DATA_SALT_LEN
	.word	ZIO_DATA_IV_LEN
	.word	ZIO_DATA_MAC_LEN
	.word	DMU_OT_DNODE
	.word	ECKSUM
	.size	spa_do_crypt_abd, .-spa_do_crypt_abd
	.comm	zio_injection_enabled,4,4
	.comm	ZIO_DATA_SALT_LEN,4,4
	.comm	ZIO_DATA_MAC_LEN,4,4
	.comm	ZIO_DATA_IV_LEN,4,4
	.comm	SPA_FEATURE_ENCRYPTION,4,4
	.comm	FTAG,4,4
	.comm	ECKSUM,4,4
	.comm	EACCES,4,4
	.comm	DMU_OT_INTENT_LOG,4,4
	.comm	DMU_OT_DNODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
