	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_dcu_drm_plane_atomic_disable
_fsl_dcu_drm_plane_atomic_disable:      ## @fsl_dcu_drm_plane_atomic_disable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %r15
	callq	_fsl_dcu_drm_plane_index
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	(%r15), %r14d
	movl	%eax, %edi
	movl	$4, %esi
	callq	_DCU_CTRLDESCLN
	leaq	-28(%rbp), %rdx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_regmap_read
	movq	_DCU_LAYER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -28(%rbp)
	movl	(%r15), %r14d
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_DCU_CTRLDESCLN
	movl	-28(%rbp), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_regmap_write
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCU_LAYER_EN,4,2               ## @DCU_LAYER_EN
	.no_dead_strip	_fsl_dcu_drm_plane_atomic_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_dcu_drm_plane_atomic_disable
_fsl_dcu_drm_plane_atomic_disable:      ; @fsl_dcu_drm_plane_atomic_disable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	ldr	x21, [x8]
	bl	_fsl_dcu_drm_plane_index
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w20, [x21]
	mov	w1, #4
	bl	_DCU_CTRLDESCLN
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_regmap_read
Lloh0:
	adrp	x8, _DCU_LAYER_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCU_LAYER_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	str	w8, [sp, #12]
	ldr	w20, [x21]
	mov	x0, x19
	mov	w1, #4
	bl	_DCU_CTRLDESCLN
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x20
	bl	_regmap_write
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DCU_LAYER_EN,4,2               ; @DCU_LAYER_EN
	.no_dead_strip	_fsl_dcu_drm_plane_atomic_disable
.subsections_via_symbols
