	.file	"extr_zfs_ioctl.c_zfs_destroy_unmount_origin.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zfs_destroy_unmount_origin
	.type	zfs_destroy_unmount_origin, @function
zfs_destroy_unmount_origin:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	lea	rdx, -32[rbp]
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	esi, DWORD PTR FTAG[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	call	dmu_objset_hold@PLT
	test	eax, eax
	je	.L20
.L1:
	mov	rax, QWORD PTR -24[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdi, QWORD PTR -32[rbp]
	call	dmu_objset_ds@PLT
	mov	edi, DWORD PTR 4[rax]
	mov	rbx, rax
	call	dsl_dir_is_clone@PLT
	test	rax, rax
	je	.L3
	mov	edi, DWORD PTR [rbx]
	call	DS_IS_DEFER_DESTROY@PLT
	test	rax, rax
	jne	.L22
.L3:
	mov	esi, DWORD PTR FTAG[rip]
	mov	rdi, QWORD PTR -32[rbp]
	call	dmu_objset_rele@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	movsx	rax, DWORD PTR ZFS_MAX_DATASET_NAME_LEN[rip]
	mov	rcx, rsp
	mov	r12, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L5
.L23:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L23
.L5:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L6
	or	QWORD PTR -8[rsp+rdx], 0
.L6:
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rsp
	call	dsl_dataset_name@PLT
	mov	esi, DWORD PTR FTAG[rip]
	mov	rdi, QWORD PTR -32[rbp]
	call	dmu_objset_rele@PLT
	mov	rdi, rsp
	call	zfs_unmount_snap@PLT
	mov	rsp, r12
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	zfs_destroy_unmount_origin, .-zfs_destroy_unmount_origin
	.comm	ZFS_MAX_DATASET_NAME_LEN,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_zfs_ioctl.c_zfs_destroy_unmount_origin.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	zfs_destroy_unmount_origin
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfs_destroy_unmount_origin, %function
zfs_destroy_unmount_origin:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #12
	ldr	r4, .L17
	ldr	r3, .L17+4
	ldr	r1, [r4]
	sub	r2, fp, #28
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bl	dmu_objset_hold
	cmp	r0, #0
	beq	.L14
.L1:
	ldr	r3, .L17+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L14:
	ldr	r0, [fp, #-28]
	bl	dmu_objset_ds
	mov	r5, r0
	ldr	r0, [r0, #4]
	bl	dsl_dir_is_clone
	cmp	r0, #0
	beq	.L3
	ldr	r0, [r5]
	bl	DS_IS_DEFER_DESTROY
	cmp	r0, #0
	bne	.L16
.L3:
	ldr	r1, [r4]
	ldr	r0, [fp, #-28]
	bl	dmu_objset_rele
	b	.L1
.L16:
	mov	r6, sp
	ldr	r3, .L17+8
	ldr	r0, [r5]
	ldr	r3, [r3]
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r1, sp
	bl	dsl_dataset_name
	ldr	r1, [r4]
	ldr	r0, [fp, #-28]
	bl	dmu_objset_rele
	mov	r0, sp
	bl	zfs_unmount_snap
	mov	sp, r6
	b	.L1
.L15:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	FTAG
	.word	.LC0
	.word	ZFS_MAX_DATASET_NAME_LEN
	.size	zfs_destroy_unmount_origin, .-zfs_destroy_unmount_origin
	.comm	ZFS_MAX_DATASET_NAME_LEN,4,4
	.comm	FTAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
