	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function RE_AddPolyToScene
LCPI0_0:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_RE_AddPolyToScene
	.p2align	4, 0x90
_RE_AddPolyToScene:                     ## @RE_AddPolyToScene
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	_tr@GOTPCREL(%rip), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_14
## %bb.1:
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.2:
	movl	%esi, %r15d
	movq	%rdi, %r12
	leal	(,%r15,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	%esi, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	movq	_r_numpolyverts@GOTPCREL(%rip), %rsi
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_tr@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpl	$1, (%rcx)
	setne	%al
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	_r_numpolyverts@GOTPCREL(%rip), %rsi
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx,%r14)
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	incq	%rdx
	cmpq	-80(%rbp), %rdx                 ## 8-byte Folded Reload
	je	LBB0_14
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	(%rsi), %eax
	addl	%r15d, %eax
	movq	_max_polyverts@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_r_numpolys@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_max_polys@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jae	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_backEndData@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rbx
	movq	_SF_POLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shlq	$5, %r14
	movl	%ecx, 24(%rbx,%r14)
	movq	%r12, 16(%rbx,%r14)
	movl	%r15d, (%rbx,%r14)
	movslq	(%rsi), %rdi
	shlq	$4, %rdi
	addq	(%rax), %rdi
	leaq	(%rbx,%r14), %r13
	addq	$8, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, 8(%rbx,%r14)
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, %rax
	imulq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_Com_Memcpy
	movq	_glConfig@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GLHW_RAGEPRO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rax
	movq	(%rax), %rax
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [255,255,255,255]
	movups	%xmm0, (%rax)
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_r_numpolys@GOTPCREL(%rip), %rax
	incq	(%rax)
	movq	_r_numpolyverts@GOTPCREL(%rip), %rsi
	addl	%r15d, (%rsi)
	movq	_tr@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, (%rcx)
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rbx
	movq	(%r13), %rax
	movl	8(%rax), %edi
	callq	_VectorCopy
	movq	(%r13), %rax
	movl	8(%rax), %edi
	callq	_VectorCopy
	cmpl	$2, (%rbx)
	jl	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r12d
	movl	$24, %r15d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rax
	movl	(%rax,%r15), %edi
	callq	_AddPointToBounds
	incq	%r12
	movslq	(%rbx), %rax
	addq	$16, %r15
	cmpq	%rax, %r12
	jl	LBB0_11
	jmp	LBB0_12
LBB0_14:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PRINT_DEVELOPER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tr,16,3                        ## @tr
	.comm	_r_numpolyverts,4,2             ## @r_numpolyverts
	.comm	_max_polyverts,4,2              ## @max_polyverts
	.comm	_r_numpolys,8,3                 ## @r_numpolys
	.comm	_max_polys,8,3                  ## @max_polys
	.comm	_ri,8,3                         ## @ri
	.comm	_PRINT_DEVELOPER,4,2            ## @PRINT_DEVELOPER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: RE_AddPolyToScene: r_max_polys or r_max_polyverts reached\n"

	.comm	_backEndData,8,3                ## @backEndData
	.comm	_SF_POLY,4,2                    ## @SF_POLY
	.comm	_glConfig,8,3                   ## @glConfig
	.comm	_GLHW_RAGEPRO,8,3               ## @GLHW_RAGEPRO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RE_AddPolyToScene              ; -- Begin function RE_AddPolyToScene
	.p2align	2
_RE_AddPolyToScene:                     ; @RE_AddPolyToScene
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, _tr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8, #8]
	cmp	w8, #0
	ccmp	w3, #1, #8, ne
	b.ge	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_2:
	mov	x21, x2
	mov	x20, x1
	mov	x27, x0
	mov	x24, #0
	lsl	w8, w1, #2
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	sxtw	x8, w20
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
Lloh3:
	adrp	x26, _r_numpolyverts@GOTPAGE
Lloh4:
	ldr	x26, [x26, _r_numpolyverts@GOTPAGEOFF]
