	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armada_drm_crtc_atomic_disable
_armada_drm_crtc_atomic_disable:        ## @armada_drm_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	%rsi, %r15
	movq	%rdi, %rbx
	callq	_drm_to_armada_crtc
	movq	%rax, %r14
	movl	16(%rbx), %edx
	movl	20(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_drm_crtc_vblank_put
LBB0_2:
	movq	%rbx, %rdi
	callq	_drm_crtc_vblank_off
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_armada_drm_crtc_update
	movq	8(%rbx), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_3
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	*%rcx
	movq	8(%rbx), %rax
LBB0_5:
	movq	(%rax), %r14
	movq	$0, (%rax)
	testq	%r14, %r14
	je	LBB0_6
## %bb.7:
	movq	(%rbx), %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_drm_crtc_send_vblank_event
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[CRTC:%d:%s]\n"

	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.no_dead_strip	_armada_drm_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 armada_drm_crtc_atomic_disable
_armada_drm_crtc_atomic_disable:        ; @armada_drm_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	x21, x1
	mov	x19, x0
	bl	_drm_to_armada_crtc
	mov	x20, x0
	ldp	w2, w1, [x19, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_drm_crtc_vblank_put
LBB0_2:
	mov	x0, x19
	bl	_drm_crtc_vblank_off
	mov	x0, x20
	mov	w1, #0
	bl	_armada_drm_crtc_update
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_4
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
LBB0_4:
	ldr	x9, [x20]
	ldr	x9, [x9]
	cbz	x9, LBB0_6
; %bb.5:
	mov	x0, x20
	blr	x9
	ldr	x8, [x19, #8]
LBB0_6:
	ldr	x20, [x8]
	str	xzr, [x8]
	cbz	x20, LBB0_3
; %bb.7:
	ldr	x0, [x19]
	bl	_spin_lock_irq
	mov	x0, x19
	mov	x1, x20
	bl	_drm_crtc_send_vblank_event
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[CRTC:%d:%s]\n"

	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.no_dead_strip	_armada_drm_crtc_atomic_disable
.subsections_via_symbols
