	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_generate_srgb_write_correction
_shader_glsl_generate_srgb_write_correction: ## @shader_glsl_generate_srgb_write_correction
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_needs_legacy_glsl_syntax
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rbx
	cmoveq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_shader_addline                 ## 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	"tmp0.xyz = pow(%s.xyz, vec3(srgb_const0.x));\n"

L_.str.3:                               ## @.str.3
	.asciz	"tmp0.xyz = tmp0.xyz * vec3(srgb_const0.y) - vec3(srgb_const0.z);\n"

L_.str.4:                               ## @.str.4
	.asciz	"tmp1.xyz = %s.xyz * vec3(srgb_const0.w);\n"

L_.str.5:                               ## @.str.5
	.asciz	"bvec3 srgb_compare = lessThan(%s.xyz, vec3(srgb_const1.x));\n"

L_.str.6:                               ## @.str.6
	.asciz	"%s.xyz = mix(tmp0.xyz, tmp1.xyz, vec3(srgb_compare));\n"

L_.str.7:                               ## @.str.7
	.asciz	"%s = clamp(%s, 0.0, 1.0);\n"

	.no_dead_strip	_shader_glsl_generate_srgb_write_correction
.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_srgb_write_correction
_shader_glsl_generate_srgb_write_correction: ; @shader_glsl_generate_srgb_write_correction
	.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
	mov	x19, x0
	mov	x0, x1
	bl	_needs_legacy_glsl_syntax
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	x20, x9, x8, eq
	str	x20, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	str	x20, [sp]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	str	x20, [sp]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	stp	x20, x20, [sp]
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.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	"tmp0.xyz = pow(%s.xyz, vec3(srgb_const0.x));\n"

l_.str.3:                               ; @.str.3
	.asciz	"tmp0.xyz = tmp0.xyz * vec3(srgb_const0.y) - vec3(srgb_const0.z);\n"

l_.str.4:                               ; @.str.4
	.asciz	"tmp1.xyz = %s.xyz * vec3(srgb_const0.w);\n"

l_.str.5:                               ; @.str.5
	.asciz	"bvec3 srgb_compare = lessThan(%s.xyz, vec3(srgb_const1.x));\n"

l_.str.6:                               ; @.str.6
	.asciz	"%s.xyz = mix(tmp0.xyz, tmp1.xyz, vec3(srgb_compare));\n"

l_.str.7:                               ; @.str.7
	.asciz	"%s = clamp(%s, 0.0, 1.0);\n"

	.no_dead_strip	_shader_glsl_generate_srgb_write_correction
.subsections_via_symbols
