	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_onload_search_metafile         ## -- Begin function onload_search_metafile
	.p2align	4, 0x90
_onload_search_metafile:                ## @onload_search_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	%esi, %r15d
	movq	%rdi, %r12
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movq	_idx_search_enabled@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_assert
	movq	(%r12), %rax
	movq	8(%r12), %r14
	movq	40(%r14), %rbx
	movq	_ct_aio@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	(%r14), %rax
	movq	_MF_SEARCH@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	%r14, 8(%rbx)
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	%r12, 16(%r14)
	sete	%dil
	callq	_assert
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %r12
	movq	_idx_crc_enabled@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	cmpl	%r15d, 8(%r14)
	jne	LBB0_7
## %bb.4:
	movq	_metafile_crc_check_size_threshold@GOTPCREL(%rip), %rcx
	movl	$0, %r13d
	cmpl	%r15d, (%rcx)
	jle	LBB0_8
## %bb.5:
	xorl	%edi, %edi
	cmpl	$4, %r15d
	setge	%dil
	callq	_assert
	movl	12(%r14), %edi
	leal	-4(%r15), %esi
	leal	(%r15,%rdi), %eax
	addl	$-4, %eax
	cltq
	movl	(%rax), %r13d
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_compute_crc32
	movl	%eax, %ebx
	movq	_idx_crc_enabled@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	xorl	%r13d, %r13d
LBB0_8:
	leaq	16(%r14), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	shll	$2, %eax
	addl	(%r12), %eax
	xorl	%edi, %edi
	cmpl	%eax, 8(%r14)
	sete	%dil
	callq	_assert
	movl	8(%r14), %eax
	cmpl	%r15d, %eax
	jne	LBB0_13
## %bb.9:
	cmpl	%ebx, %r13d
	jne	LBB0_13
## %bb.10:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_12
## %bb.11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movl	4(%r12), %ecx
	addl	8(%r12), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	%rbx, %rdi
	callq	_get_search_metafile
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_FILE_USER_SEARCH_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$0, 8(%rbx)
	setg	%dil
	callq	_assert
	movl	%r15d, %eax
	sarl	$2, %eax
	addl	$-2, %eax
	xorl	%edi, %edi
	cmpl	%eax, 8(%rbx)
	setle	%dil
	callq	_assert
	movq	_cur_search_metafile_bytes@GOTPCREL(%rip), %rax
	addl	%r15d, (%rax)
	movq	_tot_search_metafile_bytes@GOTPCREL(%rip), %rax
	addl	%r15d, (%rax)
	movq	_cur_search_metafiles@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_tot_search_metafiles@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	$1, %eax
	jmp	LBB0_20
LBB0_13:
	movq	_aio_read_errors@GOTPCREL(%rip), %rcx
	incl	(%rcx)
	movq	_verbosity@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	js	LBB0_15
## %bb.14:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movl	4(%r12), %ecx
	addl	8(%r12), %ecx
	movq	_active_aio_queries@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_15:
	cmpl	%ebx, %r13d
	je	LBB0_19
## %bb.16:
	movq	_aio_crc_errors@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	js	LBB0_18
## %bb.17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_18:
	xorl	%edi, %edi
	callq	_assert
LBB0_19:
	movl	8(%r14), %eax
	movq	_allocated_search_metafile_bytes@GOTPCREL(%rip), %rcx
	subl	%eax, (%rcx)
	movq	24(%r14), %rax
	movq	32(%r14), %rcx
	movq	%rcx, 8(%rax)
	movq	%rax, (%rcx)
	xorps	%xmm0, %xmm0
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, (%rax)
	movq	$0, 16(%rax)
	movq	%r14, %rdi
	callq	_free
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 8(%rax)
	xorl	%eax, %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"onload_search_metafile(%p,%d)\n"

	.comm	_idx_search_enabled,4,2         ## @idx_search_enabled
	.comm	_ct_aio,8,3                     ## @ct_aio
	.comm	_MF_SEARCH,8,3                  ## @MF_SEARCH
	.comm	_idx_crc_enabled,4,2            ## @idx_crc_enabled
	.comm	_metafile_crc_check_size_threshold,4,2 ## @metafile_crc_check_size_threshold
	.comm	_aio_read_errors,4,2            ## @aio_read_errors
L_.str.1:                               ## @.str.1
	.asciz	"ERROR reading user %d search data from index at position %lld [pending aio queries: %lld]: read %d bytes out of %d: %m\n"

	.comm	_active_aio_queries,4,2         ## @active_aio_queries
	.comm	_aio_crc_errors,4,2             ## @aio_crc_errors
