	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ilk_gamma_mode
_ilk_gamma_mode:                        ## @ilk_gamma_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	callq	_crtc_state_is_legacy_gamma
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_GAMMA_MODE_MODE_10BIT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_GAMMA_MODE_MODE_8BIT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GAMMA_MODE_MODE_8BIT,4,2       ## @GAMMA_MODE_MODE_8BIT
	.comm	_GAMMA_MODE_MODE_10BIT,4,2      ## @GAMMA_MODE_MODE_10BIT
	.no_dead_strip	_ilk_gamma_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ilk_gamma_mode
_ilk_gamma_mode:                        ; @ilk_gamma_mode
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x19, _GAMMA_MODE_MODE_8BIT@GOTPAGE
Lloh1:
	ldr	x19, [x19, _GAMMA_MODE_MODE_8BIT@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
	bl	_crtc_state_is_legacy_gamma
Lloh2:
	adrp	x8, _GAMMA_MODE_MODE_10BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GAMMA_MODE_MODE_10BIT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x19, x8, x19, eq
LBB0_2:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_GAMMA_MODE_MODE_8BIT,4,2       ; @GAMMA_MODE_MODE_8BIT
	.comm	_GAMMA_MODE_MODE_10BIT,4,2      ; @GAMMA_MODE_MODE_10BIT
	.no_dead_strip	_ilk_gamma_mode
.subsections_via_symbols
