	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function glfwSetGamma
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.long	4                               ## 0x4
	.long	5                               ## 0x5
	.long	6                               ## 0x6
	.long	7                               ## 0x7
LCPI0_2:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_3:
	.quad	0x406fe00000000000              ## double 255
	.quad	0x406fe00000000000              ## double 255
LCPI0_4:
	.quad	0x40efffe000000000              ## double 65535
	.quad	0x40efffe000000000              ## double 65535
LCPI0_5:
	.quad	0x3fe0000000000000              ## double 0.5
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_6:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_glfwSetGamma
	.p2align	4, 0x90
_glfwSetGamma:                          ## @glfwSetGamma
	.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
	subq	$704, %rsp                      ## imm = 0x2C0
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movss	%xmm0, -576(%rbp)               ## 4-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	callq	__GLFW_REQUIRE_INIT
	xorps	%xmm0, %xmm0
	movss	-576(%rbp), %xmm1               ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_6
## %bb.1:
	movaps	%xmm1, %xmm0
	movq	_FLT_MAX@GOTPCREL(%rip), %rax
	ucomiss	(%rax), %xmm1
	ja	LBB0_6
## %bb.2:
	cvtss2sd	%xmm0, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movddup	%xmm1, %xmm0                    ## xmm0 = xmm1[0,0]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [4,5,6,7]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [0,1,2,3]
	xorl	%ebx, %ebx
	movapd	%xmm0, -576(%rbp)               ## 16-byte Spill
	unpckhpd	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1]
	movapd	%xmm0, -624(%rbp)               ## 16-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm2, -704(%rbp)               ## 16-byte Spill
	movdqa	%xmm1, -720(%rbp)               ## 16-byte Spill
	cvtdq2pd	%xmm2, %xmm4
	pshufd	$238, %xmm2, %xmm0              ## xmm0 = xmm2[2,3,2,3]
	cvtdq2pd	%xmm0, %xmm3
	cvtdq2pd	%xmm1, %xmm2
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	cvtdq2pd	%xmm0, %xmm1
	movapd	LCPI0_3(%rip), %xmm5            ## xmm5 = [2.55E+2,2.55E+2]
	divpd	%xmm5, %xmm1
	movapd	%xmm1, -656(%rbp)               ## 16-byte Spill
	divpd	%xmm5, %xmm2
	movapd	%xmm2, -608(%rbp)               ## 16-byte Spill
	divpd	%xmm5, %xmm3
	movapd	%xmm3, -560(%rbp)               ## 16-byte Spill
	movapd	%xmm4, %xmm0
	divpd	%xmm5, %xmm0
	movapd	%xmm0, -592(%rbp)               ## 16-byte Spill
	movaps	-576(%rbp), %xmm1               ## 16-byte Reload
	callq	_pow
	movapd	%xmm0, -640(%rbp)               ## 16-byte Spill
	movaps	-592(%rbp), %xmm0               ## 16-byte Reload
	movhlps	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1]
	movaps	-624(%rbp), %xmm1               ## 16-byte Reload
	callq	_pow
	movaps	-640(%rbp), %xmm1               ## 16-byte Reload
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movaps	%xmm1, -640(%rbp)               ## 16-byte Spill
	movaps	-560(%rbp), %xmm0               ## 16-byte Reload
	movaps	-576(%rbp), %xmm1               ## 16-byte Reload
	callq	_pow
	movaps	%xmm0, -592(%rbp)               ## 16-byte Spill
	movaps	-560(%rbp), %xmm0               ## 16-byte Reload
	movhlps	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1]
	movaps	-624(%rbp), %xmm1               ## 16-byte Reload
	callq	_pow
	movaps	-592(%rbp), %xmm1               ## 16-byte Reload
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movaps	%xmm1, -592(%rbp)               ## 16-byte Spill
	movaps	-608(%rbp), %xmm0               ## 16-byte Reload
	movaps	-576(%rbp), %xmm1               ## 16-byte Reload
	callq	_pow
	movaps	%xmm0, -560(%rbp)               ## 16-byte Spill
	movaps	-608(%rbp), %xmm0               ## 16-byte Reload
	movhlps	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1]
	movaps	-624(%rbp), %xmm1               ## 16-byte Reload
	callq	_pow
	movaps	-560(%rbp), %xmm1               ## 16-byte Reload
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movaps	%xmm1, -560(%rbp)               ## 16-byte Spill
	movaps	-656(%rbp), %xmm0               ## 16-byte Reload
	movaps	-576(%rbp), %xmm1               ## 16-byte Reload
	callq	_pow
	movaps	%xmm0, -608(%rbp)               ## 16-byte Spill
	movapd	-656(%rbp), %xmm0               ## 16-byte Reload
	unpckhpd	%xmm0, %xmm0                    ## xmm0 = xmm0[1,1]
	movaps	-624(%rbp), %xmm1               ## 16-byte Reload
	callq	_pow
	movapd	-608(%rbp), %xmm6               ## 16-byte Reload
	unpcklpd	%xmm0, %xmm6                    ## xmm6 = xmm6[0],xmm0[0]
	movapd	LCPI0_4(%rip), %xmm3            ## xmm3 = [6.5535E+4,6.5535E+4]
	movapd	-640(%rbp), %xmm1               ## 16-byte Reload
	mulpd	%xmm3, %xmm1
	movapd	LCPI0_5(%rip), %xmm0            ## xmm0 = [5.0E-1,5.0E-1]
	addpd	%xmm0, %xmm1
	movapd	%xmm1, %xmm4
	movapd	-592(%rbp), %xmm1               ## 16-byte Reload
	mulpd	%xmm3, %xmm1
	addpd	%xmm0, %xmm1
	movapd	%xmm1, %xmm5
	movapd	-560(%rbp), %xmm1               ## 16-byte Reload
	mulpd	%xmm3, %xmm1
	addpd	%xmm0, %xmm1
	movapd	%xmm1, %xmm2
	movapd	%xmm6, %xmm1
	mulpd	%xmm3, %xmm1
	addpd	%xmm0, %xmm1
	movapd	%xmm3, %xmm0
	minpd	%xmm1, %xmm0
	movapd	%xmm3, %xmm1
	minpd	%xmm2, %xmm1
	movapd	%xmm3, %xmm2
	minpd	%xmm5, %xmm2
	minpd	%xmm4, %xmm3
	cvttpd2dq	%xmm3, %xmm3
	cvttpd2dq	%xmm2, %xmm2
	cvttpd2dq	%xmm1, %xmm1
	cvttpd2dq	%xmm0, %xmm0
	unpcklpd	%xmm2, %xmm3                    ## xmm3 = xmm3[0],xmm2[0]
	movdqa	-704(%rbp), %xmm2               ## 16-byte Reload
	unpcklpd	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	packusdw	%xmm1, %xmm3
	movdqa	-720(%rbp), %xmm1               ## 16-byte Reload
	movdqa	%xmm3, -544(%rbp,%rbx,2)
	addq	$8, %rbx
	movdqa	LCPI0_6(%rip), %xmm0            ## xmm0 = [8,8,8,8]
	paddd	%xmm0, %xmm2
	paddd	%xmm0, %xmm1
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_3
## %bb.4:
	leaq	-544(%rbp), %rax
	movq	%rax, -688(%rbp)
	movq	%rax, -680(%rbp)
	movq	%rax, -672(%rbp)
	movl	$256, -664(%rbp)                ## imm = 0x100
	leaq	-688(%rbp), %rsi
	movq	%r14, %rdi
	callq	_glfwSetGammaRamp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_5
