	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipu_crtc_atomic_disable
_ipu_crtc_atomic_disable:               ## @ipu_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_to_ipu_crtc
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movl	4(%rbx), %edi
	callq	_ipu_dc_disable_channel
	movl	(%rbx), %edi
	callq	_ipu_di_disable
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ipu_crtc_disable_planes
	movq	%r12, %rdi
	callq	_ipu_dc_disable
	movq	%r12, %rdi
	callq	_ipu_prg_disable
	movq	%r15, %rdi
	callq	_drm_crtc_vblank_off
	movq	(%r15), %rdi
	callq	_spin_lock_irq
	movq	8(%r15), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	cmpl	$0, 8(%rax)
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_drm_crtc_send_vblank_event
	movq	8(%r15), %rax
	movq	$0, (%rax)
LBB0_3:
	movq	(%r15), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ipu_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 ipu_crtc_atomic_disable
_ipu_crtc_atomic_disable:               ; @ipu_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	x20, x1
	mov	x19, x0
	bl	_to_ipu_crtc
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_dev_get_drvdata
	mov	x22, x0
	ldr	w0, [x21, #4]
	bl	_ipu_dc_disable_channel
	ldr	w0, [x21]
	bl	_ipu_di_disable
	mov	x0, x21
	mov	x1, x20
	bl	_ipu_crtc_disable_planes
	mov	x0, x22
	bl	_ipu_dc_disable
	mov	x0, x22
	bl	_ipu_prg_disable
	mov	x0, x19
	bl	_drm_crtc_vblank_off
	ldr	x0, [x19]
	bl	_spin_lock_irq
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
	cbz	x1, LBB0_3
; %bb.1:
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_drm_crtc_send_vblank_event
	ldr	x8, [x19, #8]
	str	xzr, [x8]
LBB0_3:
	ldr	x0, [x19]
	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
	b	_spin_unlock_irq
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ipu_crtc_atomic_disable
.subsections_via_symbols
