	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vop_crtc_atomic_disable
_vop_crtc_atomic_disable:               ## @vop_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_vop
	movq	%rax, %rbx
	movl	28(%rax), %edi
	callq	_WARN_ON
	movq	(%r14), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_rockchip_drm_set_win_enabled
LBB0_2:
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_drm_crtc_vblank_off
	movq	(%r14), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_4
## %bb.3:
	leaq	20(%rbx), %r12
	movq	%r12, %rdi
	callq	_reinit_completion
	movq	%rbx, %rdi
	callq	_vop_dsp_hold_valid_irq_enable
	movq	%rbx, %r13
	addq	$24, %r13
	movq	%r13, %rdi
	callq	_spin_lock
	movq	_common@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_standby@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_VOP_REG_SET
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	%r12, %rdi
	callq	_wait_for_completion
	movq	%rbx, %rdi
	callq	_vop_dsp_hold_valid_irq_disable
	movl	$0, (%rbx)
	movl	8(%rbx), %esi
	movl	16(%rbx), %edi
	callq	_rockchip_drm_dma_detach_device
	movl	12(%rbx), %edi
	callq	_clk_disable
	movq	%rbx, %rdi
	callq	_vop_core_clks_disable
	movl	8(%rbx), %edi
	callq	_pm_runtime_put
LBB0_4:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	cmpl	$0, 8(%rax)
	jne	LBB0_7
## %bb.6:
	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_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_common,4,2                     ## @common
	.comm	_standby,4,2                    ## @standby
	.no_dead_strip	_vop_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 vop_crtc_atomic_disable
_vop_crtc_atomic_disable:               ; @vop_crtc_atomic_disable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_to_vop
	mov	x20, x0
	ldr	w0, [x0, #28]
	bl	_WARN_ON
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_rockchip_drm_set_win_enabled
LBB0_2:
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x19
	bl	_drm_crtc_vblank_off
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_4
; %bb.3:
	add	x22, x20, #20
	mov	x0, x22
	bl	_reinit_completion
	mov	x0, x20
	bl	_vop_dsp_hold_valid_irq_enable
	add	x23, x20, #24
	mov	x0, x23
	bl	_spin_lock
Lloh0:
	adrp	x8, _common@GOTPAGE
Lloh1:
	ldr	x8, [x8, _common@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _standby@GOTPAGE
Lloh4:
	ldr	x8, [x8, _standby@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_VOP_REG_SET
	mov	x0, x23
	bl	_spin_unlock
	mov	x0, x22
	bl	_wait_for_completion
	mov	x0, x20
	bl	_vop_dsp_hold_valid_irq_disable
	str	wzr, [x20]
	ldr	w0, [x20, #16]
	ldr	w1, [x20, #8]
	bl	_rockchip_drm_dma_detach_device
	ldr	w0, [x20, #12]
	bl	_clk_disable
	mov	x0, x20
	bl	_vop_core_clks_disable
	ldr	w0, [x20, #8]
	bl	_pm_runtime_put
LBB0_4:
	mov	x0, x21
	bl	_mutex_unlock
	ldr	x8, [x19]
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.5:
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_7
; %bb.6:
	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_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_common,4,2                     ; @common
	.comm	_standby,4,2                    ; @standby
	.no_dead_strip	_vop_crtc_atomic_disable
.subsections_via_symbols
