	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ztest_log_write
_ztest_log_write:                       ## @ztest_log_write
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_WR_NUM_STATES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ztest_random
	movq	%rax, %r13
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_zil_replaying
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%r15), %rax
	movq	_ZIL_MAX_LOG_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_3
## %bb.2:
	movq	_WR_INDIRECT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
LBB0_3:
	movq	_TX_WRITE@GOTPCREL(%rip), %rcx
	movq	_WR_COPIED@GOTPCREL(%rip), %rdx
	addl	$24, %eax
	cmpq	(%rdx), %r13
	movl	(%rcx), %edi
	movl	$24, %esi
	cmovel	%eax, %esi
	callq	_zil_itx_create
	movq	%rax, %rbx
	movq	_WR_COPIED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_6
## %bb.4:
	movl	4(%r12), %edi
	movl	16(%r15), %esi
	movl	(%r15), %ecx
	movl	12(%r15), %edx
	movq	%rbx, %r8
	addq	$28, %r8
	movq	_DMU_READ_NO_PREFETCH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	callq	_dmu_read
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_zil_itx_destroy
	movq	_TX_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$24, %esi
	callq	_zil_itx_create
	movq	%rax, %rbx
	movq	_WR_NEED_COPY@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_6:
	movq	%r12, 16(%rbx)
	movq	%r13, 8(%rbx)
	movl	$8, %edi
	callq	_ztest_random
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, (%rbx)
	movl	28(%r15), %eax
	movups	12(%r15), %xmm0
	movups	%xmm0, 8(%rbx)
	movl	%eax, 24(%rbx)
	movl	(%r12), %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zil_itx_assign                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WR_NUM_STATES,4,2              ## @WR_NUM_STATES
	.comm	_ZIL_MAX_LOG_DATA,8,3           ## @ZIL_MAX_LOG_DATA
	.comm	_WR_INDIRECT,8,3                ## @WR_INDIRECT
	.comm	_TX_WRITE,4,2                   ## @TX_WRITE
	.comm	_WR_COPIED,8,3                  ## @WR_COPIED
	.comm	_DMU_READ_NO_PREFETCH,4,2       ## @DMU_READ_NO_PREFETCH
	.comm	_WR_NEED_COPY,8,3               ## @WR_NEED_COPY
	.no_dead_strip	_ztest_log_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ztest_log_write
_ztest_log_write:                       ; @ztest_log_write
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _WR_NUM_STATES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WR_NUM_STATES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ztest_random
	mov	x22, x0
	ldr	w0, [x20]
	mov	x1, x19
	bl	_zil_replaying
	cbz	x0, LBB0_2
; %bb.1:
	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
	ret
LBB0_2:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _ZIL_MAX_LOG_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ZIL_MAX_LOG_DATA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _WR_INDIRECT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WR_INDIRECT@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x23, x10, x22, gt
Lloh9:
	adrp	x24, _TX_WRITE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _TX_WRITE@GOTPAGEOFF]
Lloh11:
	adrp	x25, _WR_COPIED@GOTPAGE
Lloh12:
	ldr	x25, [x25, _WR_COPIED@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	x9, [x25]
	add	w8, w8, #24
	cmp	x23, x9
	mov	w9, #24
	csel	w1, w8, w9, eq
	bl	_zil_itx_create
	mov	x22, x0
	ldr	x8, [x25]
	cmp	x23, x8
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x20, #4]
	ldp	w2, w1, [x21, #12]
	ldr	w3, [x21]
	add	x4, x22, #28
Lloh13:
	adrp	x8, _DMU_READ_NO_PREFETCH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMU_READ_NO_PREFETCH@GOTPAGEOFF]
Lloh15:
	ldr	w5, [x8]
	bl	_dmu_read
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_zil_itx_destroy
	ldr	w0, [x24]
	mov	w1, #24
	bl	_zil_itx_create
	mov	x22, x0
Lloh16:
	adrp	x8, _WR_NEED_COPY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WR_NEED_COPY@GOTPAGEOFF]
Lloh18:
	ldr	x23, [x8]
LBB0_5:
	stp	x23, x20, [x22, #8]
	mov	w0, #8
	bl	_ztest_random
	cmp	x0, #0
	cset	w8, eq
	str	w8, [x22]
	ldr	w8, [x21, #28]
	ldur	q0, [x21, #12]
	stur	q0, [x22, #8]
	str	w8, [x22, #24]
	ldr	w0, [x20]
	mov	x1, x22
	mov	x2, 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	_zil_itx_assign
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_WR_NUM_STATES,4,2              ; @WR_NUM_STATES
	.comm	_ZIL_MAX_LOG_DATA,8,3           ; @ZIL_MAX_LOG_DATA
	.comm	_WR_INDIRECT,8,3                ; @WR_INDIRECT
	.comm	_TX_WRITE,4,2                   ; @TX_WRITE
	.comm	_WR_COPIED,8,3                  ; @WR_COPIED
	.comm	_DMU_READ_NO_PREFETCH,4,2       ; @DMU_READ_NO_PREFETCH
	.comm	_WR_NEED_COPY,8,3               ; @WR_NEED_COPY
	.no_dead_strip	_ztest_log_write
.subsections_via_symbols
