	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_prepared_mapping
_process_prepared_mapping:              ## @process_prepared_mapping
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %r15
	movq	(%r15), %r14
	cmpq	$0, 24(%rdi)
	jne	LBB0_1
## %bb.2:
	movq	32(%rbx), %r12
	movl	8(%r15), %edi
	movl	4(%rbx), %edx
	movl	16(%rbx), %esi
	callq	_dm_thin_insert_block
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_metadata_operation_failed
LBB0_1:
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_cell_error
LBB0_7:
	movq	%rbx, %rdi
	callq	_list_del
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mempool_free                   ## TAILCALL
LBB0_4:
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:
	movq	8(%rbx), %rsi
	movl	4(%rbx), %edx
	movq	%r15, %rdi
	callq	_inc_remap_and_issue_cell
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_complete_overwrite_bio
	jmp	LBB0_7
LBB0_6:
	movq	(%r15), %rdi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	callq	_inc_all_io_entry
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%r15, %rdi
	callq	_remap_and_issue
	movq	8(%rbx), %rsi
	movl	4(%rbx), %edx
	movq	%r15, %rdi
	callq	_inc_remap_and_issue_cell
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dm_thin_insert_block"

	.no_dead_strip	_process_prepared_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_prepared_mapping
_process_prepared_mapping:              ; @process_prepared_mapping
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x21, [x0, #40]
	ldr	x20, [x21]
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x22, [x19, #32]
	ldr	w0, [x21, #8]
	ldr	w1, [x19, #16]
	ldr	w2, [x19, #4]
	bl	_dm_thin_insert_block
	cbz	w0, LBB0_5
; %bb.2:
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_metadata_operation_failed
LBB0_3:
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_cell_error
LBB0_4:
	mov	x0, x19
	bl	_list_del
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mempool_free
LBB0_5:
	cbz	x22, LBB0_7
; %bb.6:
	ldr	x1, [x19, #8]
	ldr	w2, [x19, #4]
	mov	x0, x21
	bl	_inc_remap_and_issue_cell
	mov	x0, x21
	mov	x1, x22
	bl	_complete_overwrite_bio
	b	LBB0_4
LBB0_7:
	ldr	x0, [x21]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	bl	_inc_all_io_entry
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	x0, x21
	bl	_remap_and_issue
	ldr	x1, [x19, #8]
	ldr	w2, [x19, #4]
	mov	x0, x21
	bl	_inc_remap_and_issue_cell
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dm_thin_insert_block"

	.no_dead_strip	_process_prepared_mapping
.subsections_via_symbols
