	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_user_metafile             ## -- Begin function load_user_metafile
	.p2align	4, 0x90
_load_user_metafile:                    ## @load_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_WaitAioArrClear
	movq	%rbx, %rdi
	callq	_user_loaded
	testq	%rax, %rax
	je	LBB0_1
## %bb.20:
	movq	%rbx, %rdi
	callq	_del_user_used
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_user_used                  ## TAILCALL
LBB0_1:
	movq	_header@GOTPCREL(%rip), %r13
	cmpl	%r14d, (%r13)
	jl	LBB0_3
## %bb.2:
	movq	8(%r13), %rax
	movslq	%r14d, %r12
	movl	(%rax,%r12,8), %edi
	cmpl	$4, %edi
	jg	LBB0_5
LBB0_3:
	movq	_EMPTY__METAFILE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	$0, (%rbx)
	movq	%rbx, _load_user_metafile.empty_aio_conn+8(%rip)
	leaq	_load_user_metafile.empty_aio_conn(%rip), %rdi
	movq	_ct_aio@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, _load_user_metafile.empty_aio_conn(%rip)
	movq	%rdi, 8(%rbx)
	xorl	%esi, %esi
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_onload_user_metafile           ## TAILCALL
LBB0_5:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %rdi
	callq	_check_aio_completion
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_22
## %bb.7:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	8(%r13), %rax
	movl	(%rax,%r12,8), %edi
LBB0_9:
	movl	%edi, (%rbx)
	callq	_dl_malloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_dl_get_memory_used
	leaq	L_.str.1(%rip), %rsi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%edi, %edi
	callq	_assert
LBB0_11:
	movl	(%rbx), %eax
	movq	_allocated_metafile_bytes@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_13
## %bb.12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	8(%r13), %rax
	movl	4(%rax,%r12,8), %ecx
	movl	(%rbx), %r8d
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_13:
	testl	%r14d, %r14d
	setg	%al
	cmpl	%r14d, (%r13)
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	testl	%r15d, %r15d
	je	LBB0_21
## %bb.14:
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_utime
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movq	8(%r13), %rax
	movl	(%rax,%r12,8), %r15d
	movl	4(%rax,%r12,8), %ecx
	movq	_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rsi
	movl	%r15d, %edx
	callq	_pread
	cmpl	%r15d, %eax
	je	LBB0_16
## %bb.15:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%r13), %rcx
	movl	4(%rcx,%r12,8), %r9d
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%edi, %edi
	callq	_assert
LBB0_16:
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_utime
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_18
## %bb.17:
	subsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movb	$1, %al
	callq	_fprintf
LBB0_18:
	movq	%rbx, _load_user_metafile.empty_aio_conn+8(%rip)
	leaq	_load_user_metafile.empty_aio_conn(%rip), %r14
	movq	_ct_aio@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, _load_user_metafile.empty_aio_conn(%rip)
	movq	%r14, 8(%rbx)
	movl	$1, %edi
	callq	_assert
	movl	(%rbx), %esi
	movq	%r14, %rdi
	jmp	LBB0_4
