	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_freebsd11_getmntinfo           ## -- Begin function freebsd11_getmntinfo
	.p2align	4, 0x90
_freebsd11_getmntinfo:                  ## @freebsd11_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	_freebsd11_getmntinfo.mntsize(%rip), %eax
	testl	%eax, %eax
	jg	LBB0_2
## %bb.1:
	movq	_MNT_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_freebsd11_getfsstat
	movl	%eax, _freebsd11_getmntinfo.mntsize(%rip)
	testl	%eax, %eax
	js	LBB0_11
LBB0_2:
	movq	_freebsd11_getmntinfo.bufsize(%rip), %rsi
	testq	%rsi, %rsi
	jle	LBB0_5
## %bb.3:
	movq	_freebsd11_getmntinfo.mntbuf(%rip), %rdi
	movl	%r15d, %edx
	callq	_freebsd11_getfsstat
	movl	%eax, _freebsd11_getmntinfo.mntsize(%rip)
	testl	%eax, %eax
	js	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ebx
	leaq	(,%rbx,4), %rcx
	movq	_freebsd11_getmntinfo.mntbuf(%rip), %rdi
	cmpq	%rcx, _freebsd11_getmntinfo.bufsize(%rip)
	ja	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_free
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	4(,%rbx,4), %rdi
	movq	%rdi, _freebsd11_getmntinfo.bufsize(%rip)
	callq	_malloc
	movq	%rax, _freebsd11_getmntinfo.mntbuf(%rip)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_freebsd11_getmntinfo.bufsize(%rip), %rsi
	movq	%rax, %rdi
	movl	%r15d, %edx
	callq	_freebsd11_getfsstat
	movl	%eax, _freebsd11_getmntinfo.mntsize(%rip)
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_11
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	movq	%rdi, (%r14)
	movl	%eax, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_freebsd11_getmntinfo.mntbuf,8,3 ## @freebsd11_getmntinfo.mntbuf
.zerofill __DATA,__bss,_freebsd11_getmntinfo.mntsize,4,2 ## @freebsd11_getmntinfo.mntsize
.zerofill __DATA,__bss,_freebsd11_getmntinfo.bufsize,8,3 ## @freebsd11_getmntinfo.bufsize
	.comm	_MNT_NOWAIT,4,2                 ## @MNT_NOWAIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_freebsd11_getmntinfo           ; -- Begin function freebsd11_getmntinfo
	.p2align	2
_freebsd11_getmntinfo:                  ; @freebsd11_getmntinfo
	.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
	adrp	x22, _freebsd11_getmntinfo.mntsize@PAGE
	ldr	w21, [x22, _freebsd11_getmntinfo.mntsize@PAGEOFF]
	cmp	w21, #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	_freebsd11_getfsstat
	mov	x21, x0
	str	w0, [x22, _freebsd11_getmntinfo.mntsize@PAGEOFF]
	tbnz	w0, #31, LBB0_9
LBB0_2:
	adrp	x23, _freebsd11_getmntinfo.bufsize@PAGE
	ldr	x1, [x23, _freebsd11_getmntinfo.bufsize@PAGEOFF]
	adrp	x24, _freebsd11_getmntinfo.mntbuf@PAGE
	cmp	x1, #1
	b.lt	LBB0_4
; %bb.3:
	ldr	x0, [x24, _freebsd11_getmntinfo.mntbuf@PAGEOFF]
	mov	x2, x20
	bl	_freebsd11_getfsstat
	mov	x21, x0
	str	w0, [x22, _freebsd11_getmntinfo.mntsize@PAGEOFF]
	tbnz	w0, #31, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, _freebsd11_getmntinfo.bufsize@PAGEOFF]
	ldr	x0, [x24, _freebsd11_getmntinfo.mntbuf@PAGEOFF]
	cmp	x8, w21, uxtw #2
	b.hi	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_free
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w21, #1
	lsl	x0, x8, #2
	str	x0, [x23, _freebsd11_getmntinfo.bufsize@PAGEOFF]
	bl	_malloc
	str	x0, [x24, _freebsd11_getmntinfo.mntbuf@PAGEOFF]
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x23, _freebsd11_getmntinfo.bufsize@PAGEOFF]
	mov	x2, x20
	bl	_freebsd11_getfsstat
	mov	x21, x0
	str	w0, [x22, _freebsd11_getmntinfo.mntsize@PAGEOFF]
	tbz	w0, #31, LBB0_4
LBB0_9:
	mov	w21, #0
	b	LBB0_11
LBB0_10:
	str	x0, [x19]
LBB0_11:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_freebsd11_getmntinfo.mntbuf,8,3 ; @freebsd11_getmntinfo.mntbuf
.zerofill __DATA,__bss,_freebsd11_getmntinfo.mntsize,4,2 ; @freebsd11_getmntinfo.mntsize
.zerofill __DATA,__bss,_freebsd11_getmntinfo.bufsize,8,3 ; @freebsd11_getmntinfo.bufsize
	.comm	_MNT_NOWAIT,4,2                 ; @MNT_NOWAIT
.subsections_via_symbols
