	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zil_prt_rec_write
_zil_prt_rec_write:                     ## @zil_prt_rec_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_dump_opt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	400(%rax), %edi
	movl	420(%rax), %esi
	callq	_MAX
	movl	%eax, %r14d
	movq	_tab_prefix@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movl	8(%r15), %edx
	movl	(%r15), %ecx
	movl	4(%r15), %r8d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_TX_WRITE2@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_17
## %bb.1:
	cmpl	$5, %r14d
	jl	LBB0_17
## %bb.2:
	cmpl	$32, 16(%r15)
	jne	LBB0_12
## %bb.3:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	24(%r15), %r12
	movq	(%r13), %r13
	movq	%r12, %rdi
	callq	_BP_IS_HOLE
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_6
LBB0_12:
	movl	4(%r15), %edi
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_abd_alloc
	movq	%rax, %r13
	leaq	32(%r15), %rsi
	movl	4(%r15), %edx
	movq	%rax, %rdi
	callq	_abd_copy_from_buf
LBB0_13:
	movq	_tab_prefix@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	4(%r15), %edi
	movl	$20, %esi
	cmpl	$6, %r14d
	jb	LBB0_15
## %bb.14:
	movq	_SPA_MAXBLOCKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_15:
	callq	_MIN
	movq	_zil_prt_rec_write_cb@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%r8d, %r8d
	callq	_abd_iterate_func
	movl	$10, %edi
	callq	_putchar
LBB0_16:
	movq	%r13, %rdi
	callq	_abd_free
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r12), %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_spa_min_claim_txg
	cmpq	%rax, %rbx
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmovlq	%rax, %rdx
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	_tab_prefix@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	callq	_print_log_bp
	movq	%r12, %rdi
	callq	_BP_IS_HOLE
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_BP_GET_LSIZE
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	(%rbx), %rsi
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_10
LBB0_8:
	movq	(%r12), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_11
## %bb.9:
	movq	(%rbx), %rsi
	leaq	L_.str.6(%rip), %rdi
LBB0_10:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_11:
	movl	4(%rdx), %edi
	callq	_dmu_objset_id
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_ZB_ZIL_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %r13d
	movq	%r12, %rdi
	callq	_BP_GET_LSIZE
	movl	%eax, %ecx
	movl	%r13d, %eax
	cltd
	idivl	%ecx
	leaq	-56(%rbp), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_SET_BOOKMARK
	movq	%r12, %rdi
	callq	_BP_GET_LSIZE
	movq	_B_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_abd_alloc
	movq	%rax, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_BP_GET_LSIZE
	movq	_ZIO_PRIORITY_SYNC_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_ZIO_FLAG_CANFAIL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	xorl	%edi, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	movq	%r13, %rcx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	leaq	-56(%rbp), %rax
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	pushq	$0
	callq	_zio_read
	addq	$32, %rsp
	movl	%eax, %edi
	callq	_zio_wait
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_dump_opt,8,3                   ## @dump_opt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sfoid %llu, offset %llx, length %llx\n"

	.comm	_tab_prefix,8,3                 ## @tab_prefix
	.comm	_TX_WRITE2,4,2                  ## @TX_WRITE2
L_.str.1:                               ## @.str.1
	.asciz	"%shas blkptr, %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"will claim"

L_.str.3:                               ## @.str.3
	.asciz	"won't claim"

L_.str.4:                               ## @.str.4
	.asciz	"\t\t\tLSIZE 0x%llx\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s<hole>\n"

L_.str.6:                               ## @.str.6
	.asciz	"%s<block already committed>\n"

	.comm	_ZB_ZIL_LEVEL,4,2               ## @ZB_ZIL_LEVEL
	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.comm	_ZIO_PRIORITY_SYNC_READ,4,2     ## @ZIO_PRIORITY_SYNC_READ
	.comm	_ZIO_FLAG_CANFAIL,4,2           ## @ZIO_FLAG_CANFAIL
L_.str.7:                               ## @.str.7
	.asciz	"%s"

	.comm	_SPA_MAXBLOCKSIZE,4,2           ## @SPA_MAXBLOCKSIZE
	.comm	_zil_prt_rec_write_cb,4,2       ## @zil_prt_rec_write_cb
	.no_dead_strip	_zil_prt_rec_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zil_prt_rec_write
