	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_mounted
_check_mounted:                         ## @check_mounted
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	_MNT_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_getmntinfo
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movl	%eax, %r12d
	movq	__PATH_DEV@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_strlen
	movq	%rax, %r15
	movl	(%r14), %esi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_strncmp
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	movl	%ebx, %edi
	movl	$0, %ebx
	cmoveq	%r15, %rbx
	addq	%r13, %rbx
	callq	_S_ISCHR
	testq	%rax, %rax
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.2:
	cmpq	%r13, %rbx
	je	LBB0_4
## %bb.3:
	cmpb	$114, (%rbx)
	sete	%al
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_4:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	leaq	1(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r13
	movq	__PATH_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_strncmp
	testl	%eax, %eax
	movl	$0, %r14d
	cmoveq	%r15, %r14
	addq	%r13, %r14
	cmpb	$0, -56(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rbx
	cmpq	(%rbx), %r14
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_strcmp
	movq	-48(%rbp), %rbx
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	decl	%r12d
	addq	$16, %rbx
	movq	%rbx, -48(%rbp)
	testl	%r12d, %r12d
	jne	LBB0_5
## %bb.10:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	jmp	LBB0_13
LBB0_12:
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_warnx
LBB0_13:
	movl	$-1, %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MNT_NOWAIT,4,2                 ## @MNT_NOWAIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getmntinfo"

	.comm	__PATH_DEV,4,2                  ## @_PATH_DEV
L_.str.1:                               ## @.str.1
	.asciz	"%s is mounted on %s"

	.no_dead_strip	_check_mounted
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_mounted
_check_mounted:                         ; @check_mounted
	.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	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MNT_NOWAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MNT_NOWAIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_getmntinfo
	cbz	w0, LBB0_11
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x25, __PATH_DEV@GOTPAGE
Lloh4:
	ldr	x25, [x25, __PATH_DEV@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_strlen
	mov	x21, x0
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x21
	bl	_strncmp
	cmp	w0, #0
	csel	x8, x21, xzr, eq
	add	x22, x19, x8
	mov	x0, x23
	bl	_S_ISCHR
	mov	w26, #0
	cbz	x0, LBB0_4
; %bb.2:
	cmp	x22, x19
	b.eq	LBB0_4
; %bb.3:
	ldrb	w8, [x22]
	cmp	w8, #114
	cset	w26, eq
LBB0_4:
	add	x23, x22, #1
	ldr	x8, [sp, #8]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x8]
	ldr	w1, [x25]
	mov	x0, x24
	mov	x2, x21
	bl	_strncmp
	cmp	w0, #0
	csel	x8, x21, xzr, eq
	add	x24, x24, x8
	cbz	w26, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x27, [sp, #8]
	ldr	x8, [x27]
	cmp	x24, x8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_strcmp
	cbz	w0, LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_strcmp
	ldr	x27, [sp, #8]
	cbz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x27, #16
	str	x8, [sp, #8]
	sub	w20, w20, #1
	cbnz	w20, LBB0_5
; %bb.10:
	mov	w0, #0
	b	LBB0_14
LBB0_11:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	b	LBB0_13
LBB0_12:
	ldr	w2, [x27, #8]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_warnx
LBB0_13:
	mov	w0, #-1
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MNT_NOWAIT,4,2                 ; @MNT_NOWAIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getmntinfo"

	.comm	__PATH_DEV,4,2                  ; @_PATH_DEV
l_.str.1:                               ; @.str.1
	.asciz	"%s is mounted on %s"

	.no_dead_strip	_check_mounted
.subsections_via_symbols
