	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ztest_zd_init
_ztest_zd_init:                         ## @ztest_zd_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rdx, 40(%rdi)
	movq	%rdx, %rdi
	callq	_dmu_objset_zil
	movl	%eax, 36(%r12)
	movq	%r15, 24(%r12)
	movl	32(%r12), %esi
	movq	%r14, %rdi
	callq	_dmu_objset_name
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	$0, (%rax)
LBB0_2:
	leaq	20(%r12), %rdi
	movq	_USYNC_THREAD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_rw_init
	leaq	16(%r12), %rdi
	movl	(%rbx), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_mutex_init
	movq	_ZTEST_OBJECT_LOCKS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.3:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	addq	%r15, %rdi
	callq	_ztest_rll_init
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	_ZTEST_RANGE_LOCKS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_8
## %bb.6:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r15, %rdi
	callq	_ztest_rll_init
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USYNC_THREAD,4,2               ## @USYNC_THREAD
	.comm	_ZTEST_OBJECT_LOCKS,4,2         ## @ZTEST_OBJECT_LOCKS
	.comm	_ZTEST_RANGE_LOCKS,4,2          ## @ZTEST_RANGE_LOCKS
	.no_dead_strip	_ztest_zd_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ztest_zd_init
_ztest_zd_init:                         ; @ztest_zd_init
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	x2, [x0, #40]
	mov	x0, x2
	bl	_dmu_objset_zil
	str	w0, [x19, #36]
	str	x21, [x19, #24]
	ldr	w1, [x19, #32]
	mov	x0, x20
	bl	_dmu_objset_name
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	str	xzr, [x8]
LBB0_2:
	add	x0, x19, #20
Lloh0:
	adrp	x20, _USYNC_THREAD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _USYNC_THREAD@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x1, #0
	mov	x3, #0
	bl	_rw_init
	add	x0, x19, #16
	ldr	w2, [x20]
	mov	x1, #0
	mov	x3, #0
	bl	_mutex_init
Lloh2:
	adrp	x20, _ZTEST_OBJECT_LOCKS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ZTEST_OBJECT_LOCKS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x21
	bl	_ztest_rll_init
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_5:
Lloh4:
	adrp	x20, _ZTEST_RANGE_LOCKS@GOTPAGE
Lloh5:
	ldr	x20, [x20, _ZTEST_RANGE_LOCKS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x21, #0
	mov	x22, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, x21
	bl	_ztest_rll_init
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_7
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_USYNC_THREAD,4,2               ; @USYNC_THREAD
	.comm	_ZTEST_OBJECT_LOCKS,4,2         ; @ZTEST_OBJECT_LOCKS
	.comm	_ZTEST_RANGE_LOCKS,4,2          ; @ZTEST_RANGE_LOCKS
	.no_dead_strip	_ztest_zd_init
.subsections_via_symbols
