	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function storage_OS_get_fs
_storage_OS_get_fs:                     ## @storage_OS_get_fs
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SE_DESC_MLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_MNT_NOWAIT@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_getfsstat
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	_fs_buf_count@GOTPCREL(%rip), %rbx
	movq	_fs_buf@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	cmpl	(%rbx), %eax
	jne	LBB0_5
## %bb.4:
	testq	%rdi, %rdi
	jne	LBB0_7
LBB0_5:
	movl	%eax, (%rbx)
	shll	$2, %eax
	movl	%eax, %esi
	callq	_reallocf
	movq	%rax, %rdi
	movq	_fs_buf@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.6:
	movl	(%rbx), %eax
LBB0_7:
	shll	$2, %eax
	movl	(%r14), %edx
	movl	%eax, %esi
	callq	_getfsstat
	testl	%eax, %eax
	js	LBB0_1
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_HRDBG
	xorl	%eax, %eax
	callq	_fs_tbl_pre_refresh
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.9:
	movl	%ebx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%edx, (%rbx)
	movl	%esi, 4(%rbx)
	movl	%ecx, 8(%rbx)
	movq	$0, 16(%rbx)
	leaq	(%rax,%r15,8), %rdi
	movl	12(%rbx), %esi
	callq	_fs_tbl_process_statfs_entry
	incq	%r14
	cmpq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_20
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	_fs_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%r14,4), %r15
	movq	(%rax,%r15,8), %rcx
	movq	8(%rax,%r15,8), %r8
	movq	16(%rax,%r15,8), %r9
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	leaq	L_.str.2(%rip), %rdx
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_storage_find_by_name
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_storage_entry_create
	movq	%rax, %rbx
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_HR_STORAGE_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 28(%rbx)
	leaq	(,%r14,8), %rax
	leaq	(%rax,%rax,4), %r13
	movq	_fs_buf@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	%r13, %rdi
	callq	_fs_get_type
	movl	%eax, 24(%rbx)
	movq	(%r12), %rax
	movl	24(%rax,%r13), %edx
	movl	28(%rax,%r13), %esi
	movl	%esi, %ecx
	subl	32(%rax,%r13), %ecx
	movq	_INT_MAX@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmpl	%edi, %esi
	jle	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	%edx, %edx
	sarl	%esi
	sarl	%ecx
	cmpl	%edi, %esi
	jg	LBB0_17
	jmp	LBB0_19
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.2:
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_syslog                         ## TAILCALL
LBB0_20:
	xorl	%eax, %eax
	callq	_fs_tbl_post_refresh
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	$0, (%rbx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.16:
	xorl	%edi, %edi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SE_DESC_MLEN,4,2               ## @SE_DESC_MLEN
	.comm	_MNT_NOWAIT,4,2                 ## @MNT_NOWAIT
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hrStorageTable: getfsstat() failed: %m"

	.comm	_fs_buf_count,4,2               ## @fs_buf_count
	.comm	_fs_buf,8,3                     ## @fs_buf
L_.str.1:                               ## @.str.1
	.asciz	"got %d mounted FS"

L_.str.2:                               ## @.str.2
	.asciz	"%s, type: %s, dev: %s"

	.comm	_HR_STORAGE_FOUND,4,2           ## @HR_STORAGE_FOUND
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_storage_OS_get_fs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function storage_OS_get_fs
_storage_OS_get_fs:                     ; @storage_OS_get_fs
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _SE_DESC_MLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SE_DESC_MLEN@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x21, _MNT_NOWAIT@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MNT_NOWAIT@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, #0
	mov	w1, #0
	bl	_getfsstat
	tbnz	w0, #31, LBB0_13
; %bb.1:
	mov	x8, x0
Lloh10:
	adrp	x22, _fs_buf_count@GOTPAGE
Lloh11:
	ldr	x22, [x22, _fs_buf_count@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh12:
	adrp	x23, _fs_buf@GOTPAGE
Lloh13:
	ldr	x23, [x23, _fs_buf@GOTPAGEOFF]
	ldr	x0, [x23]
	cmp	w8, w9
	ccmp	x0, #0, #4, eq
	b.ne	LBB0_4
; %bb.2:
	str	w8, [x22]
	lsl	w1, w8, #2
	bl	_reallocf
	str	x0, [x23]
	cbz	x0, LBB0_18
; %bb.3:
	ldr	w8, [x22]
LBB0_4:
	lsl	w1, w8, #2
	ldr	w2, [x21]
	bl	_getfsstat
	tbnz	w0, #31, LBB0_13
; %bb.5:
	mov	x21, x0
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_HRDBG
	bl	_fs_tbl_pre_refresh
	cbz	w21, LBB0_15
; %bb.6:
	mov	x24, #0
	mov	w25, w21
	mov	w26, #40
Lloh16:
	adrp	x28, _INT_MAX@GOTPAGE
Lloh17:
	ldr	x28, [x28, _INT_MAX@GOTPAGEOFF]
Lloh18:
	adrp	x21, l_.str.2@PAGE
Lloh19:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	stp	w9, w10, [x22]
	str	w11, [x22, #8]
	str	xzr, [x22, #16]
	madd	x0, x24, x26, x8
	ldr	w1, [x22, #12]
	bl	_fs_tbl_process_statfs_entry
	add	x24, x24, #1
	cmp	x24, x25
	b.eq	LBB0_15
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x8, [x23]
	madd	x8, x24, x26, x8
	ldp	x3, x4, [x8]
	ldr	x5, [x8, #16]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_snprintf
	mov	x0, x20
	bl	_storage_find_by_name
	mov	x22, x0
	cbnz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_storage_entry_create
	mov	x22, x0
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	x22, #0
	cset	w0, ne
	bl	_assert
	cbz	x22, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh20:
	adrp	x8, _HR_STORAGE_FOUND@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HR_STORAGE_FOUND@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x22, #28]
	orr	w8, w9, w8
	str	w8, [x22, #28]
	ldr	x8, [x23]
	add	x9, x24, x24, lsl #2
	lsl	x27, x9, #3
	add	x0, x8, x27
	bl	_fs_get_type
	str	w0, [x22, #24]
	ldr	x8, [x23]
	add	x11, x8, x27
	ldp	w9, w10, [x11, #24]
	ldr	w11, [x11, #32]
	sub	w11, w10, w11
	ldr	w12, [x28]
	cmp	w10, w12
	b.le	LBB0_7
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	w9, w9, #1
	asr	w10, w10, #1
	asr	w11, w11, #1
	cmp	w10, w12
	b.gt	LBB0_12
	b	LBB0_7
LBB0_13:
Lloh23:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.14:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	sub	sp, x29, #80
	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
	b	_syslog
LBB0_15:
	bl	_fs_tbl_post_refresh
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.17:
	sub	sp, x29, #80
	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
LBB0_18:
	str	wzr, [x22]
	ldur	x8, [x29, #-88]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	w0, #0
	sub	sp, x29, #80
	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
	b	_assert
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_SE_DESC_MLEN,4,2               ; @SE_DESC_MLEN
	.comm	_MNT_NOWAIT,4,2                 ; @MNT_NOWAIT
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hrStorageTable: getfsstat() failed: %m"

	.comm	_fs_buf_count,4,2               ; @fs_buf_count
	.comm	_fs_buf,8,3                     ; @fs_buf
l_.str.1:                               ; @.str.1
	.asciz	"got %d mounted FS"

l_.str.2:                               ; @.str.2
	.asciz	"%s, type: %s, dev: %s"

	.comm	_HR_STORAGE_FOUND,4,2           ; @HR_STORAGE_FOUND
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_storage_OS_get_fs
.subsections_via_symbols
