	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VM_Create                      ## -- Begin function VM_Create
	.p2align	4, 0x90
_VM_Create:                             ## @VM_Create
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -112(%rbp)                ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	cmpb	$0, (%r12)
	jne	LBB0_4
LBB0_3:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_Com_Error
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_Hunk_MemoryRemaining
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	_MAX_VM@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.5:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	_vmTable@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	64(%rax,%r13), %rdi
	movq	%r12, %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	addq	$88, %r13
	cmpq	%rax, %rbx
	jl	LBB0_6
## %bb.9:
	testl	%eax, %eax
	jle	LBB0_10
## %bb.12:
	movl	%eax, %ecx
	movq	(%r15), %rdx
	addq	$64, %rdx
	xorl	%ebx, %ebx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rsi
	cmpl	$0, (%rsi)
	je	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	addq	$88, %rdx
	cmpq	%rbx, %rcx
	jne	LBB0_13
## %bb.15:
	movl	%ecx, %ebx
	jmp	LBB0_16
LBB0_7:
	addq	(%r15), %r13
	jmp	LBB0_40
LBB0_10:
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_11:
	cmpl	%eax, %ebx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_17
LBB0_16:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_Com_Error
LBB0_17:
	movq	_vmTable@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	%ebx, %eax
	imulq	$88, %rax, %rbx
	movq	64(%r13,%rbx), %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_Q_strncpyz
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, (%r13,%rbx)
	movq	_VMI_NATIVE@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	%r14, %rax
	jne	LBB0_21
## %bb.18:
	leaq	L_.str.2(%rip), %rdi
	callq	_Cvar_VariableValue
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	_VMI_COMPILED@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_20:
	movq	(%r15), %rax
LBB0_21:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rbx), %r13
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rbx), %r15
	addq	$64, %r15
	cmpq	%rax, %r14
	jne	LBB0_24
## %bb.22:
	movq	(%r15), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_Com_Printf
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	84(%r14,%rbx), %esi
	leaq	(%r14,%rbx), %rdx
	addq	$80, %rdx
	movq	_VM_DllSyscall@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_Sys_LoadDll
	movq	%rax, 72(%r14,%rbx)
	testq	%rax, %rax
	jne	LBB0_40
