	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_metafile                  ## -- Begin function load_metafile
	.p2align	4, 0x90
_load_metafile:                         ## @load_metafile
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	testl	%edi, %edi
	setns	%al
	movq	_large_users_number@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	movl	%esi, %r14d
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movslq	%ebx, %r15
	movq	%r15, %r12
	shlq	$4, %r12
	movq	_large_metafiles@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax,%r12), %rcx
	testl	%r14d, %r14d
	js	LBB0_1
## %bb.13:
	testq	%rcx, %rcx
	je	LBB0_14
LBB0_15:
	cmpq	$0, 8(%rax,%r12)
	je	LBB0_17
## %bb.16:
	movl	%ebx, %edi
	callq	_load_metafile_aio
	movq	_metafiles_cache_loading@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	(%r13), %rax
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rax,%r12)
	sete	%cl
	leal	(%rcx,%rcx,2), %eax
	addl	$-2, %eax
	jmp	LBB0_20
LBB0_1:
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.2:
	cmpq	$0, 8(%rax,%r12)
	je	LBB0_15
## %bb.3:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	_verbosity@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	js	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_fprintf
	movq	(%r13), %rax
LBB0_5:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax,%r12)
	jmp	LBB0_6
LBB0_14:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_6:
	xorl	%edi, %edi
	cmpq	$0, 8(%rax,%r12)
	sete	%dil
	callq	_assert
	movq	_large_users@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	4(%rax,%r15,4), %rbx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movslq	(%rax,%r15,4), %rax
	subq	%rax, %rbx
	shlq	$3, %rbx
	movq	_allocated_metafiles_size@GOTPCREL(%rip), %r14
	movq	_max_allocated_metafiles_size@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	addq	%rbx, %rax
	cmpq	(%r15), %rax
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_free_by_LRU
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	callq	_free_by_LRU
	movl	%eax, %edi
	callq	_assert
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_metafile_alloc
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%r12)
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jle	LBB0_12
## %bb.19:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_load_metafile_aio
	movq	_metafiles_cache_miss@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	$-2, %eax
	jmp	LBB0_20
LBB0_12:
	movq	_idx_fd@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_index_large_data_offset@GOTPCREL(%rip), %rax
	movq	_large_users@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rcx,%rdx,4), %rsi
	shlq	$3, %rsi
	addq	(%rax), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lseek
	movl	(%r14), %edi
	movq	(%r13), %rax
	movq	(%rax,%r12), %rsi
	movq	%rbx, %rdx
	callq	_read
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_assert
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_add_use
	movq	_metafiles_loaded@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	$1, %eax
	jmp	LBB0_20
LBB0_17:
	movl	$1, %eax
	testl	%r14d, %r14d
	jle	LBB0_20
## %bb.18:
	movq	_metafiles_cache_ok@GOTPCREL(%rip), %rcx
	incl	(%rcx)
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_large_users_number,4,2         ## @large_users_number
	.comm	_large_metafiles,8,3            ## @large_metafiles
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"forced re-loading of pending aio query for large metafile %d without aio\n"

	.comm	_metafiles_cache_loading,4,2    ## @metafiles_cache_loading
	.comm	_metafiles_cache_ok,4,2         ## @metafiles_cache_ok
	.comm	_large_users,8,3                ## @large_users
	.comm	_allocated_metafiles_size,8,3   ## @allocated_metafiles_size
	.comm	_max_allocated_metafiles_size,8,3 ## @max_allocated_metafiles_size
	.comm	_idx_fd,4,2                     ## @idx_fd
	.comm	_index_large_data_offset,8,3    ## @index_large_data_offset
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_metafiles_loaded,4,2           ## @metafiles_loaded
	.comm	_metafiles_cache_miss,4,2       ## @metafiles_cache_miss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_metafile                  ; -- Begin function load_metafile
	.p2align	2
_load_metafile:                         ; @load_metafile
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	cmp	w0, #0
Lloh0:
	adrp	x8, _large_users_number@GOTPAGE
