	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function set_gamma
LCPI0_0:
	.long	19                              ## 0x13
	.long	37                              ## 0x25
	.long	55                              ## 0x37
	.long	69                              ## 0x45
LCPI0_1:
	.long	166                             ## 0xa6
	.long	151                             ## 0x97
	.long	137                             ## 0x89
	.long	123                             ## 0x7b
LCPI0_2:
	.long	2987803337                      ## 0xb21642c9
	.long	2987803337                      ## 0xb21642c9
	.long	2987803337                      ## 0xb21642c9
	.long	2987803337                      ## 0xb21642c9
LCPI0_3:
	.long	85                              ## 0x55
	.long	101                             ## 0x65
	.long	116                             ## 0x74
	.long	131                             ## 0x83
LCPI0_4:
	.long	106                             ## 0x6a
	.long	91                              ## 0x5b
	.long	76                              ## 0x4c
	.long	60                              ## 0x3c
LCPI0_5:
	.long	146                             ## 0x92
	.long	161                             ## 0xa1
	.long	176                             ## 0xb0
	.long	191                             ## 0xbf
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_set_gamma:                             ## @set_gamma
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$80, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	imull	$184, %esi, %ecx
	leal	255(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	movl	$10, -80(%rbp)
	movd	%eax, %xmm0
	movl	%eax, %r8d
	sarl	$8, %r8d
	imull	$201, %r8d, %ecx
	movslq	%ecx, %rcx
	imulq	$-1307163959, %rcx, %rdx        ## imm = 0xB21642C9
	shrq	$32, %rdx
	addl	%edx, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$7, %ecx
	addl	%edx, %ecx
	imull	$195, %r8d, %edx
	movslq	%edx, %rdx
	imulq	$-1307163959, %rdx, %rsi        ## imm = 0xB21642C9
	shrq	$32, %rsi
	addl	%esi, %edx
	movl	%edx, %esi
	shrl	$31, %esi
	sarl	$7, %edx
	addl	%esi, %edx
	imull	$183, %r8d, %esi
	movslq	%esi, %rsi
	imulq	$-1307163959, %rsi, %rax        ## imm = 0xB21642C9
	shrq	$32, %rax
	addl	%eax, %esi
	movl	%esi, %eax
	shrl	$31, %eax
	sarl	$7, %esi
	addl	%eax, %esi
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	psrad	$8, %xmm0
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [166,151,137,123]
	pmulld	%xmm0, %xmm1
	pshufd	$245, %xmm1, %xmm2              ## xmm2 = xmm1[1,1,3,3]
	movdqa	LCPI0_2(%rip), %xmm3            ## xmm3 = [2987803337,2987803337,2987803337,2987803337]
	pmuldq	%xmm3, %xmm2
	movdqa	%xmm1, %xmm4
	pmuldq	%xmm3, %xmm4
	pshufd	$245, %xmm4, %xmm4              ## xmm4 = xmm4[1,1,3,3]
	pblendw	$204, %xmm2, %xmm4              ## xmm4 = xmm4[0,1],xmm2[2,3],xmm4[4,5],xmm2[6,7]
	movd	%r8d, %xmm2
	pinsrd	$1, %ecx, %xmm2
	pinsrd	$2, %edx, %xmm2
	pinsrd	$3, %esi, %xmm2
	paddd	LCPI0_0(%rip), %xmm2
	paddd	%xmm1, %xmm4
	movdqa	%xmm4, %xmm1
	psrld	$31, %xmm1
	psrad	$7, %xmm4
	paddd	%xmm1, %xmm4
	paddd	LCPI0_3(%rip), %xmm4
	movdqu	%xmm2, -76(%rbp)
	movdqu	%xmm4, -60(%rbp)
	pmulld	LCPI0_4(%rip), %xmm0
	pshufd	$245, %xmm0, %xmm1              ## xmm1 = xmm0[1,1,3,3]
	pmuldq	%xmm3, %xmm1
	pmuldq	%xmm0, %xmm3
	pshufd	$245, %xmm3, %xmm2              ## xmm2 = xmm3[1,1,3,3]
	pblendw	$204, %xmm1, %xmm2              ## xmm2 = xmm2[0,1],xmm1[2,3],xmm2[4,5],xmm1[6,7]
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrld	$31, %xmm0
	psrad	$7, %xmm2
	paddd	%xmm0, %xmm2
	paddd	LCPI0_5(%rip), %xmm2
	movdqu	%xmm2, -44(%rbp)
	leal	(%r8,%r8,8), %eax
	leal	(%rax,%rax,4), %eax
	cltq
	imulq	$-1307163959, %rax, %rcx        ## imm = 0xB21642C9
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	sarl	$7, %ecx
	shrl	$31, %eax
	addl	%ecx, %eax
	addl	$206, %eax
	movl	%eax, -28(%rbp)
	movl	%r8d, %eax
	shll	$5, %eax
	subl	%r8d, %eax
	subl	%r8d, %eax
	cltq
	imulq	$-1307163959, %rax, %rcx        ## imm = 0xB21642C9
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	sarl	$7, %ecx
	shrl	$31, %eax
	addl	%ecx, %eax
	addl	$223, %eax
	movl	%eax, -24(%rbp)
	leal	(%r8,%r8,4), %eax
	leal	(%rax,%rax,2), %eax
	cltq
	imulq	$-1307163959, %rax, %rcx        ## imm = 0xB21642C9
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	sarl	$7, %ecx
	shrl	$31, %eax
	addl	%ecx, %eax
	addl	$234, %eax
	movl	%eax, -20(%rbp)
	movl	$245, -16(%rbp)
	leaq	-80(%rbp), %rdx
	movl	$4496, %esi                     ## imm = 0x1190
	movl	$17, %ecx
	callq	_reg_w
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$80, %rsp
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_set_gamma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function set_gamma
lCPI0_0:
	.long	201                             ; 0xc9
	.long	195                             ; 0xc3
	.long	183                             ; 0xb7
	.long	166                             ; 0xa6
lCPI0_1:
	.long	37                              ; 0x25
	.long	55                              ; 0x37
	.long	69                              ; 0x45
	.long	85                              ; 0x55
lCPI0_2:
	.long	151                             ; 0x97
	.long	137                             ; 0x89
	.long	123                             ; 0x7b
	.long	106                             ; 0x6a
lCPI0_3:
	.long	101                             ; 0x65
	.long	116                             ; 0x74
	.long	131                             ; 0x83
	.long	146                             ; 0x92
lCPI0_4:
	.long	91                              ; 0x5b
	.long	76                              ; 0x4c
	.long	60                              ; 0x3c
	.long	45                              ; 0x2d
lCPI0_5:
	.long	161                             ; 0xa1
	.long	176                             ; 0xb0
	.long	191                             ; 0xbf
	.long	206                             ; 0xce
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_set_gamma:                             ; @set_gamma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	mov	w8, #184
	mul	w8, w1, w8
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #8
	mov	w9, #10
	add	w10, w8, #19
	stp	w9, w10, [sp, #4]
	dup.4s	v0, w8
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	q1, [x9, lCPI0_0@PAGEOFF]
	mul.4s	v1, v0, v1
	mov	w9, #17097
	movk	w9, #45590, lsl #16
	dup.4s	v2, w9
	smull2.2d	v3, v1, v2
	smull.2d	v4, v1, v2
	uzp2.4s	v3, v4, v3
	add.4s	v1, v3, v1
	sshr.4s	v3, v1, #7
	usra.4s	v3, v1, #31
Lloh5:
	adrp	x10, lCPI0_1@PAGE
Lloh6:
	ldr	q1, [x10, lCPI0_1@PAGEOFF]
	add.4s	v1, v3, v1
	stur	q1, [sp, #12]
Lloh7:
	adrp	x10, lCPI0_2@PAGE
Lloh8:
	ldr	q1, [x10, lCPI0_2@PAGEOFF]
	mul.4s	v1, v0, v1
	smull2.2d	v3, v1, v2
	smull.2d	v4, v1, v2
	uzp2.4s	v3, v4, v3
	add.4s	v1, v3, v1
	sshr.4s	v3, v1, #7
	usra.4s	v3, v1, #31
Lloh9:
	adrp	x10, lCPI0_3@PAGE
Lloh10:
	ldr	q1, [x10, lCPI0_3@PAGEOFF]
	add.4s	v1, v3, v1
	stur	q1, [sp, #28]
Lloh11:
	adrp	x10, lCPI0_4@PAGE
Lloh12:
	ldr	q1, [x10, lCPI0_4@PAGEOFF]
	mul.4s	v0, v0, v1
	smull2.2d	v1, v0, v2
	smull.2d	v2, v0, v2
	uzp2.4s	v1, v2, v1
	add.4s	v0, v1, v0
	sshr.4s	v1, v0, #7
	usra.4s	v1, v0, #31
Lloh13:
	adrp	x10, lCPI0_5@PAGE
Lloh14:
	ldr	q0, [x10, lCPI0_5@PAGEOFF]
	add.4s	v0, v1, v0
	stur	q0, [sp, #44]
	mov	w10, #30
	mul	w10, w8, w10
	smull	x11, w10, w9
	lsr	x11, x11, #32
	add	w10, w11, w10
	asr	w11, w10, #7
	add	w10, w11, w10, lsr #31
	add	w10, w10, #223
	lsl	w11, w8, #4
	sub	w8, w11, w8
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #7
	add	w8, w9, w8, lsr #31
	add	w8, w8, #234
	stp	w10, w8, [sp, #60]
	mov	w8, #245
	str	w8, [sp, #68]
	add	x2, sp, #4
	mov	w1, #4496
	mov	w3, #17
	bl	_reg_w
	ldur	x8, [x29, #-8]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpAdrp	Lloh11, Lloh13
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpAdrp	Lloh9, Lloh11
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpAdrp	Lloh7, Lloh9
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_set_gamma
.subsections_via_symbols