LBB0_21:
	movq	_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rsi
	movq	8(%r13), %rax
	movl	4(%rax,%r12,8), %edx
	movl	(%rbx), %ecx
	movq	_ct_metafile_aio@GOTPCREL(%rip), %r8
	movq	%rbx, %r9
	callq	_create_aio_read_connection
	movq	%rax, 8(%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	8(%rbx), %rdi
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WaitAioArrAdd                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_load_user_metafile.empty_aio_conn,16,3 ## @load_user_metafile.empty_aio_conn
	.comm	_header,16,3                    ## @header
	.comm	_EMPTY__METAFILE,8,3            ## @EMPTY__METAFILE
	.comm	_ct_aio,8,3                     ## @ct_aio
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Previous AIO query failed for user at %p, scheduling a new one\n"

L_.str.1:                               ## @.str.1
	.asciz	"no space to load metafile - cannot allocate %d bytes (%lld currently used)\n"

	.comm	_allocated_metafile_bytes,4,2   ## @allocated_metafile_bytes
	.comm	_verbosity,4,2                  ## @verbosity
L_.str.2:                               ## @.str.2
	.asciz	"*** Scheduled reading user data from index %d at position %lld, %d bytes, noaio = %d\n"

	.comm	_fd,8,3                         ## @fd
	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
L_.str.3:                               ## @.str.3
	.asciz	"error reading user %d from index file: read %d bytes instead of %d at position %lld: %m\n"

L_.str.4:                               ## @.str.4
	.asciz	"  disk time = %.6lf\n"

	.comm	_ct_metafile_aio,4,2            ## @ct_metafile_aio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_user_metafile             ; -- Begin function load_user_metafile
	.p2align	2
_load_user_metafile:                    ; @load_user_metafile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_WaitAioArrClear
	mov	x0, x19
	bl	_user_loaded
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_del_user_used
	mov	x0, x19
	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	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_add_user_used
LBB0_2:
Lloh0:
	adrp	x23, _header@GOTPAGE
Lloh1:
	ldr	x23, [x23, _header@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w20
	b.lt	LBB0_4
; %bb.3:
	ldr	x8, [x23, #8]
	sbfiz	x9, x20, #3, #32
	ldr	w0, [x8, x9]
	cmp	w0, #4
	b.gt	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _EMPTY__METAFILE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EMPTY__METAFILE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	wzr, [x19]
Lloh5:
	adrp	x0, _load_user_metafile.empty_aio_conn@PAGE
Lloh6:
	add	x0, x0, _load_user_metafile.empty_aio_conn@PAGEOFF
Lloh7:
	adrp	x9, _ct_aio@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ct_aio@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	stp	x9, x19, [x0]
	stp	x0, x8, [x19, #8]
	mov	w1, #0
LBB0_5:
	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	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_onload_user_metafile
LBB0_6:
	sxtw	x24, w20
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.7:
	mov	x0, x8
	bl	_check_aio_completion
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_22
; %bb.8:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
; %bb.9:
	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	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x8, [x23, #8]
	lsl	x9, x24, #3
	ldr	w0, [x8, x9]
LBB0_11:
	str	w0, [x19]
	bl	_dl_malloc
	str	x0, [x19, #16]
	cbnz	x0, LBB0_13
; %bb.12:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	ldr	w25, [x19]
	bl	_dl_get_memory_used
	stp	x25, x0, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_fprintf
	mov	w0, #0
	bl	_assert
LBB0_13:
	ldr	w8, [x19]
Lloh20:
	adrp	x9, _allocated_metafile_bytes@GOTPAGE
Lloh21:
	ldr	x9, [x9, _allocated_metafile_bytes@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
Lloh22:
	adrp	x22, _verbosity@GOTPAGE
Lloh23:
	ldr	x22, [x22, _verbosity@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh24:
	adrp	x26, _fd@GOTPAGE
Lloh25:
	ldr	x26, [x26, _fd@GOTPAGEOFF]
	cmp	w8, #3
	b.lt	LBB0_15
; %bb.14:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	x8, [x26]
	ldr	x9, [x23, #8]
	add	x9, x9, x24, lsl #3
	ldr	w9, [x9, #4]
	ldr	w8, [x8]
	ldr	w10, [x19]
	stp	x10, x21, [sp, #16]
	stp	x8, x9, [sp]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_15:
	cmp	w20, #0
	ldr	w8, [x23]
	ccmp	w8, w20, #8, gt
	cset	w0, ge
	bl	_assert
	cbz	w21, LBB0_21
; %bb.16:
Lloh31:
	adrp	x25, _CLOCK_MONOTONIC@GOTPAGE
Lloh32:
	ldr	x25, [x25, _CLOCK_MONOTONIC@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_get_utime
	fmov	d8, d0
	ldr	x8, [x23, #8]
	add	x8, x8, x24, lsl #3
	ldr	x9, [x26]
	ldr	w0, [x9]
	ldr	x1, [x19, #16]
	ldp	w21, w3, [x8]
	mov	x2, x21
	bl	_pread
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, w21
	b.eq	LBB0_18
; %bb.17:
Lloh33:
	adrp	x8, _stderr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	x9, [x23, #8]
	add	x9, x9, x24, lsl #3
	ldr	w9, [x9, #4]
	stp	x21, x9, [sp, #16]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x20, x0, [sp]
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	bl	_fprintf
	mov	w0, #0
	bl	_assert
LBB0_18:
	ldr	w0, [x25]
	bl	_get_utime
	ldr	w8, [x22]
	cmp	w8, #3
	b.lt	LBB0_20
; %bb.19:
	fsub	d0, d0, d8
Lloh38:
	adrp	x8, _stderr@GOTPAGE
Lloh39:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	str	d0, [sp]
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_20:
Lloh43:
	adrp	x20, _load_user_metafile.empty_aio_conn@PAGE
Lloh44:
	add	x20, x20, _load_user_metafile.empty_aio_conn@PAGEOFF
Lloh45:
	adrp	x8, _ct_aio@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ct_aio@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	stp	x8, x19, [x20]
	str	x20, [x19, #8]
	mov	w0, #1
	bl	_assert
	ldr	w1, [x19]
	mov	x0, x20
	b	LBB0_5
LBB0_21:
	ldr	x8, [x26]
	ldr	w0, [x8]
	ldr	x1, [x19, #16]
	ldr	x8, [x23, #8]
	add	x8, x8, x24, lsl #3
	ldr	w2, [x8, #4]
	ldr	w3, [x19]
Lloh48:
	adrp	x4, _ct_metafile_aio@GOTPAGE
Lloh49:
	ldr	x4, [x4, _ct_metafile_aio@GOTPAGEOFF]
	mov	x5, x19
	bl	_create_aio_read_connection
	str	x0, [x19, #8]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x0, [x19, #8]
LBB0_22:
	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	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_WaitAioArrAdd
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_load_user_metafile.empty_aio_conn,16,3 ; @load_user_metafile.empty_aio_conn
	.comm	_header,16,3                    ; @header
	.comm	_EMPTY__METAFILE,8,3            ; @EMPTY__METAFILE
	.comm	_ct_aio,8,3                     ; @ct_aio
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Previous AIO query failed for user at %p, scheduling a new one\n"

l_.str.1:                               ; @.str.1
	.asciz	"no space to load metafile - cannot allocate %d bytes (%lld currently used)\n"

	.comm	_allocated_metafile_bytes,4,2   ; @allocated_metafile_bytes
	.comm	_verbosity,4,2                  ; @verbosity
l_.str.2:                               ; @.str.2
	.asciz	"*** Scheduled reading user data from index %d at position %lld, %d bytes, noaio = %d\n"

	.comm	_fd,8,3                         ; @fd
	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
l_.str.3:                               ; @.str.3
	.asciz	"error reading user %d from index file: read %d bytes instead of %d at position %lld: %m\n"

l_.str.4:                               ; @.str.4
	.asciz	"  disk time = %.6lf\n"

	.comm	_ct_metafile_aio,4,2            ; @ct_metafile_aio
.subsections_via_symbols
