	.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
	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, %r14d
	movq	%rdi, %rbx
	movq	_verbosity@GOTPCREL(%rip), %r13
	cmpl	$2, (%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), %r12
	movq	_ct_aio@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_assert
	cmpq	%rbx, (%r12)
	je	LBB0_3
## %bb.4:
	movl	%r14d, %r15d
	movq	_stderr@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r14), %edi
	movl	%r15d, %r14d
	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
	movq	_large_metafiles@GOTPCREL(%rip), %rax
	movq	%r12, %r15
	subq	(%rax), %r15
	movq	%r15, %rbx
	shrq	$4, %rbx
	testl	%ebx, %ebx
	setns	%al
	movq	_large_users_number@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	cmpl	$1, (%r13)
	jle	LBB0_6
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_large_users@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$28, %r15
	movslq	%ebx, %r13
	movl	(%rax,%r13,8), %ecx
	movq	_index_large_data_offset@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	movslq	4(%rax,%r13,8), %rax
	leaq	(%rdx,%rax,8), %r9
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_8
LBB0_6:
	shlq	$28, %r15
	movslq	%ebx, %r13
LBB0_8:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movslq	%r14d, %rcx
	movq	_large_users@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rax
	movabsq	$4294967296, %r14               ## imm = 0x100000000
	addq	%r15, %r14
	sarq	$32, %r14
	movslq	4(%rax,%r14,8), %rdx
	movslq	4(%rax,%r13,8), %r8
	subq	%r8, %rdx
	shlq	$3, %rdx
	cmpq	%rcx, %rdx
	jne	LBB0_9
## %bb.12:
	movq	$0, (%r12)
	movq	_metafiles_loaded@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	%ebx, %edi
	callq	_add_use
	movq	_metafiles_load_success@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_tot_aio_loaded_bytes@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_13
LBB0_9:
	movq	_verbosity@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	js	LBB0_11
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax,%r13,8), %ecx
	movq	_index_large_data_offset@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rsi, %r15
	leaq	(%rax,%r8,8), %r8
	movq	%rdx, (%rsp)
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r15, %rsi
LBB0_11:
	movq	$0, (%r12)
	movq	8(%r12), %rdi
	movq	(%rsi), %rax
	movl	4(%rax,%r14,8), %esi
	subl	4(%rax,%r13,8), %esi
	shll	$3, %esi
	callq	_metafile_free
	movq	$0, 8(%r12)
	movl	$1, %ecx
	movq	_metafiles_load_errors@GOTPCREL(%rip), %rax
LBB0_13:
	addl	%ecx, (%rax)
	movl	$1, %eax
	addq	$24, %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"

	.comm	_large_metafiles,8,3            ## @large_metafiles
	.comm	_large_users_number,4,2         ## @large_users_number
L_.str.3:                               ## @.str.3
	.asciz	"*** Read metafile %d for large user %d : read %d bytes at position %lld\n"

	.comm	_large_users,8,3                ## @large_users
	.comm	_index_large_data_offset,4,2    ## @index_large_data_offset
L_.str.4:                               ## @.str.4
	.asciz	"ERROR reading metafile %d for large user %d at position %lld: read %d bytes out of %ld: %m\n"

	.comm	_metafiles_load_errors,4,2      ## @metafiles_load_errors
	.comm	_metafiles_loaded,4,2           ## @metafiles_loaded
	.comm	_metafiles_load_success,4,2     ## @metafiles_load_success
	.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, #128
	.cfi_def_cfa_offset 128
	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
	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, #2
	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
	ldr	x8, [x21]
	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, [x21]
	stp	x8, x20, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	x8, [x21]
	b	LBB0_5
LBB0_4:
	mov	x8, x20
LBB0_5:
	cmp	x8, x20
	cset	w0, eq
	bl	_assert
Lloh13:
	adrp	x8, _large_metafiles@GOTPAGE
