	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_map
_cache_map:                             ## @cache_map
	.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	%rsi, %r12
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_get_bio_block
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_init_per_bio_data
	movl	%r15d, %edi
	callq	_from_oblock
	movq	%rax, %rbx
	movl	4(%r14), %edi
	callq	_from_oblock
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_remap_to_origin
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_accounted_begin
	movq	_DM_MAPIO_REMAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movq	%r12, %rdi
	callq	_discard_or_flush
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_defer_bio
	movq	_DM_MAPIO_SUBMITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	leaq	-36(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_map_bio
	movl	%eax, %ebx
	cmpl	$0, -36(%rbp)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_schedule_commit
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_MAPIO_REMAPPED,4,2          ## @DM_MAPIO_REMAPPED
	.comm	_DM_MAPIO_SUBMITTED,4,2         ## @DM_MAPIO_SUBMITTED
	.no_dead_strip	_cache_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_map
_cache_map:                             ; @cache_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_get_bio_block
	mov	x21, x0
	mov	x0, x20
	bl	_init_per_bio_data
	mov	x0, x21
	bl	_from_oblock
	mov	x22, x0
	ldr	w0, [x19, #4]
	bl	_from_oblock
	cmp	x22, x0
	cset	w0, ge
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_remap_to_origin
	mov	x0, x19
	mov	x1, x20
	bl	_accounted_begin
Lloh0:
	adrp	x8, _DM_MAPIO_REMAPPED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_MAPIO_REMAPPED@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	bl	_discard_or_flush
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_defer_bio
Lloh3:
	adrp	x8, _DM_MAPIO_SUBMITTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DM_MAPIO_SUBMITTED@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_6
LBB0_4:
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_map_bio
	mov	x20, x0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_schedule_commit
LBB0_6:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_MAPIO_REMAPPED,4,2          ; @DM_MAPIO_REMAPPED
	.comm	_DM_MAPIO_SUBMITTED,4,2         ; @DM_MAPIO_SUBMITTED
	.no_dead_strip	_cache_map
.subsections_via_symbols
