	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_StageIteratorGeneric        ## -- Begin function RB_StageIteratorGeneric
	.p2align	4, 0x90
_RB_StageIteratorGeneric:               ## @RB_StageIteratorGeneric
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_tess@GOTPCREL(%rip), %rbx
	movq	8(%rbx), %r14
	xorl	%eax, %eax
	callq	_RB_DeformTessGeometry
	movq	_r_logFile@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movl	44(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_va
	movq	%rax, %rdi
	callq	_GLimp_LogComment
LBB0_2:
	movl	40(%r14), %edi
	callq	_GL_Cull
	cmpq	$0, 16(%r14)
	je	LBB0_4
## %bb.3:
	movq	_GL_POLYGON_OFFSET_FILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglEnable
	movq	_r_offsetFactor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_r_offsetUnits@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_qglPolygonOffset
LBB0_4:
	cmpl	$1, (%rbx)
	jg	LBB0_6
## %bb.5:
	cmpq	$0, 32(%r14)
	je	LBB0_7
LBB0_6:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_setArraysOnce@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_GL_COLOR_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglDisableClientState
	movq	_GL_TEXTURE_COORD_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglDisableClientState
LBB0_8:
	movq	_GL_FLOAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	36(%rbx), %ecx
	movl	$3, %edi
	movl	$16, %edx
	callq	_qglVertexPointer
	movl	32(%rbx), %esi
	xorl	%edi, %edi
	callq	_qglLockArraysEXT
	leaq	L_.str.1(%rip), %rdi
	callq	_GLimp_LogComment
	movq	_setArraysOnce@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_10
## %bb.9:
	movq	_GL_TEXTURE_COORD_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglEnableClientState
	movq	_GL_COLOR_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglEnableClientState
LBB0_10:
	movq	%rbx, %rdi
	callq	_RB_IterateStagesGeneric
	cmpq	$0, 24(%rbx)
	je	LBB0_14
## %bb.11:
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	movq	_SS_OPAQUE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_14
## %bb.12:
	movq	_SURF_NODLIGHT@GOTPCREL(%rip), %rcx
	movq	_SURF_SKY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%edx, 8(%rax)
	jne	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	callq	_ProjectDlightTexture
LBB0_14:
	cmpq	$0, 16(%rbx)
	je	LBB0_17
## %bb.15:
	movq	8(%rbx), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_17
## %bb.16:
	xorl	%eax, %eax
	callq	_RB_FogPass
LBB0_17:
	xorl	%eax, %eax
	callq	_qglUnlockArraysEXT
	leaq	L_.str.2(%rip), %rdi
	callq	_GLimp_LogComment
	cmpq	$0, 16(%r14)
	je	LBB0_18
## %bb.19:
	movq	_GL_POLYGON_OFFSET_FILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_qglDisable                     ## TAILCALL
LBB0_18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_setArraysOnce@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_GL_COLOR_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglEnableClientState
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	48(%rbx), %ecx
	movl	$4, %edi
	xorl	%edx, %edx
	callq	_qglColorPointer
	movq	_GL_TEXTURE_COORD_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglEnableClientState
	movq	_GL_FLOAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%rbx), %rax
	movl	(%rax), %ecx
	movl	$2, %edi
	xorl	%edx, %edx
	callq	_qglTexCoordPointer
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_tess,56,3                      ## @tess
	.comm	_r_logFile,8,3                  ## @r_logFile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--- RB_StageIteratorGeneric( %s ) ---\n"

	.comm	_GL_POLYGON_OFFSET_FILL,4,2     ## @GL_POLYGON_OFFSET_FILL
	.comm	_r_offsetFactor,8,3             ## @r_offsetFactor
	.comm	_r_offsetUnits,8,3              ## @r_offsetUnits
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_setArraysOnce,4,2              ## @setArraysOnce
	.comm	_GL_COLOR_ARRAY,4,2             ## @GL_COLOR_ARRAY
	.comm	_GL_TEXTURE_COORD_ARRAY,4,2     ## @GL_TEXTURE_COORD_ARRAY
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.comm	_GL_FLOAT,4,2                   ## @GL_FLOAT
L_.str.1:                               ## @.str.1
	.asciz	"glLockArraysEXT\n"

	.comm	_SS_OPAQUE,8,3                  ## @SS_OPAQUE
	.comm	_SURF_NODLIGHT,4,2              ## @SURF_NODLIGHT
	.comm	_SURF_SKY,4,2                   ## @SURF_SKY
L_.str.2:                               ## @.str.2
	.asciz	"glUnlockArraysEXT\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_StageIteratorGeneric        ; -- Begin function RB_StageIteratorGeneric
	.p2align	2
