	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ufs_checkpath                  ## -- Begin function ufs_checkpath
	.p2align	4, 0x90
_ufs_checkpath:                         ## @ufs_checkpath
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_ITOV
	movq	%r13, %rsi
	movq	%rax, %r13
	movq	(%rax), %rdx
	movq	$0, (%rsi)
	movq	(%rbx), %rax
	cmpq	%r14, %rax
	jne	LBB0_2
## %bb.1:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_12
LBB0_2:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %rcx
	xorl	%r12d, %r12d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rax
	je	LBB0_12
## %bb.3:
	movq	_UFS_ROOTINO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.4:
	movq	%rsi, %rbx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ufs_dir_dd_ino
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	movl	%eax, %r12d
	movq	%r13, %rbx
LBB0_6:
	movq	_ENOTDIR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_panic
LBB0_8:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_vput
LBB0_10:
	cmpq	%r13, %rbx
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_vput
LBB0_12:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rbx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_ufs_dir_dd_ino
	testl	%eax, %eax
	jne	LBB0_25
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r14
	movq	-56(%rbp), %r13
	cmpq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%r12d, %r12d
	cmpq	-80(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_27
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_UFS_ROOTINO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_27
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rbx, %r12
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	_LK_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LK_SHARED@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	leaq	-48(%rbp), %rcx
	callq	_VFS_VGET
	movq	-56(%rbp), %r13
	testl	%eax, %eax
	jne	LBB0_28
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rbx, %r12
	movq	-48(%rbp), %rdi
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=1
	callq	_VTOI
	xorl	%ebx, %ebx
	cmpq	(%rax), %r13
	sete	%bl
	movq	-48(%rbp), %rdi
	callq	_VTOI
	movslq	(%rax), %rsi
	movl	%ebx, %edi
	callq	_KASSERT
	movq	%r14, %r13
	cmpq	%r14, %r12
	je	LBB0_14
## %bb.23:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %rdi
	callq	_vput
	jmp	LBB0_14
LBB0_24:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %r13
	jmp	LBB0_6
LBB0_27:
	movq	%r14, %r13
	jmp	LBB0_6
LBB0_25:
	movl	%eax, %r12d
	jmp	LBB0_6
LBB0_28:
	movl	%eax, %r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	movq	%r14, %r13
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_UFS_ROOTINO,8,3                ## @UFS_ROOTINO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LK_SHARED,4,2                  ## @LK_SHARED
	.comm	_LK_NOWAIT,4,2                  ## @LK_NOWAIT
	.comm	_ENOTDIR,4,2                    ## @ENOTDIR
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"checkpath: .. not a directory\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ufs_checkpath                  ; -- Begin function ufs_checkpath
	.p2align	2
_ufs_checkpath:                         ; @ufs_checkpath
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x24, x0
	mov	x0, x2
	bl	_ITOV
	ldr	x25, [x0]
	str	xzr, [x21]
	ldr	x8, [x20]
	cmp	x8, x24
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	b	LBB0_12
LBB0_2:
Lloh3:
	adrp	x28, _UFS_ROOTINO@GOTPAGE
Lloh4:
	ldr	x28, [x28, _UFS_ROOTINO@GOTPAGEOFF]
	ldr	x9, [x28]
	cmp	x8, x23
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	w26, #0
	b	LBB0_12
LBB0_4:
	mov	x19, x0
	mov	x2, sp
	add	x3, sp, #8
	mov	x1, x22
	bl	_ufs_dir_dd_ino
	cbz	w0, LBB0_13
; %bb.5:
	mov	x26, x0
	mov	x20, x19
LBB0_6:
Lloh5:
	adrp	x8, _ENOTDIR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOTDIR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w26, w8
	b.ne	LBB0_8
; %bb.7:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_8:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_vput
LBB0_10:
	cmp	x20, x19
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_vput
LBB0_12:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	mov	x20, x19
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x20, [sp, #8]
	mov	x2, sp
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x22
	bl	_ufs_dir_dd_ino
	cbnz	w0, LBB0_24
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x27, [sp]
	cmp	x27, x24
	b.eq	LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x28]
	cmp	x27, x23
	ccmp	x27, x8, #4, ne
	b.eq	LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
Lloh10:
	adrp	x8, _LK_SHARED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LK_SHARED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _LK_NOWAIT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _LK_NOWAIT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x3, sp, #8
	mov	x0, x25
	mov	x1, x27
	bl	_VFS_VGET
	ldr	x27, [sp]
	cbnz	w0, LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x0, [sp, #8]
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	bl	_VTOI
	ldr	x8, [x0]
	cmp	x27, x8
	cset	w26, eq
	ldr	x0, [sp, #8]
	bl	_VTOI
	ldrsw	x1, [x0]
	mov	x0, x26
	bl	_KASSERT
	cmp	x20, x19
	b.eq	LBB0_14
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x20
	bl	_vput
	b	LBB0_14
LBB0_22:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w26, [x8]
	b	LBB0_6
LBB0_23:
	mov	w26, #0
	b	LBB0_6
LBB0_24:
	mov	x26, x0
	b	LBB0_6
LBB0_25:
	mov	x26, x0
	str	x27, [x21]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_UFS_ROOTINO,8,3                ; @UFS_ROOTINO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LK_SHARED,4,2                  ; @LK_SHARED
	.comm	_LK_NOWAIT,4,2                  ; @LK_NOWAIT
	.comm	_ENOTDIR,4,2                    ; @ENOTDIR
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"checkpath: .. not a directory\n"

.subsections_via_symbols
