	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_path
_check_path:                            ## @check_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rdx
	movq	%rdi, %r15
	cmpb	$47, (%r13)
	jne	LBB0_11
## %bb.1:
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movq	_KP_PATH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_string_param
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rbx
	cmovneq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %r12
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_17
## %bb.2:
	cmpb	$47, (%r13,%r12)
	jne	LBB0_17
## %bb.3:
	movq	%r13, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	callq	_alloca
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_strcpy
	testq	%r14, %r14
	je	LBB0_17
## %bb.4:
	addq	%r14, %r12
	leaq	-96(%rbp), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incq	%r12
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	$0, (%r12)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_lstat
	testq	%rax, %rax
	js	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-88(%rbp), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	jne	LBB0_31
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%r12, %r12
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movb	$47, (%r12)
	jmp	LBB0_5
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
LBB0_12:
	movq	%r13, %rcx
LBB0_13:
	xorl	%eax, %eax
	callq	_jail_warnx
	jmp	LBB0_27
LBB0_14:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_32
## %bb.15:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_32
## %bb.16:
	testq	%r12, %r12
	jne	LBB0_32
LBB0_17:
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_28
## %bb.18:
	leaq	-96(%rbp), %rsi
	movq	%r13, %rdi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_24
## %bb.19:
	leaq	-80(%rbp), %rsi
	movq	%r13, %rdi
	callq	_statfs
	testq	%rax, %rax
	js	LBB0_24
## %bb.20:
	movq	-80(%rbp), %rdi
	leaq	-112(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_29
## %bb.21:
	movq	-96(%rbp), %rax
	cmpq	-112(%rbp), %rax
	jne	LBB0_30
## %bb.22:
	movl	-72(%rbp), %edi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_28
## %bb.23:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%r14, %r8
	jmp	LBB0_26
LBB0_24:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
LBB0_25:
	movq	%rax, %r8
LBB0_26:
	xorl	%eax, %eax
	callq	_jail_warnx
LBB0_27:
	movl	$-1, %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	-80(%rbp), %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	jmp	LBB0_25
LBB0_30:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_31:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	jmp	LBB0_13
LBB0_32:
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s: not an absolute pathname"

	.comm	_KP_PATH,8,3                    ## @KP_PATH
L_.str.1:                               ## @.str.1
	.space	1

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"%s: %s: %s"

L_.str.3:                               ## @.str.3
	.asciz	"%s: %s is a symbolic link"

L_.str.4:                               ## @.str.4
	.asciz	"%s: %s: not a mount point"

L_.str.5:                               ## @.str.5
	.asciz	"%s: %s: not a %s mount"

	.no_dead_strip	_check_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_path
_check_path:                            ; @check_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x2
	mov	x19, x1
	mov	x20, x0
	ldrb	w8, [x2]
	cmp	w8, #47
	b.ne	LBB0_11
; %bb.1:
	mov	x22, x4
	mov	x23, x3
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _KP_PATH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KP_PATH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_string_param
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x24, x8, x0, eq
	mov	x0, x24
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x25, w0
	mov	x0, x21
	mov	x1, x24
	mov	x2, x25
	bl	_strncmp
	cbnz	w0, LBB0_14
; %bb.2:
	ldrb	w8, [x21, x25]
	cmp	w8, #47
	b.ne	LBB0_14
; %bb.3:
	mov	x0, x21
	bl	_strlen
	add	w0, w0, #1
	bl	_alloca
	mov	x24, x0
	mov	x1, x21
	bl	_strcpy
	cbz	x24, LBB0_14
; %bb.4:
	add	x25, x24, x25
	mov	w26, #47
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x25, #1
	mov	w1, #47
	bl	_strchr
	mov	x25, x0
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x25]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #48
	mov	x0, x24
	bl	_lstat
	tbnz	x0, #63, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #56]
	bl	_S_ISLNK
	cbnz	x0, LBB0_28
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x25, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	strb	w26, [x25]
	b	LBB0_5
LBB0_11:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_24
LBB0_12:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x8]
	cbz	w23, LBB0_29
; %bb.13:
Lloh10:
	adrp	x8, _ENOENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	ccmp	x25, #0, #0, eq
	b.ne	LBB0_29
LBB0_14:
	cbz	x22, LBB0_21
; %bb.15:
	add	x1, sp, #48
	mov	x0, x21
	bl	_stat
	tbnz	x0, #63, LBB0_23
; %bb.16:
	add	x1, sp, #16
	mov	x0, x21
	bl	_statfs
	tbnz	x0, #63, LBB0_23
; %bb.17:
	ldr	x0, [sp, #16]
	add	x1, sp, #32
	bl	_stat
	tbnz	x0, #63, LBB0_22
; %bb.18:
	ldr	x8, [sp, #48]
	ldr	x9, [sp, #32]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.19:
	ldr	w0, [sp, #24]
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_26
; %bb.20:
	str	x22, [sp]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_24
LBB0_21:
	mov	w0, #0
	b	LBB0_26
LBB0_22:
	ldr	x21, [sp, #16]
LBB0_23:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_24:
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
LBB0_25:
	bl	_jail_warnx
	mov	w0, #-1
LBB0_26:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_27:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_24
LBB0_28:
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_30
LBB0_29:
	bl	_strerror
	str	x0, [sp]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_30:
	mov	x0, x20
	mov	x2, x19
	mov	x3, x24
	b	LBB0_25
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s: not an absolute pathname"

	.comm	_KP_PATH,8,3                    ; @KP_PATH
l_.str.1:                               ; @.str.1
	.space	1

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"%s: %s: %s"

l_.str.3:                               ; @.str.3
	.asciz	"%s: %s is a symbolic link"

l_.str.4:                               ; @.str.4
	.asciz	"%s: %s: not a mount point"

l_.str.5:                               ; @.str.5
	.asciz	"%s: %s: not a %s mount"

	.no_dead_strip	_check_path
.subsections_via_symbols
