	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_dc_plane_attributes
_fill_dc_plane_attributes:              ## @fill_dc_plane_attributes
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rcx, %rdi
	callq	_to_dm_crtc_state
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_to_amdgpu_framebuffer
	movq	%rax, %r13
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_fill_dc_scaling_info
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, 56(%r15)
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_get_fb_info
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	-44(%rbp), %edx
	leaq	52(%r15), %r8
	leaq	-128(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_fill_dc_plane_info_and_addr
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	-80(%rbp), %eax
	movl	%eax, 48(%r15)
	movaps	-96(%rbp), %xmm0
	movups	%xmm0, 32(%r15)
	movaps	-112(%rbp), %xmm0
	movups	%xmm0, 16(%r15)
	movaps	-128(%rbp), %xmm0
	movups	%xmm0, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_amdgpu_dm_update_plane_color_mgmt
LBB0_4:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fill_dc_plane_attributes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_dc_plane_attributes
_fill_dc_plane_attributes:              ; @fill_dc_plane_attributes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x3
	bl	_to_dm_crtc_state
	mov	x20, x0
	ldr	w0, [x21]
	bl	_to_amdgpu_framebuffer
	mov	x23, x0
	sub	x1, x29, #64
	mov	x0, x21
	bl	_fill_dc_scaling_info
	cbnz	w0, LBB0_4
; %bb.1:
	ldur	q0, [x29, #-64]
	stur	q0, [x19, #56]
	add	x1, sp, #12
	mov	x0, x23
	bl	_get_fb_info
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w2, [sp, #12]
	add	x4, x19, #52
	add	x3, sp, #16
	mov	x0, x22
	mov	x1, x21
	bl	_fill_dc_plane_info_and_addr
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w8, [sp, #64]
	str	w8, [x19, #48]
	ldr	q2, [sp, #48]
	ldp	q1, q0, [sp, #16]
	stp	q0, q2, [x19, #16]
	str	q1, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_amdgpu_dm_update_plane_color_mgmt
LBB0_4:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fill_dc_plane_attributes
.subsections_via_symbols
