	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function multipath_clone_and_map
_multipath_clone_and_map:               ## @multipath_clone_and_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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	(%rdi), %r15
	movq	%rsi, %rdi
	callq	_blk_rq_bytes
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_get_mpio
	movq	%rax, %rbx
	movl	8(%r15), %edi
	callq	_READ_ONCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r12
	movq	_MPATHF_QUEUE_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_choose_pgpath
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_8
LBB0_3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_MPATHF_QUEUE_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r15), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_MPATHF_PG_INIT_REQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_10
LBB0_5:
	movq	%r15, %rdi
	callq	_pg_init_all_paths
LBB0_6:
	movq	_DM_MAPIO_DELAY_REQUEUE@GOTPCREL(%rip), %rbx
LBB0_7:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	callq	_must_push_back_rq
	testq	%rax, %rax
	jne	LBB0_6
## %bb.13:
	movq	%r15, %rdi
	callq	_dm_report_EIO
	movq	_DM_MAPIO_KILL@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_10:
	movq	%r12, 8(%rbx)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, (%rbx)
	movq	(%r12), %rax
	movq	(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_bdev_get_queue
	movq	%rax, %rbx
	movq	_REQ_NOMERGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r13), %esi
	movq	_BLK_MQ_REQ_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_blk_get_request
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	%rbx, %rdi
	callq	_blk_queue_dying
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movq	%r15, %rdi
	callq	_atomic_inc
	movq	%r12, %rdi
	callq	_activate_or_offline_path
	jmp	LBB0_6
LBB0_14:
	movq	$0, 8(%r13)
	movl	$0, 16(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	_REQ_FAILFAST_TRANSPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	movq	8(%r12), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_DM_MAPIO_REMAPPED@GOTPCREL(%rip), %rbx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.15:
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	*%rcx
	jmp	LBB0_7
LBB0_16:
	movq	_DM_MAPIO_REQUEUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MPATHF_QUEUE_IO,4,2            ## @MPATHF_QUEUE_IO
	.comm	_DM_MAPIO_DELAY_REQUEUE,4,2     ## @DM_MAPIO_DELAY_REQUEUE
	.comm	_DM_MAPIO_KILL,4,2              ## @DM_MAPIO_KILL
	.comm	_MPATHF_PG_INIT_REQUIRED,4,2    ## @MPATHF_PG_INIT_REQUIRED
	.comm	_REQ_NOMERGE,4,2                ## @REQ_NOMERGE
	.comm	_BLK_MQ_REQ_NOWAIT,4,2          ## @BLK_MQ_REQ_NOWAIT
	.comm	_DM_MAPIO_REQUEUE,4,2           ## @DM_MAPIO_REQUEUE
	.comm	_REQ_FAILFAST_TRANSPORT,4,2     ## @REQ_FAILFAST_TRANSPORT
	.comm	_DM_MAPIO_REMAPPED,4,2          ## @DM_MAPIO_REMAPPED
	.no_dead_strip	_multipath_clone_and_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function multipath_clone_and_map
_multipath_clone_and_map:               ; @multipath_clone_and_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	x21, x3
	mov	x22, x2
	mov	x23, x1
	ldr	x19, [x0]
	mov	x0, x1
	bl	_blk_rq_bytes
	mov	x20, x0
	mov	x0, x22
	bl	_get_mpio
	mov	x24, x0
	ldr	w0, [x19, #8]
	bl	_READ_ONCE
Lloh0:
	adrp	x25, _MPATHF_QUEUE_IO@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MPATHF_QUEUE_IO@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	ldr	w0, [x25]
	add	x1, x19, #4
	bl	_test_bit
	cbnz	x0, LBB0_3
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_choose_pgpath
	mov	x22, x0
	cbz	x0, LBB0_8
LBB0_3:
	ldr	w0, [x25]
	add	x25, x19, #4
	mov	x1, x25
	bl	_test_bit
	cbnz	x0, LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _MPATHF_PG_INIT_REQUIRED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MPATHF_PG_INIT_REQUIRED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x25
	bl	_test_bit
	cbz	x0, LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_pg_init_all_paths
LBB0_6:
Lloh5:
	adrp	x8, _DM_MAPIO_DELAY_REQUEUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DM_MAPIO_DELAY_REQUEUE@GOTPAGEOFF]
LBB0_7:
	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_8:
	mov	x0, x19
	bl	_must_push_back_rq
	cbnz	x0, LBB0_6
; %bb.9:
	mov	x0, x19
	bl	_dm_report_EIO
Lloh7:
	adrp	x8, _DM_MAPIO_KILL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DM_MAPIO_KILL@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
	stp	x20, x22, [x24]
	ldr	x8, [x22]
	ldr	x24, [x8]
	mov	x0, x24
	bl	_bdev_get_queue
	mov	x25, x0
Lloh9:
	adrp	x8, _REQ_NOMERGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REQ_NOMERGE@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh11:
	ldr	w8, [x8]
	orr	w1, w8, w9
Lloh12:
	adrp	x8, _BLK_MQ_REQ_NOWAIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BLK_MQ_REQ_NOWAIT@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_blk_get_request
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.11:
	mov	x0, x25
	bl	_blk_queue_dying
	cbz	x0, LBB0_16
; %bb.12:
	mov	x0, x19
	bl	_atomic_inc
	mov	x0, x22
	bl	_activate_or_offline_path
	b	LBB0_6
LBB0_13:
	str	xzr, [x23, #8]
	str	wzr, [x23, #16]
	ldr	w8, [x24]
Lloh15:
	adrp	x9, _REQ_FAILFAST_TRANSPORT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _REQ_FAILFAST_TRANSPORT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldr	w10, [x23]
	orr	w9, w10, w9
	stp	w9, w8, [x23]
	str	x23, [x21]
	ldr	x0, [x22, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x1, x22
	mov	x2, x20
	blr	x8
LBB0_15:
Lloh18:
	adrp	x8, _DM_MAPIO_REMAPPED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DM_MAPIO_REMAPPED@GOTPAGEOFF]
	b	LBB0_7
LBB0_16:
Lloh20:
	adrp	x8, _DM_MAPIO_REQUEUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DM_MAPIO_REQUEUE@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MPATHF_QUEUE_IO,4,2            ; @MPATHF_QUEUE_IO
	.comm	_DM_MAPIO_DELAY_REQUEUE,4,2     ; @DM_MAPIO_DELAY_REQUEUE
	.comm	_DM_MAPIO_KILL,4,2              ; @DM_MAPIO_KILL
	.comm	_MPATHF_PG_INIT_REQUIRED,4,2    ; @MPATHF_PG_INIT_REQUIRED
	.comm	_REQ_NOMERGE,4,2                ; @REQ_NOMERGE
	.comm	_BLK_MQ_REQ_NOWAIT,4,2          ; @BLK_MQ_REQ_NOWAIT
	.comm	_DM_MAPIO_REQUEUE,4,2           ; @DM_MAPIO_REQUEUE
	.comm	_REQ_FAILFAST_TRANSPORT,4,2     ; @REQ_FAILFAST_TRANSPORT
	.comm	_DM_MAPIO_REMAPPED,4,2          ; @DM_MAPIO_REMAPPED
	.no_dead_strip	_multipath_clone_and_map
.subsections_via_symbols
