	.file	"extr_l_bsp_q1.c_Q1_SwapBSPFile.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	Q1_SwapBSPFile
	.type	Q1_SwapBSPFile, @function
Q1_SwapBSPFile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r12d, DWORD PTR q1_nummodels[rip]
	test	r12d, r12d
	jle	.L9
	xor	r13d, r13d
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rbp, QWORD PTR q1_dmodels[rip]
	mov	ebx, DWORD PTR Q1_MAX_MAP_HULLS[rip]
	add	rbp, r13
	test	ebx, ebx
	jle	.L8
	mov	rax, QWORD PTR 0[rbp]
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR [rax+rbx*4]
	call	LittleLong@PLT
	mov	r8, rax
	mov	rax, QWORD PTR 0[rbp]
	mov	DWORD PTR [rax+rbx*4], r8d
	add	rbx, 1
	cmp	DWORD PTR Q1_MAX_MAP_HULLS[rip], ebx
	jg	.L7
.L8:
	mov	edi, DWORD PTR 8[rbp]
	xor	ebx, ebx
	call	LittleLong@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	DWORD PTR 8[rbp], eax
	call	LittleLong@PLT
	mov	edi, DWORD PTR 16[rbp]
	mov	DWORD PTR 12[rbp], eax
	call	LittleLong@PLT
	mov	DWORD PTR 16[rbp], eax
.L6:
	mov	r15, QWORD PTR 40[rbp]
	add	r15, rbx
	mov	rdi, QWORD PTR [r15]
	call	LittleFloat@PLT
	mov	QWORD PTR [r15], rax
	mov	r15, QWORD PTR 32[rbp]
	add	r15, rbx
	mov	rdi, QWORD PTR [r15]
	call	LittleFloat@PLT
	mov	QWORD PTR [r15], rax
	mov	r15, QWORD PTR 24[rbp]
	add	r15, rbx
	add	rbx, 8
	mov	rdi, QWORD PTR [r15]
	call	LittleFloat@PLT
	mov	QWORD PTR [r15], rax
	cmp	rbx, 24
	jne	.L6
	add	r12d, 1
	add	r13, 48
	cmp	DWORD PTR q1_nummodels[rip], r12d
	jg	.L2
.L9:
	mov	ebp, DWORD PTR q1_numvertexes[rip]
	xor	r12d, r12d
	test	ebp, ebp
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	lea	r13, 0[0+r12*8]
	xor	ebx, ebx
.L12:
	mov	rax, QWORD PTR q1_dvertexes[rip]
	mov	rbp, QWORD PTR [rax+r13]
	add	rbp, rbx
	add	rbx, 8
	mov	rdi, QWORD PTR 0[rbp]
	call	LittleFloat@PLT
	mov	QWORD PTR 0[rbp], rax
	cmp	rbx, 24
	jne	.L12
	add	r12, 1
	cmp	DWORD PTR q1_numvertexes[rip], r12d
	jg	.L3
.L4:
	mov	r11d, DWORD PTR q1_numplanes[rip]
	mov	rax, QWORD PTR q1_dplanes[rip]
	xor	r13d, r13d
	test	r11d, r11d
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L17:
	lea	r15, 0[r13+r13*2]
	xor	ebx, ebx
	lea	r12, 0[0+r15*8]
.L16:
	mov	rbp, QWORD PTR 16[rax+r12]
	add	rbp, rbx
	add	rbx, 8
	mov	rdi, QWORD PTR 0[rbp]
	call	LittleFloat@PLT
	mov	QWORD PTR 0[rbp], rax
	cmp	rbx, 24
	je	.L15
	mov	rax, QWORD PTR q1_dplanes[rip]
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	add	r12, QWORD PTR q1_dplanes[rip]
	add	r13, 1
	mov	rdi, QWORD PTR 8[r12]
	call	LittleFloat@PLT
	mov	QWORD PTR 8[r12], rax
	mov	rax, QWORD PTR q1_dplanes[rip]
	mov	edi, DWORD PTR [rax+r15*8]
	call	LittleLong@PLT
	cmp	DWORD PTR q1_numplanes[rip], r13d
	mov	r8, rax
	mov	rax, QWORD PTR q1_dplanes[rip]
	mov	DWORD PTR [rax+r15*8], r8d
	jg	.L17
