	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_onload_metafile                ## -- Begin function onload_metafile
	.p2align	4, 0x90
_onload_metafile:                       ## @onload_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_verbosity@GOTPCREL(%rip), %r12
	cmpl	$3, (%r12)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movq	(%rbx), %rax
	movq	8(%rbx), %r15
	movq	_ct_aio@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	leaq	16(%r15), %r13
	cmpq	%rbx, 16(%r15)
	je	LBB0_3
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %edi
	movq	_verbosity@GOTPCREL(%rip), %r12
	movq	(%r13), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r13), %rax
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rax
LBB0_5:
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_assert
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movl	(%r12), %eax
	cmpl	%r14d, %ecx
	je	LBB0_8
## %bb.6:
	testl	%eax, %eax
	jle	LBB0_8
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %eax
LBB0_8:
	cmpl	$3, %eax
	jl	LBB0_10
## %bb.9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_10:
	movq	(%r15), %rax
	movl	(%rax), %esi
	cmpl	%r14d, %esi
	jne	LBB0_11
## %bb.12:
	movq	$0, 16(%r15)
	movq	_metafiles_loaded@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_metafiles@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$5, %rax
	movq	%r15, %rdi
	subq	%rax, %rdi
	callq	_add_use
	movq	_metafiles_load_success@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_use_metafile_crc32@GOTPCREL(%rip), %rax
	movq	_tot_aio_loaded_bytes@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:
	movq	(%r15), %rdx
	movq	8(%r15), %rdi
	movl	(%rdx), %esi
	addq	$4, %rdx
	movl	$1, %ecx
	callq	_crc32_check_and_repair
	jmp	LBB0_14
LBB0_11:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r13)
	movq	8(%r15), %rdi
	callq	_zzfree
	movq	$0, 8(%r15)
	movq	(%r15), %rax
	movl	(%rax), %eax
	movq	_allocated_metafile_bytes@GOTPCREL(%rip), %rcx
	subl	%eax, (%rcx)
	movl	$1, %r14d
	movq	_metafiles_load_errors@GOTPCREL(%rip), %rbx
LBB0_14:
	addl	%r14d, (%rbx)
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"onload_metafile(%p,%d)\n"

	.comm	_ct_aio,8,3                     ## @ct_aio
L_.str.1:                               ## @.str.1
	.asciz	"assertion (meta->aio == a) will fail\n"

L_.str.2:                               ## @.str.2
	.asciz	"%p != %p\n"

L_.str.3:                               ## @.str.3
	.asciz	"ERROR reading metafile: read %d bytes out of %d: %m\n"

L_.str.4:                               ## @.str.4
	.asciz	"*** Read metafile: read %d bytes\n"

	.comm	_allocated_metafile_bytes,4,2   ## @allocated_metafile_bytes
	.comm	_metafiles_load_errors,4,2      ## @metafiles_load_errors
	.comm	_metafiles_loaded,4,2           ## @metafiles_loaded
	.comm	_metafiles,4,2                  ## @metafiles
	.comm	_metafiles_load_success,4,2     ## @metafiles_load_success
	.comm	_use_metafile_crc32,8,3         ## @use_metafile_crc32
	.comm	_tot_aio_loaded_bytes,4,2       ## @tot_aio_loaded_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_onload_metafile                ; -- Begin function onload_metafile
	.p2align	2
_onload_metafile:                       ; @onload_metafile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _verbosity@GOTPAGE
Lloh1:
	ldr	x23, [x23, _verbosity@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x22, _stderr@GOTPAGE
Lloh3:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x22]
	stp	x20, x19, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	ldp	x8, x21, [x20]
Lloh6:
	adrp	x9, _ct_aio@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ct_aio@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	cmp	x21, #0
	cset	w0, ne
	bl	_assert
	mov	x24, x21
	ldr	x8, [x24, #16]!
	cmp	x8, x20
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x22]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	w0, [x22]
	ldr	x8, [x24]
	stp	x8, x20, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	x8, [x24]
	b	LBB0_5
