	.file	"extr_dsl_crypt.c_dsl_crypto_recv_raw_key_sync.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"prompt"
	.text
	.p2align 4
	.globl	dsl_crypto_recv_raw_key_sync
	.type	dsl_crypto_recv_raw_key_sync, @function
dsl_crypto_recv_raw_key_sync:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	esi, DWORD PTR DSL_CRYPTO_KEY_CRYPTO_SUITE[rip]
	mov	r13, QWORD PTR 16[rdi]
	mov	rdi, r12
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdx]
	lea	rbx, 40[rsp]
	mov	r15, QWORD PTR [rax]
	mov	eax, DWORD PTR ZIO_CRYPT_KEY_CURRENT_VERSION[rip]
	mov	DWORD PTR 48[rsp], 1
	mov	DWORD PTR 52[rsp], eax
	call	fnvlist_lookup_uint64@PLT
	mov	esi, DWORD PTR DSL_CRYPTO_KEY_GUID[rip]
	mov	rdi, r12
	mov	DWORD PTR 8[rsp], eax
	call	fnvlist_lookup_uint64@PLT
	mov	edi, DWORD PTR ZFS_PROP_KEYFORMAT[rip]
	mov	DWORD PTR 12[rsp], eax
	call	zfs_prop_to_name@PLT
	mov	rdi, r12
	mov	esi, eax
	call	fnvlist_lookup_uint64@PLT
	mov	edi, DWORD PTR ZFS_PROP_PBKDF2_ITERS[rip]
	mov	DWORD PTR 16[rsp], eax
	call	zfs_prop_to_name@PLT
	mov	rdi, r12
	mov	esi, eax
	call	fnvlist_lookup_uint64@PLT
	mov	edi, DWORD PTR ZFS_PROP_PBKDF2_SALT[rip]
	mov	DWORD PTR 20[rsp], eax
	call	zfs_prop_to_name@PLT
	mov	rdi, r12
	mov	esi, eax
	call	fnvlist_lookup_uint64@PLT
	lea	rdx, 56[rsp]
	mov	rcx, rbx
	mov	rdi, r12
	mov	esi, DWORD PTR DSL_CRYPTO_KEY_MASTER_KEY[rip]
	mov	DWORD PTR 24[rsp], eax
	call	nvlist_lookup_uint8_array@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	lea	rdx, 64[rsp]
	mov	rcx, rbx
	mov	rdi, r12
	mov	esi, DWORD PTR DSL_CRYPTO_KEY_HMAC_KEY[rip]
	call	nvlist_lookup_uint8_array@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	lea	rdx, 72[rsp]
	mov	rcx, rbx
	mov	rdi, r12
	mov	esi, DWORD PTR DSL_CRYPTO_KEY_IV[rip]
	call	nvlist_lookup_uint8_array@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	lea	rdx, 80[rsp]
	mov	rcx, rbx
	mov	rdi, r12
	mov	esi, DWORD PTR DSL_CRYPTO_KEY_MAC[rip]
	call	nvlist_lookup_uint8_array@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	cmp	QWORD PTR 0[r13], 0
	jne	.L2
	mov	edi, DWORD PTR 12[r13]
	mov	rsi, r14
	call	dmu_buf_will_dirty@PLT
	mov	rsi, r14
	mov	rdi, r13
	call	dsl_dir_zapify@PLT
	mov	edx, DWORD PTR DMU_OT_NONE[rip]
	mov	r8, r14
	xor	ecx, ecx
	mov	esi, DWORD PTR DMU_OTN_ZAP_METADATA[rip]
	mov	rdi, r15
	call	zap_create@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 168
	mov	edx, DWORD PTR DSL_CRYPTO_KEY_REFCOUNT[rip]
	mov	r8d, 1
	mov	rsi, rax
	mov	QWORD PTR 0[r13], rax
	mov	rax, QWORD PTR [r14]
	mov	ecx, 4
	push	r14
	.cfi_def_cfa_offset 176
	mov	rdi, QWORD PTR [rax]
	lea	r9, 64[rsp]
	call	zap_update@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	mov	rax, QWORD PTR [r14]
	mov	rsi, QWORD PTR 0[r13]
	mov	QWORD PTR [rsp], r14
	mov	edx, DWORD PTR DSL_CRYPTO_KEY_VERSION[rip]
	lea	r9, 68[rsp]
	mov	r8d, 1
	mov	ecx, 4
	mov	rdi, QWORD PTR [rax]
	call	zap_update@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	rdx, QWORD PTR B_TRUE[rip]
	mov	rcx, r14
	mov	rsi, QWORD PTR SPA_FEATURE_ENCRYPTION[rip]
	call	dsl_dataset_activate_feature@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR 8[r13]
	mov	r9, r13
	mov	rdx, QWORD PTR SPA_FEATURE_ENCRYPTION[rip]
	mov	rcx, QWORD PTR B_TRUE[rip]
	mov	r8d, 1
	mov	rdi, r15
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	edx, DWORD PTR DD_FIELD_CRYPTO_KEY_OBJ[rip]
	mov	ecx, 4
	mov	QWORD PTR [rsp], r14
	call	zap_add@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	mov	edx, DWORD PTR ZPROP_SRC_LOCAL[rip]
	mov	edi, DWORD PTR ZFS_PROP_KEYLOCATION[rip]
	mov	DWORD PTR 44[rsp], edx
	call	zfs_prop_to_name@PLT
	mov	edx, DWORD PTR 44[rsp]
	mov	rdi, rbp
	mov	QWORD PTR [rsp], r14
	mov	ecx, 1
	mov	esi, eax
	lea	r9, .LC0[rip]
	mov	r8d, 7
	call	dsl_prop_set_sync_impl@PLT
	mov	ecx, DWORD PTR 8[r13]
	mov	DWORD PTR 60[rsp], ecx
	pop	rax
	.cfi_def_cfa_offset 168
	pop	rdx
	.cfi_def_cfa_offset 160
