	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLSL_GetGenericShaderProgram   ## -- Begin function GLSL_GetGenericShaderProgram
	.p2align	4, 0x90
_GLSL_GetGenericShaderProgram:          ## @GLSL_GetGenericShaderProgram
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_tess@GOTPCREL(%rip), %rax
	movq	16(%rax), %rcx
	movslq	%edi, %rdx
	movq	(%rcx,%rdx,8), %r14
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rax)
	movl	$0, %edx
	je	LBB0_3
## %bb.1:
	xorl	%edx, %edx
	cmpq	$0, 16(%r14)
	je	LBB0_3
## %bb.2:
	movq	_GENERICDEF_USE_FOG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_3:
	movl	$-129, %esi
	addl	4(%r14), %esi
	cmpl	$128, (%r14)
	movq	_GENERICDEF_USE_RGBAGEN@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movl	$0, %ebx
	cmovel	%edi, %ebx
	cmpl	$2, %esi
	cmovbl	%edi, %ebx
	orl	%edx, %ebx
	movq	8(%r14), %rdx
	movq	(%rdx), %rdx
	movq	_TCGEN_TEXTURE@GOTPCREL(%rip), %rsi
	movq	_GENERICDEF_USE_TCGEN_AND_TCMOD@GOTPCREL(%rip), %r15
	cmpq	(%rsi), %rdx
	je	LBB0_5
## %bb.4:
	movl	(%r15), %ecx
LBB0_5:
	orl	%ecx, %ebx
	movq	(%rax), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_8
## %bb.6:
	callq	_ShaderRequiresCPUDeforms
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_GENERICDEF_USE_DEFORM_VERTEXES@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_8:
	movq	_glState@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.9:
	movq	_GENERICDEF_USE_VERTEX_ANIMATION@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.11:
	movq	_GENERICDEF_USE_BONE_ANIMATION@GOTPCREL(%rip), %rax
LBB0_12:
	orl	(%rax), %ebx
LBB0_13:
	movq	8(%r14), %rcx
	xorl	%eax, %eax
	cmpq	$0, 8(%rcx)
	je	LBB0_15
## %bb.14:
	movl	(%r15), %eax
LBB0_15:
	orl	%ebx, %eax
	movq	_tr@GOTPCREL(%rip), %rcx
	cltq
	shlq	$2, %rax
	addq	(%rcx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tess,24,3                      ## @tess
	.comm	_GENERICDEF_USE_FOG,4,2         ## @GENERICDEF_USE_FOG
	.comm	_GENERICDEF_USE_RGBAGEN,4,2     ## @GENERICDEF_USE_RGBAGEN
	.comm	_TCGEN_TEXTURE,8,3              ## @TCGEN_TEXTURE
	.comm	_GENERICDEF_USE_TCGEN_AND_TCMOD,4,2 ## @GENERICDEF_USE_TCGEN_AND_TCMOD
	.comm	_GENERICDEF_USE_DEFORM_VERTEXES,4,2 ## @GENERICDEF_USE_DEFORM_VERTEXES
	.comm	_glState,16,3                   ## @glState
	.comm	_GENERICDEF_USE_VERTEX_ANIMATION,4,2 ## @GENERICDEF_USE_VERTEX_ANIMATION
	.comm	_GENERICDEF_USE_BONE_ANIMATION,4,2 ## @GENERICDEF_USE_BONE_ANIMATION
	.comm	_tr,8,3                         ## @tr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLSL_GetGenericShaderProgram   ; -- Begin function GLSL_GetGenericShaderProgram
	.p2align	2
_GLSL_GetGenericShaderProgram:          ; @GLSL_GetGenericShaderProgram
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _tess@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tess@GOTPAGEOFF]
	ldp	x10, x9, [x8, #8]
	ldr	x19, [x9, w0, sxtw #3]
	cbz	x10, LBB0_2
; %bb.1:
	ldr	x9, [x19, #16]
Lloh2:
	adrp	x10, _GENERICDEF_USE_FOG@GOTPAGE
Lloh3:
	ldr	x10, [x10, _GENERICDEF_USE_FOG@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	b	LBB0_3
LBB0_2:
	mov	w9, #0
LBB0_3:
	ldp	w10, w11, [x19]
	sub	w11, w11, #129
Lloh5:
	adrp	x12, _GENERICDEF_USE_RGBAGEN@GOTPAGE
Lloh6:
	ldr	x12, [x12, _GENERICDEF_USE_RGBAGEN@GOTPAGEOFF]
	cmp	w10, #128
Lloh7:
	ldr	w10, [x12]
	ccmp	w11, #2, #0, ne
	csel	w10, w10, wzr, lo
	orr	w9, w10, w9
	ldr	x10, [x19, #8]
	ldr	x10, [x10]
Lloh8:
	adrp	x11, _TCGEN_TEXTURE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _TCGEN_TEXTURE@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
Lloh11:
	adrp	x20, _GENERICDEF_USE_TCGEN_AND_TCMOD@GOTPAGE
Lloh12:
	ldr	x20, [x20, _GENERICDEF_USE_TCGEN_AND_TCMOD@GOTPAGEOFF]
	ldr	w12, [x20]
	cmp	x10, x11
	csel	w10, wzr, w12, eq
	orr	w21, w9, w10
	ldr	x0, [x8]
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.4:
	bl	_ShaderRequiresCPUDeforms
	cbnz	w0, LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _GENERICDEF_USE_DEFORM_VERTEXES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GENERICDEF_USE_DEFORM_VERTEXES@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_6:
Lloh16:
	adrp	x8, _glState@GOTPAGE
Lloh17:
	ldr	x8, [x8, _glState@GOTPAGEOFF]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _GENERICDEF_USE_VERTEX_ANIMATION@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GENERICDEF_USE_VERTEX_ANIMATION@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.9:
Lloh20:
	adrp	x8, _GENERICDEF_USE_BONE_ANIMATION@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GENERICDEF_USE_BONE_ANIMATION@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_11:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	w9, [x20]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	orr	w8, w8, w21
Lloh22:
	adrp	x9, _tr@GOTPAGE
Lloh23:
	ldr	x9, [x9, _tr@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x0, x9, w8, sxtw #2
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_tess,24,3                      ; @tess
	.comm	_GENERICDEF_USE_FOG,4,2         ; @GENERICDEF_USE_FOG
	.comm	_GENERICDEF_USE_RGBAGEN,4,2     ; @GENERICDEF_USE_RGBAGEN
	.comm	_TCGEN_TEXTURE,8,3              ; @TCGEN_TEXTURE
	.comm	_GENERICDEF_USE_TCGEN_AND_TCMOD,4,2 ; @GENERICDEF_USE_TCGEN_AND_TCMOD
	.comm	_GENERICDEF_USE_DEFORM_VERTEXES,4,2 ; @GENERICDEF_USE_DEFORM_VERTEXES
	.comm	_glState,16,3                   ; @glState
	.comm	_GENERICDEF_USE_VERTEX_ANIMATION,4,2 ; @GENERICDEF_USE_VERTEX_ANIMATION
	.comm	_GENERICDEF_USE_BONE_ANIMATION,4,2 ; @GENERICDEF_USE_BONE_ANIMATION
	.comm	_tr,8,3                         ; @tr
.subsections_via_symbols
