	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q2_SwapBSPFile                 ## -- Begin function Q2_SwapBSPFile
	.p2align	4, 0x90
_Q2_SwapBSPFile:                        ## @Q2_SwapBSPFile
	.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	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_nummodels@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	movl	$32, %ebx
	xorl	%r12d, %r12d
	movq	_dmodels@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %r14
	movl	-32(%r14,%rbx), %edi
	callq	_LittleLong
	movl	%eax, -32(%r14,%rbx)
	movl	-28(%r14,%rbx), %edi
	callq	_LittleLong
	movl	%eax, -28(%r14,%rbx)
	movl	-24(%r14,%rbx), %edi
	callq	_LittleLong
	movl	%eax, -24(%r14,%rbx)
	movq	(%r14,%rbx), %rax
	movq	(%rax), %rdi
	callq	_LittleFloat
	movq	(%r14,%rbx), %rcx
	movq	%rax, (%rcx)
	movq	-8(%r14,%rbx), %rax
	movq	(%rax), %rdi
	callq	_LittleFloat
	movq	-8(%r14,%rbx), %rcx
	movq	%rax, (%rcx)
	movq	-16(%r14,%rbx), %rax
	movq	(%rax), %rdi
	callq	_LittleFloat
	movq	-16(%r14,%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r14,%rbx), %rax
	movq	8(%rax), %rdi
	callq	_LittleFloat
	movq	(%r14,%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	-8(%r14,%rbx), %rax
	movq	8(%rax), %rdi
	callq	_LittleFloat
	movq	-8(%r14,%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	-16(%r14,%rbx), %rax
	movq	8(%rax), %rdi
	callq	_LittleFloat
	movq	-16(%r14,%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r14,%rbx), %rax
	movq	16(%rax), %rdi
	callq	_LittleFloat
	movq	(%r14,%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	-8(%r14,%rbx), %rax
	movq	16(%rax), %rdi
	callq	_LittleFloat
	movq	-8(%r14,%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	-16(%r14,%rbx), %rax
	movq	16(%rax), %rdi
	callq	_LittleFloat
	movq	-16(%r14,%rbx), %rcx
	movq	%rax, 16(%rcx)
	incq	%r12
	movslq	(%r15), %rax
	addq	$40, %rbx
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_3:
	movq	_numvertexes@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.4:
	movq	_dvertexes@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rax
	movq	(%rax), %rdi
	callq	_LittleFloat
	movq	(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	8(%rax), %rdi
	callq	_LittleFloat
	movq	(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movq	%rax, 8(%rdx)
	movq	(%rcx,%rbx,8), %rax
	movq	16(%rax), %rdi
	callq	_LittleFloat
	movq	(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movq	%rax, 16(%rdx)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	_numplanes@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_9
## %bb.7:
	movq	_dplanes@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rcx,%rbx), %rax
	movq	(%rax), %rdi
	callq	_LittleFloat
	movq	(%r15), %rcx
	movq	16(%rcx,%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	16(%rax,%rbx), %rax
	movq	8(%rax), %rdi
	callq	_LittleFloat
	movq	(%r15), %rcx
	movq	16(%rcx,%rbx), %rdx
	movq	%rax, 8(%rdx)
	movq	16(%rcx,%rbx), %rax
	movq	16(%rax), %rdi
	callq	_LittleFloat
	movq	(%r15), %rcx
	movq	16(%rcx,%rbx), %rdx
	movq	%rax, 16(%rdx)
	movq	8(%rcx,%rbx), %rdi
	callq	_LittleFloat
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movq	(%r15), %rax
	movl	(%rax,%rbx), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx)
	incq	%r12
	movslq	(%r14), %rax
	addq	$24, %rbx
	cmpq	%rax, %r12
	jl	LBB0_8
LBB0_9:
	movq	_numtexinfo@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_12
## %bb.10:
	movq	_texinfo@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rcx,%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_LittleFloat
	movq	(%r12), %rcx
	movq	16(%rcx,%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	(%r12), %rax
	movq	16(%rax,%rbx), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	callq	_LittleFloat
	movq	(%r12), %rcx
	movq	16(%rcx,%rbx), %rdx
	movq	(%rdx), %rdx
	movq	%rax, 8(%rdx)
	movq	16(%rcx,%rbx), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rdi
	callq	_LittleFloat
	movq	(%r12), %rcx
	movq	16(%rcx,%rbx), %rdx
	movq	(%rdx), %rdx
	movq	%rax, 16(%rdx)
	movq	16(%rcx,%rbx), %rax
	movq	(%rax), %rax
	movq	24(%rax), %rdi
	callq	_LittleFloat
	movq	(%r12), %rcx
	movq	16(%rcx,%rbx), %rdx
	movq	(%rdx), %rdx
	movq	%rax, 24(%rdx)
	movq	16(%rcx,%rbx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	callq	_LittleFloat
	movq	(%r12), %rcx
	movq	16(%rcx,%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	(%r12), %rax
	movq	16(%rax,%rbx), %rax
	movq	8(%rax), %rax
	movq	8(%rax), %rdi
	callq	_LittleFloat
	movq	(%r12), %rcx
	movq	16(%rcx,%rbx), %rdx
	movq	8(%rdx), %rdx
	movq	%rax, 8(%rdx)
	movq	16(%rcx,%rbx), %rax
	movq	8(%rax), %rax
	movq	16(%rax), %rdi
	callq	_LittleFloat
	movq	(%r12), %rcx
	movq	16(%rcx,%rbx), %rdx
	movq	8(%rdx), %rdx
	movq	%rax, 16(%rdx)
	movq	16(%rcx,%rbx), %rax
	movq	8(%rax), %rax
	movq	24(%rax), %rdi
	callq	_LittleFloat
	movq	(%r12), %rcx
	movq	16(%rcx,%rbx), %rdx
	movq	8(%rdx), %rdx
	movq	%rax, 24(%rdx)
	movl	(%rcx,%rbx), %edi
	callq	_LittleLong
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx)
	movl	4(%rcx,%rbx), %edi
	callq	_LittleLong
	movq	(%r12), %rcx
	movl	%eax, 4(%rcx,%rbx)
	movl	8(%rcx,%rbx), %edi
	callq	_LittleLong
	movq	(%r12), %rcx
	movl	%eax, 8(%rcx,%rbx)
	incq	%r13
	movslq	(%r15), %rax
	addq	$24, %rbx
	cmpq	%rax, %r13
	jl	LBB0_11
LBB0_12:
	movq	_numfaces@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	movq	_dfaces@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	32(%rax,%rbx), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	%rax, 32(%rcx,%rbx)
	movq	(%r15), %rax
	movq	24(%rax,%rbx), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	%rax, 24(%rcx,%rbx)
	movq	(%r15), %rax
	movq	16(%rax,%rbx), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	%rax, 16(%rcx,%rbx)
	movq	(%r15), %rax
	movl	(%rax,%rbx), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx)
	movl	4(%rcx,%rbx), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, 4(%rcx,%rbx)
	movq	8(%rcx,%rbx), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx,%rbx)
	incq	%r12
	movslq	(%r14), %rax
	addq	$40, %rbx
	cmpq	%rax, %r12
	jl	LBB0_14
LBB0_15:
	movq	_numnodes@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_18
## %bb.16:
	xorl	%ebx, %ebx
	movq	_dnodes@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx), %edi
	callq	_LittleLong
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx)
	movq	40(%rcx,%rbx), %rax
	movq	(%rax), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	40(%rcx,%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r12), %rax
	movq	32(%rax,%rbx), %rax
	movq	(%rax), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	32(%rcx,%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r12), %rax
	movq	40(%rax,%rbx), %rax
	movq	8(%rax), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	40(%rcx,%rbx), %rdx
	movq	%rax, 8(%rdx)
	movq	32(%rcx,%rbx), %rax
	movq	8(%rax), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	32(%rcx,%rbx), %rdx
	movq	%rax, 8(%rdx)
	movq	40(%rcx,%rbx), %rax
	movq	16(%rax), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	40(%rcx,%rbx), %rdx
	movq	%rax, 16(%rdx)
	movq	32(%rcx,%rbx), %rax
	movq	16(%rax), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	32(%rcx,%rbx), %rdx
	movq	%rax, 16(%rdx)
	movq	8(%rcx,%rbx), %rax
	movl	(%rax), %edi
	callq	_LittleLong
	movq	(%r12), %rcx
	movq	8(%rcx,%rbx), %rcx
	movl	%eax, (%rcx)
	movl	4(%rcx), %edi
	callq	_LittleLong
	movq	(%r12), %rcx
	movq	8(%rcx,%rbx), %rdx
	movl	%eax, 4(%rdx)
	movq	24(%rcx,%rbx), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	%rax, 24(%rcx,%rbx)
	movq	(%r12), %rax
	movq	16(%rax,%rbx), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	%rax, 16(%rcx,%rbx)
	incq	%r13
	movslq	(%r15), %rax
	addq	$48, %rbx
	cmpq	%rax, %r13
	jl	LBB0_17
LBB0_18:
	movq	_numleafs@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_21
## %bb.19:
	xorl	%ebx, %ebx
	movq	_dleafs@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx), %edi
	callq	_LittleLong
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx)
	movq	64(%rcx,%rbx), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	%rax, 64(%rcx,%rbx)
	movq	(%r12), %rax
	movq	56(%rax,%rbx), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	%rax, 56(%rcx,%rbx)
	movq	(%r12), %rax
	movq	48(%rax,%rbx), %rax
	movq	(%rax), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	48(%rcx,%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r12), %rax
	movq	40(%rax,%rbx), %rax
	movq	(%rax), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	40(%rcx,%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r12), %rax
	movq	48(%rax,%rbx), %rax
	movq	8(%rax), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	48(%rcx,%rbx), %rdx
	movq	%rax, 8(%rdx)
	movq	40(%rcx,%rbx), %rax
	movq	8(%rax), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	40(%rcx,%rbx), %rdx
	movq	%rax, 8(%rdx)
	movq	48(%rcx,%rbx), %rax
	movq	16(%rax), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	48(%rcx,%rbx), %rdx
	movq	%rax, 16(%rdx)
	movq	40(%rcx,%rbx), %rax
	movq	16(%rax), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	40(%rcx,%rbx), %rdx
	movq	%rax, 16(%rdx)
	movq	32(%rcx,%rbx), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	%rax, 32(%rcx,%rbx)
	movq	(%r12), %rax
	movq	24(%rax,%rbx), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	%rax, 24(%rcx,%rbx)
	movq	(%r12), %rax
	movq	16(%rax,%rbx), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	%rax, 16(%rcx,%rbx)
	movq	(%r12), %rax
	movq	8(%rax,%rbx), %rdi
	callq	_LittleShort
	movq	(%r12), %rcx
	movq	%rax, 8(%rcx,%rbx)
	incq	%r13
	movslq	(%r15), %rax
	addq	$72, %rbx
	cmpq	%rax, %r13
	jl	LBB0_20
LBB0_21:
	movq	_numleaffaces@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_24
## %bb.22:
	xorl	%ebx, %ebx
	movq	_dleaffaces@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_23
LBB0_24:
	movq	_numleafbrushes@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_27
## %bb.25:
	xorl	%ebx, %ebx
	movq	_dleafbrushes@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_26
LBB0_27:
	movq	_numsurfedges@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_30
## %bb.28:
	movq	_dsurfedges@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rbx,4), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_29
LBB0_30:
	movq	_numedges@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_33
## %bb.31:
	movq	_dedges@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rax
	movq	(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	8(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movq	%rax, 8(%rdx)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_32
LBB0_33:
	movq	_numbrushes@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_36
## %bb.34:
	movq	_dbrushes@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rbx), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx)
	movl	4(%rcx,%rbx), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, 4(%rcx,%rbx)
	movl	8(%rcx,%rbx), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, 8(%rcx,%rbx)
	incq	%r12
	movslq	(%r14), %rax
	addq	$12, %rbx
	cmpq	%rax, %r12
	jl	LBB0_35
LBB0_36:
	movq	_numareas@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_39
## %bb.37:
	movq	_dareas@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rbx,8), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,8)
	movl	4(%rcx,%rbx,8), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, 4(%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_38
LBB0_39:
	movq	_numareaportals@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_42
## %bb.40:
	movq	_dareaportals@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rbx,8), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,8)
	movl	4(%rcx,%rbx,8), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, 4(%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_41
LBB0_42:
	movq	_numbrushsides@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_45
## %bb.43:
	xorl	%ebx, %ebx
	movq	_dbrushsides@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	8(%rax,%rbx), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movq	(%r15), %rax
	movq	(%rax,%rbx), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%rbx)
	incq	%r12
	movslq	(%r14), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_44
