	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ilk_get_colorkey
_ilk_get_colorkey:                      ## @ilk_get_colorkey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_to_intel_plane
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_DVSKEYVAL
	movl	%eax, %edi
	callq	_I915_READ
	movq	%rax, 24(%r14)
	movl	(%rbx), %edi
	callq	_DVSKEYMAX
	movl	%eax, %edi
	callq	_I915_READ
	movq	%rax, 16(%r14)
	movl	(%rbx), %edi
	callq	_DVSKEYMSK
	movl	%eax, %edi
	callq	_I915_READ
	movq	%rax, 8(%r14)
	movq	$0, (%r14)
	movl	(%rbx), %edi
	callq	_DVSCNTR
	movl	%eax, %edi
	callq	_I915_READ
	movq	_DVS_DEST_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_DVS_SOURCE_KEY@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_I915_SET_COLORKEY_NONE@GOTPCREL(%rip), %rax
	testl	%ecx, %ecx
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_I915_SET_COLORKEY_SOURCE@GOTPCREL(%rip), %rax
	testl	%ecx, %ecx
	je	LBB0_5
LBB0_4:
	movq	_I915_SET_COLORKEY_DESTINATION@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DVS_DEST_KEY,4,2               ## @DVS_DEST_KEY
	.comm	_I915_SET_COLORKEY_DESTINATION,8,3 ## @I915_SET_COLORKEY_DESTINATION
	.comm	_DVS_SOURCE_KEY,4,2             ## @DVS_SOURCE_KEY
	.comm	_I915_SET_COLORKEY_SOURCE,8,3   ## @I915_SET_COLORKEY_SOURCE
	.comm	_I915_SET_COLORKEY_NONE,8,3     ## @I915_SET_COLORKEY_NONE
	.no_dead_strip	_ilk_get_colorkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ilk_get_colorkey
_ilk_get_colorkey:                      ; @ilk_get_colorkey
	.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, x1
	bl	_to_intel_plane
	mov	x20, x0
	ldr	w0, [x0]
	bl	_DVSKEYVAL
	bl	_I915_READ
	str	x0, [x19, #24]
	ldr	w0, [x20]
	bl	_DVSKEYMAX
	bl	_I915_READ
	str	x0, [x19, #16]
	ldr	w0, [x20]
	bl	_DVSKEYMSK
	bl	_I915_READ
	stp	xzr, x0, [x19]
	ldr	w0, [x20]
	bl	_DVSCNTR
	bl	_I915_READ
Lloh0:
	adrp	x8, _DVS_DEST_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DVS_DEST_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DVS_SOURCE_KEY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DVS_SOURCE_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _I915_SET_COLORKEY_NONE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _I915_SET_COLORKEY_NONE@GOTPAGEOFF]
Lloh8:
	adrp	x11, _I915_SET_COLORKEY_SOURCE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _I915_SET_COLORKEY_SOURCE@GOTPAGEOFF]
	tst	w9, w0
	csel	x9, x10, x11, eq
Lloh10:
	adrp	x10, _I915_SET_COLORKEY_DESTINATION@GOTPAGE
Lloh11:
	ldr	x10, [x10, _I915_SET_COLORKEY_DESTINATION@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	x8, [x8]
	str	x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DVS_DEST_KEY,4,2               ; @DVS_DEST_KEY
	.comm	_I915_SET_COLORKEY_DESTINATION,8,3 ; @I915_SET_COLORKEY_DESTINATION
	.comm	_DVS_SOURCE_KEY,4,2             ; @DVS_SOURCE_KEY
	.comm	_I915_SET_COLORKEY_SOURCE,8,3   ; @I915_SET_COLORKEY_SOURCE
	.comm	_I915_SET_COLORKEY_NONE,8,3     ; @I915_SET_COLORKEY_NONE
	.no_dead_strip	_ilk_get_colorkey
.subsections_via_symbols
