	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipu_plane_atomic_update
_ipu_plane_atomic_update:               ## @ipu_plane_atomic_update
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_to_ipu_plane
	movq	%rax, %r13
	movq	(%rbx), %rbx
	movq	%rbx, %rdi
	callq	_to_ipu_plane_state
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %r15
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	(%r13), %eax
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.1:
	movl	24(%r13), %edi
	movl	24(%rbx), %esi
	movl	28(%rbx), %edx
	callq	_ipu_dp_set_window_pos
	movl	(%r13), %eax
LBB0_2:
	cmpl	$128, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.4:
	cmpl	$1, (%rbx)
	movl	24(%r13), %edi
	jne	LBB0_8
## %bb.5:
	movq	8(%r15), %rax
	xorl	%esi, %esi
	cmpl	$0, 4(%rax)
	sete	%sil
	movl	$255, %edx
	jmp	LBB0_9
LBB0_6:
	cmpl	$1, (%rbx)
	jne	LBB0_11
## %bb.7:
	movl	24(%r13), %edi
	movq	8(%r15), %rax
	xorl	%esi, %esi
	cmpl	$0, 4(%rax)
	sete	%sil
	movl	$255, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_8:
	movl	$1, %esi
	xorl	%edx, %edx
LBB0_9:
	movl	$1, %ecx
LBB0_10:
	callq	_ipu_dp_set_global_alpha