_RB_StageIteratorGeneric:               ; @RB_StageIteratorGeneric
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x19, _tess@GOTPAGE
Lloh1:
	ldr	x19, [x19, _tess@GOTPAGEOFF]
	ldr	x20, [x19, #8]
	bl	_RB_DeformTessGeometry
Lloh2:
	adrp	x8, _r_logFile@GOTPAGE
Lloh3:
	ldr	x8, [x8, _r_logFile@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #44]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_va
	bl	_GLimp_LogComment
LBB0_2:
	ldr	w0, [x20, #40]
	bl	_GL_Cull
	ldr	x8, [x20, #16]
Lloh7:
	adrp	x21, _GL_POLYGON_OFFSET_FILL@GOTPAGE
Lloh8:
	ldr	x21, [x21, _GL_POLYGON_OFFSET_FILL@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x21]
	bl	_qglEnable
Lloh9:
	adrp	x8, _r_offsetFactor@GOTPAGE
Lloh10:
	ldr	x8, [x8, _r_offsetFactor@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _r_offsetUnits@GOTPAGE
Lloh13:
	ldr	x8, [x8, _r_offsetUnits@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_qglPolygonOffset
LBB0_4:
	ldr	w8, [x19]
Lloh15:
	adrp	x23, _GL_FLOAT@GOTPAGE
Lloh16:
	ldr	x23, [x23, _GL_FLOAT@GOTPAGEOFF]
Lloh17:
	adrp	x22, _setArraysOnce@GOTPAGE
Lloh18:
	ldr	x22, [x22, _setArraysOnce@GOTPAGEOFF]
	cmp	w8, #1
	b.gt	LBB0_6
; %bb.5:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_19
LBB0_6:
Lloh19:
	adrp	x8, _qfalse@GOTPAGE
Lloh20:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x22]
Lloh22:
	adrp	x8, _GL_COLOR_ARRAY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GL_COLOR_ARRAY@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_qglDisableClientState
Lloh25:
	adrp	x8, _GL_TEXTURE_COORD_ARRAY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GL_TEXTURE_COORD_ARRAY@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_qglDisableClientState
LBB0_7:
	ldr	w1, [x23]
	ldr	w3, [x19, #36]
	mov	w0, #3
	mov	w2, #16
	bl	_qglVertexPointer
	ldr	w1, [x19, #32]
	mov	w0, #0
	bl	_qglLockArraysEXT
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_GLimp_LogComment
	ldr	w8, [x22]
	cbnz	w8, LBB0_9
; %bb.8:
Lloh30:
	adrp	x8, _GL_TEXTURE_COORD_ARRAY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GL_TEXTURE_COORD_ARRAY@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_qglEnableClientState
Lloh33:
	adrp	x8, _GL_COLOR_ARRAY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GL_COLOR_ARRAY@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_qglEnableClientState
LBB0_9:
	mov	x0, x19
	bl	_RB_IterateStagesGeneric
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_13
; %bb.10:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
Lloh36:
	adrp	x10, _SS_OPAQUE@GOTPAGE
Lloh37:
	ldr	x10, [x10, _SS_OPAQUE@GOTPAGEOFF]
Lloh38:
	ldr	x10, [x10]
	cmp	x9, x10
	b.gt	LBB0_13
; %bb.11:
	ldr	w8, [x8, #8]
Lloh39:
	adrp	x9, _SURF_NODLIGHT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _SURF_NODLIGHT@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
Lloh42:
	adrp	x10, _SURF_SKY@GOTPAGE
Lloh43:
	ldr	x10, [x10, _SURF_SKY@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_13
; %bb.12:
	bl	_ProjectDlightTexture
LBB0_13:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_16
; %bb.14:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_16
; %bb.15:
	bl	_RB_FogPass
LBB0_16:
	bl	_qglUnlockArraysEXT
Lloh45:
	adrp	x0, l_.str.2@PAGE
Lloh46:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_GLimp_LogComment
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_qglDisable
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh47:
	adrp	x8, _qtrue@GOTPAGE
Lloh48:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	str	w8, [x22]
Lloh50:
	adrp	x8, _GL_COLOR_ARRAY@GOTPAGE
Lloh51:
	ldr	x8, [x8, _GL_COLOR_ARRAY@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_qglEnableClientState
Lloh53:
	adrp	x8, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	ldr	w3, [x19, #48]
	mov	w0, #4
	mov	w2, #0
	bl	_qglColorPointer
Lloh56:
	adrp	x8, _GL_TEXTURE_COORD_ARRAY@GOTPAGE
Lloh57:
	ldr	x8, [x8, _GL_TEXTURE_COORD_ARRAY@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	bl	_qglEnableClientState
	ldr	w1, [x23]
	ldr	x8, [x19, #40]
	ldr	w3, [x8]
	mov	w0, #2
	mov	w2, #0
	bl	_qglTexCoordPointer
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_tess,56,3                      ; @tess
	.comm	_r_logFile,8,3                  ; @r_logFile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--- RB_StageIteratorGeneric( %s ) ---\n"

	.comm	_GL_POLYGON_OFFSET_FILL,4,2     ; @GL_POLYGON_OFFSET_FILL
	.comm	_r_offsetFactor,8,3             ; @r_offsetFactor
	.comm	_r_offsetUnits,8,3              ; @r_offsetUnits
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_setArraysOnce,4,2              ; @setArraysOnce
	.comm	_GL_COLOR_ARRAY,4,2             ; @GL_COLOR_ARRAY
	.comm	_GL_TEXTURE_COORD_ARRAY,4,2     ; @GL_TEXTURE_COORD_ARRAY
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.comm	_GL_FLOAT,4,2                   ; @GL_FLOAT
l_.str.1:                               ; @.str.1
	.asciz	"glLockArraysEXT\n"

	.comm	_SS_OPAQUE,8,3                  ; @SS_OPAQUE
	.comm	_SURF_NODLIGHT,4,2              ; @SURF_NODLIGHT
	.comm	_SURF_SKY,4,2                   ; @SURF_SKY
l_.str.2:                               ; @.str.2
	.asciz	"glUnlockArraysEXT\n"

.subsections_via_symbols