.L11:
	mov	r10d, DWORD PTR q1_numtexinfo[rip]
	mov	rax, QWORD PTR q1_texinfo[rip]
	xor	r13d, r13d
	test	r10d, r10d
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rbp, r13
	xor	ebx, ebx
	sal	rbp, 4
.L21:
	mov	rax, QWORD PTR 8[rax+rbp]
	mov	r12, QWORD PTR [rax]
	add	r12, rbx
	add	rbx, 8
	mov	rdi, QWORD PTR [r12]
	call	LittleFloat@PLT
	mov	QWORD PTR [r12], rax
	mov	rax, QWORD PTR q1_texinfo[rip]
	cmp	rbx, 32
	jne	.L21
	xor	ebx, ebx
.L22:
	mov	rax, QWORD PTR 8[rax+rbp]
	mov	r12, QWORD PTR 8[rax]
	add	r12, rbx
	add	rbx, 8
	mov	rdi, QWORD PTR [r12]
	call	LittleFloat@PLT
	mov	QWORD PTR [r12], rax
	mov	rax, QWORD PTR q1_texinfo[rip]
	cmp	rbx, 32
	jne	.L22
	mov	edi, DWORD PTR [rax+rbp]
	add	r13, 1
	call	LittleLong@PLT
	mov	r8, rax
	mov	rax, QWORD PTR q1_texinfo[rip]
	add	rax, rbp
	mov	DWORD PTR [rax], r8d
	mov	edi, DWORD PTR 4[rax]
	call	LittleLong@PLT
	cmp	DWORD PTR q1_numtexinfo[rip], r13d
	mov	r8, rax
	mov	rax, QWORD PTR q1_texinfo[rip]
	mov	DWORD PTR 4[rax+rbp], r8d
	jg	.L18
.L14:
	mov	r9d, DWORD PTR q1_numfaces[rip]
	xor	ebx, ebx
	xor	r12d, r12d
	test	r9d, r9d
	jle	.L26
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rbp, QWORD PTR q1_dfaces[rip]
	add	r12d, 1
	add	rbp, rbx
	mov	rdi, QWORD PTR 32[rbp]
	call	LittleShort@PLT
	mov	QWORD PTR 32[rbp], rax
	mov	rbp, QWORD PTR q1_dfaces[rip]
	add	rbp, rbx
	mov	rdi, QWORD PTR 24[rbp]
	call	LittleShort@PLT
	mov	QWORD PTR 24[rbp], rax
	mov	rbp, QWORD PTR q1_dfaces[rip]
	add	rbp, rbx
	mov	rdi, QWORD PTR 16[rbp]
	call	LittleShort@PLT
	mov	QWORD PTR 16[rbp], rax
	mov	rax, QWORD PTR q1_dfaces[rip]
	mov	edi, DWORD PTR [rax+rbx]
	call	LittleLong@PLT
	mov	r8, rax
	mov	rax, QWORD PTR q1_dfaces[rip]
	add	rax, rbx
	mov	DWORD PTR [rax], r8d
	mov	edi, DWORD PTR 4[rax]
	call	LittleLong@PLT
	mov	rbp, QWORD PTR q1_dfaces[rip]
	add	rbp, rbx
	add	rbx, 40
	mov	DWORD PTR 4[rbp], eax
	mov	rdi, QWORD PTR 8[rbp]
	call	LittleShort@PLT
	cmp	DWORD PTR q1_numfaces[rip], r12d
	mov	QWORD PTR 8[rbp], rax
	jg	.L23
.L26:
	mov	r8d, DWORD PTR q1_numnodes[rip]
	xor	ebp, ebp
	xor	r13d, r13d
	test	r8d, r8d
	jle	.L25
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rax, QWORD PTR q1_dnodes[rip]
	xor	ebx, ebx
	mov	edi, DWORD PTR [rax+rbp]
	call	LittleLong@PLT
	mov	r8, rax
	mov	rax, QWORD PTR q1_dnodes[rip]
	mov	DWORD PTR [rax+rbp], r8d