## %bb.8:
	addq	$704, %rsp                      ## imm = 0x2C0
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_GLFW_INVALID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_5
## %bb.7:
	leaq	L_.str(%rip), %rsi
	addq	$704, %rsp                      ## imm = 0x2C0
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	__glfwInputError                ## TAILCALL
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FLT_MAX,4,2                    ## @FLT_MAX
	.comm	_GLFW_INVALID_VALUE,4,2         ## @GLFW_INVALID_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid gamma value"

.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 glfwSetGamma
lCPI0_0:
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.long	6                               ; 0x6
	.long	7                               ; 0x7
lCPI0_1:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
lCPI0_2:
	.byte	0                               ; 0x0
	.byte	1                               ; 0x1
	.byte	4                               ; 0x4
	.byte	5                               ; 0x5
	.byte	16                              ; 0x10
	.byte	17                              ; 0x11
	.byte	20                              ; 0x14
	.byte	21                              ; 0x15
	.byte	32                              ; 0x20
	.byte	33                              ; 0x21
	.byte	36                              ; 0x24
	.byte	37                              ; 0x25
	.byte	48                              ; 0x30
	.byte	49                              ; 0x31
	.byte	52                              ; 0x34
	.byte	53                              ; 0x35
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_glfwSetGamma
	.p2align	2
