	.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, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_WaitAio@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	callq	_user_loaded
	testq	%rax, %rax
	je	LBB0_1
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_header@GOTPCREL(%rip), %r12
	cmpl	%r15d, (%r12)
	jl	LBB0_3
## %bb.2:
	movq	8(%r12), %rax
	movslq	%r15d, %r13
	movl	(%rax,%r13,8), %edi
	testl	%edi, %edi
	je	LBB0_3
## %bb.5:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %rdi
	callq	_check_aio_completion
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_WaitAio@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_22
LBB0_3:
	movq	$0, 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_8:
	cmpq	$0, 16(%rbx)
	jne	LBB0_22
## %bb.9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	8(%r12), %rax
	movl	(%rax,%r13,8), %edi
LBB0_10:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	%edi, (%rbx)
	movq	$0, 16(%rbx)
	callq	_qmalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movq	_allocated_metafile_bytes@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r12
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movl	(%r13), %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%rbx), %edi
	callq	_qmalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_12
LBB0_13:
	movl	(%rbx), %eax
	movq	_allocated_metafile_bytes@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	movq	_header@GOTPCREL(%rip), %r13
	jl	LBB0_15
## %bb.14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rax,%rcx,8), %edx
	movl	(%rbx), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_15:
	testl	%r15d, %r15d
	setg	%al
	cmpl	%r15d, (%r13)
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	testl	%r14d, %r14d
	movq	_WaitAio@GOTPCREL(%rip), %r14
	je	LBB0_21
## %bb.16:
	movl	$1, %edi
	callq	_get_utime
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movq	_fd@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	8(%r13), %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	4(%rax,%r12,8), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lseek
	movq	8(%r13), %rcx
	xorl	%edi, %edi
	cmpl	4(%rcx,%r12,8), %eax
	sete	%dil
	callq	_assert
	movq	8(%r13), %rax
	movl	(%rax,%r12,8), %r14d
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rsi
	movl	%r14d, %edx
	callq	_read
	movl	%eax, %r15d
	cmpl	%r14d, %eax
	je	LBB0_18
## %bb.17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r13), %rax
	movl	4(%rax,%r12,8), %r8d
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_18:
	xorl	%edi, %edi
	cmpl	%r14d, %r15d
	sete	%dil
	callq	_assert
	movl	$1, %edi
	callq	_get_utime
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_20
## %bb.19:
	subsd	-56(%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_20:
	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
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rax,%rcx,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), %rax
	movq	%rax, (%r14)
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_load_user_metafile.empty_aio_conn,16,3 ## @load_user_metafile.empty_aio_conn
	.comm	_WaitAio,8,3                    ## @WaitAio
	.comm	_header,16,3                    ## @header
	.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 at position %lld, %d bytes, noaio = %d\n"

	.comm	_fd,8,3                         ## @fd
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.3:                               ## @.str.3
	.asciz	"error reading header 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, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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 w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _WaitAio@GOTPAGE
Lloh1:
	ldr	x25, [x25, _WaitAio@GOTPAGEOFF]
	str	xzr, [x25]
	bl	_user_loaded
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_2:
Lloh2:
	adrp	x23, _header@GOTPAGE
