	.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), %r13
	cmpl	$3, (%r13)
	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	8(%r15), %r12
	cmpq	%rbx, 8(%r15)
	je	LBB0_3
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r13), %edi
	movq	_verbosity@GOTPCREL(%rip), %r13
	movq	(%r12), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r12), %rax
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rax
LBB0_5:
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_assert
	movl	(%r15), %r8d
	cmpl	%r14d, %r8d
	jne	LBB0_6
## %bb.9:
	movl	$1, %ebx
	movl	$1, %edi
	callq	_assert
	movq	_tot_aio_loaded_bytes@GOTPCREL(%rip), %rax
	addl	%r14d, (%rax)
	cmpl	$3, (%r13)
	jl	LBB0_11
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_11:
	movq	16(%r15), %rdi
	movl	(%r15), %esi
	movl	24(%r15), %edx
	xorl	%ecx, %ecx
	callq	_onload_counter
	movq	16(%r15), %rdi
	movl	(%r15), %esi
	callq	_zzfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	andb	$-2, 4(%r15)
	movl	(%r15), %eax
	movq	_tot_user_metafile_bytes@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movq	_tot_user_metafiles@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_12
LBB0_6:
	cmpl	$0, (%r13)
	js	LBB0_8
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %r8d
LBB0_8:
	movq	16(%r15), %rdi
	movl	%r8d, %esi
	callq	_zzfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	movq	_tot_aio_fails@GOTPCREL(%rip), %rax
	incl	(%rax)
	orb	$1, 4(%r15)
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %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 (counter %lld): read %d bytes out of %lld: %m\n"

	.comm	_tot_aio_fails,4,2              ## @tot_aio_fails
	.comm	_tot_aio_loaded_bytes,4,2       ## @tot_aio_loaded_bytes
L_.str.4:                               ## @.str.4
	.asciz	"*** Read metafile: read %d bytes\n"

	.comm	_tot_user_metafile_bytes,4,2    ## @tot_user_metafile_bytes
	.comm	_tot_user_metafiles,4,2         ## @tot_user_metafiles
.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, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _verbosity@GOTPAGE
Lloh1:
	ldr	x24, [x24, _verbosity@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x23, _stderr@GOTPAGE
Lloh3:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x23]
	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	x22, x21
	ldr	x8, [x22, #8]!
	cmp	x8, x20
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x23]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	w0, [x23]
	ldr	x8, [x22]
	stp	x8, x20, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	x8, [x22]
	b	LBB0_5
LBB0_4:
	mov	x8, x20
LBB0_5:
	cmp	x8, x20
	cset	w0, eq
	bl	_assert
	ldr	w1, [x21]
	cmp	w1, w19
	b.ne	LBB0_9
; %bb.6:
	mov	w0, #1
	bl	_assert
Lloh13:
	adrp	x8, _tot_aio_loaded_bytes@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tot_aio_loaded_bytes@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
	ldr	w8, [x24]
	cmp	w8, #3
	b.lt	LBB0_8
; %bb.7:
	ldr	w0, [x23]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_8:
	ldr	x0, [x21, #16]
	ldr	w1, [x21]
	ldr	w2, [x21, #24]
	mov	w3, #0
	bl	_onload_counter
	ldr	x0, [x21, #16]
	ldr	w1, [x21]
	bl	_zzfree
	stp	xzr, xzr, [x22]
	ldp	w9, w8, [x21]
	and	w8, w8, #0xfffffffe
	str	w8, [x21, #4]
Lloh17:
	adrp	x8, _tot_user_metafile_bytes@GOTPAGE
Lloh18:
	ldr	x8, [x8, _tot_user_metafile_bytes@GOTPAGEOFF]
	ldr	w10, [x8]
	add	w9, w10, w9
	str	w9, [x8]
Lloh19:
	adrp	x8, _tot_user_metafiles@GOTPAGE
Lloh20:
	ldr	x8, [x8, _tot_user_metafiles@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	w0, #1
	b	LBB0_12
LBB0_9:
	ldr	w8, [x24]
	tbnz	w8, #31, LBB0_11
; %bb.10:
	ldr	w0, [x23]
	ldr	w8, [x21, #24]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	stp	x19, x1, [sp, #8]
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	ldr	w1, [x21]
LBB0_11:
	ldr	x0, [x21, #16]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_zzfree
	mov	w0, #0
	stp	xzr, xzr, [x22]
Lloh23:
	adrp	x8, _tot_aio_fails@GOTPAGE
Lloh24:
	ldr	x8, [x8, _tot_aio_fails@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w8, [x21, #4]
	orr	w8, w8, #0x1
	str	w8, [x21, #4]
LBB0_12:
	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
	add	sp, sp, #96
	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 AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.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 (counter %lld): read %d bytes out of %lld: %m\n"

	.comm	_tot_aio_fails,4,2              ; @tot_aio_fails
	.comm	_tot_aio_loaded_bytes,4,2       ; @tot_aio_loaded_bytes
l_.str.4:                               ; @.str.4
	.asciz	"*** Read metafile: read %d bytes\n"

	.comm	_tot_user_metafile_bytes,4,2    ; @tot_user_metafile_bytes
	.comm	_tot_user_metafiles,4,2         ; @tot_user_metafiles
.subsections_via_symbols
