	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_path
_parse_path:                            ## @parse_path
	.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, %r15
	cmpl	$0, (%rdi)
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	16(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_alloc_pgpath
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_dm_shift_arg
	movl	%eax, %ebx
	movl	8(%r15), %edi
	callq	_dm_table_get_mode
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_dm_get_device
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r15)
	jmp	LBB0_24
LBB0_1:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_25
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_25
LBB0_6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, 16(%rbx)
	jne	LBB0_9
## %bb.7:
	cmpq	$0, (%rbx)
	je	LBB0_8
LBB0_9:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_bdev_get_queue
	cmpq	$0, 16(%rbx)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.10:
	movq	%rax, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_scsi_dh_attached_handler_name
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_kfree
	movq	%r13, (%rbx)
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
	jmp	LBB0_13
LBB0_11:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_8:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_13:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_21
## %bb.14:
	movq	%rbx, %rdi
	callq	_scsi_dh_attach
	movl	%eax, %r13d
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	%r13d, %ecx
	addl	(%rax), %ecx
	jne	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_scsi_dh_detach
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_scsi_dh_attach
	movl	%eax, %r13d
LBB0_16:
	testl	%r13d, %r13d
	js	LBB0_17
## %bb.18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.19:
	movq	%rbx, %rdi
	callq	_scsi_dh_set_params
	testl	%eax, %eax
	js	LBB0_20
LBB0_21:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movl	(%r12), %edx
	movl	4(%r12), %ecx
	movq	%r14, %rsi
	movq	%r15, %r8
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_26
## %bb.22:
	movl	%eax, %r13d
	jmp	LBB0_23
LBB0_26:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r15)
	jmp	LBB0_23
LBB0_20:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	callq	_scsi_dh_detach
LBB0_23:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_dm_put_device
LBB0_24:
	movq	%r14, %rdi
	callq	_free_pgpath
LBB0_25:
	movl	%r13d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no device given"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"error getting device"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"error attaching hardware handler"

L_.str.3:                               ## @.str.3
	.asciz	"unable to set hardware handler parameters"

	.no_dead_strip	_parse_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_path
_parse_path:                            ; @parse_path
	.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	x20, x2
	ldr	w8, [x0]
	cmp	w8, #0
	b.le	LBB0_4
; %bb.1:
	mov	x21, x1
	mov	x22, x0
	ldr	x25, [x20, #16]
	bl	_alloc_pgpath
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	mov	x0, x22
	bl	_dm_shift_arg
	mov	x23, x0
	ldr	w0, [x20, #8]
	bl	_dm_table_get_mode
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	mov	x3, x19
	bl	_dm_get_device
	cbz	w0, LBB0_7
; %bb.3:
	mov	x24, x0
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x20]
	b	LBB0_24
LBB0_4:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x20]
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_25
LBB0_7:
	ldr	x8, [x25, #16]
	cbnz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x25]
	cbz	x8, LBB0_20
LBB0_9:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_bdev_get_queue
	mov	x23, x0
	ldr	x8, [x25, #16]
	cbz	x8, LBB0_12
; %bb.10:
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_scsi_dh_attached_handler_name
	cbz	x0, LBB0_12
; %bb.11:
	mov	x24, x0
	ldr	x0, [x25]
	bl	_kfree
	str	x24, [x25]
	ldr	x0, [x25, #8]
	bl	_kfree
	str	xzr, [x25, #8]
LBB0_12:
	ldr	x1, [x25]
	cbz	x1, LBB0_21
LBB0_13:
	mov	x0, x23
	bl	_scsi_dh_attach
	mov	x24, x0
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x23
	bl	_scsi_dh_detach
	ldr	x1, [x25]
	mov	x0, x23
	bl	_scsi_dh_attach
	mov	x24, x0
LBB0_15:
	tbnz	w24, #31, LBB0_19
; %bb.16:
	ldr	x1, [x25, #8]
	cbz	x1, LBB0_21
; %bb.17:
	mov	x0, x23
	bl	_scsi_dh_set_params
	tbz	w0, #31, LBB0_21
; %bb.18:
	mov	x24, x0
Lloh14:
	adrp	x8, l_.str.3@PAGE
Lloh15:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x20]
	mov	x0, x23
	bl	_scsi_dh_detach
	b	LBB0_23
LBB0_19:
Lloh16:
	adrp	x8, l_.str.2@PAGE
Lloh17:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x20]
	b	LBB0_23
LBB0_20:
	mov	x23, #0
	ldr	x1, [x25]
	cbnz	x1, LBB0_13
LBB0_21:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldp	w2, w3, [x22]
	mov	x0, x21
	mov	x1, x19
	mov	x4, x20
	blr	x8
	cbz	w0, LBB0_26
; %bb.22:
	mov	x24, x0
LBB0_23:
	ldr	x1, [x19]
	mov	x0, x20
	bl	_dm_put_device
LBB0_24:
	mov	x0, x19
	bl	_free_pgpath
LBB0_25:
	mov	x0, x24
	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
	b	_ERR_PTR
LBB0_26:
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no device given"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"error getting device"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"error attaching hardware handler"

l_.str.3:                               ; @.str.3
	.asciz	"unable to set hardware handler parameters"

	.no_dead_strip	_parse_path
.subsections_via_symbols