_zil_prt_rec_write:                     ; @zil_prt_rec_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _dump_opt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dump_opt@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w0, [x8, #400]
	ldr	w1, [x8, #420]
	bl	_MAX
	mov	x20, x0
Lloh3:
	adrp	x26, _tab_prefix@GOTPAGE
Lloh4:
	ldr	x26, [x26, _tab_prefix@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	x9, [x19, #8]
	ldp	w10, w11, [x19]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh7:
	adrp	x8, _TX_WRITE2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TX_WRITE2@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w22
	ccmp	w20, #5, #8, ne
	b.lt	LBB0_9
; %bb.1:
	ldr	w8, [x19, #16]
	cmp	w8, #32
	b.ne	LBB0_6
; %bb.2:
	add	x22, x19, #24
	ldr	x23, [x26]
	mov	x0, x22
	bl	_BP_IS_HOLE
Lloh10:
	adrp	x24, l_.str.3@PAGE
Lloh11:
	add	x24, x24, l_.str.3@PAGEOFF
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x25, [x22]
	ldr	w0, [x21]
	bl	_spa_min_claim_txg
Lloh12:
	adrp	x8, l_.str.2@PAGE
Lloh13:
	add	x8, x8, l_.str.2@PAGEOFF
	cmp	x25, x0
	csel	x24, x24, x8, lt
LBB0_4:
	stp	x23, x24, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x1, [x26]
	mov	x0, x22
	bl	_print_log_bp
	mov	x0, x22
	bl	_BP_IS_HOLE
	cbz	x0, LBB0_10
; %bb.5:
	mov	x0, x22
	bl	_BP_GET_LSIZE
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	ldr	x8, [x26]
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	b	LBB0_9
LBB0_6:
	ldr	w0, [x19, #4]
Lloh20:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_abd_alloc
	mov	x23, x0
	add	x1, x19, #32
	ldr	w2, [x19, #4]
	bl	_abd_copy_from_buf
LBB0_7:
	ldr	x8, [x26]
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str.7@PAGE
Lloh24:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	ldr	w0, [x19, #4]
Lloh25:
	adrp	x8, _SPA_MAXBLOCKSIZE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SPA_MAXBLOCKSIZE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	mov	w9, #20
	cmp	w20, #6
	csel	w1, w9, w8, lo
	bl	_MIN
	mov	x2, x0
Lloh28:
	adrp	x8, _zil_prt_rec_write_cb@GOTPAGE
Lloh29:
	ldr	x8, [x8, _zil_prt_rec_write_cb@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	x0, x23
	mov	w1, #0
	mov	x4, #0
	bl	_abd_iterate_func
	mov	w0, #10
	bl	_putchar
LBB0_8:
	mov	x0, x23
	bl	_abd_free
LBB0_9:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_10:
	ldr	x8, [x22]
	ldr	x9, [x21, #8]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_12
; %bb.11:
	ldr	x8, [x26]
	str	x8, [sp]
Lloh31:
	adrp	x0, l_.str.6@PAGE
Lloh32:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	b	LBB0_9
LBB0_12:
	ldr	w0, [x21, #4]
	bl	_dmu_objset_id
	mov	x23, x0
	ldr	x24, [x19, #8]
Lloh33:
	adrp	x8, _ZB_ZIL_LEVEL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ZB_ZIL_LEVEL@GOTPAGEOFF]
Lloh35:
	ldr	w25, [x8]
	ldr	w27, [x19]
	mov	x0, x22
	bl	_BP_GET_LSIZE
	sdiv	w4, w27, w0
	add	x27, sp, #44
	add	x0, sp, #44
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	bl	_SET_BOOKMARK
	mov	x0, x22
	bl	_BP_GET_LSIZE
Lloh36:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	bl	_abd_alloc
	mov	x23, x0
	ldr	w21, [x21]
	mov	x0, x22
	bl	_BP_GET_LSIZE
	mov	x4, x0
Lloh39:
	adrp	x8, _ZIO_PRIORITY_SYNC_READ@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ZIO_PRIORITY_SYNC_READ@GOTPAGEOFF]
Lloh41:
	ldr	w7, [x8]
Lloh42:
	adrp	x8, _ZIO_FLAG_CANFAIL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ZIO_FLAG_CANFAIL@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	str	x27, [sp, #8]
	str	w8, [sp]
	mov	x0, #0
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x5, #0
	mov	x6, #0
	bl	_zio_read
	bl	_zio_wait
	cbnz	w0, LBB0_8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_dump_opt,8,3                   ; @dump_opt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sfoid %llu, offset %llx, length %llx\n"

	.comm	_tab_prefix,8,3                 ; @tab_prefix
	.comm	_TX_WRITE2,4,2                  ; @TX_WRITE2
l_.str.1:                               ; @.str.1
	.asciz	"%shas blkptr, %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"will claim"

l_.str.3:                               ; @.str.3
	.asciz	"won't claim"

l_.str.4:                               ; @.str.4
	.asciz	"\t\t\tLSIZE 0x%llx\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s<hole>\n"

l_.str.6:                               ; @.str.6
	.asciz	"%s<block already committed>\n"

	.comm	_ZB_ZIL_LEVEL,4,2               ; @ZB_ZIL_LEVEL
	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.comm	_ZIO_PRIORITY_SYNC_READ,4,2     ; @ZIO_PRIORITY_SYNC_READ
	.comm	_ZIO_FLAG_CANFAIL,4,2           ; @ZIO_FLAG_CANFAIL
l_.str.7:                               ; @.str.7
	.asciz	"%s"

	.comm	_SPA_MAXBLOCKSIZE,4,2           ; @SPA_MAXBLOCKSIZE
	.comm	_zil_prt_rec_write_cb,4,2       ; @zil_prt_rec_write_cb
	.no_dead_strip	_zil_prt_rec_write
.subsections_via_symbols