_glfwSetGamma:                          ; @glfwSetGamma
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	sub	sp, sp, #784
	fmov	s8, s0
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	__GLFW_REQUIRE_INIT
Lloh3:
	adrp	x8, _FLT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	s0, [x8]
	fcmp	s8, #0.0
	fccmp	s0, s8, #8, gt
	b.pl	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _GLFW_INVALID_VALUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GLFW_INVALID_VALUE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.2:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	add	sp, sp, #784
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	__glfwInputError
LBB0_3:
	mov	x20, #0
	fcvt	d0, s8
	fmov	d1, #1.00000000
Lloh14:
	adrp	x8, lCPI0_0@PAGE
Lloh15:
	ldr	q2, [x8, lCPI0_0@PAGEOFF]
Lloh16:
	adrp	x8, lCPI0_1@PAGE
Lloh17:
	ldr	q3, [x8, lCPI0_1@PAGEOFF]
	mov	x8, #246290604621824
	movk	x8, #16495, lsl #48
	dup.2d	v5, x8
	mov	x8, #281337537757184
	movk	x8, #16623, lsl #48
	dup.2d	v4, x8
	stp	q4, q5, [sp, #32]               ; 32-byte Folded Spill
	fmov.2d	v4, #0.50000000
	str	q4, [sp, #16]                   ; 16-byte Folded Spill
Lloh18:
	adrp	x8, lCPI0_2@PAGE
Lloh19:
	ldr	q4, [x8, lCPI0_2@PAGEOFF]
	str	q4, [sp]                        ; 16-byte Folded Spill
	add	x21, sp, #264
	fdiv	d8, d1, d0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	q3, [sp, #144]                  ; 16-byte Folded Spill
	str	q2, [sp, #208]                  ; 16-byte Folded Spill
	sshll.2d	v0, v3, #0
	scvtf.2d	v0, v0
	sshll2.2d	v1, v3, #0
	scvtf.2d	v1, v1
	ldr	q2, [sp, #208]                  ; 16-byte Folded Reload
	sshll.2d	v2, v2, #0
	scvtf.2d	v2, v2
	ldr	q3, [sp, #208]                  ; 16-byte Folded Reload
	sshll2.2d	v3, v3, #0
	scvtf.2d	v3, v3
	ldr	q4, [sp, #48]                   ; 16-byte Folded Reload
	fdiv.2d	v3, v3, v4
	fdiv.2d	v2, v2, v4
	stp	q2, q3, [sp, #176]              ; 32-byte Folded Spill
	fdiv.2d	v1, v1, v4
	str	q1, [sp, #160]                  ; 16-byte Folded Spill
	fdiv.2d	v0, v0, v4
	str	q0, [sp, #112]                  ; 16-byte Folded Spill
                                        ; kill: def $d0 killed $d0 killed $q0
	fmov	d1, d8
	bl	_pow
	str	q0, [sp, #128]                  ; 16-byte Folded Spill
	ldr	q0, [sp, #112]                  ; 16-byte Folded Reload
	mov	d0, v0[1]
	fmov	d1, d8
	bl	_pow
	str	q0, [sp, #96]                   ; 16-byte Folded Spill
	ldr	q0, [sp, #160]                  ; 16-byte Folded Reload
                                        ; kill: def $d0 killed $d0 killed $q0
	fmov	d1, d8
	bl	_pow
	str	q0, [sp, #112]                  ; 16-byte Folded Spill
	ldr	q0, [sp, #160]                  ; 16-byte Folded Reload
	mov	d0, v0[1]
	fmov	d1, d8
	bl	_pow
	str	q0, [sp, #160]                  ; 16-byte Folded Spill
	ldr	q0, [sp, #176]                  ; 16-byte Folded Reload
                                        ; kill: def $d0 killed $d0 killed $q0
	fmov	d1, d8
	bl	_pow
	str	q0, [sp, #80]                   ; 16-byte Folded Spill
	ldr	q0, [sp, #176]                  ; 16-byte Folded Reload
	mov	d0, v0[1]
	fmov	d1, d8
	bl	_pow
	str	q0, [sp, #64]                   ; 16-byte Folded Spill
	ldr	q0, [sp, #192]                  ; 16-byte Folded Reload
                                        ; kill: def $d0 killed $d0 killed $q0
	fmov	d1, d8
	bl	_pow
	str	q0, [sp, #176]                  ; 16-byte Folded Spill
	ldr	q0, [sp, #192]                  ; 16-byte Folded Reload
	mov	d0, v0[1]
	fmov	d1, d8
	bl	_pow
                                        ; kill: def $d0 killed $d0 def $q0
	ldp	q1, q6, [sp, #64]               ; 32-byte Folded Reload
	mov.d	v6[1], v1[0]
	ldr	q5, [sp, #128]                  ; 16-byte Folded Reload
	ldr	q1, [sp, #96]                   ; 16-byte Folded Reload
	mov.d	v5[1], v1[0]
	ldr	q2, [sp, #176]                  ; 16-byte Folded Reload
	mov.d	v2[1], v0[0]
	ldr	q1, [sp, #112]                  ; 16-byte Folded Reload
	ldr	q0, [sp, #160]                  ; 16-byte Folded Reload
	mov.d	v1[1], v0[0]
	ldp	q3, q4, [sp, #16]               ; 32-byte Folded Reload
	mov.16b	v0, v3
	fmla.2d	v0, v4, v1
	mov.16b	v1, v3
	fmla.2d	v1, v4, v2
	mov.16b	v2, v3
	fmla.2d	v2, v4, v5
	fmla.2d	v3, v4, v6
	fmin.2d	v3, v3, v4
	fmin.2d	v2, v2, v4
	fmin.2d	v1, v1, v4
	fmin.2d	v0, v0, v4
	fcvtzs.2d	v0, v0
	xtn.2s	v5, v0
	fcvtzs.2d	v0, v1
	xtn.2s	v7, v0
	fcvtzs.2d	v0, v2
	ldr	q2, [sp, #208]                  ; 16-byte Folded Reload
	xtn.2s	v4, v0
	fcvtzs.2d	v0, v3
	ldr	q3, [sp, #144]                  ; 16-byte Folded Reload
	xtn.2s	v6, v0
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	tbl.16b	v0, { v4, v5, v6, v7 }, v0
	str	q0, [x21, x20]
	movi.4s	v0, #8
	add.4s	v3, v3, v0
	add.4s	v2, v2, v0
	add	x20, x20, #16
	cmp	x20, #512
	b.ne	LBB0_4
; %bb.5:
	add	x8, sp, #264
	stp	x8, x8, [sp, #232]
	str	x8, [sp, #248]
	mov	w8, #256
	str	w8, [sp, #256]
	add	x1, sp, #232
	mov	x0, x19
	bl	_glfwSetGammaRamp
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	add	sp, sp, #784
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdr	Lloh18, Lloh19
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpAdrp	Lloh14, Lloh16
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_FLT_MAX,4,2                    ; @FLT_MAX
	.comm	_GLFW_INVALID_VALUE,4,2         ; @GLFW_INVALID_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid gamma value"

.subsections_via_symbols
