	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_plane_set_ckey
_intel_plane_set_ckey:                  ## @intel_plane_set_ckey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	callq	_to_intel_plane
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_to_i915
	movl	(%r14), %ecx
	movl	%ecx, (%r15)
	movq	(%rbx), %rcx
	movq	_PLANE_PRIMARY@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rcx
	jne	LBB0_3
## %bb.1:
	movq	_I915_SET_COLORKEY_SOURCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_3
## %bb.2:
	movl	$0, (%r15)
LBB0_3:
	movq	%rax, %rdi
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jl	LBB0_7
## %bb.4:
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	je	LBB0_7
## %bb.5:
	movq	_I915_SET_COLORKEY_DESTINATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.6:
	movl	$0, (%r15)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANE_PRIMARY,8,3              ## @PLANE_PRIMARY
	.comm	_I915_SET_COLORKEY_SOURCE,4,2   ## @I915_SET_COLORKEY_SOURCE
	.comm	_I915_SET_COLORKEY_DESTINATION,4,2 ## @I915_SET_COLORKEY_DESTINATION
	.no_dead_strip	_intel_plane_set_ckey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_plane_set_ckey
_intel_plane_set_ckey:                  ; @intel_plane_set_ckey
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [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 w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_to_intel_plane
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_to_i915
	ldr	w8, [x20]
	str	w8, [x19]
	ldr	x8, [x21]
Lloh0:
	adrp	x22, _PLANE_PRIMARY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PLANE_PRIMARY@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _I915_SET_COLORKEY_SOURCE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I915_SET_COLORKEY_SOURCE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	str	wzr, [x19]
LBB0_3:
	bl	_INTEL_GEN
	cmp	w0, #9
	b.lt	LBB0_7
; %bb.4:
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.5:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _I915_SET_COLORKEY_DESTINATION@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I915_SET_COLORKEY_DESTINATION@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	str	wzr, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANE_PRIMARY,8,3              ; @PLANE_PRIMARY
	.comm	_I915_SET_COLORKEY_SOURCE,4,2   ; @I915_SET_COLORKEY_SOURCE
	.comm	_I915_SET_COLORKEY_DESTINATION,4,2 ; @I915_SET_COLORKEY_DESTINATION
	.no_dead_strip	_intel_plane_set_ckey
.subsections_via_symbols
