	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ComputeStageIteratorFunc
_ComputeStageIteratorFunc:              ## @ComputeStageIteratorFunc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_RB_StageIteratorGeneric@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_shader@GOTPCREL(%rip), %rax
	movl	%ecx, 4(%rax)
	cmpq	$0, 24(%rax)
	je	LBB0_2
## %bb.1:
	movq	_RB_StageIteratorSky@GOTPCREL(%rip), %rcx
LBB0_19:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
LBB0_20:
	popq	%rbp
	retq
LBB0_2:
	movq	_r_ignoreFastPath@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_20
## %bb.3:
	cmpl	$1, (%rax)
	jne	LBB0_20
## %bb.4:
	movq	_stages@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rdx
	movq	_CGEN_LIGHTING_DIFFUSE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_11
## %bb.5:
	movq	8(%rcx), %rsi
	movq	_AGEN_IDENTITY@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_11
## %bb.6:
	movq	16(%rcx), %rsi
	movq	(%rsi), %rsi
	movq	_TCGEN_TEXTURE@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_11
## %bb.7:
	cmpl	$0, 20(%rax)
	jne	LBB0_11
## %bb.8:
	cmpq	$0, 8(%rax)
	jne	LBB0_11
## %bb.9:
	cmpl	$0, 16(%rax)
	jne	LBB0_11
## %bb.10:
	movq	_RB_StageIteratorVertexLitTexture@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_11:
	movq	_CGEN_IDENTITY@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_20
## %bb.12:
	movq	8(%rcx), %rdx
	movq	_AGEN_IDENTITY@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_20
## %bb.13:
	movq	16(%rcx), %rcx
	movq	(%rcx), %rdx
	movq	_TCGEN_TEXTURE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_20
## %bb.14:
	movq	8(%rcx), %rcx
	movq	_TCGEN_LIGHTMAP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_20
## %bb.15:
	cmpl	$0, 20(%rax)
	jne	LBB0_20
## %bb.16:
	cmpl	$0, 16(%rax)
	jne	LBB0_20
## %bb.17:
	cmpq	$0, 8(%rax)
	je	LBB0_20
## %bb.18:
	movq	_RB_StageIteratorLightmappedMultitexture@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_RB_StageIteratorGeneric,4,2    ## @RB_StageIteratorGeneric
	.comm	_shader,32,3                    ## @shader
	.comm	_RB_StageIteratorSky,4,2        ## @RB_StageIteratorSky
	.comm	_r_ignoreFastPath,8,3           ## @r_ignoreFastPath
	.comm	_stages,8,3                     ## @stages
	.comm	_CGEN_LIGHTING_DIFFUSE,8,3      ## @CGEN_LIGHTING_DIFFUSE
	.comm	_AGEN_IDENTITY,8,3              ## @AGEN_IDENTITY
	.comm	_TCGEN_TEXTURE,8,3              ## @TCGEN_TEXTURE
	.comm	_RB_StageIteratorVertexLitTexture,4,2 ## @RB_StageIteratorVertexLitTexture
	.comm	_CGEN_IDENTITY,8,3              ## @CGEN_IDENTITY
	.comm	_TCGEN_LIGHTMAP,8,3             ## @TCGEN_LIGHTMAP
	.comm	_RB_StageIteratorLightmappedMultitexture,4,2 ## @RB_StageIteratorLightmappedMultitexture
	.no_dead_strip	_ComputeStageIteratorFunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ComputeStageIteratorFunc
_ComputeStageIteratorFunc:              ; @ComputeStageIteratorFunc
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _RB_StageIteratorGeneric@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RB_StageIteratorGeneric@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _shader@GOTPAGE
Lloh4:
	ldr	x8, [x8, _shader@GOTPAGEOFF]
	str	w9, [x8, #4]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_3
; %bb.1:
Lloh5:
	adrp	x9, _RB_StageIteratorSky@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RB_StageIteratorSky@GOTPAGEOFF]
