	.file	"extr_writebsp.c_EmitPlanes.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%9d BSP planes\n"
	.text
	.p2align 4
	.globl	EmitPlanes
	.type	EmitPlanes, @function
EmitPlanes:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR nummapplanes[rip]
	mov	rdx, QWORD PTR numBSPPlanes[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, QWORD PTR mapplanes[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR bspPlanes[rip]
	mov	edi, DWORD PTR 4[r12+rbx*8]
	lea	rbp, [rax+rdx*8]
	mov	esi, DWORD PTR 4[rbp]
	call	VectorCopy@PLT
	mov	eax, DWORD PTR [r12+rbx*8]
	add	rbx, 1
	cmp	DWORD PTR nummapplanes[rip], ebx
	mov	DWORD PTR 0[rbp], eax
	mov	rax, QWORD PTR numBSPPlanes[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR numBSPPlanes[rip], rdx
	jg	.L3
.L2:
	mov	edi, DWORD PTR SYS_VRB[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	lea	rsi, .LC0[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	Sys_FPrintf@PLT
	.cfi_endproc
.LFE0:
	.size	EmitPlanes, .-EmitPlanes
	.comm	nummapplanes,4,4
	.comm	numBSPPlanes,8,8
	.comm	mapplanes,8,8
	.comm	bspPlanes,8,8
	.comm	SYS_VRB,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_writebsp.c_EmitPlanes.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%9d BSP planes\012\000"
	.text
	.align	2
	.global	EmitPlanes
	.syntax unified
	.arm
	.fpu softvfp
	.type	EmitPlanes, %function
EmitPlanes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r10, .L7
	ldr	r3, .L7+4
	ldr	r2, [r10]
	ldr	r8, .L7+8
	cmp	r2, #0
	ldr	r4, [r3]
	ldr	r5, [r8]
	ble	.L2
	mov	r6, #0
	ldr	r9, .L7+12
	add	r4, r4, #8
.L3:
	ldr	r7, [r9]
	ldr	r0, [r4, #-4]
	add	r3, r7, r5, lsl #3
	ldr	r1, [r3, #4]
	bl	VectorCopy
	ldr	r2, [r4, #-8]
	ldr	r3, [r8]
	ldr	r1, [r10]
	add	r6, r6, #1
	str	r2, [r7, r5, lsl #3]
	cmp	r1, r6
	add	r5, r3, #1
	add	r4, r4, #8
	str	r5, [r8]
	bgt	.L3
.L2:
	ldr	r3, .L7+16
	mov	r2, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, [r3]
	ldr	r1, .L7+20
	b	Sys_FPrintf
.L8:
	.align	2
.L7:
	.word	nummapplanes
	.word	mapplanes
	.word	numBSPPlanes
	.word	bspPlanes
	.word	SYS_VRB
	.word	.LC0
	.size	EmitPlanes, .-EmitPlanes
	.comm	nummapplanes,4,4
	.comm	numBSPPlanes,4,4
	.comm	mapplanes,4,4
	.comm	bspPlanes,4,4
	.comm	SYS_VRB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
