	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmz_handle_discard
_dmz_handle_discard:                    ## @dmz_handle_discard
	.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, %r13
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	%rdx, %rdi
	callq	_dmz_bio_block
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_dmz_bio_blocks
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_dmz_chunk_block
	movq	%rax, %rbx
	xorl	%eax, %eax
	testq	%r13, %r13
	je	LBB0_7
## %bb.1:
	movq	%r13, %rdi
	callq	_dmz_is_readonly
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EROFS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_3:
	movl	(%r14), %r14d
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_dmz_bio_chunk
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_dmz_id
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movq	%r15, %rdx
	movl	%eax, %ecx
	movq	%rbx, %r8
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r9d
	callq	_dmz_dev_debug
	movq	%r13, %rdi
	callq	_dmz_is_rnd
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	cmpq	(%r13), %rbx
	jge	LBB0_6
LBB0_5:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_dmz_invalidate_blocks
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	movq	8(%r13), %rsi
	movl	$0, %eax
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dmz_invalidate_blocks          ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EROFS,4,2                      ## @EROFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DISCARD chunk %llu -> zone %u, block %llu, %u blocks"

	.no_dead_strip	_dmz_handle_discard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmz_handle_discard
_dmz_handle_discard:                    ; @dmz_handle_discard
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x2
	mov	x20, x1
	mov	x24, x0
	ldr	x19, [x0, #8]
	mov	x0, x2
	bl	_dmz_bio_block
	mov	x22, x0
	mov	x0, x23
	bl	_dmz_bio_blocks
	mov	x21, x0
	ldr	w0, [x24]
	mov	x1, x22
	bl	_dmz_chunk_block
	cbz	x20, LBB0_8
; %bb.1:
	mov	x22, x0
	mov	x0, x20
	bl	_dmz_is_readonly
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EROFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EROFS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_3:
	ldr	w24, [x24]
	mov	x0, x24
	mov	x1, x23
	bl	_dmz_bio_chunk
	mov	x23, x0
	mov	x0, x19
	mov	x1, x20
	bl	_dmz_id
	mov	x3, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x2, x23
	mov	x4, x22
	mov	x5, x21
	bl	_dmz_dev_debug
	mov	x0, x20
	bl	_dmz_is_rnd
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	cmp	x22, x8
	b.ge	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_dmz_invalidate_blocks
	cbnz	w0, LBB0_9
LBB0_6:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dmz_invalidate_blocks
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EROFS,4,2                      ; @EROFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DISCARD chunk %llu -> zone %u, block %llu, %u blocks"

	.no_dead_strip	_dmz_handle_discard
.subsections_via_symbols
