	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_color_correction_ext
_shader_glsl_color_correction_ext:      ## @shader_glsl_color_correction_ext
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$312, %rsp                      ## imm = 0x138
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	16(%rbp), %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$0, 44(%rbp)
	jne	LBB0_2
## %bb.1:
	movl	24(%r13), %eax
	movq	_CHANNEL_SOURCE_X@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	(%rcx), %eax
	je	LBB0_3
LBB0_2:
	movq	_WINED3DSP_WRITEMASK_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	cmpl	$0, 20(%r13)
	jne	LBB0_5
## %bb.4:
	movl	16(%r13), %eax
	movq	_CHANNEL_SOURCE_Y@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
LBB0_5:
	movq	_WINED3DSP_WRITEMASK_1@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_6:
	cmpl	$0, 12(%r13)
	jne	LBB0_8
## %bb.7:
	movl	8(%r13), %eax
	movq	_CHANNEL_SOURCE_Z@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
LBB0_8:
	movq	_WINED3DSP_WRITEMASK_2@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_9:
	cmpl	$0, 4(%r13)
	jne	LBB0_11
## %bb.10:
	movl	(%r13), %eax
	movq	_CHANNEL_SOURCE_W@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
LBB0_11:
	movq	_WINED3DSP_WRITEMASK_3@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_12:
	andl	%edx, %ebx
	je	LBB0_34
## %bb.13:
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_is_complex_fixup
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_get_complex_fixup
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_36
## %bb.15:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	addq	$312, %rsp                      ## imm = 0x138
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FIXME                          ## TAILCALL
LBB0_16:
	movq	%r14, -320(%rbp)                ## 8-byte Spill
	leaq	-310(%rbp), %rsi
	movl	%ebx, %edi
	callq	_shader_glsl_write_mask_to_str
	movl	%ebx, %edi
	callq	_shader_glsl_get_write_mask_size
	movl	%eax, %r14d
	movb	$0, -304(%rbp)
	movq	_WINED3DSP_WRITEMASK_0@GOTPCREL(%rip), %rax
	movl	%r14d, %r12d
	testl	%ebx, (%rax)
	je	LBB0_20
## %bb.17:
	movl	24(%r13), %ecx
	movl	28(%r13), %edx
	leaq	-304(%rbp), %rdi
	movq	%r15, %rsi
	callq	_shader_glsl_append_fixup_arg
	movl	%r14d, %r12d
	decl	%r12d
	je	LBB0_18
## %bb.19:
	leaq	L_.str.1(%rip), %rsi
	leaq	-304(%rbp), %rdi
	callq	_strcat
	jmp	LBB0_20
LBB0_18:
	xorl	%r12d, %r12d
LBB0_20:
	movq	_WINED3DSP_WRITEMASK_1@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_24
## %bb.21:
	movl	16(%r13), %ecx
	movl	20(%r13), %edx
	leaq	-304(%rbp), %rdi
	movq	%r15, %rsi
	callq	_shader_glsl_append_fixup_arg
	decl	%r12d
	je	LBB0_22
## %bb.23:
	leaq	L_.str.1(%rip), %rsi
	leaq	-304(%rbp), %rdi
	callq	_strcat
	jmp	LBB0_24
LBB0_22:
	xorl	%r12d, %r12d
LBB0_24:
	movq	_WINED3DSP_WRITEMASK_2@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_28
## %bb.25:
	movl	8(%r13), %ecx
	movl	12(%r13), %edx
	leaq	-304(%rbp), %rdi
	movq	%r15, %rsi
	callq	_shader_glsl_append_fixup_arg
	decl	%r12d
	je	LBB0_26
## %bb.27:
	leaq	L_.str.1(%rip), %rsi
	leaq	-304(%rbp), %rdi
	callq	_strcat
	jmp	LBB0_28
LBB0_26:
	xorl	%r12d, %r12d
LBB0_28:
	movq	_WINED3DSP_WRITEMASK_3@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_31
## %bb.29:
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	leaq	-304(%rbp), %rdi
	movq	%r15, %rsi
	callq	_shader_glsl_append_fixup_arg
	cmpl	$1, %r12d
	je	LBB0_31
## %bb.30:
	leaq	L_.str.1(%rip), %rsi
	leaq	-304(%rbp), %rdi
	callq	_strcat
