	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_prepared_discard_passdown
_process_prepared_discard_passdown:     ## @process_prepared_discard_passdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	movq	(%r14), %rdi
	movl	(%rbx), %esi
	callq	_inc_all_io_entry
	movl	28(%rbx), %esi
	movq	%r14, %rdi
	callq	_cell_defer_no_holder
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	_cell_defer_no_holder
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.2:
	movl	(%rbx), %esi
	jmp	LBB0_3
LBB0_7:
	movl	(%rbx), %edi
	jmp	LBB0_8
LBB0_4:
	movl	$0, -20(%rbp)
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movl	4(%rbx), %esi
	leaq	-20(%rbp), %rdx
	callq	_dm_pool_block_is_used
	movl	(%rbx), %esi
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	cmpl	$0, -20(%rbp)
	jne	LBB0_6
LBB0_3:
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_remap_and_issue
	jmp	LBB0_9
LBB0_6:
	movl	%esi, %edi
LBB0_8:
	xorl	%esi, %esi
	callq	_bio_endio
LBB0_9:
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mempool_free
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_process_prepared_discard_passdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_prepared_discard_passdown
_process_prepared_discard_passdown:     ; @process_prepared_discard_passdown
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #32]
	ldr	x0, [x20]
	ldr	w1, [x19]
	bl	_inc_all_io_entry
	ldr	w1, [x19, #28]
	mov	x0, x20
	bl	_cell_defer_no_holder
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_cell_defer_no_holder
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w1, [x19]
	b	LBB0_7
LBB0_3:
	ldr	w0, [x19]
	b	LBB0_6
LBB0_4:
	str	wzr, [sp, #12]
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	ldr	w1, [x19, #4]
	add	x2, sp, #12
	bl	_dm_pool_block_is_used
	ldr	w8, [sp, #12]
	ldr	w1, [x19]
	cmp	x0, #0
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x1
LBB0_6:
	mov	w1, #0
	bl	_bio_endio
	b	LBB0_8
LBB0_7:
	ldr	w2, [x19, #4]
	mov	x0, x20
	bl	_remap_and_issue
LBB0_8:
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mempool_free
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_process_prepared_discard_passdown
.subsections_via_symbols