LBB0_45:
	movq	_dvis@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %edi
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_47
## %bb.46:
	movl	%edi, %r14d
	jmp	LBB0_48
LBB0_47:
	callq	_LittleLong
	movq	%rax, %r14
	movq	(%r15), %rax
	movl	(%rax), %edi
LBB0_48:
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	testl	%r14d, %r14d
	jle	LBB0_51
## %bb.49:
	movl	%r14d, %r14d
	movq	8(%rcx), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rax
	movl	(%rax), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, (%rcx)
	movl	4(%rcx), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movl	%eax, 4(%rdx)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_50
LBB0_51:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nummodels,4,2                  ## @nummodels
	.comm	_dmodels,8,3                    ## @dmodels
	.comm	_numvertexes,4,2                ## @numvertexes
	.comm	_dvertexes,8,3                  ## @dvertexes
	.comm	_numplanes,4,2                  ## @numplanes
	.comm	_dplanes,8,3                    ## @dplanes
	.comm	_numtexinfo,4,2                 ## @numtexinfo
	.comm	_texinfo,8,3                    ## @texinfo
	.comm	_numfaces,4,2                   ## @numfaces
	.comm	_dfaces,8,3                     ## @dfaces
	.comm	_numnodes,4,2                   ## @numnodes
	.comm	_dnodes,8,3                     ## @dnodes
	.comm	_numleafs,4,2                   ## @numleafs
	.comm	_dleafs,8,3                     ## @dleafs
	.comm	_numleaffaces,4,2               ## @numleaffaces
	.comm	_dleaffaces,8,3                 ## @dleaffaces
	.comm	_numleafbrushes,4,2             ## @numleafbrushes
	.comm	_dleafbrushes,8,3               ## @dleafbrushes
	.comm	_numsurfedges,4,2               ## @numsurfedges
	.comm	_dsurfedges,8,3                 ## @dsurfedges
	.comm	_numedges,4,2                   ## @numedges
	.comm	_dedges,8,3                     ## @dedges
	.comm	_numbrushes,4,2                 ## @numbrushes
	.comm	_dbrushes,8,3                   ## @dbrushes
	.comm	_numareas,4,2                   ## @numareas
	.comm	_dareas,8,3                     ## @dareas
	.comm	_numareaportals,4,2             ## @numareaportals
	.comm	_dareaportals,8,3               ## @dareaportals
	.comm	_numbrushsides,4,2              ## @numbrushsides
	.comm	_dbrushsides,8,3                ## @dbrushsides
	.comm	_dvis,8,3                       ## @dvis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q2_SwapBSPFile                 ; -- Begin function Q2_SwapBSPFile
	.p2align	2
