	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmz_handle_write
_dmz_handle_write:                      ## @dmz_handle_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	4(%rdi), %ebx
	movq	%rdx, %rdi
	callq	_dmz_bio_block
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_dmz_chunk_block
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_dmz_bio_blocks
	testq	%r13, %r13
	je	LBB0_4
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %edi
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, %rsi
	movl	%eax, %ebx
	callq	_dmz_bio_chunk
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_dmz_is_rnd
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r12
	cmoveq	%rax, %r12
	movl	(%r15), %edi
	movq	%r13, %rsi
	callq	_dmz_id
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movl	%eax, %r8d
	movq	%rbx, %r9
	callq	_dmz_dev_debug
	movq	%r13, %rdi
	callq	_dmz_is_rnd
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	cmpq	(%r13), %rbx
	jne	LBB0_3
LBB0_5:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dmz_handle_direct_write        ## TAILCALL
LBB0_4:
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dmz_handle_buffered_write      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WRITE chunk %llu -> %s zone %u, block %llu, %u blocks"

L_.str.1:                               ## @.str.1
	.asciz	"RND"

L_.str.2:                               ## @.str.2
	.asciz	"SEQ"

	.no_dead_strip	_dmz_handle_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmz_handle_write
_dmz_handle_write:                      ; @dmz_handle_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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w22, [x0, #4]
	mov	x0, x2
	bl	_dmz_bio_block
	mov	x1, x0
	mov	x0, x22
	bl	_dmz_chunk_block
	mov	x22, x0
	mov	x0, x19
	bl	_dmz_bio_blocks
	cbz	x20, LBB0_4
; %bb.1:
	mov	x23, x0
	ldr	w24, [x21, #4]
	mov	x0, x24
	mov	x1, x19
	bl	_dmz_bio_chunk
	mov	x25, x0
	mov	x0, x20
	bl	_dmz_is_rnd
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x26, x9, x8, eq
	ldr	w0, [x21]
	mov	x1, x20
	bl	_dmz_id
	mov	x4, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x2, x25
	mov	x3, x26
	mov	x5, x22
	mov	x6, x23
	bl	_dmz_dev_debug
	mov	x0, x20
	bl	_dmz_is_rnd
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x20]
	cmp	x22, x8
	b.ne	LBB0_5
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	mov	x4, x23
	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	_dmz_handle_direct_write
LBB0_4:
Lloh6:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	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_5:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	mov	x4, x23
	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	_dmz_handle_buffered_write
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WRITE chunk %llu -> %s zone %u, block %llu, %u blocks"

l_.str.1:                               ; @.str.1
	.asciz	"RND"

l_.str.2:                               ; @.str.2
	.asciz	"SEQ"

	.no_dead_strip	_dmz_handle_write
.subsections_via_symbols