LBB0_31:
	cmpl	$2, %r14d
	jb	LBB0_33
## %bb.32:
	leaq	L_.str.2(%rip), %rsi
	leaq	-310(%rbp), %rcx
	leaq	-304(%rbp), %r9
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rdx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_shader_addline
	jmp	LBB0_34
LBB0_33:
	leaq	L_.str.3(%rip), %rsi
	leaq	-310(%rbp), %rcx
	leaq	-304(%rbp), %r8
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_34:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_36
## %bb.35:
	addq	$312, %rsp                      ## imm = 0x138
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CHANNEL_SOURCE_X,4,2           ## @CHANNEL_SOURCE_X
	.comm	_WINED3DSP_WRITEMASK_0,4,2      ## @WINED3DSP_WRITEMASK_0
	.comm	_CHANNEL_SOURCE_Y,4,2           ## @CHANNEL_SOURCE_Y
	.comm	_WINED3DSP_WRITEMASK_1,4,2      ## @WINED3DSP_WRITEMASK_1
	.comm	_CHANNEL_SOURCE_Z,4,2           ## @CHANNEL_SOURCE_Z
	.comm	_WINED3DSP_WRITEMASK_2,4,2      ## @WINED3DSP_WRITEMASK_2
	.comm	_CHANNEL_SOURCE_W,4,2           ## @CHANNEL_SOURCE_W
	.comm	_WINED3DSP_WRITEMASK_3,4,2      ## @WINED3DSP_WRITEMASK_3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Complex fixup (%#x) not supported\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"%s%s = vec%u(%s);\n"

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

	.no_dead_strip	_shader_glsl_color_correction_ext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_color_correction_ext