Lloh14:
	ldr	x8, [x8, _large_metafiles@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	sub	x25, x21, x8
	lsr	x20, x25, #4
	cmp	w20, #0
Lloh16:
	adrp	x8, _large_users_number@GOTPAGE
Lloh17:
	ldr	x8, [x8, _large_users_number@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ccmp	w8, w20, #4, ge
	cset	w0, gt
	bl	_assert
	ldr	w8, [x23]
Lloh19:
	adrp	x24, _large_users@GOTPAGE
Lloh20:
	ldr	x24, [x24, _large_users@GOTPAGEOFF]
	cmp	w8, #1
	b.le	LBB0_7
; %bb.6:
	ldr	w0, [x22]
	ldr	x8, [x24]
	lsl	x26, x25, #28
	sbfx	x25, x25, #4, #32
	add	x8, x8, w20, sxtw #3
Lloh21:
	adrp	x9, _index_large_data_offset@GOTPAGE
Lloh22:
	ldr	x9, [x9, _index_large_data_offset@GOTPAGEOFF]
Lloh23:
	ldrsw	x9, [x9]
	ldp	w8, w10, [x8]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	x9, x9, x10, lsl #3
	mov	x10, x19
	stp	x10, x9, [sp, #16]
	mov	x9, x20
	stp	x9, x8, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	b	LBB0_8
LBB0_7:
	lsl	x26, x25, #28
	sbfx	x25, x25, #4, #32
LBB0_8:
	ldr	x8, [x24]
	mov	x9, #4294967296
	add	x9, x26, x9
	asr	x26, x9, #32
	add	x9, x8, x26, lsl #3
	ldr	w9, [x9, #4]
	add	x10, x8, x25, lsl #3
	ldrsw	x10, [x10, #4]
	sub	w9, w9, w10
	sbfiz	x9, x9, #3, #32
	cmp	x9, w19, sxtw
	b.ne	LBB0_10
; %bb.9:
	str	xzr, [x21]
Lloh26:
	adrp	x8, _metafiles_loaded@GOTPAGE
Lloh27:
	ldr	x8, [x8, _metafiles_loaded@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x20
	bl	_add_use
Lloh28:
	adrp	x8, _metafiles_load_success@GOTPAGE
Lloh29:
	ldr	x8, [x8, _metafiles_load_success@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh30:
	adrp	x8, _tot_aio_loaded_bytes@GOTPAGE
Lloh31:
	ldr	x8, [x8, _tot_aio_loaded_bytes@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
	ldr	w11, [x23]
	tbnz	w11, #31, LBB0_12
; %bb.11:
	ldr	w0, [x22]
	lsl	x11, x25, #3
Lloh32:
	adrp	x12, _index_large_data_offset@GOTPAGE
Lloh33:
	ldr	x12, [x12, _index_large_data_offset@GOTPAGEOFF]
Lloh34:
	ldrsw	x12, [x12]
	add	x10, x12, x10, lsl #3
	ldr	w8, [x8, x11]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	stp	x19, x9, [sp, #24]
	stp	x8, x10, [sp, #8]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_12:
	str	xzr, [x21]
	ldr	x0, [x21, #8]
	ldr	x8, [x24]
	add	x9, x8, x26, lsl #3
	ldr	w9, [x9, #4]
	add	x8, x8, x25, lsl #3
	ldr	w8, [x8, #4]
	sub	w8, w9, w8
	lsl	w1, w8, #3
	bl	_metafile_free
	str	xzr, [x21, #8]
	mov	w19, #1
Lloh37:
	adrp	x8, _metafiles_load_errors@GOTPAGE
Lloh38:
	ldr	x8, [x8, _metafiles_load_errors@GOTPAGEOFF]
LBB0_13:
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
	mov	w0, #1
	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
	add	sp, sp, #128
	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	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.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"

	.comm	_large_metafiles,8,3            ; @large_metafiles
	.comm	_large_users_number,4,2         ; @large_users_number
l_.str.3:                               ; @.str.3
	.asciz	"*** Read metafile %d for large user %d : read %d bytes at position %lld\n"

	.comm	_large_users,8,3                ; @large_users
	.comm	_index_large_data_offset,4,2    ; @index_large_data_offset
l_.str.4:                               ; @.str.4
	.asciz	"ERROR reading metafile %d for large user %d at position %lld: read %d bytes out of %ld: %m\n"

	.comm	_metafiles_load_errors,4,2      ; @metafiles_load_errors
	.comm	_metafiles_loaded,4,2           ; @metafiles_loaded
	.comm	_metafiles_load_success,4,2     ; @metafiles_load_success
	.comm	_tot_aio_loaded_bytes,4,2       ; @tot_aio_loaded_bytes
.subsections_via_symbols
