	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_dm_plane_init
_amdgpu_dm_plane_init:                  ## @amdgpu_dm_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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-176(%rbp), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_get_plane_formats
	movq	(%rbx), %rcx
	movl	(%rcx), %edi
	movl	8(%r12), %ebx
	subq	$8, %rsp
	movq	_dm_plane_funcs@GOTPCREL(%rip), %rcx
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r13, %r8
	movl	%eax, %r9d
	pushq	$0
	pushq	%rbx
	pushq	$0
	callq	_drm_universal_plane_init
	addq	$32, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movl	8(%r12), %eax
	testq	%r15, %r15
	je	LBB0_5
## %bb.2:
	movq	_DRM_PLANE_TYPE_OVERLAY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.3:
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.4:
	movq	_DRM_MODE_BLEND_PIXEL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_DRM_MODE_BLEND_PREMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r12, %rdi
	callq	_drm_plane_create_alpha_property
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_drm_plane_create_blend_mode_property
	movl	8(%r12), %eax
LBB0_5:
	testq	%r15, %r15
	je	LBB0_9
## %bb.6:
	movq	_DRM_PLANE_TYPE_PRIMARY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.7:
	cmpq	$0, (%r15)
	je	LBB0_9
## %bb.8:
	movq	_DRM_COLOR_YCBCR_BT601@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_DRM_COLOR_YCBCR_BT709@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %r15d
	movq	_DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_DRM_COLOR_YCBCR_FULL_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	_DRM_COLOR_YCBCR_BT709@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_drm_plane_create_color_properties
LBB0_9:
	movq	_dm_plane_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_drm_plane_helper_add
	movq	(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	*%rax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r14d, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_dm_plane_funcs,4,2             ## @dm_plane_funcs
	.comm	_DRM_PLANE_TYPE_OVERLAY,4,2     ## @DRM_PLANE_TYPE_OVERLAY
	.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_PLANE_TYPE_PRIMARY,4,2     ## @DRM_PLANE_TYPE_PRIMARY
	.comm	_DRM_COLOR_YCBCR_BT601,4,2      ## @DRM_COLOR_YCBCR_BT601
	.comm	_DRM_COLOR_YCBCR_BT709,4,2      ## @DRM_COLOR_YCBCR_BT709
	.comm	_DRM_COLOR_YCBCR_LIMITED_RANGE,4,2 ## @DRM_COLOR_YCBCR_LIMITED_RANGE
	.comm	_DRM_COLOR_YCBCR_FULL_RANGE,4,2 ## @DRM_COLOR_YCBCR_FULL_RANGE
	.comm	_dm_plane_helper_funcs,4,2      ## @dm_plane_helper_funcs
	.no_dead_strip	_amdgpu_dm_plane_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_dm_plane_init
_amdgpu_dm_plane_init:                  ; @amdgpu_dm_plane_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x3, x0
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_get_plane_formats
	mov	x5, x0
	ldr	x8, [x22]
	ldr	w0, [x8]
	ldr	w7, [x19, #8]
	str	xzr, [sp]
Lloh3:
	adrp	x3, _dm_plane_funcs@GOTPAGE
Lloh4:
	ldr	x3, [x3, _dm_plane_funcs@GOTPAGEOFF]
	add	x4, sp, #8
	mov	x1, x19
	mov	x2, x20
	mov	x6, #0
	bl	_drm_universal_plane_init
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.1:
	ldr	w8, [x19, #8]
	cbz	x21, LBB0_5
; %bb.2:
Lloh5:
	adrp	x9, _DRM_PLANE_TYPE_OVERLAY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DRM_PLANE_TYPE_OVERLAY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.3:
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _DRM_MODE_BLEND_PIXEL_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRM_MODE_BLEND_PIXEL_NONE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_BIT
	mov	x22, x0
Lloh11:
	adrp	x8, _DRM_MODE_BLEND_PREMULTI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DRM_MODE_BLEND_PREMULTI@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_BIT
	orr	w22, w0, w22
	mov	x0, x19
	bl	_drm_plane_create_alpha_property
	mov	x0, x19
	mov	x1, x22
	bl	_drm_plane_create_blend_mode_property
	ldr	w8, [x19, #8]
LBB0_5:
	cbz	x21, LBB0_9
; %bb.6:
Lloh14:
	adrp	x9, _DRM_PLANE_TYPE_PRIMARY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DRM_PLANE_TYPE_PRIMARY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.7:
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.8:
Lloh17:
	adrp	x8, _DRM_COLOR_YCBCR_BT601@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DRM_COLOR_YCBCR_BT601@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_BIT
	mov	x21, x0
Lloh20:
	adrp	x23, _DRM_COLOR_YCBCR_BT709@GOTPAGE
Lloh21:
	ldr	x23, [x23, _DRM_COLOR_YCBCR_BT709@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_BIT
	orr	w21, w0, w21
Lloh22:
	adrp	x24, _DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPAGE
Lloh23:
	ldr	x24, [x24, _DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_BIT
	mov	x22, x0
Lloh24:
	adrp	x8, _DRM_COLOR_YCBCR_FULL_RANGE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DRM_COLOR_YCBCR_FULL_RANGE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_BIT
	orr	w2, w0, w22
	ldr	w3, [x23]
	ldr	w4, [x24]
	mov	x0, x19
	mov	x1, x21
	bl	_drm_plane_create_color_properties
LBB0_9:
Lloh27:
	adrp	x1, _dm_plane_helper_funcs@GOTPAGE
Lloh28:
	ldr	x1, [x1, _dm_plane_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_plane_helper_add
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	blr	x8
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_dm_plane_funcs,4,2             ; @dm_plane_funcs
	.comm	_DRM_PLANE_TYPE_OVERLAY,4,2     ; @DRM_PLANE_TYPE_OVERLAY
	.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_PLANE_TYPE_PRIMARY,4,2     ; @DRM_PLANE_TYPE_PRIMARY
	.comm	_DRM_COLOR_YCBCR_BT601,4,2      ; @DRM_COLOR_YCBCR_BT601
	.comm	_DRM_COLOR_YCBCR_BT709,4,2      ; @DRM_COLOR_YCBCR_BT709
	.comm	_DRM_COLOR_YCBCR_LIMITED_RANGE,4,2 ; @DRM_COLOR_YCBCR_LIMITED_RANGE
	.comm	_DRM_COLOR_YCBCR_FULL_RANGE,4,2 ; @DRM_COLOR_YCBCR_FULL_RANGE
	.comm	_dm_plane_helper_funcs,4,2      ; @dm_plane_helper_funcs
	.no_dead_strip	_amdgpu_dm_plane_init
.subsections_via_symbols