.L30:
	mov	r12, QWORD PTR 40[rax+rbp]
	add	r12, rbx
	mov	rdi, QWORD PTR [r12]
	call	LittleShort@PLT
	mov	QWORD PTR [r12], rax
	mov	rax, QWORD PTR q1_dnodes[rip]
	mov	r12, QWORD PTR 32[rax+rbp]
	add	r12, rbx
	add	rbx, 8
	mov	rdi, QWORD PTR [r12]
	call	LittleShort@PLT
	mov	QWORD PTR [r12], rax
	mov	rax, QWORD PTR q1_dnodes[rip]
	cmp	rbx, 24
	jne	.L30
	mov	rbx, QWORD PTR 24[rax+rbp]
	add	r13d, 1
	mov	rdi, QWORD PTR [rbx]
	call	LittleShort@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR q1_dnodes[rip]
	mov	rbx, QWORD PTR 24[rax+rbp]
	mov	rdi, QWORD PTR 8[rbx]
	call	LittleShort@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rbx, QWORD PTR q1_dnodes[rip]
	add	rbx, rbp
	mov	rdi, QWORD PTR 16[rbx]
	call	LittleShort@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rbx, QWORD PTR q1_dnodes[rip]
	add	rbx, rbp
	add	rbp, 48
	mov	rdi, QWORD PTR 8[rbx]
	call	LittleShort@PLT
	cmp	DWORD PTR q1_numnodes[rip], r13d
	mov	QWORD PTR 8[rbx], rax
	jg	.L24
.L25:
	mov	edi, DWORD PTR q1_numleafs[rip]
	mov	rax, QWORD PTR q1_dleafs[rip]
	xor	r13d, r13d
	test	edi, edi
	jle	.L28
	.p2align 4,,10
	.p2align 3
.L35:
	lea	rbx, 0[r13+r13*4]
	mov	edi, DWORD PTR [rax+rbx*8]
	lea	rbp, 0[0+rbx*8]
	call	LittleLong@PLT
	mov	r8, rax
	mov	rax, QWORD PTR q1_dleafs[rip]
	mov	DWORD PTR [rax+rbx*8], r8d
	xor	ebx, ebx
.L34:
	mov	r12, QWORD PTR 32[rax+rbp]
	add	r12, rbx
	mov	rdi, QWORD PTR [r12]
	call	LittleShort@PLT
	mov	QWORD PTR [r12], rax
	mov	rax, QWORD PTR q1_dleafs[rip]
	mov	r12, QWORD PTR 24[rax+rbp]
	add	r12, rbx
	add	rbx, 8
	mov	rdi, QWORD PTR [r12]
	call	LittleShort@PLT
	mov	QWORD PTR [r12], rax
	cmp	rbx, 24
	je	.L33
	mov	rax, QWORD PTR q1_dleafs[rip]
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rbx, QWORD PTR q1_dleafs[rip]
	add	r13, 1
	add	rbx, rbp
	mov	rdi, QWORD PTR 16[rbx]
	call	LittleShort@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rbx, QWORD PTR q1_dleafs[rip]
	add	rbx, rbp
	mov	rdi, QWORD PTR 8[rbx]
	call	LittleShort@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR q1_dleafs[rip]
	mov	edi, DWORD PTR 4[rax+rbp]
	call	LittleLong@PLT
	cmp	DWORD PTR q1_numleafs[rip], r13d
	mov	r8, rax
	mov	rax, QWORD PTR q1_dleafs[rip]
	mov	DWORD PTR 4[rax+rbp], r8d
	jg	.L35
