	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CreateExternalShaders
_CreateExternalShaders:                 ## @CreateExternalShaders
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_LIGHTMAP_NONE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_qtrue@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rdi
	callq	_R_FindShader
	movq	_tr@GOTPCREL(%rip), %r12
	movq	%rax, 16(%r12)
	movl	(%r14), %esi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_R_FindShader
	movq	%rax, 8(%r12)
	cmpl	$0, 16(%rax)
	je	LBB0_1
LBB0_8:
	movl	(%r14), %esi
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_R_FindShader
	movq	%rax, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_8
## %bb.2:
	movq	8(%rax), %rax
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_4:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edx, %edx
	movq	_ACFF_NONE@GOTPCREL(%rip), %rdi
	movq	_GLS_DEPTHTEST_DISABLE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %ecx
	movq	(%rax,%rdx,8), %rsi
	movl	%ecx, 4(%rsi)
	movl	(%rbx), %ecx
	orl	%ecx, (%rsi)
	movl	(%rdi), %ecx
	movq	8(%rax,%rdx,8), %rsi
	movl	%ecx, 4(%rsi)
	movl	(%rbx), %ecx
	orl	%ecx, (%rsi)
	addq	$2, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_5
LBB0_6:
	testb	$1, %r8b
	je	LBB0_8
## %bb.7:
	movq	_ACFF_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%rax,%rdx,8), %rax
	movl	%ecx, 4(%rax)
	movq	_GLS_DEPTHTEST_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"projectionShadow"

	.comm	_LIGHTMAP_NONE,4,2              ## @LIGHTMAP_NONE
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_tr,24,3                        ## @tr
L_.str.1:                               ## @.str.1
	.asciz	"flareShader"

	.comm	_ACFF_NONE,4,2                  ## @ACFF_NONE
	.comm	_GLS_DEPTHTEST_DISABLE,4,2      ## @GLS_DEPTHTEST_DISABLE
L_.str.2:                               ## @.str.2
	.asciz	"sun"

	.no_dead_strip	_CreateExternalShaders
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CreateExternalShaders
_CreateExternalShaders:                 ; @CreateExternalShaders
	.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	x19, _LIGHTMAP_NONE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _LIGHTMAP_NONE@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh2:
	adrp	x20, _qtrue@GOTPAGE
Lloh3:
	ldr	x20, [x20, _qtrue@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_R_FindShader
Lloh6:
	adrp	x21, _tr@GOTPAGE
Lloh7:
	ldr	x21, [x21, _tr@GOTPAGEOFF]
	str	x0, [x21, #16]
	ldr	w1, [x19]
	ldr	w2, [x20]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_R_FindShader
	str	x0, [x21, #8]
	ldr	w8, [x0, #16]
	cbnz	w8, LBB0_4
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	x9, [x0, #8]
Lloh10:
	adrp	x10, _ACFF_NONE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _ACFF_NONE@GOTPAGEOFF]
Lloh12:
	adrp	x11, _GLS_DEPTHTEST_DISABLE@GOTPAGE
Lloh13:
	ldr	x11, [x11, _GLS_DEPTHTEST_DISABLE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10]
	ldr	x13, [x9], #8
	ldr	w14, [x11]
	ldr	w15, [x13]
	orr	w14, w15, w14
	stp	w14, w12, [x13]
	subs	x8, x8, #1
	b.ne	LBB0_3
LBB0_4:
	ldr	w1, [x19]
	ldr	w2, [x20]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_R_FindShader
	str	x0, [x21]
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"projectionShadow"

	.comm	_LIGHTMAP_NONE,4,2              ; @LIGHTMAP_NONE
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_tr,24,3                        ; @tr
l_.str.1:                               ; @.str.1
	.asciz	"flareShader"

	.comm	_ACFF_NONE,4,2                  ; @ACFF_NONE
	.comm	_GLS_DEPTHTEST_DISABLE,4,2      ; @GLS_DEPTHTEST_DISABLE
l_.str.2:                               ; @.str.2
	.asciz	"sun"

	.no_dead_strip	_CreateExternalShaders
.subsections_via_symbols
