	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function set_lcd_gamma_
LCPI0_0:
	.long	0x42c80000                      ## float 100
LCPI0_1:
	.long	0x3f800000                      ## float 1
LCPI0_2:
	.long	0x3c800000                      ## float 0.015625
LCPI0_3:
	.long	0x40000000                      ## float 2
LCPI0_4:
	.long	0xbf800000                      ## float -1
LCPI0_5:
	.long	0xc0000000                      ## float -2
LCPI0_6:
	.long	0xc0400000                      ## float -3
LCPI0_7:
	.long	0xc0800000                      ## float -4
LCPI0_8:
	.long	0xc0a00000                      ## float -5
LCPI0_9:
	.long	0xc0c00000                      ## float -6
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_10:
	.quad	0x3ffc5cb89d6adf72              ## double 1.772637
LCPI0_11:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_12:
	.quad	0x406fe00000000000              ## double 255
LCPI0_13:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_set_lcd_gamma_:                        ## @set_lcd_gamma_
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cvtsi2ss	%edi, %xmm0
	divss	LCPI0_0(%rip), %xmm0
	cmpl	$100, %edi
	sete	%al
	movq	_memregs@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	andl	$-4097, 20736(%rcx)             ## imm = 0xEFFF
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	movss	%xmm1, -48(%rbp)                ## 4-byte Spill
	movl	$0, 21176(%rcx)
	testl	%esi, %esi
	sete	%r12b
	orb	%al, %r12b
	xorl	%r13d, %r13d
	xorps	%xmm0, %xmm0
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movsd	LCPI0_12(%rip), %xmm1           ## xmm1 = mem[0],zero
	divsd	%xmm1, %xmm0
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	callq	_pow
	mulsd	LCPI0_12(%rip), %xmm0
	cvttsd2si	%xmm0, %eax
	movzbl	%al, %eax
	movq	(%r15), %rcx
	movl	%eax, 21180(%rcx)
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	LCPI0_13(%rip), %xmm0
	incl	%r13d
	cmpl	$256, %r13d                     ## imm = 0x100
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	testb	%r12b, %r12b
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r13d, %xmm0
	mulss	LCPI0_2(%rip), %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movss	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	callq	_powf
	negl	%eax
	movl	%eax, %edi
	callq	_exp
	movl	%eax, %r14d
	shll	$7, %r14d
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_1(%rip), %xmm0
	movss	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_powf
	negl	%eax
	movl	%eax, %edi
	callq	_exp
	movl	%eax, %ebx
	shll	$6, %ebx
	addl	%r14d, %ebx
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_4(%rip), %xmm0
	movss	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_powf
	negl	%eax
	movl	%eax, %edi
	callq	_exp
	imull	$97, %eax, %r14d
	subl	%ebx, %r14d
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_5(%rip), %xmm0
	movss	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_powf
	negl	%eax
	movl	%eax, %edi
	callq	_exp
	imull	$143, %eax, %ebx
	addl	%r14d, %ebx
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_6(%rip), %xmm0
	movss	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_powf
	negl	%eax
	movl	%eax, %edi
	callq	_exp
	imull	$177, %eax, %r14d
	addl	%ebx, %r14d
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_7(%rip), %xmm0
	movss	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_powf
	negl	%eax
	movl	%eax, %edi
	callq	_exp
	movl	%eax, %ebx
	shll	$8, %ebx
	addl	%r14d, %ebx
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_8(%rip), %xmm0
	movss	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_powf
	negl	%eax
	movl	%eax, %edi
	callq	_exp
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,4), %r14d
	shll	$6, %r14d
	addl	%ebx, %r14d
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_9(%rip), %xmm0
	movss	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_powf
	negl	%eax
	movl	%eax, %edi
	callq	_exp
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,2), %eax
	shll	$7, %eax
	addl	%r14d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	divsd	LCPI0_10(%rip), %xmm0
	addsd	LCPI0_11(%rip), %xmm0
	jmp	LBB0_3
LBB0_4:
	movq	_gamma_was_changed@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_memregs,8,3                    ## @memregs
	.comm	_gamma_was_changed,4,2          ## @gamma_was_changed
	.no_dead_strip	_set_lcd_gamma_
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_lcd_gamma_
_set_lcd_gamma_:                        ; @set_lcd_gamma_
	.cfi_startproc