LBB0_11:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_drm_plane_state_to_eba
	movq	%rax, -48(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.12:
	movl	28(%r13), %edi
	callq	_ipu_chan_assign_axi_id
	movl	%eax, %r14d
	movl	4(%r13), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_drm_rect_width
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movl	%eax, %r12d
	sarl	$16, %r12d
	movq	%rbx, %rdi
	callq	_drm_rect_height
	sarl	$16, %eax
	movq	(%r15), %rcx
	movq	8(%r15), %rdx
	movl	(%rcx), %r8d
	movl	(%rdx), %r9d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	16(%rcx), %r11d
	leaq	-48(%rbp), %r10
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%r12d, %edx
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %ecx
	pushq	%r10
	pushq	%r11
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	callq	_ipu_prg_channel_configure
	addq	$16, %rsp
LBB0_13:
	cmpq	$0, 16(%r12)
	je	LBB0_15
## %bb.14:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_drm_atomic_crtc_needs_modeset
	testl	%eax, %eax
	je	LBB0_27
LBB0_15:
	movl	%r14d, -80(%rbp)                ## 4-byte Spill
	leaq	24(%rbx), %r12
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_ipu_drm_fourcc_to_colorspace
	movl	(%r13), %ecx
	cmpl	$129, %ecx
	je	LBB0_18
## %bb.16:
	cmpl	$128, %ecx
	jne	LBB0_20
## %bb.17:
	movq	_IPUV3_COLORSPACE_UNKNOWN@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_18:
	movq	_IPUV3_COLORSPACE_RGB@GOTPCREL(%rip), %rcx
LBB0_19:
	movl	24(%r13), %edi
	movl	(%rcx), %edx
	movl	%eax, %esi
	callq	_ipu_dp_setup_channel
LBB0_20:
	movl	20(%r13), %r14d
	movq	%r12, %rdi
	callq	_drm_rect_width
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ipu_dmfc_config_wait4eot
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_drm_rect_width
	movl	%eax, %ebx
	sarl	$16, %ebx
	movq	%r14, %rdi
	callq	_drm_rect_height
	movl	%eax, %r15d
	sarl	$16, %r15d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_drm_format_info
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	(%r12), %rax
	movl	(%rax), %edx
	leaq	-88(%rbp), %rcx
	leaq	-68(%rbp), %r8
	movl	%ebx, %edi
	callq	_ipu_calculate_bursts
	movl	4(%r13), %edi
	callq	_ipu_cpmem_zero
	movl	4(%r13), %edi
	movl	%ebx, %esi
	movq	%r12, %rbx
	movl	%r15d, %edx
	callq	_ipu_cpmem_set_resolution
	movl	4(%r13), %edi
	movq	8(%r12), %rax
	movl	(%rax), %esi
	callq	_ipu_cpmem_set_fmt
	movl	4(%r13), %edi
	movl	-88(%rbp), %esi
	callq	_ipu_cpmem_set_burstsize
	movl	4(%r13), %edi
	callq	_ipu_cpmem_set_high_priority
	movl	4(%r13), %edi
	movl	$1, %esi
	callq	_ipu_idmac_enable_watermark
	movl	4(%r13), %edi
	movl	$1, %esi
	callq	_ipu_idmac_set_double_buffer
	movl	4(%r13), %edi
	movq	(%r12), %rax
	movl	(%rax), %esi
	callq	_ipu_cpmem_set_stride
	movl	4(%r13), %edi
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	callq	_ipu_cpmem_set_axi_id
	movq	8(%r12), %rcx
	movl	$-130, %eax
	addl	(%rcx), %eax
	cmpl	$13, %eax
	ja	LBB0_31
## %bb.21:
	movl	$63, %ecx
	btl	%eax, %ecx
	jb	LBB0_24
## %bb.22:
	movl	$14784, %ecx                    ## imm = 0x39C0
	btl	%eax, %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	jae	LBB0_30
## %bb.23:
	movl	$1, %esi
	callq	_drm_plane_state_to_eba
	movq	%rax, %r15
	movl	$0, -68(%rbp)
	movq	8(%r13), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rdx
	movswl	6(%rbx), %r8d
	movswl	10(%rbx), %r9d
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	4(%r13), %edi
	movl	$16, %esi
	callq	_ipu_cpmem_set_burstsize
	movl	16(%r13), %edi
	callq	_ipu_cpmem_zero
	movq	%r14, %r12
	movl	16(%r13), %r14d
	movq	%r12, %rdi
	callq	_drm_rect_width
	movl	%eax, %ebx
	sarl	$16, %ebx
	movq	%r12, %rdi
	callq	_drm_rect_height
	sarl	$16, %eax
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_ipu_cpmem_set_resolution
	movl	16(%r13), %edi
	movl	$8, %esi
	callq	_ipu_cpmem_set_format_passthrough
	movl	16(%r13), %edi
	callq	_ipu_cpmem_set_high_priority
	movl	16(%r13), %edi
	movl	$1, %esi
	callq	_ipu_idmac_set_double_buffer
	movl	16(%r13), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	4(%rax), %esi
	callq	_ipu_cpmem_set_stride
	movl	16(%r13), %edi
	movl	$16, %esi
	callq	_ipu_cpmem_set_burstsize
	movl	16(%r13), %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_ipu_cpmem_set_buffer
	movl	16(%r13), %edi
	movl	$1, %esi
	movq	%r15, %rdx
	callq	_ipu_cpmem_set_buffer
	jmp	LBB0_32
LBB0_24:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_drm_plane_state_to_ubo
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_drm_plane_state_to_vbo
	movq	%rax, %r12
	movq	8(%rbx), %rax
	movl	$-130, %ecx
	addl	(%rax), %ecx
	cmpl	$2, %ecx
	ja	LBB0_26
## %bb.25:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_swap
LBB0_26:
	movl	4(%r13), %edi
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_ipu_cpmem_set_yuv_planar_full
	movq	8(%r13), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movswl	6(%rax), %r9d
	movswl	10(%rax), %ebx
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	pushq	%rbx
	callq	_dev_dbg
	addq	$16, %rsp
	jmp	LBB0_32
LBB0_27:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_33
## %bb.28:
	movl	4(%r13), %edi
	callq	_ipu_idmac_get_current_buffer
	movl	4(%r13), %edi
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	movq	-48(%rbp), %rdx
	movl	%ebx, %esi
	callq	_ipu_cpmem_set_buffer
	movl	4(%r13), %edi
	movl	%ebx, %esi
	callq	_ipu_idmac_select_buffer
	movq	%r13, %rdi
	callq	_ipu_plane_separate_alpha
	testq	%rax, %rax
	je	LBB0_33
## %bb.29:
	movl	16(%r13), %edi
	callq	_ipu_idmac_get_current_buffer
	movl	16(%r13), %edi
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_ipu_cpmem_set_buffer
	movl	16(%r13), %edi
	movl	%ebx, %esi
	callq	_ipu_idmac_select_buffer
	jmp	LBB0_33
LBB0_30:
	callq	_drm_plane_state_to_ubo
	movq	%rax, %r14
	movl	4(%r13), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdx
	movq	%r14, %rcx
	callq	_ipu_cpmem_set_yuv_planar_full
	movq	8(%r13), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rdx
	movswl	6(%rbx), %r8d
	movswl	10(%rbx), %r9d
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_32
LBB0_31:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movswl	6(%rax), %ecx
	movswl	10(%rax), %r8d
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_32:
	movl	4(%r13), %edi
	movq	-48(%rbp), %rdx
	xorl	%esi, %esi
	callq	_ipu_cpmem_set_buffer
	movl	4(%r13), %edi
	movq	-48(%rbp), %rdx
	movl	$1, %esi
	callq	_ipu_cpmem_set_buffer
	movl	4(%r13), %edi
	movl	-68(%rbp), %esi
	callq	_ipu_idmac_lock_enable
	movq	%r13, %rdi
	callq	_ipu_plane_enable
LBB0_33:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPUV3_COLORSPACE_RGB,4,2       ## @IPUV3_COLORSPACE_RGB
	.comm	_IPUV3_COLORSPACE_UNKNOWN,4,2   ## @IPUV3_COLORSPACE_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy = %lu %lu %lu, x = %d, y = %d"

L_.str.1:                               ## @.str.1
	.asciz	"phy = %lu %lu, x = %d, y = %d"

L_.str.2:                               ## @.str.2
	.asciz	"phys = %lu %lu, x = %d, y = %d"

L_.str.3:                               ## @.str.3
	.asciz	"phys = %lu, x = %d, y = %d"

	.no_dead_strip	_ipu_plane_atomic_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipu_plane_atomic_update
_ipu_plane_atomic_update:               ; @ipu_plane_atomic_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x1
	mov	x20, x0
	bl	_to_ipu_plane
	mov	x19, x0
	ldr	x20, [x20]
	mov	x0, x20
	bl	_to_ipu_plane_state
	mov	x23, x0
	ldr	x8, [x20, #32]
	ldr	x24, [x8]
	ldr	x28, [x20, #16]
	ldr	w8, [x19]
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
	ldp	w1, w2, [x20, #24]
	bl	_ipu_dp_set_window_pos
	ldr	w8, [x19]
LBB0_2:
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.4:
	ldr	w8, [x20]
	ldr	w0, [x19, #24]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x28, #8]
	ldr	w8, [x8, #4]
	cmp	w8, #0
	cset	w1, eq
	mov	w2, #255
	b	LBB0_9
LBB0_6:
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.7:
	ldr	w0, [x19, #24]
	ldr	x8, [x28, #8]
	ldr	w8, [x8, #4]
	cmp	w8, #0
	cset	w1, eq
	mov	w2, #255
	mov	w3, #0
	b	LBB0_10
LBB0_8:
	mov	w1, #1
	mov	w2, #0
LBB0_9:
	mov	w3, #1
LBB0_10:
	bl	_ipu_dp_set_global_alpha
LBB0_11:
	mov	x0, x20
	mov	w1, #0
	bl	_drm_plane_state_to_eba
	str	x0, [sp, #24]
	ldr	x8, [x23]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	w0, [x19, #28]
	bl	_ipu_chan_assign_axi_id
	mov	x21, x0
	ldr	w25, [x19, #4]
	add	x26, x20, #4
	mov	x0, x26
	bl	_drm_rect_width
	asr	w27, w0, #16
	mov	x0, x26
	bl	_drm_rect_height
	asr	w3, w0, #16
	ldp	x8, x9, [x28]
	ldr	w4, [x8]
	ldr	w5, [x9]
	ldr	w6, [x28, #16]
	add	x7, sp, #24
	mov	x0, x25
	mov	x1, x21
	mov	x2, x27
	bl	_ipu_prg_channel_configure
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_14
	b	LBB0_15
LBB0_13:
	mov	w21, #0
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_15
LBB0_14:
	mov	x0, x24
	bl	_drm_atomic_crtc_needs_modeset
	cbz	w0, LBB0_27
LBB0_15:
	add	x22, x20, #24
	ldr	x8, [x28, #8]
	ldr	w0, [x8]
	bl	_ipu_drm_fourcc_to_colorspace
	mov	x1, x0
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_18
; %bb.16:
	cmp	w8, #128
	b.ne	LBB0_20
; %bb.17:
Lloh0:
	adrp	x8, _IPUV3_COLORSPACE_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPUV3_COLORSPACE_UNKNOWN@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh2:
	adrp	x8, _IPUV3_COLORSPACE_RGB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPUV3_COLORSPACE_RGB@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x19, #24]
	ldr	w2, [x8]
	bl	_ipu_dp_setup_channel
LBB0_20:
	ldr	w23, [x19, #20]
	mov	x0, x22
	bl	_drm_rect_width
	mov	x1, x0
	mov	x0, x23
	bl	_ipu_dmfc_config_wait4eot
	add	x22, x20, #4
	mov	x0, x22
	bl	_drm_rect_width
	asr	w23, w0, #16
	mov	x0, x22
	bl	_drm_rect_height
	asr	w24, w0, #16
	ldr	x8, [x28, #8]
	ldr	w0, [x8]
	bl	_drm_format_info
	ldr	x8, [x0]
	ldr	w1, [x8]
	ldr	x8, [x28]
	ldr	w2, [x8]
	add	x3, sp, #20
	add	x4, sp, #16
	mov	x0, x23
	bl	_ipu_calculate_bursts
	ldr	w0, [x19, #4]
	bl	_ipu_cpmem_zero
	ldr	w0, [x19, #4]
	mov	x1, x23
	mov	x2, x24
	bl	_ipu_cpmem_set_resolution
	ldr	w0, [x19, #4]
	ldr	x8, [x28, #8]
	ldr	w1, [x8]
	bl	_ipu_cpmem_set_fmt
	ldr	w0, [x19, #4]
	ldr	w1, [sp, #20]
	bl	_ipu_cpmem_set_burstsize
	ldr	w0, [x19, #4]
	bl	_ipu_cpmem_set_high_priority
	ldr	w0, [x19, #4]
	mov	w23, #1
	mov	w1, #1
	bl	_ipu_idmac_enable_watermark
	ldr	w0, [x19, #4]
	mov	w1, #1
	bl	_ipu_idmac_set_double_buffer
	ldr	w0, [x19, #4]
	ldr	x8, [x28]
	ldr	w1, [x8]
	bl	_ipu_cpmem_set_stride
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_ipu_cpmem_set_axi_id
	ldr	x8, [x28, #8]
	ldr	w8, [x8]
	sub	w8, w8, #130
	cmp	w8, #13
	b.hi	LBB0_31
; %bb.21:
	lsl	w9, w23, w8
	tst	w9, #0x3f
	b.ne	LBB0_24
; %bb.22:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #14784
	mov	x0, x20
	tst	w8, w9
	b.eq	LBB0_30
; %bb.23:
	mov	w1, #1
	bl	_drm_plane_state_to_eba
	mov	x21, x0
	str	wzr, [sp, #16]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	x2, [sp, #24]
	ldrsh	w4, [x20, #6]
	ldrsh	x8, [x20, #10]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	str	x8, [sp]
	mov	x3, x21
	bl	_dev_dbg
	ldr	w0, [x19, #4]
	mov	w1, #16
	bl	_ipu_cpmem_set_burstsize
	ldr	w0, [x19, #16]
	bl	_ipu_cpmem_zero
	ldr	w20, [x19, #16]
	mov	x0, x22
	bl	_drm_rect_width
	asr	w23, w0, #16
	mov	x0, x22
	bl	_drm_rect_height
	asr	w2, w0, #16
	mov	x0, x20
	mov	x1, x23
	bl	_ipu_cpmem_set_resolution
	ldr	w0, [x19, #16]
	mov	w1, #8
	bl	_ipu_cpmem_set_format_passthrough
	ldr	w0, [x19, #16]
	bl	_ipu_cpmem_set_high_priority
	ldr	w0, [x19, #16]
	mov	w1, #1
	bl	_ipu_idmac_set_double_buffer
	ldr	w0, [x19, #16]
	ldr	x8, [x28]
	ldr	w1, [x8, #4]
	bl	_ipu_cpmem_set_stride
	ldr	w0, [x19, #16]
	mov	w1, #16
	bl	_ipu_cpmem_set_burstsize
	ldr	w0, [x19, #16]
	mov	w1, #0
	mov	x2, x21
	bl	_ipu_cpmem_set_buffer
	ldr	w0, [x19, #16]
	mov	w1, #1
	mov	x2, x21
	bl	_ipu_cpmem_set_buffer
	b	LBB0_33
LBB0_24:
	mov	x0, x20
	bl	_drm_plane_state_to_ubo
	mov	x21, x0
	mov	x0, x20
	bl	_drm_plane_state_to_vbo
	mov	x22, x0
	ldr	x8, [x28, #8]
	ldr	w8, [x8]
	sub	w8, w8, #130
	cmp	w8, #2
	b.hi	LBB0_26
; %bb.25:
	mov	x0, x21
	mov	x1, x22
	bl	_swap
LBB0_26:
	ldr	w0, [x19, #4]
	ldr	x8, [x28]
	ldr	w1, [x8, #4]
	mov	x2, x21
	mov	x3, x22
	bl	_ipu_cpmem_set_yuv_planar_full
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	x2, [sp, #24]
	ldrsh	x8, [x20, #6]
	ldrsh	x9, [x20, #10]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	stp	x8, x9, [sp]
	mov	x3, x21
	mov	x4, x22
	b	LBB0_32
LBB0_27:
	ldr	x8, [x23]
	cbnz	x8, LBB0_34
; %bb.28:
	ldr	w0, [x19, #4]
	bl	_ipu_idmac_get_current_buffer
	ldr	w8, [x19, #4]
	cmp	w0, #0
	cset	w20, eq
	ldr	x2, [sp, #24]
	mov	x0, x8
	mov	x1, x20
	bl	_ipu_cpmem_set_buffer
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_ipu_idmac_select_buffer
	mov	x0, x19
	bl	_ipu_plane_separate_alpha
	cbz	x0, LBB0_34
; %bb.29:
	ldr	w0, [x19, #16]
	bl	_ipu_idmac_get_current_buffer
	ldr	w8, [x19, #16]
	cmp	w0, #0
	cset	w20, eq
	mov	x0, x8
	mov	x1, x20
	mov	x2, #0
	bl	_ipu_cpmem_set_buffer
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_ipu_idmac_select_buffer
	b	LBB0_34
LBB0_30:
	bl	_drm_plane_state_to_ubo
	mov	x21, x0
	ldr	w0, [x19, #4]
	ldr	x8, [x28]
	ldr	w1, [x8, #4]
	mov	x2, x21
	mov	x3, x21
	bl	_ipu_cpmem_set_yuv_planar_full
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	x2, [sp, #24]
	ldrsh	w4, [x20, #6]
	ldrsh	x8, [x20, #10]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x8, [sp]
	mov	x3, x21
	b	LBB0_32
LBB0_31:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	x2, [sp, #24]
	ldrsh	w3, [x20, #6]
	ldrsh	w4, [x20, #10]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_32:
	bl	_dev_dbg
LBB0_33:
	ldr	w0, [x19, #4]
	ldr	x2, [sp, #24]
	mov	w1, #0
	bl	_ipu_cpmem_set_buffer
	ldr	w0, [x19, #4]
	ldr	x2, [sp, #24]
	mov	w1, #1
	bl	_ipu_cpmem_set_buffer
	ldr	w0, [x19, #4]
	ldr	w1, [sp, #16]
	bl	_ipu_idmac_lock_enable
	mov	x0, x19
	bl	_ipu_plane_enable
LBB0_34:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IPUV3_COLORSPACE_RGB,4,2       ; @IPUV3_COLORSPACE_RGB
	.comm	_IPUV3_COLORSPACE_UNKNOWN,4,2   ; @IPUV3_COLORSPACE_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy = %lu %lu %lu, x = %d, y = %d"

l_.str.1:                               ; @.str.1
	.asciz	"phy = %lu %lu, x = %d, y = %d"

l_.str.2:                               ; @.str.2
	.asciz	"phys = %lu %lu, x = %d, y = %d"

l_.str.3:                               ; @.str.3
	.asciz	"phys = %lu, x = %d, y = %d"

	.no_dead_strip	_ipu_plane_atomic_update
.subsections_via_symbols
