	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getmntinfo                     ## -- Begin function getmntinfo
	.p2align	4, 0x90
_getmntinfo:                            ## @getmntinfo
	.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
	movl	%esi, %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	_getmntinfo.mntsize(%rip), %eax
	testl	%eax, %eax
	jg	LBB0_2
## %bb.1:
	movq	_MNT_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_getfsstat
	movl	%eax, _getmntinfo.mntsize(%rip)
	testl	%eax, %eax
	js	LBB0_11
LBB0_2:
	movq	_getmntinfo.bufsize(%rip), %rsi
	testq	%rsi, %rsi
	jle	LBB0_5
## %bb.3:
	movq	_getmntinfo.mntbuf(%rip), %rdi
	movl	%r15d, %edx
	callq	_getfsstat
	movl	%eax, _getmntinfo.mntsize(%rip)
	testl	%eax, %eax
	js	LBB0_4
LBB0_5:
	xorl	%r13d, %r13d
	movq	_MAX_TRIES@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edx
	movq	_getmntinfo.bufsize(%rip), %rcx
	cmpl	(%r14), %r13d
	jae	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	(,%rdx,4), %rsi
	cmpq	%rsi, %rcx
	ja	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_SCALING_FACTOR@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%eax, %rbx
	imulq	%rcx, %rbx
	shlq	$2, %rbx
	movq	%rbx, _getmntinfo.bufsize(%rip)
	movq	_getmntinfo.mntbuf(%rip), %rdi
	movq	%rbx, %rsi
	callq	_reallocf
	movq	%rax, _getmntinfo.mntbuf(%rip)
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_getfsstat
	movl	%eax, _getmntinfo.mntsize(%rip)
	incl	%r13d
	testl	%eax, %eax
	jns	LBB0_6
	jmp	LBB0_11
LBB0_4:
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_10:
	movq	_getmntinfo.mntbuf(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rsi, (%rdi)
	shrq	$2, %rcx
	cmpq	%rdx, %rcx
	cmovbl	%ecx, %eax
	movl	%eax, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_getmntinfo.mntbuf,8,3 ## @getmntinfo.mntbuf
.zerofill __DATA,__bss,_getmntinfo.mntsize,4,2 ## @getmntinfo.mntsize
.zerofill __DATA,__bss,_getmntinfo.bufsize,8,3 ## @getmntinfo.bufsize
	.comm	_MNT_NOWAIT,4,2                 ## @MNT_NOWAIT
	.comm	_MAX_TRIES,4,2                  ## @MAX_TRIES
	.comm	_SCALING_FACTOR,4,2             ## @SCALING_FACTOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getmntinfo                     ; -- Begin function getmntinfo
	.p2align	2
_getmntinfo:                            ; @getmntinfo
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	adrp	x22, _getmntinfo.mntsize@PAGE
	ldr	w0, [x22, _getmntinfo.mntsize@PAGEOFF]
	cmp	w0, #0
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MNT_NOWAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MNT_NOWAIT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, #0
	bl	_getfsstat
	str	w0, [x22, _getmntinfo.mntsize@PAGEOFF]
	tbnz	w0, #31, LBB0_8
LBB0_2:
	adrp	x23, _getmntinfo.bufsize@PAGE
	ldr	x1, [x23, _getmntinfo.bufsize@PAGEOFF]
	adrp	x24, _getmntinfo.mntbuf@PAGE
	cmp	x1, #1
	b.lt	LBB0_4
; %bb.3:
	ldr	x0, [x24, _getmntinfo.mntbuf@PAGEOFF]
	mov	x2, x20
	bl	_getfsstat
	str	w0, [x22, _getmntinfo.mntsize@PAGEOFF]
	tbnz	w0, #31, LBB0_8
LBB0_4:
	mov	w25, #0
Lloh3:
	adrp	x26, _MAX_TRIES@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MAX_TRIES@GOTPAGEOFF]
Lloh5:
	adrp	x27, _SCALING_FACTOR@GOTPAGE
Lloh6:
	ldr	x27, [x27, _SCALING_FACTOR@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x26]
	ldr	x8, [x23, _getmntinfo.bufsize@PAGEOFF]
	mov	w10, w0
	lsl	x10, x10, #2
	cmp	w25, w9
	ccmp	x8, x10, #2, lo
	b.hi	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	mul	w8, w8, w0
	sbfiz	x21, x8, #2, #32
	str	x21, [x23, _getmntinfo.bufsize@PAGEOFF]
	ldr	x0, [x24, _getmntinfo.mntbuf@PAGEOFF]
	mov	x1, x21
	bl	_reallocf
	str	x0, [x24, _getmntinfo.mntbuf@PAGEOFF]
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x21
	mov	x2, x20
	bl	_getfsstat
	str	w0, [x22, _getmntinfo.mntsize@PAGEOFF]
	add	w25, w25, #1
	tbz	w0, #31, LBB0_5
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	ldr	x9, [x24, _getmntinfo.mntbuf@PAGEOFF]
	str	x9, [x19]
	lsr	x8, x8, #2
	cmp	x8, w0, uxtw
	csel	w0, w8, w0, lo
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_getmntinfo.mntbuf,8,3 ; @getmntinfo.mntbuf
.zerofill __DATA,__bss,_getmntinfo.mntsize,4,2 ; @getmntinfo.mntsize
.zerofill __DATA,__bss,_getmntinfo.bufsize,8,3 ; @getmntinfo.bufsize
	.comm	_MNT_NOWAIT,4,2                 ; @MNT_NOWAIT
	.comm	_MAX_TRIES,4,2                  ; @MAX_TRIES
	.comm	_SCALING_FACTOR,4,2             ; @SCALING_FACTOR
.subsections_via_symbols
