	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getmntentry                    ## -- Begin function getmntentry
	.p2align	4, 0x90
_getmntentry:                           ## @getmntentry
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_getmntentry.mntsize(%rip), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	leaq	_getmntentry.mntbuf(%rip), %rdi
	callq	_mntinfo
	movq	%rax, _getmntentry.mntsize(%rip)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	cmpq	$0, _getmntentry.mntcheck(%rip)
	jne	LBB0_6
## %bb.4:
	incq	%rax
	movq	%rax, %rdi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, _getmntentry.mntcheck(%rip)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	movl	_getmntentry.mntsize(%rip), %r14d
	decl	%r14d
	js	LBB0_7
## %bb.8:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	decl	%r14d
	js	LBB0_20
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_getmntentry.mntcheck(%rip), %rax
	movl	%r14d, %r14d
	cmpl	$0, (%rax,%r14,4)
	jne	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_getmntentry.mntbuf(%rip), %r12
	leaq	(%r14,%r14,2), %r13
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	8(%r12,%r13,4), %edi
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_19
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	4(%r12,%r13,4), %edi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_19
	jmp	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	(%r12,%r13,4), %rax
	cmpl	$129, -44(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	incl	%r15d
	jmp	LBB0_19
LBB0_7:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
LBB0_20:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	$129, %ecx
	xorl	$1, %r15d
	xorl	%eax, %eax
	orl	%ecx, %r15d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmovneq	%rax, %rcx
LBB0_21:
	movq	%rcx, %rax
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_16:
	cmpl	$128, -44(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_22
## %bb.17:
	movq	%rax, %rcx
	movq	_getmntentry.mntcheck(%rip), %rax
	movl	$1, (%rax,%r14,4)
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_getmntentry.mntbuf,8,3 ## @getmntentry.mntbuf
.zerofill __DATA,__bss,_getmntentry.mntsize,8,3 ## @getmntentry.mntsize
.zerofill __DATA,__bss,_getmntentry.mntcheck,8,3 ## @getmntentry.mntcheck
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"calloc"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getmntentry                    ; -- Begin function getmntentry
	.p2align	2
_getmntentry:                           ; @getmntentry
	.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
	str	w3, [sp, #12]                   ; 4-byte Folded Spill
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	adrp	x23, _getmntentry.mntsize@PAGE
	ldr	x0, [x23, _getmntentry.mntsize@PAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, _getmntentry.mntbuf@PAGE
Lloh1:
	add	x0, x0, _getmntentry.mntbuf@PAGEOFF
	bl	_mntinfo
	str	x0, [x23, _getmntentry.mntsize@PAGEOFF]
	cbz	x0, LBB0_19
LBB0_2:
	adrp	x24, _getmntentry.mntcheck@PAGE
	ldr	x8, [x24, _getmntentry.mntcheck@PAGEOFF]
	cbnz	x8, LBB0_5
; %bb.3:
	add	x0, x0, #1
	mov	w1, #4
	bl	_calloc
	str	x0, [x24, _getmntentry.mntcheck@PAGEOFF]
	cbnz	x0, LBB0_5
; %bb.4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_5:
	ldr	w8, [x23, _getmntentry.mntsize@PAGEOFF]
	subs	w8, w8, #1
	b.mi	LBB0_16
; %bb.6:
	mov	w25, #0
	mov	x23, #0
	adrp	x26, _getmntentry.mntbuf@PAGE
	mov	w27, #12
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	cbz	x20, LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	subs	w8, w28, #1
	b.mi	LBB0_17
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24, _getmntentry.mntcheck@PAGEOFF]
	mov	w28, w8
	ldr	w8, [x9, w8, uxtw #2]
	cbnz	w8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x19, [x26, _getmntentry.mntbuf@PAGEOFF]
	cbz	x22, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	madd	x8, x28, x27, x19
	ldr	w0, [x8, #8]
	mov	x1, x22
	bl	_strcmp
	cbnz	x0, LBB0_8
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	x21, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	madd	x8, x28, x27, x19
	ldr	w0, [x8, #4]
	mov	x1, x21
	bl	_strcmp
	cbnz	x0, LBB0_8
	b	LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	madd	x23, x28, x27, x19
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #129
	b.ne	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w25, w25, #1
	b	LBB0_8
LBB0_16:
	mov	x23, #0
	mov	w25, #0
LBB0_17:
	cmp	w25, #1
	mov	w8, #129
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	ccmp	w9, w8, #0, eq
	csel	x23, x23, xzr, eq
LBB0_18:
	mov	x0, x23
	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_19:
	mov	x23, #0
	b	LBB0_18
LBB0_20:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #128
	b.ne	LBB0_18
; %bb.21:
	ldr	x8, [x24, _getmntentry.mntcheck@PAGEOFF]
	mov	w9, #1
	str	w9, [x8, x28, lsl #2]
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_getmntentry.mntbuf,8,3 ; @getmntentry.mntbuf
.zerofill __DATA,__bss,_getmntentry.mntsize,8,3 ; @getmntentry.mntsize
.zerofill __DATA,__bss,_getmntentry.mntcheck,8,3 ; @getmntentry.mntcheck
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"calloc"

.subsections_via_symbols
