	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	-20(%rbp), %rdi
	callq	_ComputeDeformValues
	movl	-20(%rbp), %ecx
	movq	_DGEN_NONE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	je	LBB0_2
## %bb.1:
	movq	_FOGDEF_USE_DEFORM_VERTEXES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	_glState@GOTPCREL(%rip), %r14
	cmpq	$0, 24(%r14)
	je	LBB0_4
## %bb.3:
	movq	_FOGDEF_USE_VERTEX_ANIMATION@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	cmpq	$0, 8(%r14)
	je	LBB0_7
## %bb.5:
	movq	_FOGDEF_USE_BONE_ANIMATION@GOTPCREL(%rip), %rcx
LBB0_6:
	orl	(%rcx), %eax
LBB0_7:
	movq	_tr@GOTPCREL(%rip), %rcx
	movslq	%eax, %rbx
	shlq	$2, %rbx
	addq	8(%rcx), %rbx
	movq	_backEnd@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%rbx, %rdi
	callq	_GLSL_BindProgram
	movq	_UNIFORM_MODELVIEWPROJECTIONMATRIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r14), %edx
	movq	%rbx, %rdi
	callq	_GLSL_SetUniformMat4
	movq	_UNIFORM_VERTEXLERP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movss	(%r14), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movq	%rbx, %rdi
	callq	_GLSL_SetUniformFloat
	movq	8(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movq	_UNIFORM_BONEMATRIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %edx
	movq	%rbx, %rdi
	callq	_GLSL_SetUniformMat4BoneMatrix
LBB0_9:
	movq	_UNIFORM_DEFORMGEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-20(%rbp), %edx
	movq	%rbx, %rdi
	callq	_GLSL_SetUniformInt
	movq	_UNIFORM_DEFORMPARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_GLSL_SetUniformFloat5
	movq	_UNIFORM_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_tess@GOTPCREL(%rip), %rax
	movss	4(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movq	%rbx, %rdi
	callq	_GLSL_SetUniformFloat
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_DGEN_NONE,4,2                  ## @DGEN_NONE
	.comm	_FOGDEF_USE_DEFORM_VERTEXES,4,2 ## @FOGDEF_USE_DEFORM_VERTEXES
	.comm	_glState,32,3                   ## @glState
	.comm	_FOGDEF_USE_VERTEX_ANIMATION,4,2 ## @FOGDEF_USE_VERTEX_ANIMATION
	.comm	_FOGDEF_USE_BONE_ANIMATION,4,2  ## @FOGDEF_USE_BONE_ANIMATION
	.comm	_tr,16,3                        ## @tr
	.comm	_backEnd,4,2                    ## @backEnd
	.comm	_tess,24,3                      ## @tess
	.comm	_UNIFORM_MODELVIEWPROJECTIONMATRIX,4,2 ## @UNIFORM_MODELVIEWPROJECTIONMATRIX
	.comm	_UNIFORM_VERTEXLERP,4,2         ## @UNIFORM_VERTEXLERP
	.comm	_UNIFORM_BONEMATRIX,4,2         ## @UNIFORM_BONEMATRIX
	.comm	_UNIFORM_DEFORMGEN,4,2          ## @UNIFORM_DEFORMGEN
	.comm	_UNIFORM_DEFORMPARAMS,4,2       ## @UNIFORM_DEFORMPARAMS
	.comm	_UNIFORM_TIME,4,2               ## @UNIFORM_TIME
	.comm	_UNIFORM_COLOR,4,2              ## @UNIFORM_COLOR
	.comm	_UNIFORM_FOGDISTANCE,4,2        ## @UNIFORM_FOGDISTANCE
	.comm	_UNIFORM_FOGDEPTH,4,2           ## @UNIFORM_FOGDEPTH
	.comm	_UNIFORM_FOGEYET,4,2            ## @UNIFORM_FOGEYET
	.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
	.comm	_UNIFORM_ALPHATEST,4,2          ## @UNIFORM_ALPHATEST
	.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:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	add	x0, sp, #12
	bl	_ComputeDeformValues
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _DGEN_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DGEN_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _FOGDEF_USE_DEFORM_VERTEXES@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FOGDEF_USE_DEFORM_VERTEXES@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w8, wzr, w10, eq
Lloh6:
	adrp	x20, _glState@GOTPAGE
Lloh7:
	ldr	x20, [x20, _glState@GOTPAGEOFF]
	ldr	x9, [x20, #24]
	cbz	x9, LBB0_2
; %bb.1:
Lloh8:
	adrp	x9, _FOGDEF_USE_VERTEX_ANIMATION@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FOGDEF_USE_VERTEX_ANIMATION@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_5
; %bb.3:
Lloh10:
	adrp	x9, _FOGDEF_USE_BONE_ANIMATION@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FOGDEF_USE_BONE_ANIMATION@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_5:
Lloh12:
	adrp	x9, _tr@GOTPAGE
Lloh13:
	ldr	x9, [x9, _tr@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9, #8]
	add	x19, x9, w8, sxtw #2
Lloh15:
	adrp	x8, _backEnd@GOTPAGE
Lloh16:
	ldr	x8, [x8, _backEnd@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_GLSL_BindProgram
Lloh17:
	adrp	x8, _UNIFORM_MODELVIEWPROJECTIONMATRIX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UNIFORM_MODELVIEWPROJECTIONMATRIX@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x20, #20]
	mov	x0, x19
	bl	_GLSL_SetUniformMat4
Lloh20:
	adrp	x8, _UNIFORM_VERTEXLERP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _UNIFORM_VERTEXLERP@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	s0, [x20]
	mov	x0, x19
	bl	_GLSL_SetUniformFloat
	ldr	x3, [x20, #8]
	cbz	x3, LBB0_7
; %bb.6:
Lloh23:
	adrp	x8, _UNIFORM_BONEMATRIX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _UNIFORM_BONEMATRIX@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
	mov	x0, x19
	bl	_GLSL_SetUniformMat4BoneMatrix
LBB0_7:
Lloh26:
	adrp	x8, _UNIFORM_DEFORMGEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _UNIFORM_DEFORMGEN@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_GLSL_SetUniformInt
Lloh29:
	adrp	x8, _UNIFORM_DEFORMPARAMS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _UNIFORM_DEFORMPARAMS@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GLSL_SetUniformFloat5
Lloh32:
	adrp	x8, _UNIFORM_TIME@GOTPAGE
Lloh33:
	ldr	x8, [x8, _UNIFORM_TIME@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _tess@GOTPAGE
Lloh36:
	ldr	x8, [x8, _tess@GOTPAGEOFF]
Lloh37:
	ldr	s0, [x8, #4]
	mov	x0, x19
	bl	_GLSL_SetUniformFloat
	brk	#0x1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_DGEN_NONE,4,2                  ; @DGEN_NONE
	.comm	_FOGDEF_USE_DEFORM_VERTEXES,4,2 ; @FOGDEF_USE_DEFORM_VERTEXES
	.comm	_glState,32,3                   ; @glState
	.comm	_FOGDEF_USE_VERTEX_ANIMATION,4,2 ; @FOGDEF_USE_VERTEX_ANIMATION
	.comm	_FOGDEF_USE_BONE_ANIMATION,4,2  ; @FOGDEF_USE_BONE_ANIMATION
	.comm	_tr,16,3                        ; @tr
	.comm	_backEnd,4,2                    ; @backEnd
	.comm	_tess,24,3                      ; @tess
	.comm	_UNIFORM_MODELVIEWPROJECTIONMATRIX,4,2 ; @UNIFORM_MODELVIEWPROJECTIONMATRIX
	.comm	_UNIFORM_VERTEXLERP,4,2         ; @UNIFORM_VERTEXLERP
	.comm	_UNIFORM_BONEMATRIX,4,2         ; @UNIFORM_BONEMATRIX
	.comm	_UNIFORM_DEFORMGEN,4,2          ; @UNIFORM_DEFORMGEN
	.comm	_UNIFORM_DEFORMPARAMS,4,2       ; @UNIFORM_DEFORMPARAMS
	.comm	_UNIFORM_TIME,4,2               ; @UNIFORM_TIME
	.comm	_UNIFORM_COLOR,4,2              ; @UNIFORM_COLOR
	.comm	_UNIFORM_FOGDISTANCE,4,2        ; @UNIFORM_FOGDISTANCE
	.comm	_UNIFORM_FOGDEPTH,4,2           ; @UNIFORM_FOGDEPTH
	.comm	_UNIFORM_FOGEYET,4,2            ; @UNIFORM_FOGEYET
	.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
	.comm	_UNIFORM_ALPHATEST,4,2          ; @UNIFORM_ALPHATEST
	.no_dead_strip	_RB_FogPass
.subsections_via_symbols
