	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_generate_ps_epilogue
_shader_glsl_generate_ps_epilogue:      ## @shader_glsl_generate_ps_epilogue
	.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	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_needs_legacy_glsl_syntax
	cmpl	$1, (%r12)
	jg	LBB0_2
## %bb.1:
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_shader_addline
LBB0_2:
	cmpq	$0, 16(%r15)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_shader_glsl_generate_srgb_write_correction
LBB0_4:
	cmpl	$2, (%r12)
	jg	LBB0_6
## %bb.5:
	movl	8(%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_shader_glsl_generate_fog_code
LBB0_6:
	movq	(%r15), %rdx
	incq	%rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_shader_glsl_generate_alpha_test ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gl_FragData[0]"

L_.str.1:                               ## @.str.1
	.asciz	"ps_out0"

L_.str.2:                               ## @.str.2
	.asciz	"%s = R0;\n"

	.no_dead_strip	_shader_glsl_generate_ps_epilogue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_generate_ps_epilogue
_shader_glsl_generate_ps_epilogue:      ; @shader_glsl_generate_ps_epilogue
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_needs_legacy_glsl_syntax
	ldr	w8, [x22]
	cmp	w8, #1
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x2, x9, x8, eq
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_shader_addline
LBB0_2:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_shader_glsl_generate_srgb_write_correction
LBB0_4:
	ldr	w8, [x22]
	cmp	w8, #2
	b.gt	LBB0_6
; %bb.5:
	ldr	w2, [x21, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_shader_glsl_generate_fog_code
LBB0_6:
	ldr	x8, [x21]
	add	x2, x8, #1
	mov	x0, x20
	mov	x1, x19
	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
	b	_shader_glsl_generate_alpha_test
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gl_FragData[0]"

l_.str.1:                               ; @.str.1
	.asciz	"ps_out0"

l_.str.2:                               ; @.str.2
	.asciz	"%s = R0;\n"

	.no_dead_strip	_shader_glsl_generate_ps_epilogue
.subsections_via_symbols
