	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_crtc_atomic_flush
_omap_crtc_atomic_flush:                ## @omap_crtc_atomic_flush
	.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), %r12
	callq	_to_omap_crtc
	movq	%rax, %r14
	movq	8(%rbx), %rdi
	callq	_to_omap_crtc_state
	movq	%rax, %r15
	movq	8(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.1:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	8(%rax), %rdx
	movl	(%rax), %ecx
	sarl	$2, %ecx
	jmp	LBB0_4
LBB0_2:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_4:
	movq	8(%r12), %rax
	movl	(%r12), %edi
	movl	(%r14), %esi
	callq	*8(%rax)
LBB0_5:
	movq	%rbx, %rdi
	callq	_omap_crtc_write_crtc_properties
	cmpl	$0, 8(%r14)
	je	LBB0_10
## %bb.6:
	movl	4(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	cmpq	$0, (%r15)
	je	LBB0_8
## %bb.7:
	movq	(%rbx), %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rdi
	callq	_omap_crtc_flush
	jmp	LBB0_9
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	callq	_drm_crtc_vblank_get
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_WARN_ON
	movq	(%rbx), %rdi
	callq	_spin_lock_irq
	movq	8(%r12), %rax
	movl	(%r12), %edi
	movl	(%r14), %esi
	callq	*(%rax)
LBB0_9:
	movq	%rbx, %rdi
	callq	_omap_crtc_arm_event
	movq	(%rbx), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: GO"

	.no_dead_strip	_omap_crtc_atomic_flush
.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_flush
_omap_crtc_atomic_flush:                ; @omap_crtc_atomic_flush
	.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	x22, [x8, #8]
	bl	_to_omap_crtc
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_to_omap_crtc_state
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x2, [x8, #8]
	ldr	w8, [x8]
	asr	w3, w8, #2
	b	LBB0_4
LBB0_3:
	mov	x2, #0
	mov	w3, #0
LBB0_4:
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x22]
	ldr	w1, [x20]
	blr	x8
LBB0_5:
	mov	x0, x19
	bl	_omap_crtc_write_crtc_properties
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_8
; %bb.6:
	ldr	w1, [x20, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x0, [x19]
	bl	_spin_lock_irq
	mov	x0, x19
	bl	_omap_crtc_flush
	b	LBB0_10
LBB0_8:
	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_9:
	mov	x0, x19
	bl	_drm_crtc_vblank_get
	cmp	w0, #0
	cset	w0, ne
	bl	_WARN_ON
	ldr	x0, [x19]
	bl	_spin_lock_irq
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	w0, [x22]
	ldr	w1, [x20]
	blr	x8
LBB0_10:
	mov	x0, x19
	bl	_omap_crtc_arm_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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: GO"

	.no_dead_strip	_omap_crtc_atomic_flush
.subsections_via_symbols