Lloh3:
	ldr	x23, [x23, _header@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w21
	b.lt	LBB0_19
; %bb.3:
	ldr	x8, [x23, #8]
	sbfiz	x9, x21, #3, #32
	ldr	w0, [x8, x9]
	cbz	w0, LBB0_19
; %bb.4:
	sxtw	x24, w21
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.5:
	mov	x0, x8
	bl	_check_aio_completion
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_22
; %bb.6:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_1
; %bb.7:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x8, [x23, #8]
	lsl	x9, x24, #3
	ldr	w0, [x8, x9]
LBB0_8:
	str	w0, [x19]
	str	xzr, [x19, #16]
	bl	_qmalloc
	str	x0, [x19, #16]
Lloh9:
	adrp	x26, _allocated_metafile_bytes@GOTPAGE
Lloh10:
	ldr	x26, [x26, _allocated_metafile_bytes@GOTPAGEOFF]
	cbnz	x0, LBB0_11
; %bb.9:
Lloh11:
	adrp	x27, _stderr@GOTPAGE
Lloh12:
	ldr	x27, [x27, _stderr@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str.1@PAGE
Lloh14:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	ldr	w8, [x19]
	ldr	w9, [x26]
	stp	x8, x9, [sp]
	mov	x1, x22
	bl	_fprintf
	ldr	w0, [x19]
	bl	_qmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_10
LBB0_11:
	ldr	w8, [x19]
	ldr	w9, [x26]
	add	w8, w9, w8
	str	w8, [x26]
Lloh15:
	adrp	x22, _verbosity@GOTPAGE
Lloh16:
	ldr	x22, [x22, _verbosity@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #3
	b.lt	LBB0_13
; %bb.12:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x8, [x23, #8]
	add	x8, x8, x24, lsl #3
	ldr	w8, [x8, #4]
	ldr	w9, [x19]
	stp	x9, x20, [sp, #8]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_13:
	cmp	w21, #0
	ldr	w8, [x23]
	ccmp	w8, w21, #8, gt
	cset	w0, ge
	bl	_assert
	cbz	w20, LBB0_21
; %bb.14:
	mov	w0, #1
	bl	_get_utime
	fmov	d8, d0
Lloh22:
	adrp	x21, _fd@GOTPAGE
Lloh23:
	ldr	x21, [x21, _fd@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldr	x8, [x23, #8]
	lsl	x20, x24, #3
	add	x8, x8, x20
	ldr	w1, [x8, #4]
Lloh24:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	bl	_lseek
	ldr	x8, [x23, #8]
	add	x8, x8, x20
	ldr	w8, [x8, #4]
	cmp	w0, w8
	cset	w0, eq
	bl	_assert
	ldr	x8, [x23, #8]
	ldr	w20, [x8, x20]
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldr	x1, [x19, #16]
	mov	x2, x20
	bl	_read
	mov	x21, x0
	cmp	w0, w20
	b.eq	LBB0_16
; %bb.15:
Lloh27:
	adrp	x8, _stderr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	x8, [x23, #8]
	add	x8, x8, x24, lsl #3
	ldr	w8, [x8, #4]
	stp	x20, x8, [sp, #8]
	str	x21, [sp]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_16:
	cmp	w21, w20
	cset	w0, eq
	bl	_assert
	mov	w0, #1
	bl	_get_utime
	ldr	w8, [x22]
	cmp	w8, #3
	b.lt	LBB0_18
; %bb.17:
	fsub	d0, d0, d8
Lloh32:
	adrp	x8, _stderr@GOTPAGE
Lloh33:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	str	d0, [sp]
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_18:
Lloh37:
	adrp	x20, _load_user_metafile.empty_aio_conn@PAGE
Lloh38:
	add	x20, x20, _load_user_metafile.empty_aio_conn@PAGEOFF
Lloh39:
	adrp	x8, _ct_aio@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ct_aio@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	stp	x8, x19, [x20]
	str	x20, [x19, #8]
	mov	w0, #1
	bl	_assert
	ldr	w1, [x19]
	mov	x0, x20
	b	LBB0_20
LBB0_19:
	str	wzr, [x19]
Lloh42:
	adrp	x0, _load_user_metafile.empty_aio_conn@PAGE
Lloh43:
	add	x0, x0, _load_user_metafile.empty_aio_conn@PAGEOFF
Lloh44:
	adrp	x8, _ct_aio@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ct_aio@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	stp	x8, x19, [x0]
	stp	x0, xzr, [x19, #8]
	mov	w1, #0
LBB0_20:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_onload_user_metafile
LBB0_21:
Lloh47:
	adrp	x8, _fd@GOTPAGE
Lloh48:
	ldr	x8, [x8, _fd@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	x1, [x19, #16]
	ldr	x8, [x23, #8]
	add	x8, x8, x24, lsl #3
	ldr	w2, [x8, #4]
	ldr	w3, [x19]
Lloh50:
	adrp	x4, _ct_metafile_aio@GOTPAGE
Lloh51:
	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	x8, [x19, #8]
LBB0_22:
	str	x8, [x25]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_load_user_metafile.empty_aio_conn,16,3 ; @load_user_metafile.empty_aio_conn
	.comm	_WaitAio,8,3                    ; @WaitAio
	.comm	_header,16,3                    ; @header
	.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 at position %lld, %d bytes, noaio = %d\n"

	.comm	_fd,8,3                         ; @fd
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.3:                               ; @.str.3
	.asciz	"error reading header 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
