	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLimp_SetGamma                 ## -- Begin function GLimp_SetGamma
	.p2align	4, 0x90
_GLimp_SetGamma:                        ## @GLimp_SetGamma
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	callq	_Cvar_Get
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -4(%rbp)                 ## 4-byte Spill
	movq	_glConfig@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_assert
	movss	-4(%rbp), %xmm0                 ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -16(%rbp)
	movss	%xmm0, -12(%rbp)
	movss	%xmm0, -8(%rbp)
	movq	_dpy@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_scrnum@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	callq	_XF86VidModeSetGamma
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r_gamma"

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

	.comm	_glConfig,4,2                   ## @glConfig
	.comm	_dpy,4,2                        ## @dpy
	.comm	_scrnum,4,2                     ## @scrnum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLimp_SetGamma                 ; -- Begin function GLimp_SetGamma
	.p2align	2
_GLimp_SetGamma:                        ; @GLimp_SetGamma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset b8, -24
	.cfi_offset b9, -32
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #0
	bl	_Cvar_Get
	ldr	s8, [x0]
Lloh4:
	adrp	x8, _glConfig@GOTPAGE
Lloh5:
	ldr	x8, [x8, _glConfig@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_assert
	stp	s8, s8, [sp]
	str	s8, [sp, #8]
Lloh7:
	adrp	x8, _dpy@GOTPAGE
Lloh8:
	ldr	x8, [x8, _dpy@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _scrnum@GOTPAGE
Lloh11:
	ldr	x8, [x8, _scrnum@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_XF86VidModeSetGamma
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r_gamma"

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

	.comm	_glConfig,4,2                   ; @glConfig
	.comm	_dpy,4,2                        ; @dpy
	.comm	_scrnum,4,2                     ; @scrnum
.subsections_via_symbols
