	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q1_SwapBSPFile                 ## -- Begin function Q1_SwapBSPFile
	.p2align	4, 0x90
_Q1_SwapBSPFile:                        ## @Q1_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
	subq	$24, %rsp
	.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	_q1_nummodels@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	xorl	%ecx, %ecx
	movq	_Q1_MAX_MAP_HULLS@GOTPCREL(%rip), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	shlq	$4, %r12
	movl	8(%r14,%r12), %edi
	callq	_LittleLong
	movl	%eax, 8(%r14,%r12)
	movl	12(%r14,%r12), %edi
	callq	_LittleLong
	movl	%eax, 12(%r14,%r12)
	movl	16(%r14,%r12), %edi
	callq	_LittleLong
	movl	%eax, 16(%r14,%r12)
	movq	40(%r14,%r12), %rax
	movq	(%rax), %rdi
	callq	_LittleFloat
	movq	40(%r14,%r12), %rcx
	movq	%rax, (%rcx)
	movq	32(%r14,%r12), %rax
	movq	(%rax), %rdi
	callq	_LittleFloat
	movq	32(%r14,%r12), %rcx
	movq	%rax, (%rcx)
	movq	24(%r14,%r12), %rax
	movq	(%rax), %rdi
	callq	_LittleFloat
	movq	24(%r14,%r12), %rcx
	movq	%rax, (%rcx)
	movq	40(%r14,%r12), %rax
	movq	8(%rax), %rdi
	callq	_LittleFloat
	movq	40(%r14,%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	32(%r14,%r12), %rax
	movq	8(%rax), %rdi
	callq	_LittleFloat
	movq	32(%r14,%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	24(%r14,%r12), %rax
	movq	8(%rax), %rdi
	callq	_LittleFloat
	movq	24(%r14,%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	40(%r14,%r12), %rax
	movq	16(%rax), %rdi
	callq	_LittleFloat
	movq	40(%r14,%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	32(%r14,%r12), %rax
	movq	16(%rax), %rdi
	callq	_LittleFloat
	movq	32(%r14,%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	24(%r14,%r12), %rax
	movq	16(%rax), %rdi
	callq	_LittleFloat
	movq	24(%r14,%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	_q1_nummodels@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	_q1_dmodels@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpl	$0, (%rbx)
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %r12
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rax
	shlq	$4, %rax
	leaq	(%r14,%rax), %r15
	movq	(%r14,%rax), %rcx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx,%r13,4), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%r13,4)
	incq	%r13
	movslq	(%rbx), %rax
	cmpq	%rax, %r13
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	movq	_q1_numvertexes@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_9
## %bb.7:
	movq	_q1_dvertexes@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>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_8
LBB0_9:
	movq	_q1_numplanes@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_12
## %bb.10:
	movq	_q1_dplanes@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_11:                                ## =>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_11
LBB0_12:
	movq	_q1_numtexinfo@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_15
## %bb.13:
	movq	_q1_texinfo@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx,%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_LittleFloat
	movq	(%r15), %rcx
	movq	8(%rcx,%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	8(%rax,%rbx), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	callq	_LittleFloat
	movq	(%r15), %rcx
	movq	8(%rcx,%rbx), %rdx
	movq	(%rdx), %rdx
	movq	%rax, 8(%rdx)
	movq	8(%rcx,%rbx), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rdi
	callq	_LittleFloat
	movq	(%r15), %rcx
	movq	8(%rcx,%rbx), %rdx
	movq	(%rdx), %rdx
	movq	%rax, 16(%rdx)
	movq	8(%rcx,%rbx), %rax
	movq	(%rax), %rax
	movq	24(%rax), %rdi
	callq	_LittleFloat
	movq	(%r15), %rcx
	movq	8(%rcx,%rbx), %rdx
	movq	(%rdx), %rdx
	movq	%rax, 24(%rdx)
	movq	8(%rcx,%rbx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	callq	_LittleFloat
	movq	(%r15), %rcx
	movq	8(%rcx,%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	8(%rax,%rbx), %rax
	movq	8(%rax), %rax
	movq	8(%rax), %rdi
	callq	_LittleFloat
	movq	(%r15), %rcx
	movq	8(%rcx,%rbx), %rdx
	movq	8(%rdx), %rdx
	movq	%rax, 8(%rdx)
	movq	8(%rcx,%rbx), %rax
	movq	8(%rax), %rax
	movq	16(%rax), %rdi
	callq	_LittleFloat
	movq	(%r15), %rcx
	movq	8(%rcx,%rbx), %rdx
	movq	8(%rdx), %rdx
	movq	%rax, 16(%rdx)
	movq	8(%rcx,%rbx), %rax
	movq	8(%rax), %rax
	movq	24(%rax), %rdi
	callq	_LittleFloat
	movq	(%r15), %rcx
	movq	8(%rcx,%rbx), %rdx
	movq	8(%rdx), %rdx
	movq	%rax, 24(%rdx)
	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)
	incq	%r12
	movslq	(%r14), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_14
LBB0_15:
	movq	_q1_numfaces@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_18
## %bb.16:
	xorl	%ebx, %ebx
	movq	_q1_dfaces@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_17:                                ## =>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_17
LBB0_18:
	movq	_q1_numnodes@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_21
## %bb.19:
	xorl	%ebx, %ebx
	movq	_q1_dnodes@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx)
	movq	40(%rcx,%rbx), %rax
	movq	(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	40(%rcx,%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	32(%rax,%rbx), %rax
	movq	(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	32(%rcx,%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	40(%rax,%rbx), %rax
	movq	8(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	40(%rcx,%rbx), %rdx
	movq	%rax, 8(%rdx)
	movq	32(%rcx,%rbx), %rax
	movq	8(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	32(%rcx,%rbx), %rdx
	movq	%rax, 8(%rdx)
	movq	40(%rcx,%rbx), %rax
	movq	16(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	40(%rcx,%rbx), %rdx
	movq	%rax, 16(%rdx)
	movq	32(%rcx,%rbx), %rax
	movq	16(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	32(%rcx,%rbx), %rdx
	movq	%rax, 16(%rdx)
	movq	24(%rcx,%rbx), %rax
	movq	(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	24(%rcx,%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	24(%rax,%rbx), %rax
	movq	8(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	24(%rcx,%rbx), %rdx
	movq	%rax, 8(%rdx)
	movq	16(%rcx,%rbx), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	%rax, 16(%rcx,%rbx)
	movq	(%r15), %rax
	movq	8(%rax,%rbx), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx,%rbx)
	incq	%r12
	movslq	(%r14), %rax
	addq	$48, %rbx
	cmpq	%rax, %r12
	jl	LBB0_20
LBB0_21:
	movq	_q1_numleafs@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_24
## %bb.22:
	movq	_q1_dleafs@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rbx), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx)
	movq	32(%rcx,%rbx), %rax
	movq	(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	32(%rcx,%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	24(%rax,%rbx), %rax
	movq	(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	24(%rcx,%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	32(%rax,%rbx), %rax
	movq	8(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	32(%rcx,%rbx), %rdx
	movq	%rax, 8(%rdx)
	movq	24(%rcx,%rbx), %rax
	movq	8(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	24(%rcx,%rbx), %rdx
	movq	%rax, 8(%rdx)
	movq	32(%rcx,%rbx), %rax
	movq	16(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	32(%rcx,%rbx), %rdx
	movq	%rax, 16(%rdx)
	movq	24(%rcx,%rbx), %rax
	movq	16(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	24(%rcx,%rbx), %rdx
	movq	%rax, 16(%rdx)
	movq	16(%rcx,%rbx), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	%rax, 16(%rcx,%rbx)
	movq	(%r15), %rax
	movq	8(%rax,%rbx), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movq	(%r15), %rax
	movl	4(%rax,%rbx), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, 4(%rcx,%rbx)
	incq	%r12
	movslq	(%r14), %rax
	addq	$40, %rbx
	cmpq	%rax, %r12
	jl	LBB0_23
LBB0_24:
	movq	_q1_numclipnodes@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_27
## %bb.25:
	movq	_q1_dclipnodes@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rbx), %edi
	callq	_LittleLong
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx)
	movq	8(%rcx,%rbx), %rax
	movq	(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	8(%rcx,%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	movq	8(%rax,%rbx), %rax
	movq	8(%rax), %rdi
	callq	_LittleShort
	movq	(%r15), %rcx
	movq	8(%rcx,%rbx), %rdx
	movq	%rax, 8(%rdx)
	incq	%r12
	movslq	(%r14), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_26
LBB0_27:
	movq	_q1_texdatasize@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_34
## %bb.28:
	movq	_q1_dtexdata@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	(%r15), %edi
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_30
## %bb.29:
	movl	%edi, %r14d
	jmp	LBB0_31
LBB0_30:
	callq	_LittleLong
	movq	%rax, %r14
	movl	(%r15), %edi
LBB0_31:
	callq	_LittleLong
	movl	%eax, (%r15)
	testl	%r14d, %r14d
	jle	LBB0_34
## %bb.32:
	movl	%r14d, %r14d
	movq	8(%r15), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rbx,4), %edi
	callq	_LittleLong
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_33
LBB0_34:
	movq	_q1_nummarksurfaces@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_37
## %bb.35:
	xorl	%ebx, %ebx
	movq	_q1_dmarksurfaces@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_36:                                ## =>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_36
LBB0_37:
	movq	_q1_numsurfedges@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_40
## %bb.38:
	movq	_q1_dsurfedges@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_39:                                ## =>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_39
LBB0_40:
	movq	_q1_numedges@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_43
## %bb.41:
	movq	_q1_dedges@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_42:                                ## =>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_42
LBB0_43:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_q1_nummodels,4,2               ## @q1_nummodels
	.comm	_q1_dmodels,8,3                 ## @q1_dmodels
	.comm	_Q1_MAX_MAP_HULLS,4,2           ## @Q1_MAX_MAP_HULLS
	.comm	_q1_numvertexes,4,2             ## @q1_numvertexes
	.comm	_q1_dvertexes,8,3               ## @q1_dvertexes
	.comm	_q1_numplanes,4,2               ## @q1_numplanes
	.comm	_q1_dplanes,8,3                 ## @q1_dplanes
	.comm	_q1_numtexinfo,4,2              ## @q1_numtexinfo
	.comm	_q1_texinfo,8,3                 ## @q1_texinfo
	.comm	_q1_numfaces,4,2                ## @q1_numfaces
	.comm	_q1_dfaces,8,3                  ## @q1_dfaces
	.comm	_q1_numnodes,4,2                ## @q1_numnodes
	.comm	_q1_dnodes,8,3                  ## @q1_dnodes
	.comm	_q1_numleafs,4,2                ## @q1_numleafs
	.comm	_q1_dleafs,8,3                  ## @q1_dleafs
	.comm	_q1_numclipnodes,4,2            ## @q1_numclipnodes
	.comm	_q1_dclipnodes,8,3              ## @q1_dclipnodes
	.comm	_q1_texdatasize,8,3             ## @q1_texdatasize
	.comm	_q1_dtexdata,8,3                ## @q1_dtexdata
	.comm	_q1_nummarksurfaces,4,2         ## @q1_nummarksurfaces
	.comm	_q1_dmarksurfaces,8,3           ## @q1_dmarksurfaces
	.comm	_q1_numsurfedges,4,2            ## @q1_numsurfedges
	.comm	_q1_dsurfedges,8,3              ## @q1_dsurfedges
	.comm	_q1_numedges,4,2                ## @q1_numedges
	.comm	_q1_dedges,8,3                  ## @q1_dedges
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q1_SwapBSPFile                 ; -- Begin function Q1_SwapBSPFile
	.p2align	2
_Q1_SwapBSPFile:                        ; @Q1_SwapBSPFile
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _q1_nummodels@GOTPAGE
Lloh1:
	ldr	x20, [x20, _q1_nummodels@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x21, #0
Lloh2:
	adrp	x22, _q1_dmodels@GOTPAGE
Lloh3:
	ldr	x22, [x22, _q1_dmodels@GOTPAGEOFF]
Lloh4:
	adrp	x23, _Q1_MAX_MAP_HULLS@GOTPAGE
Lloh5:
	ldr	x23, [x23, _Q1_MAX_MAP_HULLS@GOTPAGEOFF]
	mov	w24, #48
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	madd	x25, x21, x24, x25
	ldr	w0, [x25, #8]
	bl	_LittleLong
	str	w0, [x25, #8]
	ldr	w0, [x25, #12]
	bl	_LittleLong
	str	w0, [x25, #12]
	ldr	w0, [x25, #16]
	bl	_LittleLong
	str	w0, [x25, #16]
	ldr	x8, [x25, #40]
	ldr	x0, [x8]
	bl	_LittleFloat
	ldr	x8, [x25, #40]
	str	x0, [x8]
	ldr	x8, [x25, #32]
	ldr	x0, [x8]
	bl	_LittleFloat
	ldr	x8, [x25, #32]
	str	x0, [x8]
	ldr	x8, [x25, #24]
	ldr	x0, [x8]
	bl	_LittleFloat
	ldr	x8, [x25, #24]
	str	x0, [x8]
	ldr	x8, [x25, #40]
	ldr	x0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x25, #40]
	str	x0, [x8, #8]
	ldr	x8, [x25, #32]
	ldr	x0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x25, #32]
	str	x0, [x8, #8]
	ldr	x8, [x25, #24]
	ldr	x0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x25, #24]
	str	x0, [x8, #8]
	ldr	x8, [x25, #40]
	ldr	x0, [x8, #16]
	bl	_LittleFloat
	ldr	x8, [x25, #40]
	str	x0, [x8, #16]
	ldr	x8, [x25, #32]
	ldr	x0, [x8, #16]
	bl	_LittleFloat
	ldr	x8, [x25, #32]
	str	x0, [x8, #16]
	ldr	x8, [x25, #24]
	ldr	x0, [x8, #16]
	bl	_LittleFloat
	ldr	x8, [x25, #24]
	str	x0, [x8, #16]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x25, [x22]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
	madd	x27, x21, x24, x25
	ldr	x8, [x27]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x28, x26, #2
	ldr	w0, [x8, x28]
	bl	_LittleLong
	ldr	x8, [x27]
	str	w0, [x8, x28]
	add	x26, x26, #1
	ldrsw	x9, [x23]
	cmp	x26, x9
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
Lloh6:
	adrp	x20, _q1_numvertexes@GOTPAGE
Lloh7:
	ldr	x20, [x20, _q1_numvertexes@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x21, #0
Lloh8:
	adrp	x22, _q1_dvertexes@GOTPAGE
Lloh9:
	ldr	x22, [x22, _q1_dvertexes@GOTPAGEOFF]
	ldr	x8, [x22]
LBB0_8:                                 ; =>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_8
LBB0_9:
Lloh10:
	adrp	x20, _q1_numplanes@GOTPAGE
Lloh11:
	ldr	x20, [x20, _q1_numplanes@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x21, #0
	mov	x22, #0
Lloh12:
	adrp	x23, _q1_dplanes@GOTPAGE
Lloh13:
	ldr	x23, [x23, _q1_dplanes@GOTPAGEOFF]
	ldr	x8, [x23]
LBB0_11:                                ; =>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_11
LBB0_12:
Lloh14:
	adrp	x20, _q1_numtexinfo@GOTPAGE
Lloh15:
	ldr	x20, [x20, _q1_numtexinfo@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x21, #0
	mov	x22, #0
Lloh16:
	adrp	x23, _q1_texinfo@GOTPAGE
Lloh17:
	ldr	x23, [x23, _q1_texinfo@GOTPAGEOFF]
	ldr	x8, [x23]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x21
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x0, [x8]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	str	x0, [x8]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
	str	x0, [x9, #8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x0, [x8, #16]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
	str	x0, [x9, #16]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x0, [x8, #24]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
	str	x0, [x9, #24]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	ldr	x0, [x8]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	str	x0, [x8]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, #8]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #8]
	ldr	x9, [x9, #8]
	str	x0, [x9, #8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, #16]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #8]
	ldr	x9, [x9, #8]
	str	x0, [x9, #16]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	ldr	x0, [x8, #24]
	bl	_LittleFloat
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #8]
	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	x9, x8, x21
	str	w0, [x9, #4]
	add	x22, x22, #1
	ldrsw	x9, [x20]
	add	x21, x21, #16
	cmp	x22, x9
	b.lt	LBB0_14
LBB0_15:
Lloh18:
	adrp	x20, _q1_numfaces@GOTPAGE
Lloh19:
	ldr	x20, [x20, _q1_numfaces@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:
	mov	x21, #0
	mov	w22, #32
Lloh20:
	adrp	x23, _q1_dfaces@GOTPAGE
Lloh21:
	ldr	x23, [x23, _q1_dfaces@GOTPAGEOFF]
LBB0_17:                                ; =>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_17
LBB0_18:
Lloh22:
	adrp	x20, _q1_numnodes@GOTPAGE
Lloh23:
	ldr	x20, [x20, _q1_numnodes@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.19:
	mov	x21, #0
	mov	x22, #0
Lloh24:
	adrp	x23, _q1_dnodes@GOTPAGE
Lloh25:
	ldr	x23, [x23, _q1_dnodes@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	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, #24]
	ldr	x0, [x8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #24]
	str	x0, [x8]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #24]
	ldr	x0, [x8, #8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #24]
	str	x0, [x9, #8]
	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, #48
	cmp	x22, x8
	b.lt	LBB0_20
LBB0_21:
Lloh26:
	adrp	x20, _q1_numleafs@GOTPAGE
Lloh27:
	ldr	x20, [x20, _q1_numleafs@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.22:
	mov	x21, #0
	mov	x22, #0
Lloh28:
	adrp	x23, _q1_dleafs@GOTPAGE
Lloh29:
	ldr	x23, [x23, _q1_dleafs@GOTPAGEOFF]
	ldr	x8, [x23]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8, x21]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x8, x8, x21
	str	w0, [x8]
	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, #24]
	ldr	x0, [x8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #24]
	str	x0, [x8]
	ldr	x8, [x23]
	add	x8, x8, x21
	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, #24]
	ldr	x0, [x8, #8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #24]
	str	x0, [x9, #8]
	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, #24]
	ldr	x0, [x8, #16]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x9, [x8, #24]
	str	x0, [x9, #16]
	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]
	ldr	x8, [x23]
	add	x8, x8, x21
	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, #40
	cmp	x22, x9
	b.lt	LBB0_23
LBB0_24:
Lloh30:
	adrp	x20, _q1_numclipnodes@GOTPAGE
Lloh31:
	ldr	x20, [x20, _q1_numclipnodes@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.25:
	mov	x21, #0
	mov	x22, #0
Lloh32:
	adrp	x23, _q1_dclipnodes@GOTPAGE
Lloh33:
	ldr	x23, [x23, _q1_dclipnodes@GOTPAGEOFF]
	ldr	x8, [x23]
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8, x21]
	bl	_LittleLong
	ldr	x8, [x23]
	add	x8, x8, x21
	str	w0, [x8]
	ldr	x8, [x8, #8]
	ldr	x0, [x8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #8]
	str	x0, [x8]
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x8, [x8, #8]
	ldr	x0, [x8, #8]
	bl	_LittleShort
	ldr	x8, [x23]
	add	x9, x8, x21
	ldr	x9, [x9, #8]
	str	x0, [x9, #8]
	add	x22, x22, #1
	ldrsw	x9, [x20]
	add	x21, x21, #16
	cmp	x22, x9
	b.lt	LBB0_26
LBB0_27:
Lloh34:
	adrp	x8, _q1_texdatasize@GOTPAGE
Lloh35:
	ldr	x8, [x8, _q1_texdatasize@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	cbz	x8, LBB0_34
; %bb.28:
Lloh37:
	adrp	x8, _q1_dtexdata@GOTPAGE
Lloh38:
	ldr	x8, [x8, _q1_dtexdata@GOTPAGEOFF]
Lloh39:
	ldr	x20, [x8]
	ldr	w0, [x20]
	cbz	x19, LBB0_30
; %bb.29:
	mov	x19, x0
	b	LBB0_31
LBB0_30:
	bl	_LittleLong
	mov	x19, x0
	ldr	w0, [x20]
LBB0_31:
	bl	_LittleLong
	str	w0, [x20]
	cmp	w19, #1
	b.lt	LBB0_34
; %bb.32:
	mov	x21, #0
	mov	w9, w19
	ldr	x8, [x20, #8]
	lsl	x19, x9, #2
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8, x21]
	bl	_LittleLong
	ldr	x8, [x20, #8]
	str	w0, [x8, x21]
	add	x21, x21, #4
	cmp	x19, x21
	b.ne	LBB0_33
LBB0_34:
Lloh40:
	adrp	x19, _q1_nummarksurfaces@GOTPAGE
Lloh41:
	ldr	x19, [x19, _q1_nummarksurfaces@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_37
; %bb.35:
	mov	x20, #0
Lloh42:
	adrp	x21, _q1_dmarksurfaces@GOTPAGE
Lloh43:
	ldr	x21, [x21, _q1_dmarksurfaces@GOTPAGEOFF]
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	lsl	x22, x20, #3
	ldr	x0, [x8, x22]
	bl	_LittleShort
	ldr	x8, [x21]
	str	x0, [x8, x22]
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_36
LBB0_37:
Lloh44:
	adrp	x19, _q1_numsurfedges@GOTPAGE
Lloh45:
	ldr	x19, [x19, _q1_numsurfedges@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_40
; %bb.38:
	mov	x20, #0
Lloh46:
	adrp	x21, _q1_dsurfedges@GOTPAGE
Lloh47:
	ldr	x21, [x21, _q1_dsurfedges@GOTPAGEOFF]
	ldr	x8, [x21]
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	lsl	x22, x20, #2
	ldr	w0, [x8, x22]
	bl	_LittleLong
	ldr	x8, [x21]
	str	w0, [x8, x22]
	add	x20, x20, #1
	ldrsw	x9, [x19]
	cmp	x20, x9
	b.lt	LBB0_39
LBB0_40:
Lloh48:
	adrp	x19, _q1_numedges@GOTPAGE
Lloh49:
	ldr	x19, [x19, _q1_numedges@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_43
; %bb.41:
	mov	x20, #0
Lloh50:
	adrp	x21, _q1_dedges@GOTPAGE
Lloh51:
	ldr	x21, [x21, _q1_dedges@GOTPAGEOFF]
	ldr	x8, [x21]
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	lsl	x22, x20, #3
	ldr	x8, [x8, x22]
	ldr	x0, [x8]
	bl	_LittleShort
	ldr	x8, [x21]
	ldr	x8, [x8, x22]
	str	x0, [x8]
	ldr	x8, [x21]
	ldr	x8, [x8, x22]
	ldr	x0, [x8, #8]
	bl	_LittleShort
	ldr	x8, [x21]
	ldr	x9, [x8, x22]
	str	x0, [x9, #8]
	add	x20, x20, #1
	ldrsw	x9, [x19]
	cmp	x20, x9
	b.lt	LBB0_42
LBB0_43:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.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 AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, 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
	.cfi_endproc
                                        ; -- End function
	.comm	_q1_nummodels,4,2               ; @q1_nummodels
	.comm	_q1_dmodels,8,3                 ; @q1_dmodels
	.comm	_Q1_MAX_MAP_HULLS,4,2           ; @Q1_MAX_MAP_HULLS
	.comm	_q1_numvertexes,4,2             ; @q1_numvertexes
	.comm	_q1_dvertexes,8,3               ; @q1_dvertexes
	.comm	_q1_numplanes,4,2               ; @q1_numplanes
	.comm	_q1_dplanes,8,3                 ; @q1_dplanes
	.comm	_q1_numtexinfo,4,2              ; @q1_numtexinfo
	.comm	_q1_texinfo,8,3                 ; @q1_texinfo
	.comm	_q1_numfaces,4,2                ; @q1_numfaces
	.comm	_q1_dfaces,8,3                  ; @q1_dfaces
	.comm	_q1_numnodes,4,2                ; @q1_numnodes
	.comm	_q1_dnodes,8,3                  ; @q1_dnodes
	.comm	_q1_numleafs,4,2                ; @q1_numleafs
	.comm	_q1_dleafs,8,3                  ; @q1_dleafs
	.comm	_q1_numclipnodes,4,2            ; @q1_numclipnodes
	.comm	_q1_dclipnodes,8,3              ; @q1_dclipnodes
	.comm	_q1_texdatasize,8,3             ; @q1_texdatasize
	.comm	_q1_dtexdata,8,3                ; @q1_dtexdata
	.comm	_q1_nummarksurfaces,4,2         ; @q1_nummarksurfaces
	.comm	_q1_dmarksurfaces,8,3           ; @q1_dmarksurfaces
	.comm	_q1_numsurfedges,4,2            ; @q1_numsurfedges
	.comm	_q1_dsurfedges,8,3              ; @q1_dsurfedges
	.comm	_q1_numedges,4,2                ; @q1_numedges
	.comm	_q1_dedges,8,3                  ; @q1_dedges
.subsections_via_symbols