; %bb.0:
	stp	d15, d14, [sp, #-160]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 160
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	.cfi_offset b14, -152
	.cfi_offset b15, -160
	mov	w19, #0
	scvtf	s0, w0
	mov	w8, #1120403456
	fmov	s1, w8
	fdiv	s0, s0, s1
	fmov	s1, #1.00000000
	fdiv	s8, s1, s0
	cmp	w0, #100
Lloh0:
	adrp	x20, _memregs@GOTPAGE
Lloh1:
	ldr	x20, [x20, _memregs@GOTPAGEOFF]
	ldr	x8, [x20]
	mov	w9, #20736
	add	x8, x8, x9
	ldr	w9, [x8]
	and	w9, w9, #0xffffefff
	str	w9, [x8]
	str	wzr, [x8, #440]
	ccmp	w1, #0, #4, ne
	cset	w21, eq
	movi	d10, #0000000000000000
	mov	x22, #246290604621824
	movk	x22, #16495, lsl #48
	mov	w23, #21180
	fmov	d11, #1.00000000
	mov	w27, #177
	fmov	s9, #-4.00000000
	fmov	s12, #-5.00000000
	mov	w28, #320
	fmov	s13, #-6.00000000
	mov	w24, #384
	mov	x25, #57202
	movk	x25, #40298, lsl #16
	movk	x25, #23736, lsl #32
	movk	x25, #16380, lsl #48
	fmov	d14, #0.50000000
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	fmov	d15, x22
	fdiv	d0, d0, d15
	fmov	s1, s8
	bl	_pow
	fmul	d0, d0, d15
	fcvtzs	w8, d0
	ldr	x9, [x20]
	str	w8, [x9, x23]
	fadd	d10, d10, d11
	add	w19, w19, #1
	cmp	w19, #256
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	fmov	d0, d10
	tbnz	w21, #0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	scvtf	s0, w19
	mov	w8, #1015021568
	fmov	s1, w8
	fmul	s15, s0, s1
	fmov	s0, #2.00000000
	fadd	s0, s15, s0
	fmov	s1, #2.00000000
	bl	_powf
	neg	w0, w0
	bl	_exp
	lsl	w26, w0, #7
	fmov	s0, #1.00000000
	fadd	s0, s15, s0
	fmov	s1, #2.00000000
	bl	_powf
	neg	w0, w0
	bl	_exp
	add	w26, w26, w0, lsl #6
	fmov	s0, #-1.00000000
	fadd	s0, s15, s0
	fmov	s1, #2.00000000
	bl	_powf
	neg	w0, w0
	bl	_exp
	neg	w8, w26
	mov	w9, #97
	madd	w26, w0, w9, w8
	fmov	s0, #-2.00000000
	fadd	s0, s15, s0
	fmov	s1, #2.00000000
	bl	_powf
	neg	w0, w0
	bl	_exp
	mov	w8, #143
	madd	w26, w0, w8, w26
	fmov	s0, #-3.00000000
	fadd	s0, s15, s0
	fmov	s1, #2.00000000
	bl	_powf
	neg	w0, w0
	bl	_exp
	madd	w26, w0, w27, w26
	fadd	s0, s15, s9
	fmov	s1, #2.00000000
	bl	_powf
	neg	w0, w0
	bl	_exp
	add	w26, w26, w0, lsl #8
	fadd	s0, s15, s12
	fmov	s1, #2.00000000
	bl	_powf
	neg	w0, w0
	bl	_exp
	madd	w26, w0, w28, w26
	fadd	s0, s15, s13
	fmov	s1, #2.00000000
	bl	_powf
	neg	w0, w0
	bl	_exp
	madd	w8, w0, w24, w26
	scvtf	d0, w8
	fmov	d1, x25
	fdiv	d0, d0, d1
	fadd	d0, d0, d14
	b	LBB0_1
LBB0_4:
Lloh2:
	adrp	x8, _gamma_was_changed@GOTPAGE
Lloh3:
	ldr	x8, [x8, _gamma_was_changed@GOTPAGEOFF]
	mov	w9, #1
Lloh4:
	str	w9, [x8]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp], #160            ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_memregs,8,3                    ; @memregs
	.comm	_gamma_was_changed,4,2          ; @gamma_was_changed
	.no_dead_strip	_set_lcd_gamma_
.subsections_via_symbols
