	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_io
_map_io:                                ## @map_io
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_DM_MAPIO_REMAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rsi, %rdi
	callq	_blk_rq_bytes
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	56(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.1:
	cmpq	$0, 16(%rbx)
	jne	LBB0_5
## %bb.2:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	decq	%rax
	movq	%rax, (%rbx)
	jne	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	___choose_pgpath
	movq	56(%rbx), %r13
LBB0_5:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	decl	40(%rbx)
LBB0_7:
	testq	%r13, %r13
	je	LBB0_10
## %bb.8:
	cmpq	$0, 16(%rbx)
	jne	LBB0_11
## %bb.9:
	movq	(%r13), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_bdev_get_queue
	movl	%eax, 4(%r14)
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_20
LBB0_10:
	cmpq	$0, 48(%rbx)
	je	LBB0_17
LBB0_11:
	addq	$8, %r14
	leaq	44(%rbx), %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	incl	40(%rbx)
	cmpq	$0, 32(%rbx)
	je	LBB0_13
## %bb.12:
	cmpl	$0, 24(%rbx)
	je	LBB0_14
LBB0_13:
	cmpq	$0, 16(%rbx)
	jne	LBB0_15
LBB0_14:
	movq	_kmultipathd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$12, %rbx
	movq	%rbx, %rsi
	callq	_queue_work
LBB0_15:
	movq	_DM_MAPIO_SUBMITTED@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %r12d
	xorl	%r13d, %r13d
LBB0_20:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	_DM_MAPIO_REMAPPED@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, 8(%rdx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rdx)
	cmpl	(%rcx), %r12d
	jne	LBB0_23
## %bb.21:
	movq	8(%r13), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	*%rax
LBB0_23:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%rbx, %rdi
	callq	___must_push_back
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	_DM_MAPIO_REQUEUE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_19:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_MAPIO_REMAPPED,4,2          ## @DM_MAPIO_REMAPPED
	.comm	_kmultipathd,4,2                ## @kmultipathd
	.comm	_DM_MAPIO_SUBMITTED,4,2         ## @DM_MAPIO_SUBMITTED
	.comm	_DM_MAPIO_REQUEUE,4,2           ## @DM_MAPIO_REQUEUE
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_map_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_io
_map_io:                                ; @map_io
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x3
	mov	x19, x2
	mov	x24, x1
	mov	x23, x0
Lloh0:
	adrp	x26, _DM_MAPIO_REMAPPED@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DM_MAPIO_REMAPPED@GOTPAGEOFF]
	ldr	w21, [x26]
	mov	x0, x1
	bl	_blk_rq_bytes
	mov	x20, x0
	ldr	x27, [x19]
	add	x19, x23, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x22, [x23, #56]
	cbz	x22, LBB0_4
; %bb.1:
	ldr	x8, [x23, #16]
	cbnz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x23]
	cbz	x8, LBB0_5
; %bb.3:
	subs	x8, x8, #1
	str	x8, [x23]
	b.ne	LBB0_5
LBB0_4:
	mov	x0, x23
	mov	x1, x20
	bl	___choose_pgpath
	ldr	x22, [x23, #56]
LBB0_5:
	cbz	w25, LBB0_7
; %bb.6:
	ldr	w8, [x23, #40]
	sub	w8, w8, #1
	str	w8, [x23, #40]
LBB0_7:
	cbz	x22, LBB0_10
; %bb.8:
	ldr	x8, [x23, #16]
	cbnz	x8, LBB0_11
; %bb.9:
	ldr	x8, [x22]
	ldr	x23, [x8]
	mov	x0, x23
	bl	_bdev_get_queue
	ldr	w8, [x23]
	stp	w8, w0, [x24]
	b	LBB0_17
LBB0_10:
	ldr	x8, [x23, #48]
	cbz	x8, LBB0_21
LBB0_11:
	add	x0, x24, #8
	add	x1, x23, #44
	bl	_list_add_tail
	ldr	w8, [x23, #40]
	add	w8, w8, #1
	str	w8, [x23, #40]
	ldr	x8, [x23, #32]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	w8, [x23, #24]
	cbz	w8, LBB0_14
LBB0_13:
	ldr	x8, [x23, #16]
	cbnz	x8, LBB0_15
LBB0_14:
Lloh2:
	adrp	x8, _kmultipathd@GOTPAGE
Lloh3:
	ldr	x8, [x8, _kmultipathd@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x23, #12
	bl	_queue_work
LBB0_15:
	mov	x22, #0
Lloh5:
	adrp	x8, _DM_MAPIO_SUBMITTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DM_MAPIO_SUBMITTED@GOTPAGEOFF]
LBB0_16:
	ldr	w21, [x8]
LBB0_17:
	stp	x20, x22, [x27]
	ldr	w8, [x26]
	cmp	w21, w8
	b.ne	LBB0_20
; %bb.18:
	ldr	x0, [x22, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.19:
	mov	x1, x22
	mov	x2, x20
	blr	x8
LBB0_20:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	mov	x0, x23
	bl	___must_push_back
	mov	x22, #0
	cbz	x0, LBB0_23
; %bb.22:
Lloh7:
	adrp	x8, _DM_MAPIO_REQUEUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DM_MAPIO_REQUEUE@GOTPAGEOFF]
	b	LBB0_16
LBB0_23:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_MAPIO_REMAPPED,4,2          ; @DM_MAPIO_REMAPPED
	.comm	_kmultipathd,4,2                ; @kmultipathd
	.comm	_DM_MAPIO_SUBMITTED,4,2         ; @DM_MAPIO_SUBMITTED
	.comm	_DM_MAPIO_REQUEUE,4,2           ; @DM_MAPIO_REQUEUE
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_map_io
.subsections_via_symbols
