	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function CG_AddMarks
LCPI0_0:
	.quad	0x40a7700000000000              ## double 3000
LCPI0_1:
	.quad	0xc07c200000000000              ## double -450
LCPI0_2:
	.quad	0x407c200000000000              ## double 450
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_AddMarks
	.p2align	4, 0x90
_CG_AddMarks:                           ## @CG_AddMarks
	.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	_cg_addMarks@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_23
## %bb.1:
	movq	_cg_activeMarkPolys@GOTPCREL(%rip), %r14
	movq	48(%r14), %rdi
	cmpq	_cg_activeMarkPolys@GOTPCREL(%rip), %rdi
	je	LBB0_23
## %bb.2:
	movq	_cg@GOTPCREL(%rip), %r15
	movq	_MARK_TOTAL_TIME@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_CG_FreeMarkPoly
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	cmpq	%r14, %r12
	je	LBB0_23
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_20 Depth 2
	movq	(%rdi), %rcx
	movq	48(%rdi), %r12
	movq	(%r15), %r11
	movq	(%r13), %rdx
	addq	%rcx, %rdx
	cmpq	%r11, %rdx
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rdi), %r8
	movq	_cgs@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r8
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r11, %rsi
	subq	%rcx, %rsi
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rsi, %xmm0
	divsd	LCPI0_0(%rip), %xmm0
	mulsd	LCPI0_1(%rip), %xmm0
	addsd	LCPI0_2(%rip), %xmm0
	cvttsd2si	%xmm0, %esi
	cmpl	$254, %esi
	jg	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%esi, %esi
	movl	$0, %eax
	cmovlel	%eax, %esi
	movq	24(%rdi), %r9
	movq	(%r9), %r10
	cmpl	$0, (%r10)
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 32(%rdi)
	jle	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rdi), %r14
	movl	(%r14), %ebx
	imull	%esi, %ebx
	movl	%ebx, (%r10)
	movl	4(%r14), %ebx
	imull	%esi, %ebx
	movl	%ebx, 4(%r10)
	movl	8(%r14), %ebx
	imull	%esi, %ebx
	movl	%ebx, 8(%r10)
	cmpl	$2, 32(%rdi)
	jl	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r9,%rbx,8), %rax
	movl	(%r14), %ecx
	imull	%esi, %ecx
	movl	%ecx, (%rax)
	movl	4(%r14), %ecx
	imull	%esi, %ecx
	movl	%ecx, 4(%rax)
	movl	8(%r14), %ecx
	imull	%esi, %ecx
	movl	%ecx, 8(%rax)
	incq	%rbx
	movslq	32(%rdi), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	subl	%r11d, %edx
	movq	_MARK_FADE_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%edx, %ecx
	jle	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %eax
	shll	$8, %eax
	subl	%edx, %eax
	cltd
	idivl	%ecx
	cmpq	$0, 40(%rdi)
	movl	32(%rdi), %esi
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%esi, %esi
	movq	_cg_activeMarkPolys@GOTPCREL(%rip), %r14
	jle	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rdi), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rdx,8), %rsi
	movl	%eax, 12(%rsi)
	incq	%rdx
	movslq	32(%rdi), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_17
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	32(%rdi), %esi
	movq	_cg_activeMarkPolys@GOTPCREL(%rip), %r14
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rdi), %rdx
	movq	%r8, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_trap_R_AddPolyToScene
	jmp	LBB0_22
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%esi, %esi
	movq	_cg_activeMarkPolys@GOTPCREL(%rip), %r14
	jle	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rdi), %rcx
	movq	24(%rdi), %r9
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx), %esi
	imull	%eax, %esi
	movq	(%r9,%rbx,8), %rdx
	movl	%esi, (%rdx)
	movl	4(%rcx), %esi
	imull	%eax, %esi
	movl	%esi, 4(%rdx)
	movl	8(%rcx), %esi
	imull	%eax, %esi
	movl	%esi, 8(%rdx)
	incq	%rbx
	movslq	32(%rdi), %rsi
	cmpq	%rsi, %rbx
	jl	LBB0_20
	jmp	LBB0_21
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg_addMarks,4,2                ## @cg_addMarks
	.comm	_cg_activeMarkPolys,56,3        ## @cg_activeMarkPolys
	.comm	_cg,8,3                         ## @cg
	.comm	_MARK_TOTAL_TIME,8,3            ## @MARK_TOTAL_TIME
	.comm	_cgs,8,3                        ## @cgs
	.comm	_MARK_FADE_TIME,4,2             ## @MARK_FADE_TIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_AddMarks                    ; -- Begin function CG_AddMarks
	.p2align	2
_CG_AddMarks:                           ; @CG_AddMarks
	.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	x8, _cg_addMarks@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cg_addMarks@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x19, _cg_activeMarkPolys@GOTPAGE
