	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ztest_dataset_open
_ztest_dataset_open:                    ## @ztest_dataset_open
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ztest_ds@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	callq	_ZTEST_GET_SHARED_DS
	movq	%rsp, %r14
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	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, %r13
	movq	_ztest_opts@GOTPCREL(%rip), %rax
	movl	4(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_ztest_dataset_name
	movq	_RW_READER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ztest_name_lock@GOTPCREL(%rip), %rdi
	callq	_rw_enter
	movq	%r13, %rdi
	callq	_ztest_dataset_create
	movl	%eax, %ebx
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_2
## %bb.1:
	movq	_ztest_name_lock@GOTPCREL(%rip), %rdi
	callq	_rw_exit
	movq	_FTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ztest_record_enospc
	jmp	LBB0_10
LBB0_2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movslq	%r12d, %r14
	shlq	$4, %r14
	testl	%ebx, %ebx
	sete	%al
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	movq	%r15, %rbx
	leaq	(%r15,%r14), %r15
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_ASSERT
	movq	_DMU_OST_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %r8
	movq	%r13, %rdi
	movq	%r15, %rcx
	callq	_dmu_objset_own
	movl	%eax, %edi
	callq	_VERIFY0
	movq	_ztest_name_lock@GOTPCREL(%rip), %rdi
	callq	_rw_exit
	movl	%r12d, %edi
	callq	_ZTEST_GET_SHARED_DS
	movq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ztest_zd_init
	movq	8(%rbx,%r14), %rbx
	movq	24(%rbx), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_5
## %bb.3:
	cmpq	%r12, %rdx
	jge	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movq	%r12, %rcx
	callq	_fatal
LBB0_5:
	movq	%r15, %rdi
	callq	_ztest_dataset_dirobj_verify
	movq	-56(%rbp), %rdi
	movq	_ztest_replay_vector@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_zil_replay
	movq	%r15, %rdi
	callq	_ztest_dataset_dirobj_verify
	movq	_ztest_opts@GOTPCREL(%rip), %rax
	cmpl	$6, (%rax)
	jl	LBB0_7
## %bb.6:
	movq	(%r15), %rsi
	movl	16(%rbx), %edx
	movl	(%rbx), %r8d
	movl	8(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
LBB0_7:
	movq	-56(%rbp), %rdi
	movq	_ztest_get_data@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_zil_open
	movq	(%rax), %rdx
	xorl	%ebx, %ebx
	testq	%rdx, %rdx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_10
## %bb.8:
	cmpq	%r12, %rdx
	jge	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r12, %rcx
	callq	_fatal
LBB0_10:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ztest_ds,8,3                   ## @ztest_ds
	.comm	_ZFS_MAX_DATASET_NAME_LEN,4,2   ## @ZFS_MAX_DATASET_NAME_LEN
	.comm	_ztest_opts,8,2                 ## @ztest_opts
	.comm	_ztest_name_lock,4,2            ## @ztest_name_lock
	.comm	_RW_READER,4,2                  ## @RW_READER
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_FTAG,4,2                       ## @FTAG
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_DMU_OST_OTHER,4,2              ## @DMU_OST_OTHER
	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing log records: claimed %llu < committed %llu"

	.comm	_ztest_replay_vector,4,2        ## @ztest_replay_vector
L_.str.1:                               ## @.str.1
	.asciz	"%s replay %llu blocks, %llu records, seq %llu\n"

	.comm	_ztest_get_data,4,2             ## @ztest_get_data
L_.str.2:                               ## @.str.2
	.asciz	"missing log records: replayed %llu < committed %llu"

	.no_dead_strip	_ztest_dataset_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ztest_dataset_open
_ztest_dataset_open:                    ; @ztest_dataset_open
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _ztest_ds@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ztest_ds@GOTPAGEOFF]
Lloh5:
	ldr	x26, [x8]
	bl	_ZTEST_GET_SHARED_DS
	mov	x24, sp
	ldr	x19, [x0]
Lloh6:
	adrp	x8, _ZFS_MAX_DATASET_NAME_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZFS_MAX_DATASET_NAME_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh11:
	adrp	x25, _ztest_opts@GOTPAGE
Lloh12:
	ldr	x25, [x25, _ztest_opts@GOTPAGEOFF]
	ldr	w1, [x25, #4]
	mov	x0, x22
	mov	x2, x20
	bl	_ztest_dataset_name
Lloh13:
	adrp	x8, _RW_READER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RW_READER@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x0, _ztest_name_lock@GOTPAGE
Lloh17:
	ldr	x0, [x0, _ztest_name_lock@GOTPAGEOFF]
	bl	_rw_enter
	mov	x0, x22
	bl	_ztest_dataset_create
	mov	x23, x0
Lloh18:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh21:
	adrp	x0, _ztest_name_lock@GOTPAGE
Lloh22:
	ldr	x0, [x0, _ztest_name_lock@GOTPAGEOFF]
	bl	_rw_exit
Lloh23:
	adrp	x8, _FTAG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FTAG@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_ztest_record_enospc
	b	LBB0_9
LBB0_2:
	sxtw	x27, w20
	add	x21, x26, w20, sxtw #4
	cmp	w23, #0
Lloh26:
	adrp	x8, _EEXIST@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ccmp	w23, w8, #4, ne
	cset	w0, eq
	bl	_ASSERT
Lloh29:
	adrp	x8, _DMU_OST_OTHER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DMU_OST_OTHER@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	sub	x4, x29, #96
	mov	x0, x22
	mov	x3, x21
	bl	_dmu_objset_own
	bl	_VERIFY0
Lloh35:
	adrp	x0, _ztest_name_lock@GOTPAGE
Lloh36:
	ldr	x0, [x0, _ztest_name_lock@GOTPAGEOFF]
	bl	_rw_exit
	mov	x0, x20
	bl	_ZTEST_GET_SHARED_DS
	mov	x1, x0
	ldur	x2, [x29, #-96]
	mov	x0, x21
	bl	_ztest_zd_init
	add	x8, x26, x27, lsl #4
	ldr	x20, [x8, #8]
	ldr	x8, [x20, #24]
	ldr	x2, [x8]
	cmp	x2, #0
	ccmp	x2, x19, #0, ne
	b.ge	LBB0_4
; %bb.3:
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	mov	x3, x19
	bl	_fatal
LBB0_4:
	mov	x0, x21
	bl	_ztest_dataset_dirobj_verify
	ldur	x0, [x29, #-96]
Lloh39:
	adrp	x8, _ztest_replay_vector@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ztest_replay_vector@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_zil_replay
	mov	x0, x21
	bl	_ztest_dataset_dirobj_verify
	ldr	w8, [x25]
	cmp	w8, #6
	b.lt	LBB0_6
; %bb.5:
	ldr	x1, [x21]
	ldr	w2, [x20, #16]
	ldr	w3, [x20, #8]
	ldr	w4, [x20]
Lloh42:
	adrp	x0, l_.str.1@PAGE
Lloh43:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_6:
	ldur	x0, [x29, #-96]
Lloh44:
	adrp	x8, _ztest_get_data@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ztest_get_data@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	bl	_zil_open
	mov	w23, #0
	ldr	x2, [x0]
	cbz	x2, LBB0_9
; %bb.7:
	cmp	x2, x19
	b.ge	LBB0_9
; %bb.8:
Lloh47:
	adrp	x1, l_.str.2@PAGE
Lloh48:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #0
	mov	x3, x19
	bl	_fatal
	mov	w23, #0
LBB0_9:
	mov	sp, x24
	ldur	x8, [x29, #-88]
Lloh49:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh50:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x23
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_ztest_ds,8,3                   ; @ztest_ds
	.comm	_ZFS_MAX_DATASET_NAME_LEN,4,2   ; @ZFS_MAX_DATASET_NAME_LEN
	.comm	_ztest_opts,8,2                 ; @ztest_opts
	.comm	_ztest_name_lock,4,2            ; @ztest_name_lock
	.comm	_RW_READER,4,2                  ; @RW_READER
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_FTAG,4,2                       ; @FTAG
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_DMU_OST_OTHER,4,2              ; @DMU_OST_OTHER
	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing log records: claimed %llu < committed %llu"

	.comm	_ztest_replay_vector,4,2        ; @ztest_replay_vector
l_.str.1:                               ; @.str.1
	.asciz	"%s replay %llu blocks, %llu records, seq %llu\n"

	.comm	_ztest_get_data,4,2             ; @ztest_get_data
l_.str.2:                               ; @.str.2
	.asciz	"missing log records: replayed %llu < committed %llu"

	.no_dead_strip	_ztest_dataset_open
.subsections_via_symbols