Lloh5:
	adrp	x28, _r_numpolys@GOTPAGE
Lloh6:
	ldr	x28, [x28, _r_numpolys@GOTPAGEOFF]
	mov	w8, w3
	stp	x2, x8, [sp, #16]               ; 16-byte Folded Spill
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh7:
	adrp	x8, _tr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #1
	cset	w8, ne
	ldp	x27, x21, [sp, #8]              ; 16-byte Folded Reload
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x22, x23, lsl #5
	str	w8, [x9, #4]
	add	x24, x24, #1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x24, x8
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	w8, [x26]
Lloh10:
	adrp	x9, _max_polyverts@GOTPAGE
Lloh11:
	ldr	x9, [x9, _max_polyverts@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	add	w8, w8, w20
	cmp	w8, w9
	b.gt	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x23, [x28]
Lloh13:
	adrp	x8, _max_polys@GOTPAGE
Lloh14:
	ldr	x8, [x8, _max_polys@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x23, x8
	b.hs	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh16:
	adrp	x8, _backEndData@GOTPAGE
Lloh17:
	ldr	x8, [x8, _backEndData@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _SF_POLY@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SF_POLY@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	ldp	x8, x22, [x8]
	add	x25, x22, x23, lsl #5
	str	w9, [x25, #24]
	str	x27, [x25, #16]
	str	w20, [x25]
	ldrsw	x9, [x26]
	add	x0, x8, x9, lsl #4
	mov	x19, x25
	str	x0, [x19, #8]!
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	mul	x8, x24, x8
	add	x1, x21, x8, lsl #2
	ldr	w2, [sp, #44]                   ; 4-byte Folded Reload
	bl	_Com_Memcpy
Lloh22:
	adrp	x8, _glConfig@GOTPAGE
Lloh23:
	ldr	x8, [x8, _glConfig@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
Lloh25:
	adrp	x9, _GLHW_RAGEPRO@GOTPAGE
Lloh26:
	ldr	x9, [x9, _GLHW_RAGEPRO@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8]
	movi.2d	v0, #0x0000ff000000ff
	str	q0, [x8]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x28]
	add	x8, x8, #1
	str	x8, [x28]
	ldr	w8, [x26]
	add	w8, w8, w20
	str	w8, [x26]
Lloh28:
	adrp	x8, _tr@GOTPAGE
Lloh29:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	bl	_VectorCopy
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	bl	_VectorCopy
	ldr	w8, [x25]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w21, #24
	mov	w27, #1
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19]
	ldr	w0, [x8, x21]
	bl	_AddPointToBounds
	add	x27, x27, #1
	ldrsw	x8, [x25]
	add	x21, x21, #16
	cmp	x27, x8
	b.lt	LBB0_14
	b	LBB0_3
LBB0_15:
Lloh31:
	adrp	x8, _ri@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh33:
	adrp	x9, _PRINT_DEVELOPER@GOTPAGE
Lloh34:
	ldr	x9, [x9, _PRINT_DEVELOPER@GOTPAGEOFF]
Lloh35:
	ldr	x2, [x8]
Lloh36:
	ldr	w0, [x9]
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	br	x2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_tr,16,3                        ; @tr
	.comm	_r_numpolyverts,4,2             ; @r_numpolyverts
	.comm	_max_polyverts,4,2              ; @max_polyverts
	.comm	_r_numpolys,8,3                 ; @r_numpolys
	.comm	_max_polys,8,3                  ; @max_polys
	.comm	_ri,8,3                         ; @ri
	.comm	_PRINT_DEVELOPER,4,2            ; @PRINT_DEVELOPER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: RE_AddPolyToScene: r_max_polys or r_max_polyverts reached\n"

	.comm	_backEndData,8,3                ; @backEndData
	.comm	_SF_POLY,4,2                    ; @SF_POLY
	.comm	_glConfig,8,3                   ; @glConfig
	.comm	_GLHW_RAGEPRO,8,3               ; @GLHW_RAGEPRO
.subsections_via_symbols