_Q2_SwapBSPFile:                        ; @Q2_SwapBSPFile
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _nummodels@GOTPAGE
Lloh1:
	ldr	x20, [x20, _nummodels@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
Lloh2:
	adrp	x23, _dmodels@GOTPAGE
Lloh3:
	ldr	x23, [x23, _dmodels@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x24, x8, x21
	ldr	w0, [x24]
	bl	_LittleLong
	str	w0, [x24]
	ldr	w0, [x24, #4]
	bl	_LittleLong
	str	w0, [x24, #4]
	ldr	w0, [x24, #8]
	bl	_LittleLong
	str	w0, [x24, #8]
	ldr	x8, [x24, #32]
	ldr	x0, [x8]
	bl	_LittleFloat
	ldr	x8, [x24, #32]
	str	x0, [x8]
	ldr	x8, [x24, #24]
	ldr	x0, [x8]
	bl	_LittleFloat
	ldr	x8, [x24, #24]
	str	x0, [x8]
	ldr	x8, [x24, #16]
	ldr	x0, [x8]
	bl	_LittleFloat
	ldr	x8, [x24, #16]
	str	x0, [x8]
	ldr	x8, [x24, #32]
	ldr	x0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x24, #32]
	str	x0, [x8, #8]
	ldr	x8, [x24, #24]
	ldr	x0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x24, #24]
	str	x0, [x8, #8]
	ldr	x8, [x24, #16]
	ldr	x0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x24, #16]
	str	x0, [x8, #8]
	ldr	x8, [x24, #32]
	ldr	x0, [x8, #16]
	bl	_LittleFloat
	ldr	x8, [x24, #32]
	str	x0, [x8, #16]
	ldr	x8, [x24, #24]
	ldr	x0, [x8, #16]
	bl	_LittleFloat
	ldr	x8, [x24, #24]
	str	x0, [x8, #16]
	ldr	x8, [x24, #16]
	ldr	x0, [x8, #16]
	bl	_LittleFloat
	ldr	x8, [x24, #16]
	str	x0, [x8, #16]
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #40
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
Lloh4:
	adrp	x20, _numvertexes@GOTPAGE
Lloh5:
	ldr	x20, [x20, _numvertexes@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x21, #0
Lloh6:
	adrp	x22, _dvertexes@GOTPAGE
Lloh7:
	ldr	x22, [x22, _dvertexes@GOTPAGEOFF]
	ldr	x8, [x22]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x23, x21, #3
	ldr	x8, [x8, x23]
	ldr	x0, [x8]
	bl	_LittleFloat
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	str	x0, [x8]
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	x0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x22]
	ldr	x9, [x8, x23]
	str	x0, [x9, #8]
	ldr	x8, [x8, x23]
	ldr	x0, [x8, #16]
	bl	_LittleFloat
	ldr	x8, [x22]
	ldr	x9, [x8, x23]
	str	x0, [x9, #16]
	add	x21, x21, #1
	ldrsw	x9, [x20]
	cmp	x21, x9
	b.lt	LBB0_5
LBB0_6:
Lloh8:
	adrp	x20, _numplanes@GOTPAGE
Lloh9:
	ldr	x20, [x20, _numplanes@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x21, #0
	mov	x22, #0
Lloh10:
	adrp	x23, _dplanes@GOTPAGE
Lloh11:
	ldr	x23, [x23, _dplanes@GOTPAGEOFF]
	ldr	x8, [x23]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x21
	ldr	x8, [x8, #16]
	ldr	x0, [x8]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #16]
	str	x0, [x8]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #16]
	ldr	x0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #16]
	str	x0, [x9, #8]
	ldr	x8, [x8, #16]
	ldr	x0, [x8, #16]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #16]
	str	x0, [x9, #16]
	ldr	x0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	str	x0, [x8, #8]
	ldr	x8, [x23]
	ldr	w0, [x8, x21]
	bl	_LittleLong
	ldr	x8, [x23]
	str	w0, [x8, x21]
	add	x22, x22, #1
	ldrsw	x9, [x20]
	add	x21, x21, #24
	cmp	x22, x9
	b.lt	LBB0_8
LBB0_9:
Lloh12:
	adrp	x20, _numtexinfo@GOTPAGE
Lloh13:
	ldr	x20, [x20, _numtexinfo@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x21, #0
	mov	x22, #0
Lloh14:
	adrp	x23, _texinfo@GOTPAGE
Lloh15:
	ldr	x23, [x23, _texinfo@GOTPAGEOFF]
	ldr	x8, [x23]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x21
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	ldr	x0, [x8]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	str	x0, [x8]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #16]
	ldr	x9, [x9]
	str	x0, [x9, #8]
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	ldr	x0, [x8, #16]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #16]
	ldr	x9, [x9]
	str	x0, [x9, #16]
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	ldr	x0, [x8, #24]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #16]
	ldr	x9, [x9]
	str	x0, [x9, #24]
	ldr	x8, [x8, #16]
	ldr	x8, [x8, #8]
	ldr	x0, [x8]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #16]
	ldr	x8, [x8, #8]
	str	x0, [x8]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #16]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #16]
	ldr	x9, [x9, #8]
	str	x0, [x9, #8]
	ldr	x8, [x8, #16]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, #16]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #16]
	ldr	x9, [x9, #8]
	str	x0, [x9, #16]
	ldr	x8, [x8, #16]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, #24]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #16]
	ldr	x9, [x9, #8]
	str	x0, [x9, #24]
	ldr	w0, [x8]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x8, x8, x21
	str	w0, [x8]
	ldr	w0, [x8, #4]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x8, x8, x21
	str	w0, [x8, #4]
	ldr	w0, [x8, #8]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x9, x8, x21
	str	w0, [x9, #8]
	add	x22, x22, #1
	ldrsw	x9, [x20]
	add	x21, x21, #24
	cmp	x22, x9
	b.lt	LBB0_11
LBB0_12:
Lloh16:
	adrp	x20, _numfaces@GOTPAGE
Lloh17:
	ldr	x20, [x20, _numfaces@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x21, #0
	mov	w22, #32
Lloh18:
	adrp	x23, _dfaces@GOTPAGE
Lloh19:
	ldr	x23, [x23, _dfaces@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x0, [x8, x22]
	bl	_LittleShort
	ldr	x8, [x23]
	str	x0, [x8, x22]
	ldr	x8, [x23]
	add	x8, x8, x22
	ldur	x0, [x8, #-8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x22
	stur	x0, [x8, #-8]
	ldr	x8, [x23]
	add	x8, x8, x22
	ldur	x0, [x8, #-16]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x22
	stur	x0, [x8, #-16]
	ldr	x8, [x23]
	add	x8, x8, x22
	ldur	w0, [x8, #-32]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x8, x8, x22
	stur	w0, [x8, #-32]
	ldur	w0, [x8, #-28]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x8, x8, x22
	stur	w0, [x8, #-28]
	ldur	x0, [x8, #-24]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x22
	stur	x0, [x8, #-24]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	add	x22, x22, #40
	cmp	x21, x8
	b.lt	LBB0_14
LBB0_15:
Lloh20:
	adrp	x20, _numnodes@GOTPAGE
Lloh21:
	ldr	x20, [x20, _numnodes@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:
	mov	x21, #0
	mov	x22, #0
Lloh22:
	adrp	x23, _dnodes@GOTPAGE
Lloh23:
	ldr	x23, [x23, _dnodes@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, x21]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x8, x8, x21
	str	w0, [x8]
	ldr	x8, [x8, #40]
	ldr	x0, [x8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #40]
	str	x0, [x8]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #32]
	ldr	x0, [x8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #32]
	str	x0, [x8]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #40]
	ldr	x0, [x8, #8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #40]
	str	x0, [x9, #8]
	ldr	x8, [x8, #32]
	ldr	x0, [x8, #8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #32]
	str	x0, [x9, #8]
	ldr	x8, [x8, #40]
	ldr	x0, [x8, #16]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #40]
	str	x0, [x9, #16]
	ldr	x8, [x8, #32]
	ldr	x0, [x8, #16]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #32]
	str	x0, [x9, #16]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #8]
	str	w0, [x8]
	ldr	w0, [x8, #4]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #8]
	str	w0, [x9, #4]
	ldr	x0, [x8, #24]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	str	x0, [x8, #24]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x0, [x8, #16]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	str	x0, [x8, #16]
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #48
	cmp	x22, x8
	b.lt	LBB0_17
LBB0_18:
Lloh24:
	adrp	x20, _numleafs@GOTPAGE
Lloh25:
	ldr	x20, [x20, _numleafs@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.19:
	mov	x21, #0
	mov	x22, #0
Lloh26:
	adrp	x23, _dleafs@GOTPAGE
Lloh27:
	ldr	x23, [x23, _dleafs@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, x21]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x8, x8, x21
	str	w0, [x8]
	ldr	x0, [x8, #64]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	str	x0, [x8, #64]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x0, [x8, #56]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	str	x0, [x8, #56]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #48]
	ldr	x0, [x8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #48]
	str	x0, [x8]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #40]
	ldr	x0, [x8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #40]
	str	x0, [x8]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #48]
	ldr	x0, [x8, #8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #48]
	str	x0, [x9, #8]
	ldr	x8, [x8, #40]
	ldr	x0, [x8, #8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #40]
	str	x0, [x9, #8]
	ldr	x8, [x8, #48]
	ldr	x0, [x8, #16]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #48]
	str	x0, [x9, #16]
	ldr	x8, [x8, #40]
	ldr	x0, [x8, #16]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #40]
	str	x0, [x9, #16]
	ldr	x0, [x8, #32]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	str	x0, [x8, #32]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x0, [x8, #24]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	str	x0, [x8, #24]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x0, [x8, #16]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	str	x0, [x8, #16]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x0, [x8, #8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	str	x0, [x8, #8]
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #72
	cmp	x22, x8
	b.lt	LBB0_20
LBB0_21:
Lloh28:
	adrp	x20, _numleaffaces@GOTPAGE
Lloh29:
	ldr	x20, [x20, _numleaffaces@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.22:
	mov	x21, #0
Lloh30:
	adrp	x22, _dleaffaces@GOTPAGE
Lloh31:
	ldr	x22, [x22, _dleaffaces@GOTPAGEOFF]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x23, x21, #3
	ldr	x0, [x8, x23]
	bl	_LittleShort
	ldr	x8, [x22]
	str	x0, [x8, x23]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_23
LBB0_24:
Lloh32:
	adrp	x20, _numleafbrushes@GOTPAGE
Lloh33:
	ldr	x20, [x20, _numleafbrushes@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.25:
	mov	x21, #0
Lloh34:
	adrp	x22, _dleafbrushes@GOTPAGE
Lloh35:
	ldr	x22, [x22, _dleafbrushes@GOTPAGEOFF]
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x23, x21, #3
	ldr	x0, [x8, x23]
	bl	_LittleShort
	ldr	x8, [x22]
	str	x0, [x8, x23]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_26
LBB0_27:
Lloh36:
	adrp	x20, _numsurfedges@GOTPAGE
Lloh37:
	ldr	x20, [x20, _numsurfedges@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.28:
	mov	x21, #0
Lloh38:
	adrp	x22, _dsurfedges@GOTPAGE
Lloh39:
	ldr	x22, [x22, _dsurfedges@GOTPAGEOFF]
	ldr	x8, [x22]
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	lsl	x23, x21, #2
	ldr	w0, [x8, x23]
	bl	_LittleLong
	ldr	x8, [x22]
	str	w0, [x8, x23]
	add	x21, x21, #1
	ldrsw	x9, [x20]
	cmp	x21, x9
	b.lt	LBB0_29
LBB0_30:
Lloh40:
	adrp	x20, _numedges@GOTPAGE
Lloh41:
	ldr	x20, [x20, _numedges@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_33
; %bb.31:
	mov	x21, #0
Lloh42:
	adrp	x22, _dedges@GOTPAGE
Lloh43:
	ldr	x22, [x22, _dedges@GOTPAGEOFF]
	ldr	x8, [x22]
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	lsl	x23, x21, #3
	ldr	x8, [x8, x23]
	ldr	x0, [x8]
	bl	_LittleShort
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	str	x0, [x8]
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	x0, [x8, #8]
	bl	_LittleShort
	ldr	x8, [x22]
	ldr	x9, [x8, x23]
	str	x0, [x9, #8]
	add	x21, x21, #1
	ldrsw	x9, [x20]
	cmp	x21, x9
	b.lt	LBB0_32
LBB0_33:
Lloh44:
	adrp	x20, _numbrushes@GOTPAGE
Lloh45:
	ldr	x20, [x20, _numbrushes@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_36
; %bb.34:
	mov	x21, #0
	mov	x22, #0
Lloh46:
	adrp	x23, _dbrushes@GOTPAGE
Lloh47:
	ldr	x23, [x23, _dbrushes@GOTPAGEOFF]
	ldr	x8, [x23]
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8, x21]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x8, x8, x21
	str	w0, [x8]
	ldr	w0, [x8, #4]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x8, x8, x21
	str	w0, [x8, #4]
	ldr	w0, [x8, #8]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x9, x8, x21
	str	w0, [x9, #8]
	add	x22, x22, #1
	ldrsw	x9, [x20]
	add	x21, x21, #12
	cmp	x22, x9
	b.lt	LBB0_35
LBB0_36:
Lloh48:
	adrp	x20, _numareas@GOTPAGE
Lloh49:
	ldr	x20, [x20, _numareas@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_39
; %bb.37:
	mov	x21, #0
	mov	x22, #0
Lloh50:
	adrp	x23, _dareas@GOTPAGE
Lloh51:
	ldr	x23, [x23, _dareas@GOTPAGEOFF]
	ldr	x8, [x23]
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8, x21]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x8, x8, x21
	str	w0, [x8]
	ldr	w0, [x8, #4]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x9, x8, x21
	str	w0, [x9, #4]
	add	x22, x22, #1
	ldrsw	x9, [x20]
	add	x21, x21, #8
	cmp	x22, x9
	b.lt	LBB0_38
LBB0_39:
Lloh52:
	adrp	x20, _numareaportals@GOTPAGE
Lloh53:
	ldr	x20, [x20, _numareaportals@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_42
; %bb.40:
	mov	x21, #0
	mov	x22, #0
Lloh54:
	adrp	x23, _dareaportals@GOTPAGE
Lloh55:
	ldr	x23, [x23, _dareaportals@GOTPAGEOFF]
	ldr	x8, [x23]
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8, x21]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x8, x8, x21
	str	w0, [x8]
	ldr	w0, [x8, #4]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x9, x8, x21
	str	w0, [x9, #4]
	add	x22, x22, #1
	ldrsw	x9, [x20]
	add	x21, x21, #8
	cmp	x22, x9
	b.lt	LBB0_41
LBB0_42:
Lloh56:
	adrp	x20, _numbrushsides@GOTPAGE
Lloh57:
	ldr	x20, [x20, _numbrushsides@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_45
; %bb.43:
	mov	x21, #0
	mov	x22, #0
Lloh58:
	adrp	x23, _dbrushsides@GOTPAGE
Lloh59:
	ldr	x23, [x23, _dbrushsides@GOTPAGEOFF]
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x0, [x8, #8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	str	x0, [x8, #8]
	ldr	x8, [x23]
	ldr	x0, [x8, x21]
	bl	_LittleShort
	ldr	x8, [x23]
	str	x0, [x8, x21]
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #16
	cmp	x22, x8
	b.lt	LBB0_44
LBB0_45:
Lloh60:
	adrp	x20, _dvis@GOTPAGE
Lloh61:
	ldr	x20, [x20, _dvis@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8]
	cbz	x19, LBB0_47
; %bb.46:
	mov	x19, x0
	b	LBB0_48
LBB0_47:
	bl	_LittleLong
	mov	x19, x0
	ldr	x8, [x20]
	ldr	w0, [x8]
LBB0_48:
	bl	_LittleLong
	ldr	x8, [x20]
	str	w0, [x8]
	cmp	w19, #1
	b.lt	LBB0_51
; %bb.49:
	mov	x21, #0
	mov	w9, w19
	ldr	x8, [x8, #8]
	lsl	x19, x9, #3
LBB0_50:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, x21]
	ldr	w0, [x8]
	bl	_LittleLong
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x21]
	str	w0, [x8]
	ldr	w0, [x8, #4]
	bl	_LittleLong
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x9, [x8, x21]
	str	w0, [x9, #4]
	add	x21, x21, #8
	cmp	x19, x21
	b.ne	LBB0_50
LBB0_51:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_nummodels,4,2                  ; @nummodels
	.comm	_dmodels,8,3                    ; @dmodels
	.comm	_numvertexes,4,2                ; @numvertexes
	.comm	_dvertexes,8,3                  ; @dvertexes
	.comm	_numplanes,4,2                  ; @numplanes
	.comm	_dplanes,8,3                    ; @dplanes
	.comm	_numtexinfo,4,2                 ; @numtexinfo
	.comm	_texinfo,8,3                    ; @texinfo
	.comm	_numfaces,4,2                   ; @numfaces
	.comm	_dfaces,8,3                     ; @dfaces
	.comm	_numnodes,4,2                   ; @numnodes
	.comm	_dnodes,8,3                     ; @dnodes
	.comm	_numleafs,4,2                   ; @numleafs
	.comm	_dleafs,8,3                     ; @dleafs
	.comm	_numleaffaces,4,2               ; @numleaffaces
	.comm	_dleaffaces,8,3                 ; @dleaffaces
	.comm	_numleafbrushes,4,2             ; @numleafbrushes
	.comm	_dleafbrushes,8,3               ; @dleafbrushes
	.comm	_numsurfedges,4,2               ; @numsurfedges
	.comm	_dsurfedges,8,3                 ; @dsurfedges
	.comm	_numedges,4,2                   ; @numedges
	.comm	_dedges,8,3                     ; @dedges
	.comm	_numbrushes,4,2                 ; @numbrushes
	.comm	_dbrushes,8,3                   ; @dbrushes
	.comm	_numareas,4,2                   ; @numareas
	.comm	_dareas,8,3                     ; @dareas
	.comm	_numareaportals,4,2             ; @numareaportals
	.comm	_dareaportals,8,3               ; @dareaportals
	.comm	_numbrushsides,4,2              ; @numbrushsides
	.comm	_dbrushsides,8,3                ; @dbrushsides
	.comm	_dvis,8,3                       ; @dvis
.subsections_via_symbols
