	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_bio_rw
	movl	%eax, %r13d
	movq	(%r14), %rbx
	movl	4(%rbx), %edi
	callq	_dm_rh_dirty_log
	movq	%rax, %r14
	movq	_WRITE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_2
## %bb.1:
	movl	4(%rbx), %edi
	movq	%r15, %rsi
	callq	_dm_rh_bio_to_region
	movl	%eax, (%r12)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	jmp	LBB0_11
LBB0_2:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	callq	_dm_rh_bio_to_region
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	je	LBB0_7
## %bb.5:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	subl	(%rcx), %ebx
	cmpl	%ebx, %eax
	jne	LBB0_18
LBB0_6:
	cmpl	%ebx, %eax
	jne	LBB0_12
LBB0_7:
	movq	_READA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_10
## %bb.8:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_12:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_choose_mirror
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_11:
	movl	%r13d, %edx
	callq	_queue_bio
	movq	_DM_MAPIO_SUBMITTED@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	(%rbx), %edi
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mempool_alloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	addq	$8, %rdi
	movq	%r15, %rsi
	callq	_dm_bio_record
	movq	%r14, (%r12)
	movq	%r13, (%r14)
LBB0_16:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_map_bio
	movq	_DM_MAPIO_REMAPPED@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE,4,2                      ## @WRITE
	.comm	_DM_MAPIO_SUBMITTED,4,2         ## @DM_MAPIO_SUBMITTED
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_READA,4,2                      ## @READA
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_bio_rw
	mov	x22, x0
	ldr	x21, [x21]
	ldr	w0, [x21, #4]
	bl	_dm_rh_dirty_log
Lloh0:
	adrp	x8, _WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x21, #4]
	mov	x1, x19
	bl	_dm_rh_bio_to_region
	str	w0, [x20]
	b	LBB0_9
LBB0_2:
	mov	x23, x0
	ldr	x8, [x0]
	ldr	x24, [x8]
	ldr	w0, [x21, #4]
	mov	x1, x19
	bl	_dm_rh_bio_to_region
	mov	x1, x0
	mov	x0, x23
	mov	w2, #0
	blr	x24
	tbnz	w0, #31, LBB0_5
; %bb.3:
	cbz	w0, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_14
LBB0_6:
	neg	w8, w8
	cmp	w0, w8
	b.ne	LBB0_11
LBB0_7:
Lloh9:
	adrp	x8, _READA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _READA@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_9
; %bb.8:
Lloh12:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_queue_bio
Lloh14:
	adrp	x8, _DM_MAPIO_SUBMITTED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DM_MAPIO_SUBMITTED@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_11:
	ldr	w1, [x19]
	mov	x0, x21
	bl	_choose_mirror
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.12:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	w0, [x21]
Lloh18:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_mempool_alloc
	mov	x21, x0
	bl	_likely
	cbz	x0, LBB0_17
; %bb.16:
	add	x0, x21, #8
	mov	x1, x19
	bl	_dm_bio_record
	str	x21, [x20]
	str	x22, [x21]
LBB0_17:
	mov	x0, x22
	mov	x1, x19
	bl	_map_bio
Lloh21:
	adrp	x8, _DM_MAPIO_REMAPPED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DM_MAPIO_REMAPPED@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITE,4,2                      ; @WRITE
	.comm	_DM_MAPIO_SUBMITTED,4,2         ; @DM_MAPIO_SUBMITTED
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_READA,4,2                      ; @READA
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	_DM_MAPIO_REMAPPED,4,2          ; @DM_MAPIO_REMAPPED
	.no_dead_strip	_mirror_map
.subsections_via_symbols
