	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_crtc_atomic_disable
_omap_crtc_atomic_disable:              ## @omap_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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rax), %r15
	callq	_to_omap_crtc
	movq	%rax, %r14
	movq	(%rbx), %r12
	movl	4(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	movq	(%rbx), %rdi
	addq	$4, %rdi
	callq	_spin_lock_irq
	movq	8(%rbx), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_drm_crtc_send_vblank_event
	movq	8(%rbx), %rax
	movq	$0, (%rax)
LBB0_2:
	movq	(%rbx), %rdi
	addq	$4, %rdi
	callq	_spin_unlock_irq
	movq	%r14, %rdi
	callq	_cancel_delayed_work
	movq	%rbx, %rdi
	callq	_omap_crtc_wait_pending
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
LBB0_4:
	movq	%rbx, %rdi
	callq	_drm_crtc_vblank_off
	movq	8(%r15), %rax
	movl	(%r15), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"manual display update did not finish!"

	.no_dead_strip	_omap_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 omap_crtc_atomic_disable
_omap_crtc_atomic_disable:              ; @omap_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
	ldr	x8, [x0]
	ldr	x21, [x8, #8]
	bl	_to_omap_crtc
	mov	x20, x0
	ldr	x22, [x19]
	ldr	w1, [x0, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_spin_lock_irq
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_drm_crtc_send_vblank_event
	ldr	x8, [x19, #8]
	str	xzr, [x8]
LBB0_2:
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_spin_unlock_irq
	mov	x0, x20
	bl	_cancel_delayed_work
	mov	x0, x19
	bl	_omap_crtc_wait_pending
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_4:
	mov	x0, x19
	bl	_drm_crtc_vblank_off
	ldr	x8, [x21, #8]
	ldr	x1, [x8]
	ldr	w0, [x21]
	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
	br	x1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"manual display update did not finish!"

	.no_dead_strip	_omap_crtc_atomic_disable
.subsections_via_symbols