.L28:
	mov	esi, DWORD PTR q1_numclipnodes[rip]
	xor	ebx, ebx
	test	esi, esi
	jle	.L32
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rax, QWORD PTR q1_dclipnodes[rip]
	mov	rbp, rbx
	add	rbx, 1
	sal	rbp, 4
	mov	edi, DWORD PTR [rax+rbp]
	call	LittleLong@PLT
	mov	r8, rax
	mov	rax, QWORD PTR q1_dclipnodes[rip]
	add	rax, rbp
	mov	r12, QWORD PTR 8[rax]
	mov	DWORD PTR [rax], r8d
	mov	rdi, QWORD PTR [r12]
	call	LittleShort@PLT
	mov	QWORD PTR [r12], rax
	mov	rax, QWORD PTR q1_dclipnodes[rip]
	mov	rbp, QWORD PTR 8[rax+rbp]
	mov	rdi, QWORD PTR 8[rbp]
	call	LittleShort@PLT
	cmp	DWORD PTR q1_numclipnodes[rip], ebx
	mov	QWORD PTR 8[rbp], rax
	jg	.L31
.L32:
	cmp	QWORD PTR q1_texdatasize[rip], 0
	je	.L37
	mov	rbp, QWORD PTR q1_dtexdata[rip]
	mov	r12d, DWORD PTR 0[rbp]
	mov	edi, r12d
	test	r14, r14
	je	.L83
	call	LittleLong@PLT
	mov	DWORD PTR 0[rbp], eax
	test	r12d, r12d
	jle	.L37
.L84:
	lea	edx, -1[r12]
	mov	rax, QWORD PTR 8[rbp]
	xor	ebx, ebx
	lea	r12, 4[0+rdx*4]
	.p2align 4,,10
	.p2align 3
.L41:
	mov	edi, DWORD PTR [rax+rbx]
	call	LittleLong@PLT
	mov	r8, rax
	mov	rax, QWORD PTR 8[rbp]
	mov	DWORD PTR [rax+rbx], r8d
	add	rbx, 4
	cmp	rbx, r12
	jne	.L41
.L37:
	mov	ecx, DWORD PTR q1_nummarksurfaces[rip]
	xor	ebx, ebx
	test	ecx, ecx
	jle	.L39
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rax, QWORD PTR q1_dmarksurfaces[rip]
	lea	rbp, [rax+rbx*8]
	add	rbx, 1
	mov	rdi, QWORD PTR 0[rbp]
	call	LittleShort@PLT
	cmp	DWORD PTR q1_nummarksurfaces[rip], ebx
	mov	QWORD PTR 0[rbp], rax
	jg	.L38
.L39:
	mov	edx, DWORD PTR q1_numsurfedges[rip]
	mov	rax, QWORD PTR q1_dsurfedges[rip]
	xor	ebx, ebx
	test	edx, edx
	jle	.L43
	.p2align 4,,10
	.p2align 3
.L46:
	mov	edi, DWORD PTR [rax+rbx*4]
	call	LittleLong@PLT
	mov	r8, rax
	mov	rax, QWORD PTR q1_dsurfedges[rip]
	mov	DWORD PTR [rax+rbx*4], r8d
	add	rbx, 1
	cmp	DWORD PTR q1_numsurfedges[rip], ebx
	jg	.L46
.L43:
	mov	eax, DWORD PTR q1_numedges[rip]
	xor	ebx, ebx
	test	eax, eax
	jle	.L1
	.p2align 4,,10
	.p2align 3
.L44:
	mov	rax, QWORD PTR q1_dedges[rip]
	mov	rbp, QWORD PTR [rax+rbx*8]
	mov	rdi, QWORD PTR 0[rbp]
	call	LittleShort@PLT
	mov	QWORD PTR 0[rbp], rax
	mov	rax, QWORD PTR q1_dedges[rip]
	mov	rbp, QWORD PTR [rax+rbx*8]
	add	rbx, 1
	mov	rdi, QWORD PTR 8[rbp]
	call	LittleShort@PLT
	cmp	DWORD PTR q1_numedges[rip], ebx
	mov	QWORD PTR 8[rbp], rax
	jg	.L44
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L83:
	.cfi_restore_state
	call	LittleLong@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r12d, eax
	call	LittleLong@PLT
	mov	DWORD PTR 0[rbp], eax
	test	r12d, r12d
	jg	.L84
	jmp	.L37
	.cfi_endproc
