	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ztest_dataset_destroy
_ztest_dataset_destroy:                 ## @ztest_dataset_destroy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_ZFS_MAX_DATASET_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_ztest_opts@GOTPCREL(%rip), %r15
	movl	16(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ztest_dataset_name
	cmpl	$3, (%r15)
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_printf
LBB0_2:
	cmpl	%ebx, 4(%r15)
	jle	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ztest_dsl_dataset_cleanup
	addl	8(%r15), %ebx
	cmpl	4(%r15), %ebx
	jl	LBB0_5
LBB0_3:
	movq	_ztest_objset_destroy_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DS_FIND_SNAPSHOTS@GOTPCREL(%rip), %rax
	movq	_DS_FIND_CHILDREN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_dmu_objset_find
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_6
## %bb.4:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ZFS_MAX_DATASET_NAME_LEN,4,2   ## @ZFS_MAX_DATASET_NAME_LEN
	.comm	_ztest_opts,24,3                ## @ztest_opts
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Destroying %s to free up space\n"

	.comm	_ztest_objset_destroy_cb,4,2    ## @ztest_objset_destroy_cb
	.comm	_DS_FIND_SNAPSHOTS,4,2          ## @DS_FIND_SNAPSHOTS
	.comm	_DS_FIND_CHILDREN,4,2           ## @DS_FIND_CHILDREN
	.no_dead_strip	_ztest_dataset_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ztest_dataset_destroy
_ztest_dataset_destroy:                 ; @ztest_dataset_destroy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _ZFS_MAX_DATASET_NAME_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZFS_MAX_DATASET_NAME_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x21, _ztest_opts@GOTPAGE
Lloh9:
	ldr	x21, [x21, _ztest_opts@GOTPAGEOFF]
	ldr	w1, [x21, #16]
	mov	x0, x20
	mov	x2, x19
	bl	_ztest_dataset_name
	ldr	w8, [x21]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_printf
LBB0_2:
	ldr	w8, [x21, #4]
	cmp	w8, w19
	b.le	LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_ztest_dsl_dataset_cleanup
	ldp	w9, w8, [x21, #4]
	add	w19, w19, w8
	cmp	w19, w9
	b.lt	LBB0_3
LBB0_4:
Lloh12:
	adrp	x8, _ztest_objset_destroy_cb@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ztest_objset_destroy_cb@GOTPAGEOFF]
Lloh14:
	adrp	x9, _DS_FIND_SNAPSHOTS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DS_FIND_SNAPSHOTS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	ldr	w8, [x9]
Lloh18:
	adrp	x9, _DS_FIND_CHILDREN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DS_FIND_CHILDREN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x20
	mov	x2, #0
	bl	_dmu_objset_find
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ZFS_MAX_DATASET_NAME_LEN,4,2   ; @ZFS_MAX_DATASET_NAME_LEN
	.comm	_ztest_opts,24,3                ; @ztest_opts
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Destroying %s to free up space\n"

	.comm	_ztest_objset_destroy_cb,4,2    ; @ztest_objset_destroy_cb
	.comm	_DS_FIND_SNAPSHOTS,4,2          ; @DS_FIND_SNAPSHOTS
	.comm	_DS_FIND_CHILDREN,4,2           ; @DS_FIND_CHILDREN
	.no_dead_strip	_ztest_dataset_destroy
.subsections_via_symbols
