	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_crtc_atomic_disable
_meson_crtc_atomic_disable:             ## @meson_crtc_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, %r14
	callq	_to_meson_crtc
	movq	(%rax), %r15
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movq	%r14, %rdi
	callq	_drm_crtc_vblank_off
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	movq	_VPP_OSD1_POSTBLEND@GOTPCREL(%rip), %rax
	movq	_VPP_VD1_POSTBLEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_VPP_VD1_PREBLEND@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_VPP_POSTBLEND_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r15), %r15
	movq	_VPP_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__REG
	addq	%rax, %r15
	movl	%ebx, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_writel_bits_relaxed
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	cmpl	$0, 8(%rax)
	jne	LBB0_3
## %bb.2:
	movq	8(%r14), %rdi
	callq	_spin_lock_irq
	movq	(%r14), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_drm_crtc_send_vblank_event
	movq	8(%r14), %rdi
	callq	_spin_unlock_irq
	movq	(%r14), %rax
	movq	$0, (%rax)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_VPP_OSD1_POSTBLEND,4,2         ## @VPP_OSD1_POSTBLEND
	.comm	_VPP_VD1_POSTBLEND,4,2          ## @VPP_VD1_POSTBLEND
	.comm	_VPP_VD1_PREBLEND,4,2           ## @VPP_VD1_PREBLEND
	.comm	_VPP_POSTBLEND_ENABLE,4,2       ## @VPP_POSTBLEND_ENABLE
	.comm	_VPP_MISC,4,2                   ## @VPP_MISC
	.no_dead_strip	_meson_crtc_atomic_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_crtc_atomic_disable
_meson_crtc_atomic_disable:             ; @meson_crtc_atomic_disable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_to_meson_crtc
	ldr	x21, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	mov	x0, x19
	bl	_drm_crtc_vblank_off
Lloh2:
	adrp	x8, _VPP_OSD1_POSTBLEND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VPP_OSD1_POSTBLEND@GOTPAGEOFF]
	stp	xzr, xzr, [x21, #8]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _VPP_VD1_POSTBLEND@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VPP_VD1_POSTBLEND@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _VPP_VD1_PREBLEND@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VPP_VD1_PREBLEND@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _VPP_POSTBLEND_ENABLE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VPP_POSTBLEND_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w20, w8, w9
	ldr	x21, [x21]
Lloh14:
	adrp	x8, _VPP_MISC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VPP_MISC@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	__REG
	add	x2, x0, x21
	mov	x0, x20
	mov	w1, #0
	bl	_writel_bits_relaxed
	ldr	x8, [x19]
	ldr	x9, [x8]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	x0, [x19, #8]
	bl	_spin_lock_irq
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	bl	_drm_crtc_send_vblank_event
	ldr	x0, [x19, #8]
	bl	_spin_unlock_irq
	ldr	x8, [x19]
	str	xzr, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_VPP_OSD1_POSTBLEND,4,2         ; @VPP_OSD1_POSTBLEND
	.comm	_VPP_VD1_POSTBLEND,4,2          ; @VPP_VD1_POSTBLEND
	.comm	_VPP_VD1_PREBLEND,4,2           ; @VPP_VD1_PREBLEND
	.comm	_VPP_POSTBLEND_ENABLE,4,2       ; @VPP_POSTBLEND_ENABLE
	.comm	_VPP_MISC,4,2                   ; @VPP_MISC
	.no_dead_strip	_meson_crtc_atomic_disable
.subsections_via_symbols