.LFE0:
	.size	Q1_SwapBSPFile, .-Q1_SwapBSPFile
	.comm	q1_texinfo,8,8
	.comm	q1_texdatasize,8,8
	.comm	q1_numvertexes,4,4
	.comm	q1_numtexinfo,4,4
	.comm	q1_numsurfedges,4,4
	.comm	q1_numplanes,4,4
	.comm	q1_numnodes,4,4
	.comm	q1_nummodels,4,4
	.comm	q1_nummarksurfaces,4,4
	.comm	q1_numleafs,4,4
	.comm	q1_numfaces,4,4
	.comm	q1_numedges,4,4
	.comm	q1_numclipnodes,4,4
	.comm	q1_dvertexes,8,8
	.comm	q1_dtexdata,8,8
	.comm	q1_dsurfedges,8,8
	.comm	q1_dplanes,8,8
	.comm	q1_dnodes,8,8
	.comm	q1_dmodels,8,8
	.comm	q1_dmarksurfaces,8,8
	.comm	q1_dleafs,8,8
	.comm	q1_dfaces,8,8
	.comm	q1_dedges,8,8
	.comm	q1_dclipnodes,8,8
	.comm	Q1_MAX_MAP_HULLS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_l_bsp_q1.c_Q1_SwapBSPFile.c"
	.text
	.align	2
	.global	Q1_SwapBSPFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	Q1_SwapBSPFile, %function
