	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_glk_plane_color_ctl_crtc       ## -- Begin function glk_plane_color_ctl_crtc
	.p2align	4, 0x90
_glk_plane_color_ctl_crtc:              ## @glk_plane_color_ctl_crtc
	.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	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_i915
	movq	%rax, %rdi
	callq	_INTEL_GEN
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$10, %ecx
	jg	LBB0_6
## %bb.1:
	xorl	%eax, %eax
	cmpq	$0, 8(%rbx)
	movl	$0, %ecx
	je	LBB0_3
## %bb.2:
	movq	_PLANE_COLOR_PIPE_GAMMA_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_3:
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	_PLANE_COLOR_PIPE_CSC_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	orl	%ecx, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANE_COLOR_PIPE_GAMMA_ENABLE,4,2 ## @PLANE_COLOR_PIPE_GAMMA_ENABLE
	.comm	_PLANE_COLOR_PIPE_CSC_ENABLE,4,2 ## @PLANE_COLOR_PIPE_CSC_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_glk_plane_color_ctl_crtc       ; -- Begin function glk_plane_color_ctl_crtc
	.p2align	2
_glk_plane_color_ctl_crtc:              ; @glk_plane_color_ctl_crtc
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_to_i915
	bl	_INTEL_GEN
	cmp	w0, #10
	b.le	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _PLANE_COLOR_PIPE_GAMMA_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLANE_COLOR_PIPE_GAMMA_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	x10, x9, [x19]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
Lloh3:
	adrp	x9, _PLANE_COLOR_PIPE_CSC_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PLANE_COLOR_PIPE_CSC_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w0, w9, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANE_COLOR_PIPE_GAMMA_ENABLE,4,2 ; @PLANE_COLOR_PIPE_GAMMA_ENABLE
	.comm	_PLANE_COLOR_PIPE_CSC_ENABLE,4,2 ; @PLANE_COLOR_PIPE_CSC_ENABLE
.subsections_via_symbols