## %bb.23:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_Com_Printf
	movq	_VMI_COMPILED@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_24:
	movq	(%r15), %rcx
	leaq	L_.str.5(%rip), %rdx
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_Com_sprintf
	leaq	L_.str.6(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_Com_Printf
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_FS_ReadFile
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_42
## %bb.25:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	callq	_LittleLong
	movq	-56(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	4(%rcx), %edi
	callq	_LittleLong
	movq	-56(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movl	8(%rcx), %edi
	callq	_LittleLong
	movq	-56(%rbp), %rcx
	movl	%eax, 8(%rcx)
	movl	12(%rcx), %edi
	callq	_LittleLong
	movq	-56(%rbp), %rcx
	movl	%eax, 12(%rcx)
	movl	16(%rcx), %edi
	callq	_LittleLong
	movq	-56(%rbp), %rcx
	movl	%eax, 16(%rcx)
	movl	20(%rcx), %edi
	callq	_LittleLong
	movq	-56(%rbp), %rcx
	movl	%eax, 20(%rcx)
	movl	24(%rcx), %edi
	callq	_LittleLong
	movq	-56(%rbp), %rcx
	movl	%eax, 24(%rcx)
	movl	28(%rcx), %edi
	callq	_LittleLong
	movq	-56(%rbp), %rcx
	movl	%eax, 28(%rcx)
	movl	32(%rcx), %edi
	callq	_LittleLong
	movq	-56(%rbp), %rcx
	movl	%eax, 32(%rcx)
	movl	36(%rcx), %edi
	callq	_LittleLong
	movq	-56(%rbp), %rsi
	movl	%eax, 36(%rsi)
	movq	(%rsi), %rax
	movq	_VM_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.26:
	movl	8(%rsi), %ecx
	testl	%ecx, %ecx
	js	LBB0_30
## %bb.27:
	movl	12(%rsi), %edx
	testl	%edx, %edx
	js	LBB0_30
## %bb.28:
	movl	16(%rsi), %eax
	testl	%eax, %eax
	js	LBB0_30
## %bb.29:
	cmpq	$0, 24(%rsi)
	jg	LBB0_31
LBB0_30:
	movq	%r13, %rdi
	callq	_VM_Free
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_Com_Error
	movq	-56(%rbp), %rax
	movl	8(%rax), %ecx
	movl	12(%rax), %edx
	movl	16(%rax), %eax
LBB0_31:
	addl	%edx, %eax
	addl	%ecx, %eax
	xorl	%ecx, %ecx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %ebx
	shll	%cl, %ebx
	incl	%ecx
	cmpl	%ebx, %eax
	jg	LBB0_32
## %bb.33:
	movq	_h_high@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_Hunk_Alloc
	movq	%rax, 56(%r14,%r15)
	decl	%ebx
	movl	%ebx, 8(%r14,%r15)
	movq	-56(%rbp), %rcx
	movslq	32(%rcx), %rdx
	leaq	(%rcx,%rdx,4), %rsi
	movl	16(%rcx), %edx
	addl	12(%rcx), %edx
	movq	%rax, %rdi
	callq	_Com_Memcpy
	movq	-56(%rbp), %rax
	cmpl	$0, 12(%rax)
	jle	LBB0_36
## %bb.34:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rbx
	addq	$56, %rbx
	movq	(%rbx), %rcx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%r14), %edi
	callq	_LittleLong
	movq	(%rbx), %rcx
	movl	%eax, (%rcx,%r14)
	addq	$4, %r14
	movq	-56(%rbp), %rax
	cmpl	%r14d, 12(%rax)
	jg	LBB0_35
LBB0_36:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%r15), %r14
	addq	$8, %r14
	movl	36(%rax), %edi
	shll	$2, %edi
	movl	%edi, 12(%rbx,%r15)
	movq	_h_high@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Hunk_Alloc
	movq	%rax, 48(%rbx,%r15)
	movq	-56(%rbp), %rsi
	movq	24(%rsi), %rax
	movq	%rax, 16(%rbx,%r15)
	movq	_VMI_COMPILED@GOTPCREL(%rip), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rax), %rcx
	jge	LBB0_37
## %bb.38:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx,%r15)
	movq	%r13, %rdi
	callq	_VM_PrepareInterpreter
	jmp	LBB0_39
LBB0_42:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_Com_Printf
	movq	%r13, %rdi
	callq	_VM_Free
	xorl	%r13d, %r13d
	jmp	LBB0_40
LBB0_37:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx,%r15)
	movq	%r13, %rdi
	callq	_VM_Compile
