	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_onload_user_metafile           ## -- Begin function onload_user_metafile
	.p2align	4, 0x90
_onload_user_metafile:                  ## @onload_user_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
	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	8(%r15), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movq	8(%r15), %rax
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rax
LBB0_5:
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_assert
	movl	(%r15), %ecx
	cmpl	%r14d, %ecx
	jne	LBB0_6
## %bb.10:
	movl	$1, %edi
	callq	_assert
	cmpl	$3, (%r12)
	jl	LBB0_12
## %bb.11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_12:
	movq	$0, 8(%r15)
	movq	%r15, %rdi
	callq	_bind_user_metafile
	movq	%r15, %rdi
	callq	_add_user_used
	movq	_cur_users@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_allocated_metafile_bytes@GOTPCREL(%rip), %r14
	movq	_max_memory@GOTPCREL(%rip), %r15
	movq	_MEMORY_USER_PERCENT@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	imull	(%r15), %eax
	cmpl	%eax, (%r14)
	jle	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%eax, %eax
	callq	_user_LRU_unload
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.16:
	movl	$1, %edi
	callq	_exit
LBB0_6:
	cmpl	$0, (%r12)
	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	(%r15), %ecx
LBB0_8:
	movq	16(%r15), %rdi
	movl	%ecx, %esi
	callq	_qfree
	movl	(%r15), %eax
	movq	_allocated_metafile_bytes@GOTPCREL(%rip), %rcx
	subl	%eax, (%rcx)
	movl	$-1, (%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_14:
	movl	$1, %eax
LBB0_9:
	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_user_metafile(%p,%d)\n"

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

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

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

	.comm	_allocated_metafile_bytes,4,2   ## @allocated_metafile_bytes
L_.str.4:                               ## @.str.4
	.asciz	"*** Read user: read %d bytes\n"

	.comm	_cur_users,4,2                  ## @cur_users
	.comm	_max_memory,4,2                 ## @max_memory
	.comm	_MEMORY_USER_PERCENT,4,2        ## @MEMORY_USER_PERCENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_onload_user_metafile           ; -- Begin function onload_user_metafile
	.p2align	2
_onload_user_metafile:                  ; @onload_user_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	x20, x1
	mov	x21, 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	x21, x20, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	ldp	x8, x19, [x21]
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	x19, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19, #8]
	cmp	x8, x21
	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, [x19, #8]
	stp	x8, x21, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	x8, [x19, #8]
	b	LBB0_5
LBB0_4:
	mov	x8, x21
LBB0_5:
	cmp	x8, x21
	cset	w0, eq
	bl	_assert
	ldr	w1, [x19]
	cmp	w1, w20
	b.ne	LBB0_12
; %bb.6:
	mov	w0, #1
	bl	_assert
	ldr	w8, [x23]
	cmp	w8, #3
	b.lt	LBB0_8
; %bb.7:
	ldr	w0, [x22]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_8:
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_bind_user_metafile
	mov	x0, x19
	bl	_add_user_used
Lloh15:
	adrp	x8, _cur_users@GOTPAGE
Lloh16:
	ldr	x8, [x8, _cur_users@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh17:
	adrp	x19, _allocated_metafile_bytes@GOTPAGE
Lloh18:
	ldr	x19, [x19, _allocated_metafile_bytes@GOTPAGEOFF]
Lloh19:
	adrp	x20, _max_memory@GOTPAGE
Lloh20:
	ldr	x20, [x20, _max_memory@GOTPAGEOFF]
Lloh21:
	adrp	x21, _MEMORY_USER_PERCENT@GOTPAGE
Lloh22:
	ldr	x21, [x21, _MEMORY_USER_PERCENT@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	ldr	w9, [x20]
	ldr	w10, [x21]
	mul	w9, w10, w9
	cmp	w8, w9
	b.le	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_user_LRU_unload
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.11:
	mov	w0, #1
	bl	_exit
LBB0_12:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.13:
	ldr	w0, [x22]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x20, x1, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	ldr	w1, [x19]
LBB0_14:
	ldr	x0, [x19, #16]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_qfree
	mov	w0, #0
	ldr	w8, [x19]
Lloh25:
	adrp	x9, _allocated_metafile_bytes@GOTPAGE
Lloh26:
	ldr	x9, [x9, _allocated_metafile_bytes@GOTPAGEOFF]
	ldr	w10, [x9]
	sub	w8, w10, w8
	str	w8, [x9]
	mov	w8, #-1
	str	w8, [x19]
	stp	xzr, xzr, [x19, #8]
	b	LBB0_16
LBB0_15:
	mov	w0, #1
LBB0_16:
	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 AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"onload_user_metafile(%p,%d)\n"

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

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

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

	.comm	_allocated_metafile_bytes,4,2   ; @allocated_metafile_bytes
l_.str.4:                               ; @.str.4
	.asciz	"*** Read user: read %d bytes\n"

	.comm	_cur_users,4,2                  ; @cur_users
	.comm	_max_memory,4,2                 ; @max_memory
	.comm	_MEMORY_USER_PERCENT,4,2        ; @MEMORY_USER_PERCENT
.subsections_via_symbols
