	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_StageIteratorVertexLitTexture ## -- Begin function RB_StageIteratorVertexLitTexture
	.p2align	4, 0x90
_RB_StageIteratorVertexLitTexture:      ## @RB_StageIteratorVertexLitTexture
	.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	(%rbx), %r14
	movq	56(%rbx), %rdi
	callq	_RB_CalcDiffuseColor
	movq	_r_logFile@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movl	20(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_va
	movq	%rax, %rdi
	callq	_GLimp_LogComment
LBB0_2:
	movl	16(%r14), %edi
	callq	_GL_Cull
	movq	_GL_COLOR_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglEnableClientState
	movq	_GL_TEXTURE_COORD_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglEnableClientState
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	56(%rbx), %rcx
	movl	$4, %edi
	xorl	%edx, %edx
	callq	_qglColorPointer
	movq	_GL_FLOAT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	48(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	$2, %edi
	movl	$16, %edx
	callq	_qglTexCoordPointer
	movl	(%r14), %esi
	movl	44(%rbx), %ecx
	movl	$3, %edi
	movl	$16, %edx
	callq	_qglVertexPointer
	movl	40(%rbx), %esi
	xorl	%edi, %edi
	callq	_qglLockArraysEXT
	leaq	L_.str.1(%rip), %rdi
	callq	_GLimp_LogComment
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	callq	_R_BindAnimatedImage
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_GL_State
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	callq	_R_DrawElements
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.3:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_SS_OPAQUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_ProjectDlightTexture
LBB0_5:
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.6:
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_RB_FogPass
LBB0_8:
	xorl	%eax, %eax
	callq	_qglUnlockArraysEXT
	leaq	L_.str.2(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_GLimp_LogComment               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tess,64,3                      ## @tess
	.comm	_r_logFile,8,3                  ## @r_logFile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--- RB_StageIteratorVertexLitTexturedUnfogged( %s ) ---\n"

	.comm	_GL_COLOR_ARRAY,4,2             ## @GL_COLOR_ARRAY
	.comm	_GL_TEXTURE_COORD_ARRAY,4,2     ## @GL_TEXTURE_COORD_ARRAY
	.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
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_StageIteratorVertexLitTexture ; -- Begin function RB_StageIteratorVertexLitTexture
	.p2align	2
_RB_StageIteratorVertexLitTexture:      ; @RB_StageIteratorVertexLitTexture
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _tess@GOTPAGE
Lloh1:
	ldr	x19, [x19, _tess@GOTPAGEOFF]
	ldr	x20, [x19]
	ldr	x0, [x19, #56]
	bl	_RB_CalcDiffuseColor
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]
	ldr	w1, [x8, #20]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_va
	bl	_GLimp_LogComment
LBB0_2:
	ldr	w0, [x20, #16]
	bl	_GL_Cull
Lloh7:
	adrp	x8, _GL_COLOR_ARRAY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GL_COLOR_ARRAY@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_qglEnableClientState
Lloh10:
	adrp	x8, _GL_TEXTURE_COORD_ARRAY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GL_TEXTURE_COORD_ARRAY@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_qglEnableClientState
Lloh13:
	adrp	x8, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	x3, [x19, #56]
	mov	w0, #4
	mov	w2, #0
	bl	_qglColorPointer
Lloh16:
	adrp	x20, _GL_FLOAT@GOTPAGE
Lloh17:
	ldr	x20, [x20, _GL_FLOAT@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldr	w3, [x8]
	mov	w0, #2
	mov	w2, #16
	bl	_qglTexCoordPointer
	ldr	w1, [x20]
	ldr	w3, [x19, #44]
	mov	w0, #3
	mov	w2, #16
	bl	_qglVertexPointer
	ldr	w1, [x19, #40]
	mov	w0, #0
	bl	_qglLockArraysEXT
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_GLimp_LogComment
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	bl	_R_BindAnimatedImage
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_GL_State
	ldp	w1, w0, [x19, #24]
	bl	_R_DrawElements
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _SS_OPAQUE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SS_OPAQUE@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_5
; %bb.4:
	bl	_ProjectDlightTexture
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.7:
	bl	_RB_FogPass
LBB0_8:
	bl	_qglUnlockArraysEXT
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_GLimp_LogComment
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_tess,64,3                      ; @tess
	.comm	_r_logFile,8,3                  ; @r_logFile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--- RB_StageIteratorVertexLitTexturedUnfogged( %s ) ---\n"

	.comm	_GL_COLOR_ARRAY,4,2             ; @GL_COLOR_ARRAY
	.comm	_GL_TEXTURE_COORD_ARRAY,4,2     ; @GL_TEXTURE_COORD_ARRAY
	.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
l_.str.2:                               ; @.str.2
	.asciz	"glUnlockArraysEXT\n"

.subsections_via_symbols
