	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_engine_preload_filelist        ## -- Begin function engine_preload_filelist
	.p2align	4, 0x90
_engine_preload_filelist:               ## @engine_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	%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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_strlen
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	cmpb	$0, (%r14)
	je	LBB0_6
## %bb.2:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movslq	%r15d, %rdi
	addq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r12d
	cmpl	$5, %eax
	jl	LBB0_9
## %bb.8:
	movl	%r12d, %eax
	leaq	(%r14,%rax), %rdi
	addq	$-4, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	leal	-4(%r12), %ecx
	testl	%eax, %eax
	cmovnel	%r12d, %ecx
	movl	%ecx, %r12d
LBB0_9:
	movq	%rbx, %rdi
	callq	_strdup
	movq	_engine_snapshot_replica_name@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	cmpb	$46, (%r14)
	jne	LBB0_11
## %bb.10:
	leal	(%r12,%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	(%r12,%r15), %edi
	incl	%edi
	callq	_malloc
	movq	_engine_replica_name@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	movl	%eax, %edi
	callq	_assert
	movq	(%r13), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movslq	%r15d, %rdi
	shlq	$3, %rdi
	addq	(%r13), %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	(%r13), %rax
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	jmp	LBB0_12
LBB0_6:
	movq	%rbx, %rdi
	callq	_strdup
	movq	_engine_replica_name@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_engine_snapshot_replica_name@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_13:
	testq	%rax, %rax
	setne	%al
	movq	_engine_snapshot_replica_name@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_engine_replica_name@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_open_replica
	movq	_engine_replica@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	(%r14), %rdi
	cmpq	(%rbx), %rdi
	je	LBB0_16
## %bb.18:
	movl	$1, %esi
	callq	_open_replica
	movq	_engine_snapshot_replica@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_17
## %bb.19:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_14:
	movl	$-1, %eax
	jmp	LBB0_20
LBB0_16:
	movq	_engine_snapshot_replica@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_17:
	movl	$1, %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leal	1(%r12), %edi
	callq	_malloc
	movq	_engine_replica_name@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movl	%eax, %edi
	callq	_assert
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movslq	%r12d, %rcx
LBB0_12:
	movq	$0, (%rax,%rcx,8)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".bin"

	.comm	_engine_replica_name,8,3        ## @engine_replica_name
	.comm	_engine_snapshot_replica_name,8,3 ## @engine_snapshot_replica_name
	.comm	_engine_replica,8,3             ## @engine_replica
	.comm	_engine_snapshot_replica,8,3    ## @engine_snapshot_replica
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_engine_preload_filelist        ; -- Begin function engine_preload_filelist
	.p2align	2
_engine_preload_filelist:               ; @engine_preload_filelist
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	bl	_strlen
Lloh0:
	adrp	x23, _engine_snapshot_replica_name@GOTPAGE
Lloh1:
	ldr	x23, [x23, _engine_snapshot_replica_name@GOTPAGEOFF]
Lloh2:
	adrp	x24, _engine_replica_name@GOTPAGE
Lloh3:
	ldr	x24, [x24, _engine_replica_name@GOTPAGEOFF]
	cbz	x19, LBB0_10
; %bb.1:
	ldrb	w8, [x19]
	cbz	w8, LBB0_10
; %bb.2:
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_strncmp
	cbnz	w0, LBB0_6
; %bb.5:
	add	x0, x19, w21, sxtw
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_10
LBB0_6:
	mov	x0, x19
	bl	_strlen
	mov	x22, x0
	cmp	w0, #5
	b.lt	LBB0_8
; %bb.7:
	add	x8, x19, w22, uxtw
	sub	x0, x8, #4
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	sub	w8, w22, #4
	cmp	w0, #0
	csel	w22, w8, w22, eq
LBB0_8:
	mov	x0, x20
	bl	_strdup
	str	x0, [x23]
	ldrb	w8, [x19]
	cmp	w8, #46
	b.ne	LBB0_18
; %bb.9:
	add	w25, w22, w21
	add	w0, w25, #1
	bl	_malloc
	str	x0, [x24]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_assert
	ldr	x0, [x24]
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x24]
	add	x0, x8, w21, sxtw #3
	mov	x1, x19
	mov	x2, x22
	bl	_memcpy
	ldr	x0, [x24]
	str	xzr, [x0, w25, sxtw #3]
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_strdup
	str	x0, [x24]
	str	x0, [x23]
LBB0_11:
	cmp	x0, #0
	ldr	x8, [x23]
	ccmp	x8, #0, #4, ne
	cset	w0, ne
	bl	_assert
	ldr	x0, [x24]
	mov	w1, #0
	bl	_open_replica
Lloh10:
	adrp	x8, _engine_replica@GOTPAGE
Lloh11:
	ldr	x8, [x8, _engine_replica@GOTPAGEOFF]
Lloh12:
	str	x0, [x8]
	cbz	x0, LBB0_14
; %bb.12:
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.13:
	mov	x0, x8
	mov	w1, #1
	bl	_open_replica
Lloh13:
	adrp	x8, _engine_snapshot_replica@GOTPAGE
Lloh14:
	ldr	x8, [x8, _engine_snapshot_replica@GOTPAGEOFF]
Lloh15:
	str	x0, [x8]
	cbnz	x0, LBB0_16
	b	LBB0_17
LBB0_14:
	mov	w0, #-1
	b	LBB0_17
LBB0_15:
Lloh16:
	adrp	x8, _engine_snapshot_replica@GOTPAGE
Lloh17:
	ldr	x8, [x8, _engine_snapshot_replica@GOTPAGEOFF]
Lloh18:
	str	x0, [x8]
LBB0_16:
	mov	w0, #1
LBB0_17:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	add	w0, w22, #1
	bl	_malloc
	str	x0, [x24]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_assert
	ldr	x0, [x24]
	mov	x1, x19
	mov	x2, x22
	bl	_memcpy
	ldr	x0, [x24]
	str	xzr, [x0, w22, sxtw #3]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".bin"

	.comm	_engine_replica_name,8,3        ; @engine_replica_name
	.comm	_engine_snapshot_replica_name,8,3 ; @engine_snapshot_replica_name
	.comm	_engine_replica,8,3             ; @engine_replica
	.comm	_engine_snapshot_replica,8,3    ; @engine_snapshot_replica
.subsections_via_symbols
