	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ztest_prealloc
_ztest_prealloc:                        ## @ztest_prealloc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_dmu_objset_pool
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_txg_wait_synced
	movq	_RL_READER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ztest_object_lock
	movq	_RL_WRITER@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rbx
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_ztest_range_lock
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_dmu_tx_create
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_dmu_tx_hold_write
	movq	_TXG_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_ztest_tx_assign
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	%r12, %r8
	callq	_dmu_prealloc
	movq	%r12, %rdi
	callq	_dmu_tx_commit
	movq	%r15, %rdi
	callq	_dmu_objset_pool
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_txg_wait_synced
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_dmu_free_long_range
LBB0_3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ztest_range_unlock
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ztest_object_unlock            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RL_READER,4,2                  ## @RL_READER
	.comm	_RL_WRITER,4,2                  ## @RL_WRITER
	.comm	_TXG_WAIT,4,2                   ## @TXG_WAIT
	.comm	_FTAG,4,2                       ## @FTAG
	.no_dead_strip	_ztest_prealloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ztest_prealloc
_ztest_prealloc:                        ; @ztest_prealloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	mov	x0, x21
	bl	_dmu_objset_pool
	mov	x1, #0
	bl	_txg_wait_synced
Lloh0:
	adrp	x8, _RL_READER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RL_READER@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_ztest_object_lock
Lloh3:
	adrp	x8, _RL_WRITER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RL_WRITER@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_ztest_range_lock
	mov	x24, x0
	mov	x0, x21
	bl	_dmu_tx_create
	mov	x25, x0
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_dmu_tx_hold_write
Lloh6:
	adrp	x8, _TXG_WAIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TXG_WAIT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _FTAG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FTAG@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x25
	bl	_ztest_tx_assign
	cbz	x0, LBB0_2
; %bb.1:
	mov	x26, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	mov	x4, x25
	bl	_dmu_prealloc
	mov	x0, x25
	bl	_dmu_tx_commit
	mov	x0, x21
	bl	_dmu_objset_pool
	mov	x1, x26
	bl	_txg_wait_synced
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_dmu_free_long_range
LBB0_3:
	mov	x0, x24
	bl	_ztest_range_unlock
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ztest_object_unlock
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RL_READER,4,2                  ; @RL_READER
	.comm	_RL_WRITER,4,2                  ; @RL_WRITER
	.comm	_TXG_WAIT,4,2                   ; @TXG_WAIT
	.comm	_FTAG,4,2                       ; @FTAG
	.no_dead_strip	_ztest_prealloc
.subsections_via_symbols
