	.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), %r15
	movl	(%r15), %esi
	movq	_qtrue@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rdi
	callq	_R_FindShader
	movq	_tr@GOTPCREL(%rip), %r12
	movq	%rax, 32(%r12)
	movl	(%r15), %esi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_R_FindShader
	movq	%rax, 16(%r12)
	cmpl	$0, 16(%rax)
	je	LBB0_1
LBB0_9:
	movl	(%r15), %esi
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_R_FindShader
	movq	%rax, 24(%r12)
	movl	(%r15), %esi
	movl	(%r14), %edx
	leaq	L_.str.3(%rip), %rdi
	callq	_R_FindShader
	movq	%rax, (%r12)
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.10:
	movq	16(%r12), %rax
	cmpl	$0, 16(%rax)
	je	LBB0_11
LBB0_13:
	movq	8(%r12), %rbx
LBB0_14:
	movl	(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_InitShader
	movq	_stages@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	%rbx, (%rcx)
	movl	(%r14), %ecx
	movq	(%rax), %rax
	movl	%ecx, 4(%rax)
	movq	_GLS_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	callq	_FinishShader
	movq	%rax, (%r12)
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%rax), %edi
	testl	%edi, %edi
	jle	LBB0_9
## %bb.2:
	movq	_ACFF_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rax), %rsi
	movq	_GLS_DEPTHTEST_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-1(%rdi), %rbx
	movl	%edi, %r8d
	andl	$3, %r8d
	cmpq	$3, %rbx
	jae	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_11:
	movq	8(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_14
	jmp	LBB0_13
LBB0_4:
	andl	$-4, %edi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rbx,8), %rdx
	movl	%ecx, 12(%rdx)
	orl	%eax, 8(%rdx)
	movq	8(%rsi,%rbx,8), %rdx
	movl	%ecx, 12(%rdx)
	orl	%eax, 8(%rdx)
	movq	16(%rsi,%rbx,8), %rdx
	movl	%ecx, 12(%rdx)
	orl	%eax, 8(%rdx)
	movq	24(%rsi,%rbx,8), %rdx
	movl	%ecx, 12(%rdx)
	orl	%eax, 8(%rdx)
	addq	$4, %rbx
	cmpq	%rbx, %rdi
	jne	LBB0_5
LBB0_6:
	testq	%r8, %r8
	je	LBB0_9
## %bb.7:
	leaq	(%rsi,%rbx,8), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rdi,8), %rdx
	movl	%ecx, 12(%rdx)
	orl	%eax, 8(%rdx)
	incq	%rdi
	cmpq	%rdi, %r8
	jne	LBB0_8
	jmp	LBB0_9
	.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,40,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"

L_.str.3:                               ## @.str.3
	.asciz	"gfx/2d/sunflare"

	.comm	_stages,8,3                     ## @stages
	.comm	_GLS_DEFAULT,4,2                ## @GLS_DEFAULT
	.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	x21, _LIGHTMAP_NONE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LIGHTMAP_NONE@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x19, _qtrue@GOTPAGE
Lloh3:
	ldr	x19, [x19, _qtrue@GOTPAGEOFF]
	ldr	w2, [x19]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_R_FindShader
Lloh6:
	adrp	x20, _tr@GOTPAGE
Lloh7:
	ldr	x20, [x20, _tr@GOTPAGEOFF]
	str	x0, [x20, #32]
	ldr	w1, [x21]
	ldr	w2, [x19]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_R_FindShader
	str	x0, [x20, #16]
	ldr	w8, [x0, #16]
	cbnz	w8, LBB0_4
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
Lloh10:
	adrp	x9, _ACFF_NONE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ACFF_NONE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	ldr	x10, [x0, #8]
Lloh13:
	adrp	x11, _GLS_DEPTHTEST_DISABLE@GOTPAGE
Lloh14:
	ldr	x11, [x11, _GLS_DEPTHTEST_DISABLE@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10], #8
	ldr	w13, [x12, #8]
	orr	w13, w13, w11
	stp	w13, w9, [x12, #8]
	subs	x8, x8, #1
	b.ne	LBB0_3
LBB0_4:
	ldr	w1, [x21]
	ldr	w2, [x19]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_R_FindShader
	str	x0, [x20, #24]
	ldr	w1, [x21]
	ldr	w2, [x19]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_R_FindShader
	str	x0, [x20]
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x8, [x20, #16]
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_9
LBB0_6:
	ldr	x22, [x20, #8]
LBB0_7:
	ldr	w1, [x21]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_InitShader
Lloh22:
	adrp	x8, _stages@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stages@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	str	x22, [x9]
	ldr	w9, [x19]
	ldr	x8, [x8]
Lloh24:
	adrp	x10, _GLS_DEFAULT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _GLS_DEFAULT@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
	bl	_FinishShader
	str	x0, [x20]
LBB0_8:
	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
LBB0_9:
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.10:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x22, [x8]
	cbnz	x22, LBB0_7
	b	LBB0_6
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.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,40,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"

l_.str.3:                               ; @.str.3
	.asciz	"gfx/2d/sunflare"

	.comm	_stages,8,3                     ; @stages
	.comm	_GLS_DEFAULT,4,2                ; @GLS_DEFAULT
	.no_dead_strip	_CreateExternalShaders
.subsections_via_symbols
