	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exynos_plane_init              ## -- Begin function exynos_plane_init
	.p2align	4, 0x90
_exynos_plane_init:                     ## @exynos_plane_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_DRM_MODE_BLEND_PIXEL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_DRM_MODE_BLEND_PREMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_DRM_MODE_BLEND_COVERAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movb	4(%r15), %cl
	movl	$1, %edx
	shll	%cl, %edx
	leaq	4(%r14), %r12
	movl	16(%rbx), %r8d
	movl	8(%rbx), %eax
	movl	12(%rbx), %r9d
	subq	$8, %rsp
	movq	_exynos_plane_funcs@GOTPCREL(%rip), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_drm_universal_plane_init
	addq	$32, %rsp
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DRM_DEV_ERROR
	jmp	LBB0_6
LBB0_2:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movq	_plane_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_drm_plane_helper_add
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14)
	movq	%rbx, 8(%r14)
	movl	4(%rbx), %esi
	movq	_EXYNOS_DRM_PLANE_CAP_ZPOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	andl	(%rbx), %eax
	sete	%dl
	movq	%r12, %rdi
	callq	_exynos_plane_attach_zpos_property
	movl	(%rbx), %eax
	movq	_EXYNOS_DRM_PLANE_CAP_PIX_BLEND@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	orl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	orl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_drm_plane_create_blend_mode_property
	movl	(%rbx), %eax
LBB0_4:
	movq	_EXYNOS_DRM_PLANE_CAP_WIN_BLEND@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_drm_plane_create_alpha_property
LBB0_6:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_BLEND_PIXEL_NONE,4,2  ## @DRM_MODE_BLEND_PIXEL_NONE
	.comm	_DRM_MODE_BLEND_PREMULTI,4,2    ## @DRM_MODE_BLEND_PREMULTI
	.comm	_DRM_MODE_BLEND_COVERAGE,4,2    ## @DRM_MODE_BLEND_COVERAGE
	.comm	_exynos_plane_funcs,4,2         ## @exynos_plane_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to initialize plane\n"

	.comm	_plane_helper_funcs,4,2         ## @plane_helper_funcs
	.comm	_EXYNOS_DRM_PLANE_CAP_ZPOS,4,2  ## @EXYNOS_DRM_PLANE_CAP_ZPOS
	.comm	_EXYNOS_DRM_PLANE_CAP_PIX_BLEND,4,2 ## @EXYNOS_DRM_PLANE_CAP_PIX_BLEND
	.comm	_EXYNOS_DRM_PLANE_CAP_WIN_BLEND,4,2 ## @EXYNOS_DRM_PLANE_CAP_WIN_BLEND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exynos_plane_init              ; -- Begin function exynos_plane_init
	.p2align	2
_exynos_plane_init:                     ; @exynos_plane_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x25, x2
	mov	x24, x1
	mov	x27, x0
Lloh0:
	adrp	x8, _DRM_MODE_BLEND_PIXEL_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_BLEND_PIXEL_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	mov	x21, x0
Lloh3:
	adrp	x8, _DRM_MODE_BLEND_PREMULTI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_BLEND_PREMULTI@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BIT
	mov	x23, x0
Lloh6:
	adrp	x8, _DRM_MODE_BLEND_COVERAGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_MODE_BLEND_COVERAGE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_BIT
	mov	x26, x0
	add	x20, x24, #4
	ldr	w8, [x27, #4]
	mov	w9, #1
	lsl	w2, w9, w8
	ldp	w5, w4, [x19, #12]
	ldr	w7, [x19, #8]
	str	xzr, [sp]
Lloh9:
	adrp	x3, _exynos_plane_funcs@GOTPAGE
Lloh10:
	ldr	x3, [x3, _exynos_plane_funcs@GOTPAGEOFF]
	mov	x0, x27
	mov	x1, x20
	mov	x6, #0
	bl	_drm_universal_plane_init
	mov	x22, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x27]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_ERROR
	b	LBB0_6
LBB0_2:
Lloh13:
	adrp	x1, _plane_helper_funcs@GOTPAGE
Lloh14:
	ldr	x1, [x1, _plane_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	bl	_drm_plane_helper_add
	str	w25, [x24]
	str	x19, [x24, #8]
	ldp	w8, w1, [x19]
Lloh15:
	adrp	x9, _EXYNOS_DRM_PLANE_CAP_ZPOS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EXYNOS_DRM_PLANE_CAP_ZPOS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w2, eq
	mov	x0, x20
	bl	_exynos_plane_attach_zpos_property
	ldr	w8, [x19]
Lloh18:
	adrp	x9, _EXYNOS_DRM_PLANE_CAP_PIX_BLEND@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EXYNOS_DRM_PLANE_CAP_PIX_BLEND@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	orr	w8, w23, w21
	orr	w1, w8, w26
	mov	x0, x20
	bl	_drm_plane_create_blend_mode_property
	ldr	w8, [x19]
LBB0_4:
Lloh21:
	adrp	x9, _EXYNOS_DRM_PLANE_CAP_WIN_BLEND@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EXYNOS_DRM_PLANE_CAP_WIN_BLEND@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_drm_plane_create_alpha_property
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_BLEND_PIXEL_NONE,4,2  ; @DRM_MODE_BLEND_PIXEL_NONE
	.comm	_DRM_MODE_BLEND_PREMULTI,4,2    ; @DRM_MODE_BLEND_PREMULTI
	.comm	_DRM_MODE_BLEND_COVERAGE,4,2    ; @DRM_MODE_BLEND_COVERAGE
	.comm	_exynos_plane_funcs,4,2         ; @exynos_plane_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to initialize plane\n"

	.comm	_plane_helper_funcs,4,2         ; @plane_helper_funcs
	.comm	_EXYNOS_DRM_PLANE_CAP_ZPOS,4,2  ; @EXYNOS_DRM_PLANE_CAP_ZPOS
	.comm	_EXYNOS_DRM_PLANE_CAP_PIX_BLEND,4,2 ; @EXYNOS_DRM_PLANE_CAP_PIX_BLEND
	.comm	_EXYNOS_DRM_PLANE_CAP_WIN_BLEND,4,2 ; @EXYNOS_DRM_PLANE_CAP_WIN_BLEND
.subsections_via_symbols