Lloh4:
	ldr	x19, [x19, _cg_activeMarkPolys@GOTPAGEOFF]
	ldr	x0, [x19, #48]
	cmp	w8, #0
	ccmp	x0, x19, #4, ne
	b.ne	LBB0_2
LBB0_1:
	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
LBB0_2:
Lloh5:
	adrp	x20, _cg@GOTPAGE
Lloh6:
	ldr	x20, [x20, _cg@GOTPAGEOFF]
Lloh7:
	adrp	x21, _MARK_TOTAL_TIME@GOTPAGE
Lloh8:
	ldr	x21, [x21, _MARK_TOTAL_TIME@GOTPAGEOFF]
	mov	x22, #123145302310912
	movk	x22, #16551, lsl #48
Lloh9:
	adrp	x23, _cgs@GOTPAGE
Lloh10:
	ldr	x23, [x23, _cgs@GOTPAGEOFF]
	mov	x24, #35184372088832
	movk	x24, #16508, lsl #48
	mov	x25, #35184372088832
	movk	x25, #49276, lsl #48
Lloh11:
	adrp	x26, _MARK_FADE_TIME@GOTPAGE
Lloh12:
	ldr	x26, [x26, _MARK_FADE_TIME@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_CG_FreeMarkPoly
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x27
	cmp	x27, x19
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
	ldr	x27, [x0, #48]
	ldr	x9, [x20]
	ldr	x11, [x0]
	ldr	x8, [x21]
	add	x10, x8, x11
	cmp	x10, x9
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x0, #8]
	ldr	x12, [x23]
	cmp	x8, x12
	b.ne	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x11, x9, x11
	scvtf	d0, x11
	fmov	d1, x22
	fdiv	d0, d0, d1
	fmov	d1, x24
	fmov	d2, x25
	fmadd	d0, d0, d2, d1
	fcvtzs	w11, d0
	cmp	w11, #254
	b.gt	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w11, #0
	csel	w11, w11, wzr, gt
	ldr	x12, [x0, #24]
	ldr	x14, [x12]
	ldr	w13, [x14]
	cbz	w13, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w13, [x0, #32]
	cmp	w13, #1
	b.lt	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x13, [x0, #16]
	ldr	w15, [x13]
	mul	w15, w15, w11
	str	w15, [x14]
	ldr	w15, [x13, #4]
	mul	w15, w15, w11
	str	w15, [x14, #4]
	ldr	w15, [x13, #8]
	mul	w15, w15, w11
	str	w15, [x14, #8]
	ldr	w14, [x0, #32]
	cmp	w14, #2
	b.lt	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w14, #1
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x12, x14, lsl #3]
	ldr	w16, [x13]
	mul	w16, w16, w11
	str	w16, [x15]
	ldr	w16, [x13, #4]
	mul	w16, w16, w11
	str	w16, [x15, #4]
	ldr	w16, [x13, #8]
	mul	w16, w16, w11
	str	w16, [x15, #8]
	add	x14, x14, #1
	ldrsw	x15, [x0, #32]
	cmp	x14, x15
	b.lt	LBB0_12
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x26]
	sub	w9, w10, w9
	cmp	w11, w9
	b.le	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	lsl	w10, w9, #8
	sub	w9, w10, w9
	ldr	x10, [x0, #40]
	ldr	w1, [x0, #32]
	sdiv	w9, w9, w11
	cmp	w1, #1
	cbz	x10, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	b.lt	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x10, #0
	ldr	x11, [x0, #24]
LBB0_17:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x11, x10, lsl #3]
	str	w9, [x12, #12]
	add	x10, x10, #1
	ldrsw	x1, [x0, #32]
	cmp	x10, x1
	b.lt	LBB0_17
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x0, #32]
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x0, #24]
	mov	x0, x8
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_trap_R_AddPolyToScene
	b	LBB0_4
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	b.lt	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x10, #0
	ldp	x11, x12, [x0, #16]
LBB0_22:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w13, [x11]
	mul	w13, w13, w9
	ldr	x14, [x12, x10, lsl #3]
	str	w13, [x14]
	ldr	w13, [x11, #4]
	mul	w13, w13, w9
	str	w13, [x14, #4]
	ldr	w13, [x11, #8]
	mul	w13, w13, w9
	str	w13, [x14, #8]
	add	x10, x10, #1
	ldrsw	x1, [x0, #32]
	cmp	x10, x1
	b.lt	LBB0_22
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
                                        ; kill: def $w1 killed $w1 killed $x1 def $x1
	b	LBB0_19
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cg_addMarks,4,2                ; @cg_addMarks
	.comm	_cg_activeMarkPolys,56,3        ; @cg_activeMarkPolys
	.comm	_cg,8,3                         ; @cg
	.comm	_MARK_TOTAL_TIME,8,3            ; @MARK_TOTAL_TIME
	.comm	_cgs,8,3                        ; @cgs
	.comm	_MARK_FADE_TIME,4,2             ; @MARK_FADE_TIME
.subsections_via_symbols
