	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltdc_plane_atomic_update
_ltdc_plane_atomic_update:              ## @ltdc_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	%rdi, %rbx
	callq	_plane_to_ltdc
	movq	24(%rbx), %rdx
	cmpl	$0, 32(%rdx)
	je	LBB0_15
## %bb.1:
	movq	40(%rdx), %r10
	testq	%r10, %r10
	je	LBB0_15
## %bb.2:
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_LAY_OFS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	imull	(%rbx), %r13d
	movl	4(%rdx), %r12d
	movl	12(%rdx), %r15d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %r11d
	movq	%r11, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rdx), %ebx
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movswl	18(%rdx), %r9d
	movswl	22(%rdx), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movswl	26(%rdx), %ecx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movswl	30(%rdx), %r8d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %esi
	movl	16(%r10), %edx
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdi
	movq	%r10, -104(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r11
	pushq	%r15
	pushq	%r12
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_DRM_DEBUG_DRIVER
	addq	$48, %rsp
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	16(%r15), %edi
	movq	_LTDC_BPCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_reg_read
	movl	%eax, %ebx
	movq	_BPCR_AHBP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	sarl	$16, %eax
	movq	_BPCR_AVBP@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	addl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leal	(%rax,%r12), %ecx
	movq	%r15, %r12
	shll	$16, %ecx
	addl	%eax, %ecx
	incl	%ecx
	movl	16(%r15), %edi
	movq	_LTDC_L1WHPCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r13d, %esi
	movq	_LXWHPCR_WHSTPOS@GOTPCREL(%rip), %rax
	movq	_LXWHPCR_WHSPPOS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	callq	_reg_update_bits
	addl	-88(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%ebx, %eax
	shll	$16, %eax
	leal	(%rax,%rbx), %ecx
	incl	%ecx
	movl	16(%r15), %edi
	movq	_LTDC_L1WVPCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r13d, %esi
	movq	_LXWVPCR_WVSTPOS@GOTPCREL(%rip), %rax
	movq	_LXWVPCR_WVSPPOS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	callq	_reg_update_bits
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	callq	_to_ltdc_pixelformat
	movq	_NB_PF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.3:
	movq	24(%r12), %rdx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rdx,%r14,4)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	cmpq	%r14, %rcx
	jne	LBB0_4
	jmp	LBB0_7
LBB0_15:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_DRIVER               ## TAILCALL
LBB0_6:
	cmpl	%ecx, %r14d
	jne	LBB0_8
LBB0_7:
	movq	8(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
	xorl	%r14d, %r14d
LBB0_8:
	movl	16(%r12), %edi
	movq	_LTDC_L1PFCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r13d, %esi
	movq	_LXPFCR_PF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %ecx
	callq	_reg_update_bits
	movq	%rbx, %r14
	movq	(%rbx), %rax
	movq	8(%rbx), %rdx
	movl	(%rax), %ecx
	movq	8(%rdx), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	imull	(%rax), %edx
	movl	16(%r12), %edi
	movl	32(%r12), %eax
	sarl	$3, %eax
	addl	%edx, %eax
	decl	%eax
	shll	$16, %ecx
	orl	%eax, %ecx
	movq	_LTDC_L1CFBLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r13d, %esi
	movq	_LXCFBLR_CFBLL@GOTPCREL(%rip), %rax
	movq	_LXCFBLR_CFBP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	callq	_reg_update_bits
	movq	_CONSTA_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	16(%r12), %edi
	movq	_LTDC_L1CACR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r13d, %esi
	movq	_LXCACR_CONSTA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_reg_update_bits
	movq	_BF1_PAXCA@GOTPCREL(%rip), %rcx
	movq	_BF2_1PAXCA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	8(%rbx), %rdx
	movq	_BF1_CA@GOTPCREL(%rip), %rsi
	movq	_BF2_1CA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	cmpl	$0, 16(%rdx)
	cmovnel	%eax, %ecx
	cmpq	$0, 40(%r12)
	je	LBB0_10
## %bb.9:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rdx
	movq	_DRM_PLANE_TYPE_PRIMARY@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	cmovnel	%eax, %ecx
LBB0_10:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	16(%r12), %edi
	movq	_LTDC_L1BFCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r13d, %esi
	movq	_LXBFCR_BF2@GOTPCREL(%rip), %rax
	movq	_LXBFCR_BF1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	callq	_reg_update_bits
	movl	16(%r12), %edi
	movq	_LTDC_L1CFBLNR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r13d, %esi
	movq	_LXCFBLNR_CFBLN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %ecx
	callq	_reg_update_bits
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_drm_fb_cma_get_gem_addr
	movq	%r14, %r15
	movq	%rax, %r14
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	movl	16(%r12), %edi
	movq	_LTDC_L1CFBAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%r13d, %esi
	movl	%r14d, %edx
	callq	_reg_write
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_DRM_FORMAT_C8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_LXCR_CLUTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmovel	%eax, %ebx
	movq	_LXCR_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	%edx, %ebx
	movl	16(%r12), %edi
	movq	_LTDC_L1CR@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r13d
	orl	%eax, %edx
	movl	%r13d, %esi
	movl	%ebx, %ecx
	callq	_reg_update_bits
	movq	8(%r12), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rcx
	incl	(%rax,%rcx,4)
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	(%r12), %eax
	movq	_ISR_FUIF@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rdi
	callq	_DRM_WARN
	movl	(%r14), %eax
	notl	%eax
	andl	(%r12), %eax
	movl	%eax, (%r12)
LBB0_12:
	movq	_ISR_TERRIF@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rdi
	callq	_DRM_WARN
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, (%r12)
LBB0_14:
	movq	%rbx, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LAY_OFS,4,2                    ## @LAY_OFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fb or crtc NULL"

L_.str.1:                               ## @.str.1
	.asciz	"plane:%d fb:%d (%dx%d)@(%d,%d) -> (%dx%d)@(%d,%d)\n"

	.comm	_LTDC_BPCR,4,2                  ## @LTDC_BPCR
	.comm	_BPCR_AHBP,4,2                  ## @BPCR_AHBP
	.comm	_BPCR_AVBP,4,2                  ## @BPCR_AVBP
	.comm	_LTDC_L1WHPCR,4,2               ## @LTDC_L1WHPCR
	.comm	_LXWHPCR_WHSTPOS,4,2            ## @LXWHPCR_WHSTPOS
	.comm	_LXWHPCR_WHSPPOS,4,2            ## @LXWHPCR_WHSPPOS
	.comm	_LTDC_L1WVPCR,4,2               ## @LTDC_L1WVPCR
	.comm	_LXWVPCR_WVSTPOS,4,2            ## @LXWVPCR_WVSTPOS
	.comm	_LXWVPCR_WVSPPOS,4,2            ## @LXWVPCR_WVSPPOS
	.comm	_NB_PF,4,2                      ## @NB_PF
L_.str.2:                               ## @.str.2
	.asciz	"Pixel format %.4s not supported\n"

	.comm	_LTDC_L1PFCR,4,2                ## @LTDC_L1PFCR
	.comm	_LXPFCR_PF,4,2                  ## @LXPFCR_PF
	.comm	_LTDC_L1CFBLR,4,2               ## @LTDC_L1CFBLR
	.comm	_LXCFBLR_CFBLL,4,2              ## @LXCFBLR_CFBLL
	.comm	_LXCFBLR_CFBP,4,2               ## @LXCFBLR_CFBP
	.comm	_CONSTA_MAX,4,2                 ## @CONSTA_MAX
	.comm	_LTDC_L1CACR,4,2                ## @LTDC_L1CACR
	.comm	_LXCACR_CONSTA,4,2              ## @LXCACR_CONSTA
	.comm	_BF1_PAXCA,4,2                  ## @BF1_PAXCA
	.comm	_BF2_1PAXCA,4,2                 ## @BF2_1PAXCA
	.comm	_BF1_CA,4,2                     ## @BF1_CA
	.comm	_BF2_1CA,4,2                    ## @BF2_1CA
	.comm	_DRM_PLANE_TYPE_PRIMARY,8,3     ## @DRM_PLANE_TYPE_PRIMARY
	.comm	_LTDC_L1BFCR,4,2                ## @LTDC_L1BFCR
	.comm	_LXBFCR_BF2,4,2                 ## @LXBFCR_BF2
	.comm	_LXBFCR_BF1,4,2                 ## @LXBFCR_BF1
	.comm	_LTDC_L1CFBLNR,4,2              ## @LTDC_L1CFBLNR
	.comm	_LXCFBLNR_CFBLN,4,2             ## @LXCFBLNR_CFBLN
L_.str.3:                               ## @.str.3
	.asciz	"fb: phys 0x%08x"

	.comm	_LTDC_L1CFBAR,4,2               ## @LTDC_L1CFBAR
	.comm	_DRM_FORMAT_C8,8,3              ## @DRM_FORMAT_C8
	.comm	_LXCR_CLUTEN,4,2                ## @LXCR_CLUTEN
	.comm	_LXCR_LEN,4,2                   ## @LXCR_LEN
	.comm	_LTDC_L1CR,4,2                  ## @LTDC_L1CR
	.comm	_ISR_FUIF,4,2                   ## @ISR_FUIF
L_.str.4:                               ## @.str.4
	.asciz	"ltdc fifo underrun: please verify display mode\n"

	.comm	_ISR_TERRIF,4,2                 ## @ISR_TERRIF
L_.str.5:                               ## @.str.5
	.asciz	"ltdc transfer error\n"

	.no_dead_strip	_ltdc_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 ltdc_plane_atomic_update
_ltdc_plane_atomic_update:              ; @ltdc_plane_atomic_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x20, x0
	bl	_plane_to_ltdc
	ldr	x22, [x20, #24]
	ldr	x21, [x22, #40]
	ldr	w8, [x22, #32]
	cmp	w8, #0
	ccmp	x21, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_DRM_DEBUG_DRIVER
LBB0_2:
	mov	x19, x0
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _LAY_OFS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LAY_OFS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	mul	w24, w9, w8
	ldp	w26, w23, [x22, #8]
	ldp	w27, w25, [x22]
	ldr	w8, [x20, #16]
	ldr	w9, [x21, #16]
	ldrsh	x10, [x22, #26]
	ldrsh	x11, [x22, #30]
	ldrsh	x12, [x22, #18]
	ldrsh	x13, [x22, #22]
	stp	x27, x26, [sp, #64]
	stp	x25, x23, [sp, #48]
	stp	x12, x13, [sp, #32]
	stp	x10, x11, [sp, #16]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	stp	x8, x9, [sp]
	bl	_DRM_DEBUG_DRIVER
	ldr	w0, [x19, #16]
Lloh7:
	adrp	x8, _LTDC_BPCR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LTDC_BPCR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_reg_read
Lloh10:
	adrp	x8, _BPCR_AHBP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BPCR_AHBP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh13:
	adrp	x9, _BPCR_AVBP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BPCR_AVBP@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w28, w9, w0
	add	w8, w27, w8, asr #16
	add	w9, w8, w25
	add	w8, w8, w9, lsl #16
	add	w3, w8, #1
	ldr	w0, [x19, #16]
Lloh16:
	adrp	x8, _LTDC_L1WHPCR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LTDC_L1WHPCR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _LXWHPCR_WHSTPOS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _LXWHPCR_WHSTPOS@GOTPAGEOFF]
	add	w1, w8, w24
Lloh21:
	ldr	w8, [x9]
Lloh22:
	adrp	x9, _LXWHPCR_WHSPPOS@GOTPAGE
Lloh23:
	ldr	x9, [x9, _LXWHPCR_WHSPPOS@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_reg_update_bits
	add	w8, w28, w26
	add	w9, w8, w23
	add	w8, w8, w9, lsl #16
	add	w3, w8, #1
	ldr	w0, [x19, #16]
Lloh25:
	adrp	x8, _LTDC_L1WVPCR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LTDC_L1WVPCR@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _LXWVPCR_WVSTPOS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _LXWVPCR_WVSTPOS@GOTPAGEOFF]
	add	w1, w8, w24
Lloh30:
	ldr	w8, [x9]
Lloh31:
	adrp	x9, _LXWVPCR_WVSPPOS@GOTPAGE
Lloh32:
	ldr	x9, [x9, _LXWVPCR_WVSPPOS@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_reg_update_bits
	ldr	x8, [x21, #8]
	ldr	x0, [x8]
	bl	_to_ltdc_pixelformat
Lloh34:
	adrp	x8, _NB_PF@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NB_PF@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x3, #0
	ldr	x9, [x19, #24]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x3, lsl #2]
	cmp	w10, w0
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x3, x3, #1
	cmp	x8, x3
	b.ne	LBB0_4
	b	LBB0_8
LBB0_6:
	mov	w3, #0
LBB0_7:
	cmp	w3, w8
	b.ne	LBB0_9
LBB0_8:
	ldr	x1, [x21, #8]
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
	mov	w3, #0
LBB0_9:
Lloh39:
	adrp	x8, _LTDC_L1PFCR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _LTDC_L1PFCR@GOTPAGEOFF]
	ldr	w0, [x19, #16]
Lloh41:
	ldr	w8, [x8]
	add	w1, w8, w24
Lloh42:
	adrp	x8, _LXPFCR_PF@GOTPAGE
Lloh43:
	ldr	x8, [x8, _LXPFCR_PF@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_reg_update_bits
	ldp	x8, x9, [x21]
	ldr	w8, [x8]
	ldr	x9, [x9, #8]
	ldr	w9, [x9]
	mul	w9, w9, w25
	ldr	w10, [x19, #32]
	add	w9, w9, w10, asr #3
	sub	w9, w9, #1
	orr	w3, w9, w8, lsl #16
	ldr	w0, [x19, #16]
Lloh45:
	adrp	x8, _LTDC_L1CFBLR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _LTDC_L1CFBLR@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
Lloh48:
	adrp	x9, _LXCFBLR_CFBLL@GOTPAGE
Lloh49:
	ldr	x9, [x9, _LXCFBLR_CFBLL@GOTPAGEOFF]
	add	w1, w8, w24
Lloh50:
	ldr	w8, [x9]
Lloh51:
	adrp	x9, _LXCFBLR_CFBP@GOTPAGE
Lloh52:
	ldr	x9, [x9, _LXCFBLR_CFBP@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_reg_update_bits
Lloh54:
	adrp	x8, _CONSTA_MAX@GOTPAGE
Lloh55:
	ldr	x8, [x8, _CONSTA_MAX@GOTPAGEOFF]
Lloh56:
	ldr	w3, [x8]
Lloh57:
	adrp	x8, _LTDC_L1CACR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _LTDC_L1CACR@GOTPAGEOFF]
	ldr	w0, [x19, #16]
Lloh59:
	ldr	w8, [x8]
	add	w1, w8, w24
Lloh60:
	adrp	x8, _LXCACR_CONSTA@GOTPAGE
Lloh61:
	ldr	x8, [x8, _LXCACR_CONSTA@GOTPAGEOFF]
Lloh62:
	ldr	w2, [x8]
	bl	_reg_update_bits
Lloh63:
	adrp	x8, _BF1_PAXCA@GOTPAGE
Lloh64:
	ldr	x8, [x8, _BF1_PAXCA@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
Lloh66:
	adrp	x9, _BF2_1PAXCA@GOTPAGE
Lloh67:
	ldr	x9, [x9, _BF2_1PAXCA@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x21, #8]
	ldr	w9, [x9, #16]
Lloh69:
	adrp	x10, _BF1_CA@GOTPAGE
Lloh70:
	ldr	x10, [x10, _BF1_CA@GOTPAGEOFF]
Lloh71:
	adrp	x11, _BF2_1CA@GOTPAGE
Lloh72:
	ldr	x11, [x11, _BF2_1CA@GOTPAGEOFF]
Lloh73:
	ldr	w10, [x10]
Lloh74:
	ldr	w11, [x11]
	orr	w10, w11, w10
	cmp	w9, #0
	csel	w3, w10, w8, eq
	ldr	x9, [x19, #40]
	cbz	x9, LBB0_11
; %bb.10:
	ldr	x9, [x20, #8]
Lloh75:
	adrp	x10, _DRM_PLANE_TYPE_PRIMARY@GOTPAGE
Lloh76:
	ldr	x10, [x10, _DRM_PLANE_TYPE_PRIMARY@GOTPAGEOFF]
Lloh77:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	w3, w3, w8, eq
LBB0_11:
	ldr	w0, [x19, #16]
Lloh78:
	adrp	x8, _LTDC_L1BFCR@GOTPAGE
Lloh79:
	ldr	x8, [x8, _LTDC_L1BFCR@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
Lloh81:
	adrp	x9, _LXBFCR_BF2@GOTPAGE
Lloh82:
	ldr	x9, [x9, _LXBFCR_BF2@GOTPAGEOFF]
	add	w1, w8, w24
Lloh83:
	ldr	w8, [x9]
Lloh84:
	adrp	x9, _LXBFCR_BF1@GOTPAGE
Lloh85:
	ldr	x9, [x9, _LXBFCR_BF1@GOTPAGEOFF]
Lloh86:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_reg_update_bits
Lloh87:
	adrp	x8, _LTDC_L1CFBLNR@GOTPAGE
Lloh88:
	ldr	x8, [x8, _LTDC_L1CFBLNR@GOTPAGEOFF]
	ldr	w0, [x19, #16]
Lloh89:
	ldr	w8, [x8]
	add	w1, w8, w24
Lloh90:
	adrp	x8, _LXCFBLNR_CFBLN@GOTPAGE
Lloh91:
	ldr	x8, [x8, _LXCFBLNR_CFBLN@GOTPAGEOFF]
Lloh92:
	ldr	w2, [x8]
	mov	x3, x23
	bl	_reg_update_bits
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_drm_fb_cma_get_gem_addr
	mov	x22, x0
	str	x0, [sp]
Lloh93:
	adrp	x0, l_.str.3@PAGE
Lloh94:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	w0, [x19, #16]
Lloh95:
	adrp	x8, _LTDC_L1CFBAR@GOTPAGE
Lloh96:
	ldr	x8, [x8, _LTDC_L1CFBAR@GOTPAGEOFF]
Lloh97:
	ldr	w8, [x8]
	add	w1, w8, w24
	mov	x2, x22
	bl	_reg_write
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
Lloh98:
	adrp	x9, _DRM_FORMAT_C8@GOTPAGE
Lloh99:
	ldr	x9, [x9, _DRM_FORMAT_C8@GOTPAGEOFF]
Lloh100:
	ldr	x9, [x9]
Lloh101:
	adrp	x10, _LXCR_CLUTEN@GOTPAGE
Lloh102:
	ldr	x10, [x10, _LXCR_CLUTEN@GOTPAGEOFF]
Lloh103:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w8, w10, wzr, eq
Lloh104:
	adrp	x9, _LXCR_LEN@GOTPAGE
Lloh105:
	ldr	x9, [x9, _LXCR_LEN@GOTPAGEOFF]
Lloh106:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	w0, [x19, #16]
Lloh107:
	adrp	x8, _LTDC_L1CR@GOTPAGE
Lloh108:
	ldr	x8, [x8, _LTDC_L1CR@GOTPAGEOFF]
Lloh109:
	ldr	w8, [x8]
	add	w1, w8, w24
	orr	w2, w9, w10
	bl	_reg_update_bits
	ldr	x8, [x19, #8]
	ldrsw	x9, [x20]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19]
Lloh110:
	adrp	x21, _ISR_FUIF@GOTPAGE
Lloh111:
	ldr	x21, [x21, _ISR_FUIF@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
Lloh112:
	adrp	x0, l_.str.4@PAGE
Lloh113:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_WARN
	ldr	w8, [x21]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_13:
Lloh114:
	adrp	x21, _ISR_TERRIF@GOTPAGE
Lloh115:
	ldr	x21, [x21, _ISR_TERRIF@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
Lloh116:
	adrp	x0, l_.str.5@PAGE
Lloh117:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_WARN
	ldr	w8, [x21]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh73
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpAdd	Lloh112, Lloh113
	.loh AdrpLdrGot	Lloh114, Lloh115
	.loh AdrpAdd	Lloh116, Lloh117
	.cfi_endproc
                                        ; -- End function
	.comm	_LAY_OFS,4,2                    ; @LAY_OFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fb or crtc NULL"

l_.str.1:                               ; @.str.1
	.asciz	"plane:%d fb:%d (%dx%d)@(%d,%d) -> (%dx%d)@(%d,%d)\n"

	.comm	_LTDC_BPCR,4,2                  ; @LTDC_BPCR
	.comm	_BPCR_AHBP,4,2                  ; @BPCR_AHBP
	.comm	_BPCR_AVBP,4,2                  ; @BPCR_AVBP
	.comm	_LTDC_L1WHPCR,4,2               ; @LTDC_L1WHPCR
	.comm	_LXWHPCR_WHSTPOS,4,2            ; @LXWHPCR_WHSTPOS
	.comm	_LXWHPCR_WHSPPOS,4,2            ; @LXWHPCR_WHSPPOS
	.comm	_LTDC_L1WVPCR,4,2               ; @LTDC_L1WVPCR
	.comm	_LXWVPCR_WVSTPOS,4,2            ; @LXWVPCR_WVSTPOS
	.comm	_LXWVPCR_WVSPPOS,4,2            ; @LXWVPCR_WVSPPOS
	.comm	_NB_PF,4,2                      ; @NB_PF
l_.str.2:                               ; @.str.2
	.asciz	"Pixel format %.4s not supported\n"

	.comm	_LTDC_L1PFCR,4,2                ; @LTDC_L1PFCR
	.comm	_LXPFCR_PF,4,2                  ; @LXPFCR_PF
	.comm	_LTDC_L1CFBLR,4,2               ; @LTDC_L1CFBLR
	.comm	_LXCFBLR_CFBLL,4,2              ; @LXCFBLR_CFBLL
	.comm	_LXCFBLR_CFBP,4,2               ; @LXCFBLR_CFBP
	.comm	_CONSTA_MAX,4,2                 ; @CONSTA_MAX
	.comm	_LTDC_L1CACR,4,2                ; @LTDC_L1CACR
	.comm	_LXCACR_CONSTA,4,2              ; @LXCACR_CONSTA
	.comm	_BF1_PAXCA,4,2                  ; @BF1_PAXCA
	.comm	_BF2_1PAXCA,4,2                 ; @BF2_1PAXCA
	.comm	_BF1_CA,4,2                     ; @BF1_CA
	.comm	_BF2_1CA,4,2                    ; @BF2_1CA
	.comm	_DRM_PLANE_TYPE_PRIMARY,8,3     ; @DRM_PLANE_TYPE_PRIMARY
	.comm	_LTDC_L1BFCR,4,2                ; @LTDC_L1BFCR
	.comm	_LXBFCR_BF2,4,2                 ; @LXBFCR_BF2
	.comm	_LXBFCR_BF1,4,2                 ; @LXBFCR_BF1
	.comm	_LTDC_L1CFBLNR,4,2              ; @LTDC_L1CFBLNR
	.comm	_LXCFBLNR_CFBLN,4,2             ; @LXCFBLNR_CFBLN
l_.str.3:                               ; @.str.3
	.asciz	"fb: phys 0x%08x"

	.comm	_LTDC_L1CFBAR,4,2               ; @LTDC_L1CFBAR
	.comm	_DRM_FORMAT_C8,8,3              ; @DRM_FORMAT_C8
	.comm	_LXCR_CLUTEN,4,2                ; @LXCR_CLUTEN
	.comm	_LXCR_LEN,4,2                   ; @LXCR_LEN
	.comm	_LTDC_L1CR,4,2                  ; @LTDC_L1CR
	.comm	_ISR_FUIF,4,2                   ; @ISR_FUIF
l_.str.4:                               ; @.str.4
	.asciz	"ltdc fifo underrun: please verify display mode\n"

	.comm	_ISR_TERRIF,4,2                 ; @ISR_TERRIF
l_.str.5:                               ; @.str.5
	.asciz	"ltdc transfer error\n"

	.no_dead_strip	_ltdc_plane_atomic_update
.subsections_via_symbols