L_.str.2:                               ## @.str.2
	.asciz	"CRC mismatch: expected %08x, found %08x\n"

	.comm	_allocated_search_metafile_bytes,4,2 ## @allocated_search_metafile_bytes
L_.str.3:                               ## @.str.3
	.asciz	"*** Read user %d search data from index at position %lld: read %d bytes\n"

	.comm	_FILE_USER_SEARCH_MAGIC,8,3     ## @FILE_USER_SEARCH_MAGIC
	.comm	_cur_search_metafile_bytes,4,2  ## @cur_search_metafile_bytes
	.comm	_tot_search_metafile_bytes,4,2  ## @tot_search_metafile_bytes
	.comm	_cur_search_metafiles,4,2       ## @cur_search_metafiles
	.comm	_tot_search_metafiles,4,2       ## @tot_search_metafiles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_onload_search_metafile         ; -- Begin function onload_search_metafile
	.p2align	2
_onload_search_metafile:                ; @onload_search_metafile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _verbosity@GOTPAGE
Lloh1:
	ldr	x25, [x25, _verbosity@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x19
	bl	_fprintf
LBB0_2:
Lloh7:
	adrp	x8, _idx_search_enabled@GOTPAGE
Lloh8:
	ldr	x8, [x8, _idx_search_enabled@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_assert
	ldp	x8, x21, [x22]
	ldr	x20, [x21, #40]
Lloh10:
	adrp	x9, _ct_aio@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ct_aio@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x21]
Lloh13:
	adrp	x9, _MF_SEARCH@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MF_SEARCH@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x20, #8]
	cmp	x8, x21
	cset	w0, eq
	bl	_assert
	mov	x24, x21
	ldr	x8, [x24, #16]!
	cmp	x8, x22
	cset	w0, eq
	bl	_assert
	ldr	x26, [x20, #16]
Lloh16:
	adrp	x27, _idx_crc_enabled@GOTPAGE
Lloh17:
	ldr	x27, [x27, _idx_crc_enabled@GOTPAGEOFF]
	ldr	w8, [x27]
	cbz	w8, LBB0_6
; %bb.3:
	mov	w22, #0
	ldr	w9, [x21, #8]
	cmp	w9, w19
	b.ne	LBB0_7
; %bb.4:
Lloh18:
	adrp	x9, _metafile_crc_check_size_threshold@GOTPAGE
Lloh19:
	ldr	x9, [x9, _metafile_crc_check_size_threshold@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	mov	x23, x22
	cmp	w9, w19
	b.le	LBB0_8
; %bb.5:
	cmp	w19, #3
	cset	w0, gt
	bl	_assert
	ldr	w0, [x21, #12]
	sub	w1, w19, #4
	add	w8, w1, w0
	sxtw	x8, w8
	ldr	w23, [x8]
	bl	_compute_crc32
	mov	x22, x0
	ldr	w8, [x27]
	b	LBB0_8
LBB0_6:
	mov	w22, #0
	mov	w23, #0
	b	LBB0_8
LBB0_7:
	mov	x23, x22
LBB0_8:
	ldr	w9, [x21, #8]
	ldr	w10, [x26]
	add	w8, w10, w8, lsl #2
	cmp	w9, w8
	cset	w0, eq
	bl	_assert
	ldr	w8, [x21, #8]
	cmp	w8, w19
	b.ne	LBB0_13
; %bb.9:
	cmp	w23, w22
	b.ne	LBB0_13
; %bb.10:
	ldr	x8, [x25]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.11:
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	w2, [x20]
	ldp	w9, w8, [x26, #4]
	add	w3, w9, w8
	mov	x8, x19
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_12:
	str	xzr, [x24]
	mov	x0, x20
	bl	_get_search_metafile
	mov	x20, x0
	ldr	x8, [x0]
Lloh26:
	adrp	x9, _FILE_USER_SEARCH_MAGIC@GOTPAGE
Lloh27:
	ldr	x9, [x9, _FILE_USER_SEARCH_MAGIC@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	w8, [x20, #8]
	cmp	w8, #0
	cset	w0, gt
	bl	_assert
	ldr	w8, [x20, #8]
	asr	w9, w19, #2
	sub	w9, w9, #2
	cmp	w8, w9
	cset	w0, le
	bl	_assert
Lloh29:
	adrp	x8, _cur_search_metafile_bytes@GOTPAGE
Lloh30:
	ldr	x8, [x8, _cur_search_metafile_bytes@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
Lloh31:
	adrp	x8, _tot_search_metafile_bytes@GOTPAGE
Lloh32:
	ldr	x8, [x8, _tot_search_metafile_bytes@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
Lloh33:
	adrp	x8, _cur_search_metafiles@GOTPAGE
Lloh34:
	ldr	x8, [x8, _cur_search_metafiles@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh35:
	adrp	x8, _tot_search_metafiles@GOTPAGE
Lloh36:
	ldr	x8, [x8, _tot_search_metafiles@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	w0, #1
	b	LBB0_20
LBB0_13:
Lloh37:
	adrp	x9, _aio_read_errors@GOTPAGE
Lloh38:
	ldr	x9, [x9, _aio_read_errors@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
	ldr	x9, [x25]
	tbnz	x9, #63, LBB0_15
; %bb.14:
Lloh39:
	adrp	x9, _stderr@GOTPAGE
Lloh40:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x9]
	ldr	w2, [x20]
	ldp	w10, w9, [x26, #4]
	add	w3, w10, w9
Lloh42:
	adrp	x9, _active_aio_queries@GOTPAGE
Lloh43:
	ldr	x9, [x9, _active_aio_queries@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	stp	x19, x8, [sp, #8]
	str	x9, [sp]
Lloh45:
	adrp	x1, l_.str.1@PAGE
Lloh46:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_15:
	cmp	w23, w22
	b.eq	LBB0_19
; %bb.16:
Lloh47:
	adrp	x8, _aio_crc_errors@GOTPAGE
Lloh48:
	ldr	x8, [x8, _aio_crc_errors@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	x8, [x25]
	tbnz	x8, #63, LBB0_18
; %bb.17:
Lloh49:
	adrp	x8, _stderr@GOTPAGE
Lloh50:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
Lloh52:
	adrp	x1, l_.str.2@PAGE
Lloh53:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x23
	mov	x3, x22
	bl	_fprintf
LBB0_18:
	mov	w0, #0
	bl	_assert
LBB0_19:
	ldr	w8, [x21, #8]
Lloh54:
	adrp	x9, _allocated_search_metafile_bytes@GOTPAGE
Lloh55:
	ldr	x9, [x9, _allocated_search_metafile_bytes@GOTPAGEOFF]
	ldr	w10, [x9]
	sub	w8, w10, w8
	str	w8, [x9]
	ldp	x9, x8, [x21, #24]
	str	x8, [x9, #8]
	str	x9, [x8]
	stp	xzr, xzr, [x24]
	str	xzr, [x24, #16]
	mov	x0, x21
	bl	_free
	mov	w0, #0
	str	xzr, [x20, #8]
LBB0_20:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"onload_search_metafile(%p,%d)\n"

	.comm	_idx_search_enabled,4,2         ; @idx_search_enabled
	.comm	_ct_aio,8,3                     ; @ct_aio
	.comm	_MF_SEARCH,8,3                  ; @MF_SEARCH
	.comm	_idx_crc_enabled,4,2            ; @idx_crc_enabled
	.comm	_metafile_crc_check_size_threshold,4,2 ; @metafile_crc_check_size_threshold
	.comm	_aio_read_errors,4,2            ; @aio_read_errors
l_.str.1:                               ; @.str.1
	.asciz	"ERROR reading user %d search data from index at position %lld [pending aio queries: %lld]: read %d bytes out of %d: %m\n"

	.comm	_active_aio_queries,4,2         ; @active_aio_queries
	.comm	_aio_crc_errors,4,2             ; @aio_crc_errors
l_.str.2:                               ; @.str.2
	.asciz	"CRC mismatch: expected %08x, found %08x\n"

	.comm	_allocated_search_metafile_bytes,4,2 ; @allocated_search_metafile_bytes
l_.str.3:                               ; @.str.3
	.asciz	"*** Read user %d search data from index at position %lld: read %d bytes\n"

	.comm	_FILE_USER_SEARCH_MAGIC,8,3     ; @FILE_USER_SEARCH_MAGIC
	.comm	_cur_search_metafile_bytes,4,2  ; @cur_search_metafile_bytes
	.comm	_tot_search_metafile_bytes,4,2  ; @tot_search_metafile_bytes
	.comm	_cur_search_metafiles,4,2       ; @cur_search_metafiles
	.comm	_tot_search_metafiles,4,2       ; @tot_search_metafiles
.subsections_via_symbols
