	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mirror_map
_mirror_map:                            ## @mirror_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	%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	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_bio_data_dir
	movl	%eax, %r14d
	movq	(%rbx), %r12
	movl	(%r12), %edi
	callq	_dm_rh_dirty_log
	movq	%rax, %r15
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_dm_per_bio_data
	movq	%rax, %rbx
	movq	$0, 8(%rax)
	movq	_WRITE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_3
## %bb.1:
	movl	(%r12), %edi
	movq	%r13, %rsi
	callq	_dm_rh_bio_to_region
	movl	%eax, 16(%rbx)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
LBB0_2:
	callq	_queue_bio
	movq	_DM_MAPIO_SUBMITTED@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_3:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movq	(%rax), %rbx
	movl	(%r12), %edi
	movq	%r13, %rsi
	callq	_dm_rh_bio_to_region
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	*%rbx
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	je	LBB0_8
## %bb.5:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	subl	(%rcx), %r14d
	jmp	LBB0_7
LBB0_6:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r14d
	cmpl	%r14d, %eax
	jne	LBB0_13
LBB0_7:
	cmpl	%r14d, %eax
	jne	LBB0_10
LBB0_8:
	movq	_REQ_RAHEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	jne	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_2
LBB0_10:
	movl	4(%r13), %esi
	movq	%r12, %rdi
	callq	_choose_mirror
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	movq	_DM_MAPIO_KILL@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	addq	$8, %rdi
	movq	%r13, %rsi
	callq	_dm_bio_record
	movq	%rbx, (%r14)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_map_bio
	movq	_DM_MAPIO_REMAPPED@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE,4,2                      ## @WRITE
	.comm	_DM_MAPIO_SUBMITTED,4,2         ## @DM_MAPIO_SUBMITTED
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_DM_MAPIO_KILL,4,2              ## @DM_MAPIO_KILL
	.comm	_REQ_RAHEAD,4,2                 ## @REQ_RAHEAD
	.comm	_DM_MAPIO_REMAPPED,4,2          ## @DM_MAPIO_REMAPPED
	.no_dead_strip	_mirror_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mirror_map
_mirror_map:                            ; @mirror_map
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_bio_data_dir
	mov	x20, x0
	ldr	x21, [x21]
	ldr	w0, [x21]
	bl	_dm_rh_dirty_log
	mov	x24, x0
	mov	x0, x19
	mov	w1, #24
	bl	_dm_per_bio_data
	mov	x22, x0
	mov	x23, x0
	str	xzr, [x23, #8]!
Lloh0:
	adrp	x8, _WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_dm_rh_bio_to_region
	str	w0, [x22, #16]
LBB0_2:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_queue_bio
Lloh3:
	adrp	x8, _DM_MAPIO_SUBMITTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DM_MAPIO_SUBMITTED@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	ldr	x8, [x24]
	ldr	x25, [x8]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_dm_rh_bio_to_region
	mov	x1, x0
	mov	x0, x24
	mov	w2, #0
	blr	x25
	tbnz	w0, #31, LBB0_6
; %bb.4:
	cbz	w0, LBB0_8
; %bb.5:
Lloh5:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_10
LBB0_7:
	neg	w8, w8
	cmp	w0, w8
	b.ne	LBB0_9
LBB0_8:
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _REQ_RAHEAD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _REQ_RAHEAD@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
	b	LBB0_2
LBB0_9:
	ldr	w1, [x19, #4]
	mov	x0, x21
	bl	_choose_mirror
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_12
LBB0_10:
Lloh14:
	adrp	x8, _DM_MAPIO_KILL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DM_MAPIO_KILL@GOTPAGEOFF]
LBB0_11:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x23
	mov	x1, x19
	bl	_dm_bio_record
	str	x20, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_map_bio
Lloh16:
	adrp	x8, _DM_MAPIO_REMAPPED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DM_MAPIO_REMAPPED@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITE,4,2                      ; @WRITE
	.comm	_DM_MAPIO_SUBMITTED,4,2         ; @DM_MAPIO_SUBMITTED
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_DM_MAPIO_KILL,4,2              ; @DM_MAPIO_KILL
	.comm	_REQ_RAHEAD,4,2                 ; @REQ_RAHEAD
	.comm	_DM_MAPIO_REMAPPED,4,2          ; @DM_MAPIO_REMAPPED
	.no_dead_strip	_mirror_map
.subsections_via_symbols