_shader_glsl_color_correction_ext:      ; @shader_glsl_color_correction_ext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #400
	.cfi_def_cfa_offset 400
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #320]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #336]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #352]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #368]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #384]            ; 16-byte Folded Spill
	add	x29, sp, #384
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w8, [x3, #28]
Lloh3:
	adrp	x27, _WINED3DSP_WRITEMASK_0@GOTPAGE
Lloh4:
	ldr	x27, [x27, _WINED3DSP_WRITEMASK_0@GOTPAGEOFF]
	cbnz	w8, LBB0_3
; %bb.1:
	ldr	w8, [x21, #24]
Lloh5:
	adrp	x9, _CHANNEL_SOURCE_X@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CHANNEL_SOURCE_X@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #0
	b	LBB0_4
LBB0_3:
	ldr	w8, [x27]
LBB0_4:
	ldr	w9, [x21, #20]
Lloh8:
	adrp	x26, _WINED3DSP_WRITEMASK_1@GOTPAGE
Lloh9:
	ldr	x26, [x26, _WINED3DSP_WRITEMASK_1@GOTPAGEOFF]
	cbnz	w9, LBB0_6
; %bb.5:
	ldr	w9, [x21, #16]
Lloh10:
	adrp	x10, _CHANNEL_SOURCE_Y@GOTPAGE
Lloh11:
	ldr	x10, [x10, _CHANNEL_SOURCE_Y@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_7
LBB0_6:
	ldr	w9, [x26]
	orr	w8, w9, w8
LBB0_7:
	ldr	w9, [x21, #12]
Lloh13:
	adrp	x25, _WINED3DSP_WRITEMASK_2@GOTPAGE
Lloh14:
	ldr	x25, [x25, _WINED3DSP_WRITEMASK_2@GOTPAGEOFF]
	cbnz	w9, LBB0_9
; %bb.8:
	ldr	w9, [x21, #8]
Lloh15:
	adrp	x10, _CHANNEL_SOURCE_Z@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CHANNEL_SOURCE_Z@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_10
LBB0_9:
	ldr	w9, [x25]
	orr	w8, w9, w8
LBB0_10:
	ldr	w9, [x21, #4]
Lloh18:
	adrp	x24, _WINED3DSP_WRITEMASK_3@GOTPAGE
Lloh19:
	ldr	x24, [x24, _WINED3DSP_WRITEMASK_3@GOTPAGEOFF]
	cbnz	w9, LBB0_12
; %bb.11:
	ldr	w9, [x21]
Lloh20:
	adrp	x10, _CHANNEL_SOURCE_W@GOTPAGE
Lloh21:
	ldr	x10, [x10, _CHANNEL_SOURCE_W@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_13
LBB0_12:
	ldr	w9, [x24]
	orr	w8, w9, w8
LBB0_13:
	ands	w23, w8, w2
	b.eq	LBB0_33
; %bb.14:
	ldp	q0, q1, [x21]
	stp	q0, q1, [sp, #32]
	add	x0, sp, #32
	bl	_is_complex_fixup
	cbz	x0, LBB0_16
; %bb.15:
	ldp	q0, q1, [x21]
	stp	q0, q1, [sp, #32]
	add	x0, sp, #32
	bl	_get_complex_fixup
	mov	x1, x0
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	b	LBB0_33
LBB0_16:
	add	x1, sp, #26
	mov	x0, x23
	bl	_shader_glsl_write_mask_to_str
	mov	x0, x23
	bl	_shader_glsl_get_write_mask_size
	mov	x22, x0
	strb	wzr, [sp, #32]
	ldr	w8, [x27]
	tst	w8, w23
	b.eq	LBB0_19
; %bb.17:
	ldp	w3, w2, [x21, #24]
	add	x0, sp, #32
	mov	x1, x19
	bl	_shader_glsl_append_fixup_arg
	subs	w27, w22, #1
	b.eq	LBB0_20
; %bb.18:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #32
	bl	_strcat
	b	LBB0_20
LBB0_19:
	mov	x27, x22
LBB0_20:
	ldr	w8, [x26]
	tst	w8, w23
	b.eq	LBB0_23
; %bb.21:
	ldp	w3, w2, [x21, #16]
	add	x0, sp, #32
	mov	x1, x19
	bl	_shader_glsl_append_fixup_arg
	subs	w27, w27, #1
	b.eq	LBB0_23
; %bb.22:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #32
	bl	_strcat
LBB0_23:
	ldr	w8, [x25]
	tst	w8, w23
	b.eq	LBB0_26
; %bb.24:
	ldp	w3, w2, [x21, #8]
	add	x0, sp, #32
	mov	x1, x19
	bl	_shader_glsl_append_fixup_arg
	subs	w27, w27, #1
	b.eq	LBB0_26
; %bb.25:
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #32
	bl	_strcat
LBB0_26:
	ldr	w8, [x24]
	tst	w8, w23
	b.eq	LBB0_29
; %bb.27:
	ldp	w3, w2, [x21]
	add	x0, sp, #32
	mov	x1, x19
	bl	_shader_glsl_append_fixup_arg
	cmp	w27, #1
	b.eq	LBB0_29
; %bb.28:
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #32
	bl	_strcat
LBB0_29:
	add	x8, sp, #32
	cmp	w22, #2
	b.lo	LBB0_31
; %bb.30:
	stp	x22, x8, [sp]
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_32
LBB0_31:
	str	x8, [sp]
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_32:
	add	x3, sp, #26
	mov	x0, x20
	mov	x2, x19
	bl	_shader_addline
LBB0_33:
	ldur	x8, [x29, #-88]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.34:
	ldp	x29, x30, [sp, #384]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #368]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #352]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #336]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #400
	ret
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANNEL_SOURCE_X,4,2           ; @CHANNEL_SOURCE_X
	.comm	_WINED3DSP_WRITEMASK_0,4,2      ; @WINED3DSP_WRITEMASK_0
	.comm	_CHANNEL_SOURCE_Y,4,2           ; @CHANNEL_SOURCE_Y
	.comm	_WINED3DSP_WRITEMASK_1,4,2      ; @WINED3DSP_WRITEMASK_1
	.comm	_CHANNEL_SOURCE_Z,4,2           ; @CHANNEL_SOURCE_Z
	.comm	_WINED3DSP_WRITEMASK_2,4,2      ; @WINED3DSP_WRITEMASK_2
	.comm	_CHANNEL_SOURCE_W,4,2           ; @CHANNEL_SOURCE_W
	.comm	_WINED3DSP_WRITEMASK_3,4,2      ; @WINED3DSP_WRITEMASK_3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Complex fixup (%#x) not supported\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"%s%s = vec%u(%s);\n"

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

	.no_dead_strip	_shader_glsl_color_correction_ext
.subsections_via_symbols