LBB0_4:
	mov	x8, x20
LBB0_5:
	cmp	x8, x20
	cset	w0, eq
	bl	_assert
	ldr	x8, [x21]
	ldr	w8, [x8]
	ldr	w9, [x23]
	cmp	w8, w19
	ccmp	w9, #1, #8, ne
	b.lt	LBB0_7
; %bb.6:
	ldr	w0, [x22]
	mov	x9, x19
	stp	x9, x8, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	ldr	w9, [x23]
LBB0_7:
	cmp	w9, #3
	b.lt	LBB0_9
; %bb.8:
	ldr	w0, [x22]
	mov	x8, x19
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_9:
	ldr	x8, [x21]
	ldr	w1, [x8]
	cmp	w1, w19
	b.ne	LBB0_13
; %bb.10:
	str	xzr, [x21, #16]
Lloh17:
	adrp	x8, _metafiles_loaded@GOTPAGE
Lloh18:
	ldr	x8, [x8, _metafiles_loaded@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh19:
	adrp	x8, _metafiles@GOTPAGE
Lloh20:
	ldr	x8, [x8, _metafiles@GOTPAGEOFF]
Lloh21:
	ldrsw	x8, [x8]
	sub	x0, x21, x8, lsl #5
	bl	_add_use
Lloh22:
	adrp	x8, _metafiles_load_success@GOTPAGE
Lloh23:
	ldr	x8, [x8, _metafiles_load_success@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh24:
	adrp	x8, _use_metafile_crc32@GOTPAGE
Lloh25:
	ldr	x8, [x8, _use_metafile_crc32@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
	ldp	x2, x0, [x21]
	ldr	w1, [x2], #4
	mov	w3, #1
	bl	_crc32_check_and_repair
LBB0_12:
Lloh27:
	adrp	x8, _tot_aio_loaded_bytes@GOTPAGE
Lloh28:
	ldr	x8, [x8, _tot_aio_loaded_bytes@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
	stp	xzr, xzr, [x24]
	ldr	x0, [x21, #8]
	bl	_zzfree
	str	xzr, [x21, #8]
	ldr	x8, [x21]
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _allocated_metafile_bytes@GOTPAGE
Lloh30:
	ldr	x9, [x9, _allocated_metafile_bytes@GOTPAGEOFF]
	ldr	w10, [x9]
	sub	w8, w10, w8
	str	w8, [x9]
	mov	w19, #1
Lloh31:
	adrp	x8, _metafiles_load_errors@GOTPAGE
Lloh32:
	ldr	x8, [x8, _metafiles_load_errors@GOTPAGEOFF]
LBB0_14:
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
	mov	w0, #1
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"onload_metafile(%p,%d)\n"

	.comm	_ct_aio,8,3                     ; @ct_aio
l_.str.1:                               ; @.str.1
	.asciz	"assertion (meta->aio == a) will fail\n"

l_.str.2:                               ; @.str.2
	.asciz	"%p != %p\n"

l_.str.3:                               ; @.str.3
	.asciz	"ERROR reading metafile: read %d bytes out of %d: %m\n"

l_.str.4:                               ; @.str.4
	.asciz	"*** Read metafile: read %d bytes\n"

	.comm	_allocated_metafile_bytes,4,2   ; @allocated_metafile_bytes
	.comm	_metafiles_load_errors,4,2      ; @metafiles_load_errors
	.comm	_metafiles_loaded,4,2           ; @metafiles_loaded
	.comm	_metafiles,4,2                  ; @metafiles
	.comm	_metafiles_load_success,4,2     ; @metafiles_load_success
	.comm	_use_metafile_crc32,8,3         ; @use_metafile_crc32
	.comm	_tot_aio_loaded_bytes,4,2       ; @tot_aio_loaded_bytes
.subsections_via_symbols
