	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen_color_correction
_gen_color_correction:                  ## @gen_color_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	cmpq	$0, 40(%rbp)
	movl	32(%rbp), %r13d
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	leaq	16(%rbp), %r14
	testl	%r13d, %r13d
	leaq	L_.str(%rip), %r12
	cmoveq	%rsi, %r12
	movl	12(%r14), %edi
	callq	_shader_arb_get_fixup_swizzle
	cltq
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edi
	callq	_shader_arb_get_fixup_swizzle
	cltq
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %edi
	callq	_shader_arb_get_fixup_swizzle
	movslq	%eax, %r15
	movl	(%r14), %edi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	callq	_shader_arb_get_fixup_swizzle
	movl	%eax, %r10d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdx
	movq	%rbx, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r15
	callq	_shader_addline
	addq	$16, %rsp
	testl	%r13d, %r13d
	jne	LBB0_4
	jmp	LBB0_16
LBB0_2:
	testl	%r13d, %r13d
	cmoveq	%rsi, %rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	je	LBB0_16
LBB0_4:
	movq	_WINED3DSP_WRITEMASK_ALL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_6
## %bb.5:
	leaq	-46(%rbp), %rax
	jmp	LBB0_15
LBB0_6:
	movb	$46, -46(%rbp)
	movq	_WINED3DSP_WRITEMASK_0@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_7
## %bb.8:
	leaq	-44(%rbp), %rax
	movb	$120, -45(%rbp)
	jmp	LBB0_9
LBB0_7:
	leaq	-45(%rbp), %rax
LBB0_9:
	movq	_WINED3DSP_WRITEMASK_1@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_11
## %bb.10:
	movb	$121, (%rax)
	incq	%rax
LBB0_11:
	movq	_WINED3DSP_WRITEMASK_2@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_13
## %bb.12:
	leaq	32(%rbp), %rcx
	movb	$122, (%rax)
	incq	%rax
	movl	(%rcx), %r13d
LBB0_13:
	movq	_WINED3DSP_WRITEMASK_3@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_15
## %bb.14:
	movb	$119, (%rax)
	incq	%rax
LBB0_15:
	movb	$0, (%rax)
	subq	$8, %rsp
	leaq	L_.str.2(%rip), %rsi
	leaq	-46(%rbp), %rcx
	movq	%r14, %rdi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	_shader_addline
	addq	$16, %rsp
LBB0_16:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TA"

L_.str.1:                               ## @.str.1
	.asciz	"SWZ %s, %s, %s, %s, %s, %s;\n"

	.comm	_WINED3DSP_WRITEMASK_ALL,4,2    ## @WINED3DSP_WRITEMASK_ALL
	.comm	_WINED3DSP_WRITEMASK_0,4,2      ## @WINED3DSP_WRITEMASK_0
	.comm	_WINED3DSP_WRITEMASK_1,4,2      ## @WINED3DSP_WRITEMASK_1
	.comm	_WINED3DSP_WRITEMASK_2,4,2      ## @WINED3DSP_WRITEMASK_2
	.comm	_WINED3DSP_WRITEMASK_3,4,2      ## @WINED3DSP_WRITEMASK_3
L_.str.2:                               ## @.str.2
	.asciz	"MAD %s%s, %s, %s, -%s;\n"

	.no_dead_strip	_gen_color_correction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen_color_correction
_gen_color_correction:                  ; @gen_color_correction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w19, [x29, #16]
	ldr	x8, [x29, #24]
	str	x3, [sp, #16]                   ; 8-byte Folded Spill
	cbz	x8, LBB0_2
; %bb.1:
	mov	x26, x6
	mov	x25, x5
	mov	x20, x4
	lsr	x0, x6, #32
	lsr	x27, x5, #32
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	w19, #0
	csel	x23, x21, x8, eq
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_shader_arb_get_fixup_swizzle
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x28, w0
	mov	x0, x26
	bl	_shader_arb_get_fixup_swizzle
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x26, w0
	mov	x0, x27
	bl	_shader_arb_get_fixup_swizzle
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x27, w0
	mov	x0, x25
	bl	_shader_arb_get_fixup_swizzle
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, x28
	mov	x5, x26
	mov	x6, x27
	bl	_shader_addline
	cbnz	w19, LBB0_3
	b	LBB0_14
LBB0_2:
	mov	x20, x4
	cmp	w19, #0
	csel	x23, x21, x24, eq
	cbz	w19, LBB0_14
LBB0_3:
	add	x8, sp, #26
Lloh4:
	adrp	x9, _WINED3DSP_WRITEMASK_ALL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_ALL@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w9, w19
	b.eq	LBB0_13
; %bb.4:
	mov	w9, #46
	strb	w9, [sp, #26]
Lloh7:
	adrp	x9, _WINED3DSP_WRITEMASK_0@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_0@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_6
; %bb.5:
	add	x8, sp, #26
	add	x8, x8, #2
	mov	w9, #120
	strb	w9, [sp, #27]
	b	LBB0_7
LBB0_6:
	add	x8, x8, #1
LBB0_7:
Lloh10:
	adrp	x9, _WINED3DSP_WRITEMASK_1@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_1@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_9
; %bb.8:
	mov	w9, #121
	strb	w9, [x8], #1
LBB0_9:
Lloh13:
	adrp	x9, _WINED3DSP_WRITEMASK_2@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_2@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_11
; %bb.10:
	mov	w9, #122
	strb	w9, [x8], #1
LBB0_11:
Lloh16:
	adrp	x9, _WINED3DSP_WRITEMASK_3@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_3@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_13
; %bb.12:
	mov	w9, #119
	strb	w9, [x8], #1
LBB0_13:
	strb	wzr, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x3, sp, #26
	mov	x0, x22
	mov	x2, x21
	mov	x4, x23
	mov	x5, x20
	ldr	x6, [sp, #16]                   ; 8-byte Folded Reload
	bl	_shader_addline
LBB0_14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TA"

l_.str.1:                               ; @.str.1
	.asciz	"SWZ %s, %s, %s, %s, %s, %s;\n"

	.comm	_WINED3DSP_WRITEMASK_ALL,4,2    ; @WINED3DSP_WRITEMASK_ALL
	.comm	_WINED3DSP_WRITEMASK_0,4,2      ; @WINED3DSP_WRITEMASK_0
	.comm	_WINED3DSP_WRITEMASK_1,4,2      ; @WINED3DSP_WRITEMASK_1
	.comm	_WINED3DSP_WRITEMASK_2,4,2      ; @WINED3DSP_WRITEMASK_2
	.comm	_WINED3DSP_WRITEMASK_3,4,2      ; @WINED3DSP_WRITEMASK_3
l_.str.2:                               ; @.str.2
	.asciz	"MAD %s%s, %s, %s, -%s;\n"

	.no_dead_strip	_gen_color_correction
.subsections_via_symbols
