	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RB_FogPass
_RB_FogPass:                            ## @RB_FogPass
	.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	_GL_COLOR_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglEnableClientState
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_tess@GOTPCREL(%rip), %rbx
	movq	32(%rbx), %rcx
	xorl	%r14d, %r14d
	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	24(%rbx), %rax
	movq	(%rax), %rcx
	movl	$2, %edi
	xorl	%edx, %edx
	callq	_qglTexCoordPointer
	cmpl	$0, 4(%rbx)
	jle	LBB0_3
## %bb.1:
	movslq	(%rbx), %rax
	movq	_tr@GOTPCREL(%rip), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	32(%rbx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rax,4), %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	movslq	4(%rbx), %rdi
	cmpq	%rdi, %rsi
	jl	LBB0_2
LBB0_3:
	movq	24(%rbx), %rax
	movq	(%rax), %rdi
	callq	_RB_CalcFogTexCoords
	movq	_tr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GL_Bind
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_FP_EQUAL@GOTPCREL(%rip), %rcx
	movq	_GLS_SRCBLEND_SRC_ALPHA@GOTPCREL(%rip), %rdx
	movq	_GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	orl	(%rdx), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_GLS_DEPTHFUNC_EQUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_5:
	orl	%r14d, %edi
	callq	_GL_State
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_R_DrawElements                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_COLOR_ARRAY,4,2             ## @GL_COLOR_ARRAY
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.comm	_tess,40,3                      ## @tess
	.comm	_GL_TEXTURE_COORD_ARRAY,4,2     ## @GL_TEXTURE_COORD_ARRAY
	.comm	_GL_FLOAT,4,2                   ## @GL_FLOAT
	.comm	_tr,16,3                        ## @tr
	.comm	_FP_EQUAL,8,3                   ## @FP_EQUAL
	.comm	_GLS_SRCBLEND_SRC_ALPHA,4,2     ## @GLS_SRCBLEND_SRC_ALPHA
	.comm	_GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA,4,2 ## @GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA
	.comm	_GLS_DEPTHFUNC_EQUAL,4,2        ## @GLS_DEPTHFUNC_EQUAL
	.no_dead_strip	_RB_FogPass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RB_FogPass
_RB_FogPass:                            ; @RB_FogPass
	.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	x8, _GL_COLOR_ARRAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_COLOR_ARRAY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_qglEnableClientState
Lloh3:
	adrp	x8, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x19, _tess@GOTPAGE
Lloh7:
	ldr	x19, [x19, _tess@GOTPAGEOFF]
	ldr	x3, [x19, #32]
	mov	w0, #4
	mov	w2, #0
	bl	_qglColorPointer
Lloh8:
	adrp	x8, _GL_TEXTURE_COORD_ARRAY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_TEXTURE_COORD_ARRAY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_qglEnableClientState
Lloh11:
	adrp	x8, _GL_FLOAT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_FLOAT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x19, #24]
	ldr	x3, [x8]
	mov	w0, #2
	mov	w2, #0
	bl	_qglTexCoordPointer
	ldr	w8, [x19, #4]
Lloh14:
	adrp	x20, _tr@GOTPAGE
Lloh15:
	ldr	x20, [x20, _tr@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
	ldrsw	x9, [x19]
	ldr	x10, [x20, #8]
	ldr	x10, [x10]
	ldr	x11, [x19, #32]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, x9, lsl #2]
	str	w12, [x11, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x12, [x19, #4]
	cmp	x8, x12
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	bl	_RB_CalcFogTexCoords
	ldr	w0, [x20]
	bl	_GL_Bind
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _FP_EQUAL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FP_EQUAL@GOTPAGEOFF]
Lloh18:
	adrp	x10, _GLS_SRCBLEND_SRC_ALPHA@GOTPAGE
Lloh19:
	ldr	x10, [x10, _GLS_SRCBLEND_SRC_ALPHA@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
Lloh21:
	ldr	w10, [x10]
Lloh22:
	adrp	x11, _GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA@GOTPAGE
Lloh23:
	ldr	x11, [x11, _GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh25:
	adrp	x11, _GLS_DEPTHFUNC_EQUAL@GOTPAGE
Lloh26:
	ldr	x11, [x11, _GLS_DEPTHFUNC_EQUAL@GOTPAGEOFF]
Lloh27:
	ldr	w11, [x11]
	cmp	x8, x9
	csel	w8, w11, wzr, eq
	orr	w0, w10, w8
	bl	_GL_State
	ldp	w1, w0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_R_DrawElements
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_COLOR_ARRAY,4,2             ; @GL_COLOR_ARRAY
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.comm	_tess,40,3                      ; @tess
	.comm	_GL_TEXTURE_COORD_ARRAY,4,2     ; @GL_TEXTURE_COORD_ARRAY
	.comm	_GL_FLOAT,4,2                   ; @GL_FLOAT
	.comm	_tr,16,3                        ; @tr
	.comm	_FP_EQUAL,8,3                   ; @FP_EQUAL
	.comm	_GLS_SRCBLEND_SRC_ALPHA,4,2     ; @GLS_SRCBLEND_SRC_ALPHA
	.comm	_GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA,4,2 ; @GLS_DSTBLEND_ONE_MINUS_SRC_ALPHA
	.comm	_GLS_DEPTHFUNC_EQUAL,4,2        ; @GLS_DEPTHFUNC_EQUAL
	.no_dead_strip	_RB_FogPass
.subsections_via_symbols