Q1_SwapBSPFile:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, .L73
	sub	sp, sp, #12
	ldr	r3, [r9]
	str	r0, [sp, #4]
	cmp	r3, #0
	ble	.L9
	mov	r7, #0
	mov	r8, r7
	ldr	r10, .L73+4
	ldr	r6, .L73+8
.L2:
	ldr	r2, [r6]
	ldr	r3, [r10]
	cmp	r2, #0
	add	r5, r3, r7
	movgt	r4, #0
	ldrgt	r3, [r3, r7]
	ble	.L8
.L7:
	ldr	r0, [r3, r4, lsl #2]
	bl	LittleLong
	ldr	r3, [r5]
	str	r0, [r3, r4, lsl #2]
	ldr	r2, [r6]
	add	r4, r4, #1
	cmp	r2, r4
	bgt	.L7
.L8:
	ldr	r0, [r5, #4]
	bl	LittleLong
	mov	r3, r0
	ldr	r0, [r5, #8]
	str	r3, [r5, #4]
	bl	LittleLong
	mov	r3, r0
	ldr	r0, [r5, #12]
	str	r3, [r5, #8]
	bl	LittleLong
	mov	r4, #0
	str	r0, [r5, #12]
.L6:
	ldr	fp, [r5, #24]
	ldr	r0, [fp, r4]
	bl	LittleFloat
	str	r0, [fp, r4]
	ldr	fp, [r5, #20]
	ldr	r0, [fp, r4]
	bl	LittleFloat
	str	r0, [fp, r4]
	ldr	fp, [r5, #16]
	ldr	r0, [fp, r4]
	bl	LittleFloat
	str	r0, [fp, r4]
	add	r4, r4, #4
	cmp	r4, #12
	bne	.L6
	ldr	r3, [r9]
	add	r8, r8, #1
	cmp	r3, r8
	add	r7, r7, #28
	bgt	.L2
.L9:
	ldr	r8, .L73+12
	ldr	r3, [r8]
	cmp	r3, #0
	movgt	r6, #0
	ldrgt	r9, .L73+16
	ble	.L4
.L3:
	mov	r4, #0
	lsl	r7, r6, #2
.L12:
	ldr	r3, [r9]
	ldr	r5, [r3, r7]
	ldr	r0, [r5, r4]
	bl	LittleFloat
	str	r0, [r5, r4]
	add	r4, r4, #4
	cmp	r4, #12
	bne	.L12
	ldr	r3, [r8]
	add	r6, r6, #1
	cmp	r3, r6
	bgt	.L3
.L4:
	ldr	r8, .L73+20
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L11
	mov	r5, #0
	mov	r7, r5
	ldr	r6, .L73+24
	ldr	r3, [r6]
.L17:
	mov	r4, #0
.L16:
	add	r3, r3, r5
	ldr	r9, [r3, #8]
	ldr	r0, [r9, r4]
	bl	LittleFloat
	str	r0, [r9, r4]
	add	r4, r4, #4
	cmp	r4, #12
	ldrne	r3, [r6]
	bne	.L16
.L15:
	ldr	r4, [r6]
	add	r7, r7, #1
	add	r4, r4, r5
	ldr	r0, [r4, #4]
	bl	LittleFloat
	ldr	r3, [r6]
	str	r0, [r4, #4]
	ldr	r0, [r3, r5]
	bl	LittleLong
	ldr	r2, [r8]
	ldr	r3, [r6]
	cmp	r2, r7
	str	r0, [r3, r5]
	add	r5, r5, #12
	bgt	.L17
.L11:
	ldr	r8, .L73+28
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L14
	mov	r5, #0
	mov	r7, r5
	ldr	r6, .L73+32
	ldr	r3, [r6]
.L18:
	mov	r4, #0
.L21:
	add	r3, r3, r5
	ldr	r3, [r3, #8]
	ldr	r9, [r3]
	ldr	r0, [r9, r4]
	bl	LittleFloat
	str	r0, [r9, r4]
	add	r4, r4, #4
	cmp	r4, #16
	ldr	r3, [r6]
	bne	.L21
	mov	r4, #0
.L22:
	add	r3, r3, r5
	ldr	r3, [r3, #8]
	ldr	r9, [r3, #4]
	ldr	r0, [r9, r4]
	bl	LittleFloat
	str	r0, [r9, r4]
	add	r4, r4, #4
	cmp	r4, #16
	ldr	r3, [r6]
	bne	.L22
	ldr	r0, [r3, r5]
	bl	LittleLong
	ldr	r3, [r6]
	add	r7, r7, #1
	add	r2, r3, r5
	str	r0, [r3, r5]
	ldr	r0, [r2, #4]
	bl	LittleLong
	ldr	r2, [r8]
	ldr	r3, [r6]
	cmp	r2, r7
	add	r2, r3, r5
	str	r0, [r2, #4]
	add	r5, r5, #12
	bgt	.L18
.L14:
	ldr	r9, .L73+36
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L26
	mov	r4, #0
	mov	r8, r4
	ldr	r5, .L73+40
.L23:
	ldr	r6, [r5]
	add	r8, r8, #1
	add	r6, r6, r4
	ldr	r0, [r6, #20]
	bl	LittleShort
	ldr	r7, [r5]
	str	r0, [r6, #20]
	add	r7, r7, r4
	ldr	r0, [r7, #16]
	bl	LittleShort
	ldr	r6, [r5]
	str	r0, [r7, #16]
	add	r6, r6, r4
	ldr	r0, [r6, #12]
	bl	LittleShort
	ldr	r3, [r5]
	str	r0, [r6, #12]
	ldr	r0, [r3, r4]
	bl	LittleLong
	ldr	r3, [r5]
	add	r2, r3, r4
	str	r0, [r3, r4]
	ldr	r0, [r2, #4]
	bl	LittleLong
	ldr	r6, [r5]
	add	r6, r6, r4
	str	r0, [r6, #4]
	ldr	r0, [r6, #8]
	bl	LittleShort
	ldr	r3, [r9]
	add	r4, r4, #24
	cmp	r3, r8
	str	r0, [r6, #8]
	bgt	.L23
.L26:
	ldr	r8, .L73+44
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L25
	mov	r5, #0
	mov	r7, r5
	ldr	r6, .L73+48
.L24:
	ldr	r3, [r6]
	mov	r4, #0
	ldr	r0, [r3, r5]
	bl	LittleLong
	ldr	r3, [r6]
	str	r0, [r3, r5]
.L30:
	add	r3, r3, r5
	ldr	r9, [r3, #20]
	ldr	r0, [r9, r4]
	bl	LittleShort
	str	r0, [r9, r4]
	ldr	r3, [r6]
	add	r3, r3, r5
	ldr	r9, [r3, #16]
	ldr	r0, [r9, r4]
	bl	LittleShort
	str	r0, [r9, r4]
	add	r4, r4, #4
	cmp	r4, #12
	ldr	r3, [r6]
	bne	.L30
	add	r3, r3, r5
	ldr	r4, [r3, #12]
	add	r7, r7, #1
	ldr	r0, [r4]
	bl	LittleShort
	str	r0, [r4]
	ldr	r3, [r6]
	add	r3, r3, r5
	ldr	r4, [r3, #12]
	ldr	r0, [r4, #4]
	bl	LittleShort
	ldr	r9, [r6]
	str	r0, [r4, #4]
	add	r9, r9, r5
	ldr	r0, [r9, #8]
	bl	LittleShort
	ldr	r4, [r6]
	str	r0, [r9, #8]
	add	r4, r4, r5
	ldr	r0, [r4, #4]
	bl	LittleShort
	ldr	r3, [r8]
	add	r5, r5, #24
	cmp	r3, r7
	str	r0, [r4, #4]
	bgt	.L24
.L25:
	ldr	r8, .L73+52
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L28
	mov	r5, #0
	mov	r7, r5
	ldr	r6, .L73+56
	ldr	r3, [r6]
.L35:
	ldr	r0, [r3, r5]
	bl	LittleLong
	mov	r4, #0
	ldr	r3, [r6]
	str	r0, [r3, r5]
.L34:
	add	r3, r3, r5
	ldr	r9, [r3, #20]
	ldr	r0, [r9, r4]
	bl	LittleShort
	str	r0, [r9, r4]
	ldr	r3, [r6]
	add	r3, r3, r5
	ldr	r9, [r3, #16]
	ldr	r0, [r9, r4]
	bl	LittleShort
	str	r0, [r9, r4]
	add	r4, r4, #4
	cmp	r4, #12
	ldrne	r3, [r6]
	bne	.L34
.L33:
	ldr	r9, [r6]
	add	r7, r7, #1
	add	r9, r9, r5
	ldr	r0, [r9, #12]
	bl	LittleShort
	ldr	r4, [r6]
	str	r0, [r9, #12]
	add	r4, r4, r5
	ldr	r0, [r4, #8]
	bl	LittleShort
	ldr	r3, [r6]
	str	r0, [r4, #8]
	add	r3, r3, r5
	ldr	r0, [r3, #4]
	bl	LittleLong
	ldr	r2, [r8]
	ldr	r3, [r6]
	cmp	r2, r7
	add	r2, r3, r5
	str	r0, [r2, #4]
	add	r5, r5, #24
	bgt	.L35
.L28:
	ldr	r8, .L73+60
	ldr	r3, [r8]
	cmp	r3, #0
	movgt	r4, #0
	ldrgt	r5, .L73+64
	ble	.L32
.L31:
	ldr	r3, [r5]
	lsl	r6, r4, #3
	ldr	r0, [r3, r4, lsl #3]
	bl	LittleLong
	ldr	r3, [r5]
	add	r2, r3, r6
	ldr	r7, [r2, #4]
	str	r0, [r3, r4, lsl #3]
	ldr	r0, [r7]
	bl	LittleShort
	str	r0, [r7]
	ldr	r3, [r5]
	add	r4, r4, #1
	add	r3, r3, r6
	ldr	r6, [r3, #4]
	ldr	r0, [r6, #4]
	bl	LittleShort
	ldr	r3, [r8]
	str	r0, [r6, #4]
	cmp	r3, r4
	bgt	.L31
.L32:
	ldr	r3, .L73+68
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L37
	ldr	r3, .L73+72
	ldr	r2, [sp, #4]
	ldr	r5, [r3]
	cmp	r2, #0
	ldr	r6, [r5]
	mov	r0, r6
	beq	.L71
	bl	LittleLong
	cmp	r6, #0
	str	r0, [r5]
	ble	.L37
.L72:
	mov	r4, #0
	ldr	r3, [r5, #4]
.L41:
	ldr	r0, [r3, r4, lsl #2]
	bl	LittleLong
	ldr	r3, [r5, #4]
	str	r0, [r3, r4, lsl #2]
	add	r4, r4, #1
	cmp	r6, r4
	bne	.L41
.L37:
	ldr	r6, .L73+76
	ldr	r3, [r6]
	cmp	r3, #0
	movgt	r4, #0
	ldrgt	r7, .L73+80
	ble	.L39
.L38:
	ldr	r5, [r7]
	ldr	r0, [r5, r4, lsl #2]
	bl	LittleShort
	ldr	r3, [r6]
	str	r0, [r5, r4, lsl #2]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L38
.L39:
	ldr	r5, .L73+84
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L43
	mov	r4, #0
	ldr	r6, .L73+88
	ldr	r3, [r6]
.L46:
	ldr	r0, [r3, r4, lsl #2]
	bl	LittleLong
	ldr	r3, [r6]
	str	r0, [r3, r4, lsl #2]
	ldr	r2, [r5]
	add	r4, r4, #1
	cmp	r2, r4
	bgt	.L46
.L43:
	ldr	r7, .L73+92
	ldr	r3, [r7]
	cmp	r3, #0
	movgt	r4, #0
	ldrgt	r6, .L73+96
	ble	.L1
.L44:
	ldr	r3, [r6]
	ldr	r5, [r3, r4, lsl #2]
	ldr	r0, [r5]
	bl	LittleShort
	str	r0, [r5]
	ldr	r3, [r6]
	ldr	r5, [r3, r4, lsl #2]
	add	r4, r4, #1
	ldr	r0, [r5, #4]
	bl	LittleShort
	ldr	r3, [r7]
	str	r0, [r5, #4]
	cmp	r3, r4
	bgt	.L44
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L71:
	bl	LittleLong
	mov	r6, r0
	ldr	r0, [r5]
	bl	LittleLong
	cmp	r6, #0
	str	r0, [r5]
	bgt	.L72
	b	.L37
.L74:
	.align	2
.L73:
	.word	q1_nummodels
	.word	q1_dmodels
	.word	Q1_MAX_MAP_HULLS
	.word	q1_numvertexes
	.word	q1_dvertexes
	.word	q1_numplanes
	.word	q1_dplanes
	.word	q1_numtexinfo
	.word	q1_texinfo
	.word	q1_numfaces
	.word	q1_dfaces
	.word	q1_numnodes
	.word	q1_dnodes
	.word	q1_numleafs
	.word	q1_dleafs
	.word	q1_numclipnodes
	.word	q1_dclipnodes
	.word	q1_texdatasize
	.word	q1_dtexdata
	.word	q1_nummarksurfaces
	.word	q1_dmarksurfaces
	.word	q1_numsurfedges
	.word	q1_dsurfedges
	.word	q1_numedges
	.word	q1_dedges
	.size	Q1_SwapBSPFile, .-Q1_SwapBSPFile
	.comm	q1_texinfo,4,4
	.comm	q1_texdatasize,4,4
	.comm	q1_numvertexes,4,4
	.comm	q1_numtexinfo,4,4
	.comm	q1_numsurfedges,4,4
	.comm	q1_numplanes,4,4
	.comm	q1_numnodes,4,4
	.comm	q1_nummodels,4,4
	.comm	q1_nummarksurfaces,4,4
	.comm	q1_numleafs,4,4
	.comm	q1_numfaces,4,4
	.comm	q1_numedges,4,4
	.comm	q1_numclipnodes,4,4
	.comm	q1_dvertexes,4,4
	.comm	q1_dtexdata,4,4
	.comm	q1_dsurfedges,4,4
	.comm	q1_dplanes,4,4
	.comm	q1_dnodes,4,4
	.comm	q1_dmodels,4,4
	.comm	q1_dmarksurfaces,4,4
	.comm	q1_dleafs,4,4
	.comm	q1_dfaces,4,4
	.comm	q1_dedges,4,4
	.comm	q1_dclipnodes,4,4
	.comm	Q1_MAX_MAP_HULLS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
