	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_prepared_discard_passdown_pt1
_process_prepared_discard_passdown_pt1: ## @process_prepared_discard_passdown_pt1
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	40(%rdi), %r14
	movq	(%r14), %r15
	movq	24(%rdi), %rdx
	movq	32(%rdi), %rsi
	movq	%rdx, %rbx
	subq	%rsi, %rbx
	addq	(%rdi), %rbx
	movl	8(%r14), %edi
	callq	_dm_thin_remove_range
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movl	8(%r15), %edi
	movq	(%r12), %rsi
	movq	%rbx, %rdx
	callq	_dm_pool_inc_data_range
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_metadata_operation_failed
	movl	20(%r12), %edi
	callq	_bio_io_error
	movl	16(%r12), %esi
	movq	%r14, %rdi
	callq	_cell_defer_no_holder
	addq	$4, %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mempool_free                   ## TAILCALL
LBB0_5:
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_bio_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_passdown_endio@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%r12, (%rax)
	cmpq	$0, 8(%r12)
	je	LBB0_7
## %bb.9:
	movq	%r12, %rdi
	movq	%rax, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_passdown_double_checking_shared_status ## TAILCALL
LBB0_8:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_dm_device_name
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_DMWARN
	movq	%r12, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_passdown_pt2             ## TAILCALL
LBB0_7:
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_begin_discard
	movq	(%r12), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_issue_discard
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_end_discard
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dm_thin_remove_range"

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

	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
L_.str.2:                               ## @.str.2
	.asciz	"%s: unable to allocate top level discard bio for passdown. Skipping passdown."

	.comm	_passdown_endio,4,2             ## @passdown_endio
	.no_dead_strip	_process_prepared_discard_passdown_pt1
.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_pt1
_process_prepared_discard_passdown_pt1: ; @process_prepared_discard_passdown_pt1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldp	x23, x20, [x0, #32]
	ldr	x21, [x20]
	ldr	x24, [x0]
	ldr	x22, [x0, #24]
	ldr	w0, [x20, #8]
	mov	x1, x23
	mov	x2, x22
	bl	_dm_thin_remove_range
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	sub	x8, x22, x23
	add	x22, x8, x24
	ldr	w0, [x21, #8]
	ldr	x1, [x19]
	mov	x2, x22
	bl	_dm_pool_inc_data_range
	cbz	w0, LBB0_5
; %bb.3:
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x21
	bl	_metadata_operation_failed
	ldr	w0, [x19, #20]
	bl	_bio_io_error
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_cell_defer_no_holder
	add	x1, x21, #4
	mov	x0, 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
	add	sp, sp, #80
	b	_mempool_free
LBB0_5:
Lloh4:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_bio_alloc
	cbz	x0, LBB0_8
; %bb.6:
	mov	x2, x0
Lloh7:
	adrp	x8, _passdown_endio@GOTPAGE
Lloh8:
	ldr	x8, [x8, _passdown_endio@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x19, [x0]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.7:
	mov	x0, x19
	mov	x1, x2
	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
	add	sp, sp, #80
	b	_passdown_double_checking_shared_status
LBB0_8:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_dm_device_name
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DMWARN
	mov	x0, 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
	add	sp, sp, #80
	b	_queue_passdown_pt2
LBB0_9:
	add	x0, sp, #8
	mov	x1, x20
	bl	_begin_discard
	ldr	x1, [x19]
	add	x0, sp, #8
	mov	x2, x22
	bl	_issue_discard
	mov	x1, x0
	add	x0, sp, #8
	bl	_end_discard
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dm_thin_remove_range"

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

	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
l_.str.2:                               ; @.str.2
	.asciz	"%s: unable to allocate top level discard bio for passdown. Skipping passdown."

	.comm	_passdown_endio,4,2             ; @passdown_endio
	.no_dead_strip	_process_prepared_discard_passdown_pt1
.subsections_via_symbols