Lloh1:
	ldr	x8, [x8, _large_users_number@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w0, #4, ge
	cset	w0, gt
	bl	_assert
Lloh3:
	adrp	x22, _large_metafiles@GOTPAGE
Lloh4:
	ldr	x22, [x22, _large_metafiles@GOTPAGEOFF]
	ldr	x8, [x22]
	sxtw	x23, w19
	sbfiz	x9, x19, #4, #32
	ldr	x9, [x8, x9]
	tbnz	w20, #31, LBB0_4
; %bb.1:
	cbz	x9, LBB0_9
LBB0_2:
	add	x8, x8, x23, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_17
; %bb.3:
	mov	x0, x19
	bl	_load_metafile_aio
Lloh5:
	adrp	x8, _metafiles_cache_loading@GOTPAGE
Lloh6:
	ldr	x8, [x8, _metafiles_cache_loading@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	x8, [x22]
	add	x8, x8, x23, lsl #4
	ldr	x8, [x8, #8]
	cmp	x8, #0
	mov	w8, #1
	cinv	w0, w8, ne
	b	LBB0_21
LBB0_4:
	cbz	x9, LBB0_9
; %bb.5:
	add	x9, x8, x23, lsl #4
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_2
; %bb.6:
Lloh7:
	adrp	x9, _verbosity@GOTPAGE
Lloh8:
	ldr	x9, [x9, _verbosity@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	tbnz	x9, #63, LBB0_8
; %bb.7:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	ldr	x8, [x22]
LBB0_8:
	add	x9, x8, x23, lsl #4
	stp	xzr, xzr, [x9]
LBB0_9:
	add	x8, x8, x23, lsl #4
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
Lloh15:
	adrp	x24, _large_users@GOTPAGE
Lloh16:
	ldr	x24, [x24, _large_users@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x8, x8, x23, lsl #2
	ldp	w8, w9, [x8]
	sub	w8, w9, w8
	sbfiz	x21, x8, #3, #32
Lloh17:
	adrp	x25, _allocated_metafiles_size@GOTPAGE
Lloh18:
	ldr	x25, [x25, _allocated_metafiles_size@GOTPAGEOFF]
Lloh19:
	adrp	x26, _max_allocated_metafiles_size@GOTPAGE
Lloh20:
	ldr	x26, [x26, _max_allocated_metafiles_size@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	add	x8, x8, x21
	cmp	x8, x9
	b.le	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_free_by_LRU
	cbnz	w0, LBB0_10
LBB0_12:
	mov	x0, x21
	bl	_metafile_alloc
	ldr	x8, [x22]
	lsl	x25, x23, #4
	str	x0, [x8, x25]
	cbnz	x0, LBB0_14
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	bl	_free_by_LRU
	bl	_assert
	mov	x0, x21
	bl	_metafile_alloc
	ldr	x8, [x22]
	str	x0, [x8, x25]
	cbz	x0, LBB0_13
LBB0_14:
	cmp	w20, #0
	b.le	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_load_metafile_aio
Lloh21:
	adrp	x8, _metafiles_cache_miss@GOTPAGE
Lloh22:
	ldr	x8, [x8, _metafiles_cache_miss@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	w0, #-2
	b	LBB0_21
LBB0_16:
Lloh23:
	adrp	x20, _idx_fd@GOTPAGE
Lloh24:
	ldr	x20, [x20, _idx_fd@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh25:
	adrp	x8, _index_large_data_offset@GOTPAGE
Lloh26:
	ldr	x8, [x8, _index_large_data_offset@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	x9, [x24]
	ldrsw	x9, [x9, x23, lsl #2]
	add	x1, x8, x9, lsl #3
Lloh28:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	bl	_lseek
	ldr	w0, [x20]
	ldr	x8, [x22]
	ldr	x1, [x8, x25]
	mov	x2, x21
	bl	_read
	cmp	x0, x21
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_add_use
Lloh31:
	adrp	x8, _metafiles_loaded@GOTPAGE
Lloh32:
	ldr	x8, [x8, _metafiles_loaded@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
	cmp	w20, #1
	b.lt	LBB0_20
; %bb.18:
Lloh33:
	adrp	x8, _metafiles_cache_ok@GOTPAGE
Lloh34:
	ldr	x8, [x8, _metafiles_cache_ok@GOTPAGEOFF]
LBB0_19:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_20:
	mov	w0, #1
LBB0_21:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_large_users_number,4,2         ; @large_users_number
	.comm	_large_metafiles,8,3            ; @large_metafiles
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"forced re-loading of pending aio query for large metafile %d without aio\n"

	.comm	_metafiles_cache_loading,4,2    ; @metafiles_cache_loading
	.comm	_metafiles_cache_ok,4,2         ; @metafiles_cache_ok
	.comm	_large_users,8,3                ; @large_users
	.comm	_allocated_metafiles_size,8,3   ; @allocated_metafiles_size
	.comm	_max_allocated_metafiles_size,8,3 ; @max_allocated_metafiles_size
	.comm	_idx_fd,4,2                     ; @idx_fd
	.comm	_index_large_data_offset,8,3    ; @index_large_data_offset
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_metafiles_loaded,4,2           ; @metafiles_loaded
	.comm	_metafiles_cache_miss,4,2       ; @metafiles_cache_miss
.subsections_via_symbols