LBB0_2:
	ldr	w9, [x9]
	str	w9, [x8, #4]
	b	LBB0_11
LBB0_3:
Lloh7:
	adrp	x9, _r_ignoreFastPath@GOTPAGE
Lloh8:
	ldr	x9, [x9, _r_ignoreFastPath@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	w10, [x8]
	cmp	x9, #0
	ccmp	w10, #1, #0, eq
	b.ne	LBB0_11
; %bb.4:
Lloh10:
	adrp	x9, _stages@GOTPAGE
Lloh11:
	ldr	x9, [x9, _stages@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	x10, [x9]
Lloh13:
	adrp	x11, _CGEN_LIGHTING_DIFFUSE@GOTPAGE
Lloh14:
	ldr	x11, [x11, _CGEN_LIGHTING_DIFFUSE@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_7
; %bb.5:
	ldr	x11, [x9, #8]
Lloh16:
	adrp	x12, _AGEN_IDENTITY@GOTPAGE
Lloh17:
	ldr	x12, [x12, _AGEN_IDENTITY@GOTPAGEOFF]
Lloh18:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_7
; %bb.6:
	ldr	x11, [x9, #16]
	ldr	x11, [x11]
Lloh19:
	adrp	x12, _TCGEN_TEXTURE@GOTPAGE
Lloh20:
	ldr	x12, [x12, _TCGEN_TEXTURE@GOTPAGEOFF]
Lloh21:
	ldr	x12, [x12]
	ldr	x13, [x8, #8]
	ldp	w15, w14, [x8, #16]
	cmp	x11, x12
	ccmp	w14, #0, #0, eq
	ccmp	x13, #0, #0, eq
	ccmp	w15, #0, #0, eq
	b.eq	LBB0_12
LBB0_7:
Lloh22:
	adrp	x11, _CGEN_IDENTITY@GOTPAGE
Lloh23:
	ldr	x11, [x11, _CGEN_IDENTITY@GOTPAGEOFF]
Lloh24:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_11
; %bb.8:
	ldr	x10, [x9, #8]
Lloh25:
	adrp	x11, _AGEN_IDENTITY@GOTPAGE
Lloh26:
	ldr	x11, [x11, _AGEN_IDENTITY@GOTPAGEOFF]
Lloh27:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_11
; %bb.9:
	ldr	x9, [x9, #16]
	ldr	x10, [x9]
Lloh28:
	adrp	x11, _TCGEN_TEXTURE@GOTPAGE
Lloh29:
	ldr	x11, [x11, _TCGEN_TEXTURE@GOTPAGEOFF]
Lloh30:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_11
; %bb.10:
	ldr	x9, [x9, #8]
Lloh31:
	adrp	x10, _TCGEN_LIGHTMAP@GOTPAGE
Lloh32:
	ldr	x10, [x10, _TCGEN_LIGHTMAP@GOTPAGEOFF]
Lloh33:
	ldr	x10, [x10]
	ldp	w12, w11, [x8, #16]
	ldr	x13, [x8, #8]
	cmp	x9, x10
	ccmp	w11, #0, #0, eq
	ccmp	w12, #0, #0, eq
	ccmp	x13, #0, #4, eq
	b.ne	LBB0_13
LBB0_11:
	ret
LBB0_12:
Lloh34:
	adrp	x9, _RB_StageIteratorVertexLitTexture@GOTPAGE
Lloh35:
	ldr	x9, [x9, _RB_StageIteratorVertexLitTexture@GOTPAGEOFF]
	b	LBB0_2
LBB0_13:
Lloh36:
	adrp	x9, _RB_StageIteratorLightmappedMultitexture@GOTPAGE
Lloh37:
	ldr	x9, [x9, _RB_StageIteratorLightmappedMultitexture@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_RB_StageIteratorGeneric,4,2    ; @RB_StageIteratorGeneric
	.comm	_shader,32,3                    ; @shader
	.comm	_RB_StageIteratorSky,4,2        ; @RB_StageIteratorSky
	.comm	_r_ignoreFastPath,8,3           ; @r_ignoreFastPath
	.comm	_stages,8,3                     ; @stages
	.comm	_CGEN_LIGHTING_DIFFUSE,8,3      ; @CGEN_LIGHTING_DIFFUSE
	.comm	_AGEN_IDENTITY,8,3              ; @AGEN_IDENTITY
	.comm	_TCGEN_TEXTURE,8,3              ; @TCGEN_TEXTURE
	.comm	_RB_StageIteratorVertexLitTexture,4,2 ; @RB_StageIteratorVertexLitTexture
	.comm	_CGEN_IDENTITY,8,3              ; @CGEN_IDENTITY
	.comm	_TCGEN_LIGHTMAP,8,3             ; @TCGEN_LIGHTMAP
	.comm	_RB_StageIteratorLightmappedMultitexture,4,2 ; @RB_StageIteratorLightmappedMultitexture
	.no_dead_strip	_ComputeStageIteratorFunc
.subsections_via_symbols
