	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rsi), %r12
	callq	_dm_shift_arg
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	callq	_dm_table_get_mode
	movq	(%r12), %rcx
	movq	8(%r12), %rdx
	shlq	$4, %rcx
	addq	%rdx, %rcx
	addq	$8, %rcx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_dm_get_device
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rbx)
	jmp	LBB0_5
LBB0_2:
	movq	%r14, %rdi
	callq	_dm_shift_arg
	leaq	-40(%rbp), %rdx
	movl	%eax, %edi
	movl	$10, %esi
	callq	_kstrtoull
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rbx)
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	shlq	$4, %rax
	movl	8(%rcx,%rax), %esi
	movq	%rbx, %rdi
	callq	_dm_put_device
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	movq	-40(%rbp), %rax
	movq	(%r12), %rcx
	movq	8(%r12), %rdx
	movq	%rcx, %rsi
	shlq	$4, %rsi
	movq	%rax, (%rdx,%rsi)
	incq	%rcx
	movq	%rcx, (%r12)
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device lookup failed"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid device starting offset"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.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:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x1, #16]
	bl	_dm_shift_arg
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_dm_table_get_mode
	mov	x2, x0
	ldp	x9, x8, [x22]
	add	x8, x8, x9, lsl #4
	add	x3, x8, #8
	mov	x0, x19
	mov	x1, x21
	bl	_dm_get_device
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19]
	b	LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_dm_shift_arg
	add	x2, sp, #8
	mov	w1, #10
	bl	_kstrtoull
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x19]
	ldp	x9, x8, [x22]
	add	x8, x8, x9, lsl #4
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_dm_put_device
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	ldr	x8, [sp, #8]
	ldp	x10, x9, [x22]
	lsl	x11, x10, #4
	str	x8, [x9, x11]
	add	x8, x10, #1
	str	x8, [x22]
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device lookup failed"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid device starting offset"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_parse_path
.subsections_via_symbols
