	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_bio
_map_bio:                               ## @map_bio
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	$0, (%rcx)
	movl	%edx, %esi
	movq	%r14, %rdx
	callq	_bio_detain_shared
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_bio_data_dir
	movl	%eax, %ebx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_optimisable_bio
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	$0, -56(%rbp)
	movl	8(%r13), %edi
	leaq	-44(%rbp), %rdx
	leaq	-56(%rbp), %r9
	movl	%r12d, %esi
	movl	%ebx, %ecx
	movl	$1, %r8d
	callq	_policy_lookup_with_work
	movl	%eax, %ebx
	testl	%eax, %eax
	setne	%al
	movq	_ENOENT@GOTPCREL(%rip), %r15
	movl	%ebx, %ecx
	addl	(%r15), %ecx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%r13, %rdi
	callq	_cache_device_name
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_5:
	movl	8(%r13), %edi
	leaq	-44(%rbp), %rdx
	leaq	-56(%rbp), %r9
	movl	%r12d, %esi
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_policy_lookup
	movl	%eax, %ebx
	testl	%eax, %eax
	setne	%al
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	movl	%ebx, %edx
	addl	(%rcx), %edx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	%r13, %rdi
	callq	_cache_device_name
	leaq	L_.str.1(%rip), %rdi
LBB0_7:
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_DMERR_LIMIT
	movq	%r14, %rdi
	callq	_bio_io_error
	jmp	LBB0_8
LBB0_10:
	movl	(%r15), %eax
	addl	%ebx, %eax
	jne	LBB0_15
## %bb.11:
	cmpq	$0, -56(%rbp)
	je	LBB0_15
## %bb.12:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_bio_drop_shared_lock
	movq	-56(%rbp), %rax
	movq	(%rax), %rax
	movq	_POLICY_PROMOTE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_BUG_ON
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_mg_start
	jmp	LBB0_8
LBB0_13:
	cmpl	$0, -56(%rbp)
	je	LBB0_16
## %bb.14:
	movq	%r13, %rdi
	callq	_wake_migration_worker
	jmp	LBB0_16
LBB0_15:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_16:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	jne	LBB0_19
## %bb.17:
	movq	%r14, %rdi
	callq	_get_per_bio_data
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_inc_miss_counter
	cmpq	$0, (%rbx)
	je	LBB0_22
## %bb.18:
	movq	%r14, %rdi
	callq	_bio_endio
	jmp	LBB0_8
LBB0_19:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_inc_hit_counter
	movq	%r13, %rdi
	callq	_passthrough_mode
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_bio_data_dir
	movq	_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.20:
	cmpl	%ecx, %eax
	jne	LBB0_23
## %bb.21:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_bio_drop_shared_lock
	leaq	4(%r13), %rdi
	callq	_atomic_inc
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	movq	%r14, %rcx
	callq	_invalidate_start
	jmp	LBB0_28
LBB0_22:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_accounted_begin
LBB0_23:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_remap_to_origin_clear_discard
	jmp	LBB0_28
LBB0_24:
	cmpl	%ecx, %eax
	jne	LBB0_27
## %bb.25:
	movq	%r13, %rdi
	callq	_writethrough_mode
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_is_dirty
	testl	%eax, %eax
	je	LBB0_31
LBB0_27:
	movl	-44(%rbp), %ecx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_remap_to_cache_dirty
LBB0_28:
	movq	_REQ_FUA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_30
## %bb.29:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_accounted_complete
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_issue_after_commit
LBB0_4:
	movl	$1, (%r15)
LBB0_8:
	movq	_DM_MAPIO_SUBMITTED@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	_DM_MAPIO_REMAPPED@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_31:
	movl	-44(%rbp), %ecx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_remap_to_origin_and_cache
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_accounted_begin
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_MAPIO_SUBMITTED,4,2         ## @DM_MAPIO_SUBMITTED
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: policy_lookup_with_work() failed with r = %d"

	.comm	_POLICY_PROMOTE,8,3             ## @POLICY_PROMOTE
L_.str.1:                               ## @.str.1
	.asciz	"%s: policy_lookup() failed with r = %d"

	.comm	_WRITE,4,2                      ## @WRITE
	.comm	_REQ_FUA,4,2                    ## @REQ_FUA
	.comm	_DM_MAPIO_REMAPPED,4,2          ## @DM_MAPIO_REMAPPED
	.no_dead_strip	_map_bio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_bio
_map_bio:                               ; @map_bio
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	str	wzr, [x3]
	mov	x1, x2
	mov	x2, x19
	bl	_bio_detain_shared
	cbz	w0, LBB0_25
; %bb.1:
	mov	x0, x19
	bl	_bio_data_dir
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_optimisable_bio
	cbz	x0, LBB0_4
