	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filesys_preload_filelist
_filesys_preload_filelist:              ## @filesys_preload_filelist
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_strlen
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_strdup
	movq	_engine_replica_name@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	leal	6(%r14), %edi
	callq	_malloc
	movq	_engine_snapshot_replica_name@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	movslq	%r14d, %rdi
	addq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	cmpq	$0, (%r12)
	setne	%al
	cmpq	$0, (%r15)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	(%r12), %rdi
	xorl	%esi, %esi
	callq	_open_replica
	movq	_engine_replica@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rdi
	movl	$1, %esi
	callq	_open_replica
	movq	%rax, %rcx
	movq	_engine_snapshot_replica@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_engine_replica_name,8,3        ## @engine_replica_name
	.comm	_engine_snapshot_replica_name,8,3 ## @engine_snapshot_replica_name
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-fake"

	.comm	_engine_replica,8,3             ## @engine_replica
	.comm	_engine_snapshot_replica,8,3    ## @engine_snapshot_replica
	.no_dead_strip	_filesys_preload_filelist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filesys_preload_filelist
_filesys_preload_filelist:              ; @filesys_preload_filelist
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_strlen
	mov	x20, x0
	mov	x0, x19
	bl	_strdup
Lloh0:
	adrp	x22, _engine_replica_name@GOTPAGE
Lloh1:
	ldr	x22, [x22, _engine_replica_name@GOTPAGEOFF]
	str	x0, [x22]
	add	w0, w20, #6
	bl	_malloc
Lloh2:
	adrp	x21, _engine_snapshot_replica_name@GOTPAGE
Lloh3:
	ldr	x21, [x21, _engine_snapshot_replica_name@GOTPAGEOFF]
	str	x0, [x21]
	mov	x1, x19
	bl	_strcpy
	ldr	x8, [x21]
	add	x0, x8, w20, sxtw
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	ldr	x8, [x22]
	cmp	x8, #0
	ldr	x8, [x21]
	ccmp	x8, #0, #4, ne
	cset	w0, ne
	bl	_assert
	ldr	x0, [x22]
	mov	w1, #0
	bl	_open_replica
Lloh6:
	adrp	x8, _engine_replica@GOTPAGE
Lloh7:
	ldr	x8, [x8, _engine_replica@GOTPAGEOFF]
Lloh8:
	str	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x21]
	mov	w1, #1
	bl	_open_replica
Lloh9:
	adrp	x8, _engine_snapshot_replica@GOTPAGE
Lloh10:
	ldr	x8, [x8, _engine_snapshot_replica@GOTPAGEOFF]
Lloh11:
	str	x0, [x8]
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_engine_replica_name,8,3        ; @engine_replica_name
	.comm	_engine_snapshot_replica_name,8,3 ; @engine_snapshot_replica_name
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-fake"

	.comm	_engine_replica,8,3             ; @engine_replica
	.comm	_engine_snapshot_replica,8,3    ; @engine_snapshot_replica
	.no_dead_strip	_filesys_preload_filelist
.subsections_via_symbols
