	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function multipath_prepare_ioctl
_multipath_prepare_ioctl:               ## @multipath_prepare_ioctl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movl	16(%r12), %edi
	callq	_READ_ONCE
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_choose_pgpath
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	_MPATHF_QUEUE_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
LBB0_8:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_14
## %bb.9:
	movl	12(%r12), %edi
	callq	_READ_ONCE
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_choose_pgpath
LBB0_11:
	movq	_MPATHF_PG_INIT_REQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_pg_init_all_paths
LBB0_13:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_dm_table_run_md_queue_async
	movq	%r12, %rdi
	callq	_process_queued_io_list
LBB0_14:
	testl	%ebx, %ebx
	jne	LBB0_16
## %bb.15:
	movq	(%r15), %r15
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_i_size_read
	movq	%rax, %rdx
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarq	%cl, %rdx
	movl	$1, %eax
	cmpq	%rdx, %r15
	jne	LBB0_17
LBB0_16:
	movl	%ebx, %eax
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_MPATHF_QUEUE_IF_NO_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MPATHF_QUEUE_IO,4,2            ## @MPATHF_QUEUE_IO
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_MPATHF_QUEUE_IF_NO_PATH,4,2    ## @MPATHF_QUEUE_IF_NO_PATH
	.comm	_EIO,4,2                        ## @EIO
	.comm	_MPATHF_PG_INIT_REQUIRED,4,2    ## @MPATHF_PG_INIT_REQUIRED
	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
	.no_dead_strip	_multipath_prepare_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function multipath_prepare_ioctl
_multipath_prepare_ioctl:               ; @multipath_prepare_ioctl
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	w0, [x21, #16]
	bl	_READ_ONCE
	mov	x23, x0
Lloh0:
	adrp	x24, _ENOTCONN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ENOTCONN@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	w1, #0
	bl	_choose_pgpath
	mov	x23, x0
	cbz	x0, LBB0_16
LBB0_2:
Lloh2:
	adrp	x8, _MPATHF_QUEUE_IO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MPATHF_QUEUE_IO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x21, #8
	bl	_test_bit
	cbz	x0, LBB0_5
LBB0_3:
	ldr	w8, [x24]
LBB0_4:
	neg	w22, w8
	b	LBB0_6
LBB0_5:
	mov	w22, #0
	ldr	x8, [x23]
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_6:
	ldr	w8, [x24]
	cmn	w22, w8
	b.ne	LBB0_12
; %bb.7:
	ldr	w0, [x21, #12]
	bl	_READ_ONCE
	cbnz	x0, LBB0_9
; %bb.8:
	mov	x0, x21
	mov	w1, #0
	bl	_choose_pgpath
LBB0_9:
Lloh5:
	adrp	x8, _MPATHF_PG_INIT_REQUIRED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MPATHF_PG_INIT_REQUIRED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x21, #8
	bl	_test_bit
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_pg_init_all_paths
LBB0_11:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_dm_table_run_md_queue_async
	mov	x0, x21
	bl	_process_queued_io_list
LBB0_12:
	cbnz	w22, LBB0_15
; %bb.13:
	ldr	x20, [x20]
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_i_size_read
Lloh8:
	adrp	x8, _SECTOR_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SECTOR_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	asr	x8, x0, x8
	cmp	x20, x8
	b.eq	LBB0_15
; %bb.14:
	mov	w22, #1
LBB0_15:
	mov	x0, x22
	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_16:
Lloh11:
	adrp	x8, _MPATHF_QUEUE_IF_NO_PATH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MPATHF_QUEUE_IF_NO_PATH@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, x21, #8
	bl	_test_bit
	cbnz	x0, LBB0_3
; %bb.17:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MPATHF_QUEUE_IO,4,2            ; @MPATHF_QUEUE_IO
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_MPATHF_QUEUE_IF_NO_PATH,4,2    ; @MPATHF_QUEUE_IF_NO_PATH
	.comm	_EIO,4,2                        ; @EIO
	.comm	_MPATHF_PG_INIT_REQUIRED,4,2    ; @MPATHF_PG_INIT_REQUIRED
	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
	.no_dead_strip	_multipath_prepare_ioctl
.subsections_via_symbols