LBB0_39:
	movq	-56(%rbp), %rdi
	callq	_FS_FreeFile
	movq	%r13, %rdi
	callq	_VM_LoadSymbols
	movslq	(%r14), %rax
	incq	%rax
	movl	%eax, 24(%rbx,%r15)
	movq	_STACK_SIZE@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, 32(%rbx,%r15)
	xorl	%eax, %eax
	callq	_Hunk_MemoryRemaining
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	subl	%eax, %edx
	leaq	L_.str.9(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_Com_Printf
LBB0_40:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_43
## %bb.41:
	movq	%r13, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_43:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VM_Create: bad parms"

	.comm	_MAX_VM,4,2                     ## @MAX_VM
	.comm	_vmTable,8,3                    ## @vmTable
L_.str.1:                               ## @.str.1
	.asciz	"VM_Create: no free vm_t"

	.comm	_VMI_NATIVE,8,3                 ## @VMI_NATIVE
L_.str.2:                               ## @.str.2
	.asciz	"fs_restrict"

	.comm	_VMI_COMPILED,8,3               ## @VMI_COMPILED
L_.str.3:                               ## @.str.3
	.asciz	"Loading dll file %s.\n"

	.comm	_VM_DllSyscall,4,2              ## @VM_DllSyscall
L_.str.4:                               ## @.str.4
	.asciz	"Failed to load dll, looking for qvm.\n"

L_.str.5:                               ## @.str.5
	.asciz	"vm/%s.qvm"

L_.str.6:                               ## @.str.6
	.asciz	"Loading vm file %s.\n"

L_.str.7:                               ## @.str.7
	.asciz	"Failed.\n"

	.comm	_VM_MAGIC,8,3                   ## @VM_MAGIC
L_.str.8:                               ## @.str.8
	.asciz	"%s has bad header"

	.comm	_h_high,4,2                     ## @h_high
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_STACK_SIZE,8,3                 ## @STACK_SIZE
L_.str.9:                               ## @.str.9
	.asciz	"%s loaded in %d bytes on the hunk\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VM_Create                      ; -- Begin function VM_Create
	.p2align	2
_VM_Create:                             ; @VM_Create
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	mov	x21, x2
	mov	x25, x1
	mov	x19, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_QPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_QPATH@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	mov	x9, x24
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	cbz	x0, LBB0_3
; %bb.1:
	cbz	x25, LBB0_3
; %bb.2:
	ldrb	w8, [x19]
	cbnz	w8, LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
LBB0_4:
	bl	_Hunk_MemoryRemaining
	stur	w0, [x29, #-100]                ; 4-byte Folded Spill
Lloh13:
	adrp	x20, _MAX_VM@GOTPAGE
Lloh14:
	ldr	x20, [x20, _MAX_VM@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh15:
	adrp	x22, _vmTable@GOTPAGE
Lloh16:
	ldr	x22, [x22, _vmTable@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.5:
	mov	x27, #0
	mov	x28, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x8, x8, x27
	ldr	x0, [x8, #64]
	mov	x1, x19
	bl	_Q_stricmp
	cbz	w0, LBB0_35
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x20]
	add	x27, x27, #88
	cmp	x28, x8
	b.lt	LBB0_6
; %bb.8:
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x20, #0
	and	x9, x8, #0xffffffff
	ldr	x10, [x22]
	add	x10, x10, #64
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	ldr	w11, [x11]
	cbz	w11, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x20, x20, #1
	add	x10, x10, #88
	cmp	x9, x20
	b.ne	LBB0_10
; %bb.12:
	mov	x20, x9
	b	LBB0_15
LBB0_13:
	mov	w20, #0
LBB0_14:
	cmp	w20, w8
	b.ne	LBB0_16
LBB0_15:
Lloh17:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Com_Error
LBB0_16:
	ldr	x27, [x22]
	mov	w28, w20
	mov	w8, #88
	umaddl	x20, w20, w8, x27
	mov	x22, x20
	ldr	x0, [x22, #64]!
	mov	x1, x19
	mov	w2, #8
	bl	_Q_strncpyz
	str	x25, [x20]
Lloh22:
	adrp	x25, _VMI_NATIVE@GOTPAGE
Lloh23:
	ldr	x25, [x25, _VMI_NATIVE@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x8, x21
	b.ne	LBB0_18
; %bb.17:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Cvar_VariableValue
Lloh26:
	adrp	x8, _VMI_COMPILED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VMI_COMPILED@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x21, x21, x8, eq
	ldr	x8, [x25]
LBB0_18:
	cmp	x21, x8
	b.ne	LBB0_21
; %bb.19:
	ldr	x8, [x22]
	str	x8, [sp, #-16]!
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_Com_Printf
	add	sp, sp, #16
	mov	w8, #88
	madd	x21, x28, x8, x27
	ldr	w1, [x21, #84]
	add	x2, x21, #80
Lloh31:
	adrp	x8, _VM_DllSyscall@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VM_DllSyscall@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_Sys_LoadDll
	str	x0, [x21, #72]
	cbnz	x0, LBB0_39
; %bb.20:
Lloh34:
	adrp	x0, l_.str.4@PAGE
Lloh35:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_Com_Printf
Lloh36:
	adrp	x8, _VMI_COMPILED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _VMI_COMPILED@GOTPAGEOFF]
Lloh38:
	ldr	x21, [x8]
LBB0_21:
	ldr	x3, [x22]
Lloh39:
	adrp	x2, l_.str.5@PAGE
Lloh40:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x23
	mov	x1, x24
	bl	_Com_sprintf
	str	x23, [sp, #-16]!
Lloh41:
	adrp	x0, l_.str.6@PAGE
Lloh42:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_Com_Printf
	add	sp, sp, #16
	sub	x1, x29, #96
	mov	x0, x23
	bl	_FS_ReadFile
	ldur	x8, [x29, #-96]
	cbz	x8, LBB0_36
; %bb.22:
	ldr	w0, [x8]
	bl	_LittleLong
	ldur	x8, [x29, #-96]
	str	w0, [x8]
	ldr	w0, [x8, #4]
	bl	_LittleLong
	ldur	x8, [x29, #-96]
	str	w0, [x8, #4]
	ldr	w0, [x8, #8]
	bl	_LittleLong
	ldur	x8, [x29, #-96]
	str	w0, [x8, #8]
	ldr	w0, [x8, #12]
	bl	_LittleLong
	ldur	x8, [x29, #-96]
	str	w0, [x8, #12]
	ldr	w0, [x8, #16]
	bl	_LittleLong
	ldur	x8, [x29, #-96]
	str	w0, [x8, #16]
	ldr	w0, [x8, #20]
	bl	_LittleLong
	ldur	x8, [x29, #-96]
	str	w0, [x8, #20]
	ldr	w0, [x8, #24]
	bl	_LittleLong
	ldur	x8, [x29, #-96]
	str	w0, [x8, #24]
	ldr	w0, [x8, #28]
	bl	_LittleLong
	ldur	x8, [x29, #-96]
	str	w0, [x8, #28]
	ldr	w0, [x8, #32]
	bl	_LittleLong
	ldur	x8, [x29, #-96]
	str	w0, [x8, #32]
	ldr	w0, [x8, #36]
	bl	_LittleLong
	ldur	x11, [x29, #-96]
	str	w0, [x11, #36]
	ldr	x8, [x11]
Lloh43:
	adrp	x9, _VM_MAGIC@GOTPAGE
Lloh44:
	ldr	x9, [x9, _VM_MAGIC@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.23:
	ldr	w8, [x11, #8]
	tbnz	w8, #31, LBB0_27
; %bb.24:
	ldr	w9, [x11, #12]
	tbnz	w9, #31, LBB0_27
; %bb.25:
	ldr	w10, [x11, #16]
	tbnz	w10, #31, LBB0_27
; %bb.26:
	ldr	x11, [x11, #24]
	cmp	x11, #0
	b.gt	LBB0_28
LBB0_27:
	mov	x0, x20
	bl	_VM_Free
Lloh46:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	str	x23, [sp, #-16]!
Lloh49:
	adrp	x1, l_.str.8@PAGE
Lloh50:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_Com_Error
	add	sp, sp, #16
	ldur	x8, [x29, #-96]
	ldp	w9, w10, [x8, #12]
	ldr	w8, [x8, #8]
LBB0_28:
	mov	w11, #0
	add	w9, w10, w9
	add	w8, w9, w8
	mov	w9, #1
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	lsl	w23, w9, w11
	add	w11, w11, #1
	cmp	w8, w23
	b.gt	LBB0_29
; %bb.30:
Lloh51:
	adrp	x22, _h_high@GOTPAGE
Lloh52:
	ldr	x22, [x22, _h_high@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x23
	bl	_Hunk_Alloc
	mov	w8, #88
	madd	x24, x28, x8, x27
	str	x0, [x24, #56]!
	sub	w8, w23, #1
	mov	x23, x24
	str	w8, [x23, #-48]!
	ldur	x8, [x29, #-96]
	ldrsw	x9, [x8, #32]
	add	x1, x8, x9, lsl #2
	ldp	w9, w8, [x8, #12]
	add	w2, w8, w9
	bl	_Com_Memcpy
	ldur	x9, [x29, #-96]
	ldr	w8, [x9, #12]
	cmp	w8, #1
	b.lt	LBB0_33
; %bb.31:
	mov	x25, #0
	ldr	x8, [x24]
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8, x25]
	bl	_LittleLong
	ldr	x8, [x24]
	str	w0, [x8, x25]
	add	x25, x25, #4
	ldur	x9, [x29, #-96]
	ldr	w10, [x9, #12]
	cmp	w10, w25
	b.gt	LBB0_32
LBB0_33:
	ldr	w8, [x9, #36]
	lsl	w0, w8, #2
	mov	w8, #88
	madd	x24, x28, x8, x27
	str	w0, [x24, #12]
	ldr	w1, [x22]
	bl	_Hunk_Alloc
	str	x0, [x24, #48]
	ldur	x1, [x29, #-96]
	ldr	x8, [x1, #24]
	str	x8, [x24, #16]
Lloh53:
	adrp	x8, _VMI_COMPILED@GOTPAGE
Lloh54:
	ldr	x8, [x8, _VMI_COMPILED@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ge	LBB0_37
; %bb.34:
Lloh56:
	adrp	x8, _qfalse@GOTPAGE
Lloh57:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	mov	w9, #88
	madd	x9, x28, x9, x27
	str	w8, [x9, #40]
	mov	x0, x20
	bl	_VM_PrepareInterpreter
	b	LBB0_38
LBB0_35:
	ldr	x8, [x22]
	add	x20, x8, x27
	b	LBB0_39
LBB0_36:
Lloh59:
	adrp	x0, l_.str.7@PAGE
Lloh60:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_Com_Printf
	mov	x0, x20
	bl	_VM_Free
	mov	x20, #0
	b	LBB0_39
LBB0_37:
Lloh61:
	adrp	x8, _qtrue@GOTPAGE
Lloh62:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	mov	w9, #88
	madd	x9, x28, x9, x27
	str	w8, [x9, #40]
	mov	x0, x20
	bl	_VM_Compile
LBB0_38:
	ldur	x0, [x29, #-96]
	bl	_FS_FreeFile
	mov	x0, x20
	bl	_VM_LoadSymbols
	ldrsw	x8, [x23]
	add	x8, x8, #1
	mov	w9, #88
	madd	x9, x28, x9, x27
	str	w8, [x9, #24]
Lloh64:
	adrp	x10, _STACK_SIZE@GOTPAGE
Lloh65:
	ldr	x10, [x10, _STACK_SIZE@GOTPAGEOFF]
Lloh66:
	ldr	x10, [x10]
	sub	x8, x8, x10
	str	x8, [x9, #32]
	bl	_Hunk_MemoryRemaining
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	sub	w8, w8, w0
	stp	x19, x8, [sp, #-16]!
Lloh67:
	adrp	x0, l_.str.9@PAGE
Lloh68:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_Com_Printf
	add	sp, sp, #16
LBB0_39:
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh69:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh70:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh71:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_41
; %bb.40:
	mov	x0, x20
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_41:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VM_Create: bad parms"

	.comm	_MAX_VM,4,2                     ; @MAX_VM
	.comm	_vmTable,8,3                    ; @vmTable
l_.str.1:                               ; @.str.1
	.asciz	"VM_Create: no free vm_t"

	.comm	_VMI_NATIVE,8,3                 ; @VMI_NATIVE
l_.str.2:                               ; @.str.2
	.asciz	"fs_restrict"

	.comm	_VMI_COMPILED,8,3               ; @VMI_COMPILED
l_.str.3:                               ; @.str.3
	.asciz	"Loading dll file %s.\n"

	.comm	_VM_DllSyscall,4,2              ; @VM_DllSyscall
l_.str.4:                               ; @.str.4
	.asciz	"Failed to load dll, looking for qvm.\n"

l_.str.5:                               ; @.str.5
	.asciz	"vm/%s.qvm"

l_.str.6:                               ; @.str.6
	.asciz	"Loading vm file %s.\n"

l_.str.7:                               ; @.str.7
	.asciz	"Failed.\n"

	.comm	_VM_MAGIC,8,3                   ; @VM_MAGIC
l_.str.8:                               ; @.str.8
	.asciz	"%s has bad header"

	.comm	_h_high,4,2                     ; @h_high
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_STACK_SIZE,8,3                 ; @STACK_SIZE
l_.str.9:                               ; @.str.9
	.asciz	"%s loaded in %d bytes on the hunk\n"

.subsections_via_symbols