.L3:
	sub	rsp, 8
	.cfi_def_cfa_offset 168
	mov	rsi, QWORD PTR 0[r13]
	mov	rdi, r15
	push	r14
	.cfi_def_cfa_offset 176
	mov	eax, DWORD PTR 36[rsp]
	push	rax
	.cfi_def_cfa_offset 184
	mov	eax, DWORD PTR 48[rsp]
	push	rax
	.cfi_def_cfa_offset 192
	mov	eax, DWORD PTR 48[rsp]
	push	rax
	.cfi_def_cfa_offset 200
	push	QWORD PTR 104[rsp]
	.cfi_def_cfa_offset 208
	push	QWORD PTR 104[rsp]
	.cfi_def_cfa_offset 216
	push	QWORD PTR 136[rsp]
	.cfi_def_cfa_offset 224
	mov	r9, QWORD PTR 136[rsp]
	mov	r8d, DWORD PTR 76[rsp]
	mov	edx, DWORD PTR 72[rsp]
	call	dsl_crypto_key_sync_impl@PLT
	add	rsp, 64
	.cfi_def_cfa_offset 160
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 104
	.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
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rsi, 44[rsp]
	mov	rdi, r13
	call	dsl_dir_get_encryption_root_ddobj@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	mov	ecx, DWORD PTR 44[rsp]
	jmp	.L3
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dsl_crypto_recv_raw_key_sync, .-dsl_crypto_recv_raw_key_sync
	.comm	ZPROP_SRC_LOCAL,4,4
	.comm	ZIO_CRYPT_KEY_CURRENT_VERSION,4,4
	.comm	ZFS_PROP_PBKDF2_SALT,4,4
	.comm	ZFS_PROP_PBKDF2_ITERS,4,4
	.comm	ZFS_PROP_KEYLOCATION,4,4
	.comm	ZFS_PROP_KEYFORMAT,4,4
	.comm	SPA_FEATURE_ENCRYPTION,8,8
	.comm	DSL_CRYPTO_KEY_VERSION,4,4
	.comm	DSL_CRYPTO_KEY_REFCOUNT,4,4
	.comm	DSL_CRYPTO_KEY_MASTER_KEY,4,4
	.comm	DSL_CRYPTO_KEY_MAC,4,4
	.comm	DSL_CRYPTO_KEY_IV,4,4
	.comm	DSL_CRYPTO_KEY_HMAC_KEY,4,4
	.comm	DSL_CRYPTO_KEY_GUID,4,4
	.comm	DSL_CRYPTO_KEY_CRYPTO_SUITE,4,4
	.comm	DMU_OT_NONE,4,4
	.comm	DMU_OTN_ZAP_METADATA,4,4
	.comm	DD_FIELD_CRYPTO_KEY_OBJ,4,4
	.comm	B_TRUE,8,8
	.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_dsl_crypto_recv_raw_key_sync.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"prompt\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dsl_crypto_recv_raw_key_sync
	.syntax unified
	.arm
	.fpu softvfp
	.type	dsl_crypto_recv_raw_key_sync, %function
