	.file	"extr_dsl_dataset.c_dsl_dataset_promote.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dsl_dataset_promote
	.type	dsl_dataset_promote, @function
dsl_dataset_promote:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	pxor	xmm0, xmm0
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR FTAG[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rdx, 8[rsp]
	movaps	XMMWORD PTR 16[rsp], xmm0
	mov	QWORD PTR 32[rsp], 0
	call	dmu_objset_hold@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L13
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rsp]
	call	dmu_objset_ds@PLT
	mov	edi, eax
	call	dsl_dataset_phys@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	r12d, DWORD PTR [rax]
	call	dmu_objset_pool@PLT
	mov	rdx, rsp
	mov	edi, DWORD PTR [rax]
	mov	esi, r12d
	call	zap_count@PLT
	mov	esi, DWORD PTR FTAG[rip]
	mov	rdi, QWORD PTR 8[rsp]
	mov	r12d, eax
	call	dmu_objset_rele@PLT
	test	r12d, r12d
	jne	.L1
	xor	eax, eax
	mov	QWORD PTR 16[rsp], rbp
	call	fnvlist_alloc@PLT
	mov	DWORD PTR 24[rsp], eax
	xor	eax, eax
	call	CRED@PLT
	mov	esi, DWORD PTR dsl_dataset_promote_check[rip]
	mov	rdi, rbp
	lea	rcx, 16[rsp]
	mov	DWORD PTR 28[rsp], eax
	mov	rax, QWORD PTR [rsp]
	mov	r9d, DWORD PTR ZFS_SPACE_CHECK_RESERVED[rip]
	mov	edx, DWORD PTR dsl_dataset_promote_sync[rip]
	lea	r8, 2[rax]
	call	dsl_sync_task@PLT
	mov	edi, DWORD PTR 24[rsp]
	xor	esi, esi
	mov	r12d, eax
	call	nvlist_next_nvpair@PLT
	test	rax, rax
	je	.L3
	test	r13, r13
	je	.L3
	mov	rdi, rax
	call	nvpair_name@PLT
	mov	rdi, r13
	mov	esi, eax
	call	strcpy@PLT
.L3:
	mov	edi, DWORD PTR 24[rsp]
	call	fnvlist_free@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dsl_dataset_promote, .-dsl_dataset_promote
	.comm	dsl_dataset_promote_sync,4,4
	.comm	dsl_dataset_promote_check,4,4
	.comm	ZFS_SPACE_CHECK_RESERVED,4,4
	.comm	FTAG,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_dataset.c_dsl_dataset_promote.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dsl_dataset_promote
	.syntax unified
	.arm
	.fpu softvfp
	.type	dsl_dataset_promote, %function
dsl_dataset_promote:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, #0
	ldr	r8, .L13
	sub	sp, sp, #40
	ldr	r3, .L13+4
	mov	r7, r1
	add	r2, sp, #16
	ldr	r1, [r8]
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r6, r0
	str	r5, [sp, #20]
	str	r5, [sp, #24]
	str	r5, [sp, #28]
	str	r5, [sp, #32]
	bl	dmu_objset_hold
	subs	r4, r0, #0
	beq	.L10
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r0, [sp, #16]
	bl	dmu_objset_pool
	mov	r3, r0
	ldr	r0, [sp, #16]
	ldr	r4, [r3]
	bl	dmu_objset_ds
	bl	dsl_dataset_phys
	mov	r3, r0
	add	r2, sp, #12
	ldr	r1, [r3]
	mov	r0, r4
	bl	zap_count
	mov	r4, r0
	ldr	r1, [r8]
	ldr	r0, [sp, #16]
	bl	dmu_objset_rele
	cmp	r4, r5
	bne	.L1
	str	r6, [sp, #20]
	bl	fnvlist_alloc
	str	r0, [sp, #24]
	bl	CRED
	mov	ip, r0
	ldr	r3, .L13+8
	ldr	r2, [sp, #12]
	ldr	r1, [r3]
	ldr	lr, .L13+12
	str	r1, [sp, #4]
	add	r2, r2, #2
	ldr	r1, .L13+16
	str	r2, [sp]
	ldr	r2, [lr]
	ldr	r1, [r1]
	add	r3, sp, #20
	mov	r0, r6
	str	ip, [sp, #28]
	bl	dsl_sync_task
	mov	r1, r5
	mov	r4, r0
	ldr	r0, [sp, #24]
	bl	nvlist_next_nvpair
	cmp	r0, r5
	cmpne	r7, r5
	bne	.L12
.L3:
	ldr	r0, [sp, #24]
	bl	fnvlist_free
	b	.L1
.L12:
	bl	nvpair_name
	mov	r1, r0
	mov	r0, r7
	bl	strcpy
	b	.L3
.L11:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	FTAG
	.word	.LC0
	.word	ZFS_SPACE_CHECK_RESERVED
	.word	dsl_dataset_promote_sync
	.word	dsl_dataset_promote_check
	.size	dsl_dataset_promote, .-dsl_dataset_promote
	.comm	dsl_dataset_promote_sync,4,4
	.comm	dsl_dataset_promote_check,4,4
	.comm	ZFS_SPACE_CHECK_RESERVED,4,4
	.comm	FTAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
