	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EmitPlanes                     ## -- Begin function EmitPlanes
	.p2align	4, 0x90
_EmitPlanes:                            ## @EmitPlanes
	.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	_nummapplanes@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	movq	_mapplanes@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	$8, %rbx
	xorl	%r12d, %r12d
	movq	_numplanes@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	addq	$12, %rbx
	movq	_nummapplanes@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_dplanes@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	(%r14), %rax
	movl	(%rbx), %edi
	leaq	(%rax,%rax,2), %r15
	movl	8(%r13,%r15,4), %esi
	callq	_VectorCopy
	movl	-4(%rbx), %eax
	movl	%eax, 4(%r13,%r15,4)
	movl	-8(%rbx), %eax
	movl	%eax, (%r13,%r15,4)
	movq	(%r14), %rax
	incq	%rax
	movq	%rax, (%r14)
	movq	_MAX_MAP_PLANES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jb	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_Error
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mapplanes,8,3                  ## @mapplanes
	.comm	_nummapplanes,4,2               ## @nummapplanes
	.comm	_dplanes,8,3                    ## @dplanes
	.comm	_numplanes,8,3                  ## @numplanes
	.comm	_MAX_MAP_PLANES,8,3             ## @MAX_MAP_PLANES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAX_MAP_PLANES"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EmitPlanes                     ; -- Begin function EmitPlanes
	.p2align	2
_EmitPlanes:                            ; @EmitPlanes
	.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
Lloh0:
	adrp	x20, _nummapplanes@GOTPAGE
Lloh1:
	ldr	x20, [x20, _nummapplanes@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w21, #0
Lloh2:
	adrp	x8, _mapplanes@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mapplanes@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x22, _dplanes@GOTPAGE
Lloh6:
	ldr	x22, [x22, _dplanes@GOTPAGEOFF]
Lloh7:
	adrp	x23, _numplanes@GOTPAGE
Lloh8:
	ldr	x23, [x23, _numplanes@GOTPAGEOFF]
	add	x24, x8, #8
	mov	w25, #12
Lloh9:
	adrp	x26, _MAX_MAP_PLANES@GOTPAGE
Lloh10:
	ldr	x26, [x26, _MAX_MAP_PLANES@GOTPAGEOFF]
Lloh11:
	adrp	x19, l_.str@PAGE
Lloh12:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	ldr	w8, [x20]
	add	x24, x24, #12
	cmp	w21, w8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	ldr	w0, [x24]
	madd	x27, x9, x25, x8
	ldr	w1, [x27, #8]
	bl	_VectorCopy
	ldur	d0, [x24, #-8]
	str	d0, [x27]
	ldr	x8, [x23]
	add	x8, x8, #1
	str	x8, [x23]
	ldr	x9, [x26]
	cmp	x8, x9
	b.lo	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_Error
	b	LBB0_2
LBB0_5:
	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 AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_mapplanes,8,3                  ; @mapplanes
	.comm	_nummapplanes,4,2               ; @nummapplanes
	.comm	_dplanes,8,3                    ; @dplanes
	.comm	_numplanes,8,3                  ; @numplanes
	.comm	_MAX_MAP_PLANES,8,3             ; @MAX_MAP_PLANES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAX_MAP_PLANES"

.subsections_via_symbols
