	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getmntent                      ## -- Begin function getmntent
	.p2align	4, 0x90
_getmntent:                             ## @getmntent
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_fileno
	movq	_SEEK_CUR@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_lseek
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %ebx
	movq	_gsfs@GOTPCREL(%rip), %r13
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	cmpq	$0, (%r13)
	jne	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_statfs_init
	testl	%eax, %eax
	jne	LBB0_7
LBB0_4:
	movq	_allfs@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	(%rcx), %ebx
	jge	LBB0_7
## %bb.5:
	movslq	%ebx, %rdi
	shlq	$2, %rdi
	addq	(%r13), %rdi
	movq	%r14, %rsi
	callq	_statfs2mnttab
	movq	%r15, %rdi
	callq	_fileno
	movl	(%r12), %edx
	movl	%eax, %edi
	movl	$1, %esi
	callq	_lseek
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	jne	LBB0_7
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_errno,4,2                      ## @errno
	.comm	_gsfs,8,3                       ## @gsfs
	.comm	_allfs,4,2                      ## @allfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getmntent                      ; -- Begin function getmntent
	.p2align	2
_getmntent:                             ; @getmntent
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_fileno
Lloh0:
	adrp	x22, _SEEK_CUR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SEEK_CUR@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_lseek
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x23, _gsfs@GOTPAGE
Lloh3:
	ldr	x23, [x23, _gsfs@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	w0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_3
; %bb.2:
	bl	_statfs_init
	cbnz	w0, LBB0_7
LBB0_3:
Lloh4:
	adrp	x8, _allfs@GOTPAGE
Lloh5:
	ldr	x8, [x8, _allfs@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ge	LBB0_6
; %bb.4:
	ldr	x8, [x23]
	add	x0, x8, w21, sxtw #2
	mov	x1, x20
	bl	_statfs2mnttab
	mov	x0, x19
	bl	_fileno
	ldr	w2, [x22]
	mov	w1, #1
	bl	_lseek
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w0, #1
	csel	w0, w8, wzr, eq
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_errno,4,2                      ; @errno
	.comm	_gsfs,8,3                       ; @gsfs
	.comm	_allfs,4,2                      ; @allfs
.subsections_via_symbols