dsl_crypto_recv_raw_key_sync:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r1
	mov	r6, r0
	mov	r8, #1
	ldr	r3, .L8
	ldr	r1, .L8+4
	ldr	ip, .L8+8
	ldr	r3, [r3]
	mov	r4, r2
	ldr	r2, [r2]
	sub	sp, sp, #100
	mov	r0, r10
	ldr	r1, [r1]
	ldr	ip, [ip]
	str	ip, [sp, #92]
	mov	ip,#0
	ldr	r9, [r2]
	ldr	r5, [r6, #8]
	str	r3, [sp, #88]
	str	r8, [sp, #68]
	bl	fnvlist_lookup_uint64
	ldr	r3, .L8+12
	mov	r7, r0
	ldr	r1, [r3]
	mov	r0, r10
	bl	fnvlist_lookup_uint64
	ldr	r3, .L8+16
	mov	fp, r0
	ldr	r0, [r3]
	bl	zfs_prop_to_name
	mov	r1, r0
	mov	r0, r10
	bl	fnvlist_lookup_uint64
	ldr	r3, .L8+20
	str	r0, [sp, #44]
	ldr	r0, [r3]
	bl	zfs_prop_to_name
	mov	r1, r0
	mov	r0, r10
	bl	fnvlist_lookup_uint64
	ldr	r3, .L8+24
	str	r0, [sp, #48]
	ldr	r0, [r3]
	bl	zfs_prop_to_name
	mov	r1, r0
	mov	r0, r10
	bl	fnvlist_lookup_uint64
	mov	ip, r0
	ldr	r3, .L8+28
	add	r2, sp, #72
	ldr	r1, [r3]
	mov	r0, r10
	add	r3, sp, #60
	str	ip, [sp, #52]
	bl	nvlist_lookup_uint8_array
	bl	VERIFY0
	ldr	r2, .L8+32
	add	r3, sp, #60
	ldr	r1, [r2]
	mov	r0, r10
	add	r2, sp, #76
	bl	nvlist_lookup_uint8_array
	bl	VERIFY0
	ldr	r2, .L8+36
	add	r3, sp, #60
	ldr	r1, [r2]
	mov	r0, r10
	add	r2, sp, #80
	bl	nvlist_lookup_uint8_array
	bl	VERIFY0
	ldr	r2, .L8+40
	mov	r0, r10
	ldr	r1, [r2]
	add	r3, sp, #60
	add	r2, sp, #84
	bl	nvlist_lookup_uint8_array
	bl	VERIFY0
	ldr	r10, [r5]
	cmp	r10, #0
	bne	.L2
	mov	r1, r4
	ldr	r0, [r5, #8]
	bl	dmu_buf_will_dirty
	mov	r1, r4
	mov	r0, r5
	bl	dsl_dir_zapify
	ldr	r2, .L8+44
	ldr	r1, .L8+48
	str	r4, [sp]
	mov	r3, r10
	ldr	r2, [r2]
	ldr	r1, [r1]
	mov	r0, r9
	bl	zap_create
	mov	r1, r0
	ldr	r3, [r4]
	ldr	r2, .L8+52
	ldr	r0, [r3]
	str	r1, [r5]
	add	r3, sp, #68
	str	r4, [sp, #8]
	str	r8, [sp]
	ldr	r2, [r2]
	str	r3, [sp, #4]
	mov	r3, #4
	bl	zap_update
	bl	VERIFY0
	ldr	r3, [r4]
	ldr	r2, .L8+56
	ldr	r0, [r3]
	add	r3, sp, #88
	ldr	r1, [r5]
	ldr	r2, [r2]
	str	r3, [sp, #4]
	str	r4, [sp, #8]
	mov	r3, #4
	str	r8, [sp]
	bl	zap_update
	bl	VERIFY0
	ldr	r10, .L8+60
	ldr	r3, .L8+64
	ldr	r2, [r10]
	ldr	r1, [r3]
	ldr	r0, [r6, #4]
	mov	r3, r4
	bl	dsl_dataset_activate_feature
	ldr	r3, .L8+64
	ldr	ip, [r10]
	ldr	r0, [r3]
	ldr	r2, [r6]
	ldr	r3, .L8+68
	ldr	r1, [r5, #4]
	str	ip, [r2, r0, lsl #2]
	ldr	r2, [r3]
	mov	r0, r9
	mov	r3, #4
	str	r4, [sp, #8]
	str	r5, [sp, #4]
	str	r8, [sp]
	bl	zap_add
	bl	VERIFY0
	ldr	r3, .L8+72
	ldr	r0, [r3]
	bl	zfs_prop_to_name
	mov	lr, #7
	ldr	ip, .L8+76
	ldr	r2, .L8+80
	str	r4, [sp, #8]
	str	lr, [sp]
	mov	r1, r0
	mov	r3, r8
	ldr	r2, [r2]
	mov	r0, r6
	str	ip, [sp, #4]
	bl	dsl_prop_set_sync_impl
	ldr	r3, [r5, #4]
	str	r3, [sp, #64]
.L3:
	ldr	r2, [sp, #48]
	ldr	r1, [r5]
	str	r2, [sp, #28]
	ldr	r2, [sp, #52]
	ldr	lr, [sp, #76]
	ldr	r5, [sp, #84]
	ldr	ip, [sp, #80]
	str	r4, [sp, #32]
	str	r2, [sp, #24]
	ldr	r4, [sp, #72]
	ldr	r2, [sp, #44]
	mov	r0, r9
	str	r2, [sp, #20]
	str	fp, [sp]
	mov	r2, r7
	str	lr, [sp, #16]
	str	r4, [sp, #12]
	str	r5, [sp, #8]
	str	ip, [sp, #4]
	bl	dsl_crypto_key_sync_impl
	ldr	r3, .L8+8
	ldr	r2, [r3]
	ldr	r3, [sp, #92]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #100
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	add	r1, sp, #64
	mov	r0, r5
	bl	dsl_dir_get_encryption_root_ddobj
	bl	VERIFY0
	ldr	r3, [sp, #64]
	b	.L3
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	ZIO_CRYPT_KEY_CURRENT_VERSION
	.word	DSL_CRYPTO_KEY_CRYPTO_SUITE
	.word	.LC1
	.word	DSL_CRYPTO_KEY_GUID
	.word	ZFS_PROP_KEYFORMAT
	.word	ZFS_PROP_PBKDF2_ITERS
	.word	ZFS_PROP_PBKDF2_SALT
	.word	DSL_CRYPTO_KEY_MASTER_KEY
	.word	DSL_CRYPTO_KEY_HMAC_KEY
	.word	DSL_CRYPTO_KEY_IV
	.word	DSL_CRYPTO_KEY_MAC
	.word	DMU_OT_NONE
	.word	DMU_OTN_ZAP_METADATA
	.word	DSL_CRYPTO_KEY_REFCOUNT
	.word	DSL_CRYPTO_KEY_VERSION
	.word	B_TRUE
	.word	SPA_FEATURE_ENCRYPTION
	.word	DD_FIELD_CRYPTO_KEY_OBJ
	.word	ZFS_PROP_KEYLOCATION
	.word	.LC0
	.word	ZPROP_SRC_LOCAL
	.size	dsl_crypto_recv_raw_key_sync, .-dsl_crypto_recv_raw_key_sync
	.comm	ZPROP_SRC_LOCAL,4,4
	.comm	ZIO_CRYPT_KEY_CURRENT_VERSION,4,4
	.comm	ZFS_PROP_PBKDF2_SALT,4,4
	.comm	ZFS_PROP_PBKDF2_ITERS,4,4
	.comm	ZFS_PROP_KEYLOCATION,4,4
	.comm	ZFS_PROP_KEYFORMAT,4,4
	.comm	SPA_FEATURE_ENCRYPTION,4,4
	.comm	DSL_CRYPTO_KEY_VERSION,4,4
	.comm	DSL_CRYPTO_KEY_REFCOUNT,4,4
	.comm	DSL_CRYPTO_KEY_MASTER_KEY,4,4
	.comm	DSL_CRYPTO_KEY_MAC,4,4
	.comm	DSL_CRYPTO_KEY_IV,4,4
	.comm	DSL_CRYPTO_KEY_HMAC_KEY,4,4
	.comm	DSL_CRYPTO_KEY_GUID,4,4
	.comm	DSL_CRYPTO_KEY_CRYPTO_SUITE,4,4
	.comm	DMU_OT_NONE,4,4
	.comm	DMU_OTN_ZAP_METADATA,4,4
	.comm	DD_FIELD_CRYPTO_KEY_OBJ,4,4
	.comm	B_TRUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
