	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filesys_inode_load
_filesys_inode_load:                    ## @filesys_inode_load
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	testq	%r14, %r14
	js	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.8:
	movq	%rbx, %rdi
	callq	_del_use
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_use                        ## TAILCALL
LBB0_2:
	movq	8(%rbx), %rdi
	callq	_malloc
	movq	%rax, 16(%rbx)
	movq	_idx_fd@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_lseek
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	movl	(%r15), %edi
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	callq	_read
	xorl	%edi, %edi
	cmpq	8(%rbx), %rax
	sete	%dil
	callq	_assert
	movq	8(%rbx), %rax
	movq	_tot_loaded_index_data@GOTPCREL(%rip), %r14
	addq	%rax, (%r14)
	movq	_tot_loaded_metafiles@GOTPCREL(%rip), %r15
	incl	(%r15)
	movq	%rbx, %rdi
	callq	_add_use
	cmpl	$2, (%r15)
	jl	LBB0_7
## %bb.3:
	movq	_max_loaded_index_data@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	%rax, (%r14)
	jle	LBB0_7
## %bb.4:
	movq	_lru_head@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_filesys_inode_unload
	cmpl	$2, (%r15)
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rax
	cmpq	%rax, (%r14)
	jg	LBB0_5
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_idx_fd,4,2                     ## @idx_fd
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_tot_loaded_index_data,8,3      ## @tot_loaded_index_data
	.comm	_tot_loaded_metafiles,4,2       ## @tot_loaded_metafiles
	.comm	_max_loaded_index_data,8,3      ## @max_loaded_index_data
	.comm	_lru_head,4,2                   ## @lru_head
	.no_dead_strip	_filesys_inode_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filesys_inode_load
_filesys_inode_load:                    ; @filesys_inode_load
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x20, [x0]
	tbnz	x20, #63, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_del_use
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_add_use
LBB0_3:
	ldr	x0, [x19, #8]
	bl	_malloc
	str	x0, [x19, #16]
Lloh0:
	adrp	x21, _idx_fd@GOTPAGE
Lloh1:
	ldr	x21, [x21, _idx_fd@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_lseek
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	ldr	w0, [x21]
	ldp	x2, x1, [x19, #8]
	bl	_read
	ldr	x8, [x19, #8]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x20, _tot_loaded_index_data@GOTPAGE
Lloh6:
	ldr	x20, [x20, _tot_loaded_index_data@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x8, x9, x8
	str	x8, [x20]
Lloh7:
	adrp	x21, _tot_loaded_metafiles@GOTPAGE
Lloh8:
	ldr	x21, [x21, _tot_loaded_metafiles@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	mov	x0, x19
	bl	_add_use
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.4:
	ldr	x8, [x20]
Lloh9:
	adrp	x19, _max_loaded_index_data@GOTPAGE
Lloh10:
	ldr	x19, [x19, _max_loaded_index_data@GOTPAGEOFF]
	ldr	x9, [x19]
	cmp	x8, x9
	b.le	LBB0_7
; %bb.5:
Lloh11:
	adrp	x22, _lru_head@GOTPAGE
Lloh12:
	ldr	x22, [x22, _lru_head@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_filesys_inode_unload
	ldr	w8, [x21]
	ldr	x9, [x20]
	ldr	x10, [x19]
	cmp	w8, #2
	ccmp	x9, x10, #4, ge
	b.gt	LBB0_6
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_idx_fd,4,2                     ; @idx_fd
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_tot_loaded_index_data,8,3      ; @tot_loaded_index_data
	.comm	_tot_loaded_metafiles,4,2       ; @tot_loaded_metafiles
	.comm	_max_loaded_index_data,8,3      ; @max_loaded_index_data
	.comm	_lru_head,4,2                   ; @lru_head
	.no_dead_strip	_filesys_inode_load
.subsections_via_symbols
