	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GLW_InitGamma
_GLW_InitGamma:                         ## @GLW_InitGamma
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_glConfig@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movq	_vidmode_ext@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_vidmode_MajorVersion@GOTPCREL(%rip), %rax
	cmpq	$2, (%rax)
	jl	LBB0_6
## %bb.2:
	jne	LBB0_4
## %bb.3:
	movq	_vidmode_MinorVersion@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jns	LBB0_4
LBB0_6:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PRINT_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_4:
	movq	_dpy@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_scrnum@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_vidmode_InitialGamma@GOTPCREL(%rip), %rdx
	callq	_XF86VidModeGetGamma
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_PRINT_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	*(%rax)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_glConfig,4,2                   ## @glConfig
	.comm	_vidmode_ext,8,3                ## @vidmode_ext
	.comm	_vidmode_MajorVersion,8,3       ## @vidmode_MajorVersion
	.comm	_vidmode_MinorVersion,8,3       ## @vidmode_MinorVersion
	.comm	_ri,8,3                         ## @ri
	.comm	_PRINT_ALL,4,2                  ## @PRINT_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XF86 Gamma extension not supported in this version\n"

	.comm	_dpy,4,2                        ## @dpy
	.comm	_scrnum,4,2                     ## @scrnum
	.comm	_vidmode_InitialGamma,4,2       ## @vidmode_InitialGamma
L_.str.1:                               ## @.str.1
	.asciz	"XF86 Gamma extension initialized\n"

	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_GAMMA_MINMAJOR,8,3             ## @GAMMA_MINMAJOR
	.comm	_GAMMA_MINMINOR,8,3             ## @GAMMA_MINMINOR
	.no_dead_strip	_GLW_InitGamma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GLW_InitGamma
_GLW_InitGamma:                         ; @GLW_InitGamma
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _qfalse@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x19, _glConfig@GOTPAGE
Lloh4:
	ldr	x19, [x19, _glConfig@GOTPAGEOFF]
	str	w8, [x19]
Lloh5:
	adrp	x8, _vidmode_ext@GOTPAGE
Lloh6:
	ldr	x8, [x8, _vidmode_ext@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.1:
Lloh8:
	adrp	x8, _vidmode_MajorVersion@GOTPAGE
Lloh9:
	ldr	x8, [x8, _vidmode_MajorVersion@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, #2
	b.lt	LBB0_4
; %bb.2:
	cmp	x8, #2
	b.ne	LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _vidmode_MinorVersion@GOTPAGE
Lloh12:
	ldr	x8, [x8, _vidmode_MinorVersion@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	tbz	x8, #63, LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _ri@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh16:
	adrp	x9, _PRINT_ALL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PRINT_ALL@GOTPAGEOFF]
Lloh18:
	ldr	x2, [x8]
Lloh19:
	ldr	w0, [x9]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x2
LBB0_5:
Lloh22:
	adrp	x8, _dpy@GOTPAGE
Lloh23:
	ldr	x8, [x8, _dpy@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _scrnum@GOTPAGE
Lloh26:
	ldr	x8, [x8, _scrnum@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x2, _vidmode_InitialGamma@GOTPAGE
Lloh29:
	ldr	x2, [x2, _vidmode_InitialGamma@GOTPAGEOFF]
	bl	_XF86VidModeGetGamma
Lloh30:
	adrp	x8, _ri@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
Lloh33:
	adrp	x9, _PRINT_ALL@GOTPAGE
Lloh34:
	ldr	x9, [x9, _PRINT_ALL@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x9]
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	blr	x8
Lloh38:
	adrp	x8, _qtrue@GOTPAGE
Lloh39:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_glConfig,4,2                   ; @glConfig
	.comm	_vidmode_ext,8,3                ; @vidmode_ext
	.comm	_vidmode_MajorVersion,8,3       ; @vidmode_MajorVersion
	.comm	_vidmode_MinorVersion,8,3       ; @vidmode_MinorVersion
	.comm	_ri,8,3                         ; @ri
	.comm	_PRINT_ALL,4,2                  ; @PRINT_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XF86 Gamma extension not supported in this version\n"

	.comm	_dpy,4,2                        ; @dpy
	.comm	_scrnum,4,2                     ; @scrnum
	.comm	_vidmode_InitialGamma,4,2       ; @vidmode_InitialGamma
l_.str.1:                               ; @.str.1
	.asciz	"XF86 Gamma extension initialized\n"

	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_GAMMA_MINMAJOR,8,3             ; @GAMMA_MINMAJOR
	.comm	_GAMMA_MINMINOR,8,3             ; @GAMMA_MINMINOR
	.no_dead_strip	_GLW_InitGamma
.subsections_via_symbols