; %bb.2:
	str	xzr, [sp]
	ldr	w0, [x20, #8]
	add	x2, sp, #12
	mov	x5, sp
	mov	x1, x22
	mov	x3, x23
	mov	w4, #1
	bl	_policy_lookup_with_work
	mov	x23, x0
Lloh0:
	adrp	x24, _ENOENT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ENOENT@GOTPAGEOFF]
	ldr	w8, [x24]
	cmn	w0, w8
	ccmp	w0, #0, #4, ne
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_cache_device_name
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	w0, [x20, #8]
	add	x2, sp, #12
	mov	x5, sp
	mov	x1, x22
	mov	x3, x23
	mov	w4, #0
	bl	_policy_lookup
	mov	x23, x0
Lloh4:
	adrp	x8, _ENOENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmn	w0, w8
	ccmp	w0, #0, #4, ne
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x20
	bl	_cache_device_name
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	mov	x2, x23
	bl	_DMERR_LIMIT
	mov	x0, x19
	bl	_bio_io_error
	b	LBB0_26
LBB0_7:
	ldr	w8, [x24]
	ldr	x9, [sp]
	cmn	w23, w8
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_11
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	bl	_bio_drop_shared_lock
	ldr	x8, [sp]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _POLICY_PROMOTE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _POLICY_PROMOTE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUG_ON
	ldr	x1, [sp]
	mov	x0, x20
	mov	x2, x19
	bl	_mg_start
	b	LBB0_26
LBB0_9:
	ldr	w8, [sp]
	cbz	w8, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_wake_migration_worker
LBB0_11:
Lloh12:
	adrp	x8, _ENOENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w23, w8
	b.ne	LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_get_per_bio_data
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	bl	_inc_miss_counter
	ldr	x8, [x23]
	cbz	x8, LBB0_17
; %bb.13:
	mov	x0, x19
	bl	_bio_endio
	b	LBB0_26
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_inc_hit_counter
	mov	x0, x20
	bl	_passthrough_mode
	mov	x23, x0
	mov	x0, x19
	bl	_bio_data_dir
Lloh15:
	adrp	x8, _WRITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	cbz	x23, LBB0_19
; %bb.15:
	b.ne	LBB0_18
; %bb.16:
	mov	x0, x20
	mov	x1, x19
	bl	_bio_drop_shared_lock
	add	x0, x20, #4
	bl	_atomic_inc
	ldr	w1, [sp, #12]
	mov	x0, x20
	mov	x2, x22
	mov	x3, x19
	bl	_invalidate_start
	b	LBB0_23
LBB0_17:
	mov	x0, x20
	mov	x1, x19
	bl	_accounted_begin
LBB0_18:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_remap_to_origin_clear_discard
	b	LBB0_23
LBB0_19:
	b.ne	LBB0_22
; %bb.20:
	mov	x0, x20
	bl	_writethrough_mode
	cbz	x0, LBB0_22
; %bb.21:
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_is_dirty
	cbz	w0, LBB0_29
LBB0_22:
	ldr	w3, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_remap_to_cache_dirty
LBB0_23:
	ldr	w8, [x19]
Lloh18:
	adrp	x9, _REQ_FUA@GOTPAGE
Lloh19:
	ldr	x9, [x9, _REQ_FUA@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.24:
	mov	x0, x20
	mov	x1, x19
	bl	_accounted_complete
	mov	x0, x20
	mov	x1, x19
	bl	_issue_after_commit
LBB0_25:
	mov	w8, #1
	str	w8, [x21]
LBB0_26:
Lloh21:
	adrp	x8, _DM_MAPIO_SUBMITTED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DM_MAPIO_SUBMITTED@GOTPAGEOFF]
LBB0_27:
	ldr	w0, [x8]
	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
LBB0_28:
Lloh23:
	adrp	x8, _DM_MAPIO_REMAPPED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DM_MAPIO_REMAPPED@GOTPAGEOFF]
	b	LBB0_27
LBB0_29:
	ldr	w3, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_remap_to_origin_and_cache
	mov	x0, x20
	mov	x1, x19
	bl	_accounted_begin
	b	LBB0_23
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_MAPIO_SUBMITTED,4,2         ; @DM_MAPIO_SUBMITTED
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: policy_lookup_with_work() failed with r = %d"

	.comm	_POLICY_PROMOTE,8,3             ; @POLICY_PROMOTE
l_.str.1:                               ; @.str.1
	.asciz	"%s: policy_lookup() failed with r = %d"

	.comm	_WRITE,4,2                      ; @WRITE
	.comm	_REQ_FUA,4,2                    ; @REQ_FUA
	.comm	_DM_MAPIO_REMAPPED,4,2          ; @DM_MAPIO_REMAPPED
	.no_dead_strip	_map_bio
.subsections_via_symbols
