	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdp5_crtc_atomic_flush
_mdp5_crtc_atomic_flush:                ## @mdp5_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
	callq	_to_mdp5_crtc
	movq	%rax, %r14
	movq	(%rbx), %rdi
	callq	_to_mdp5_crtc_state
	movq	%rax, %r15
	movq	16(%rbx), %r12
	movl	8(%rbx), %esi
	movq	(%rbx), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	movq	16(%r14), %rdi
	callq	_WARN_ON
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	movq	%rcx, 16(%r14)
	movq	$0, (%rax)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%edi, %edi
	cmpl	$0, 24(%r15)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	callq	_blend_setup
	cmpq	$0, 16(%r15)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_request_pp_done_pending
LBB0_3:
	movq	%rbx, %rdi
	callq	_crtc_flush_all
	movl	%eax, 12(%r14)
	movl	8(%r15), %eax
	movl	%eax, 8(%r14)
	movl	4(%r15), %eax
	movl	%eax, 4(%r14)
	movl	(%r15), %eax
	movl	%eax, (%r14)
	movq	_PENDING_FLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_request_pending                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: event: %p"

	.comm	_PENDING_FLIP,4,2               ## @PENDING_FLIP
	.no_dead_strip	_mdp5_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 mdp5_crtc_atomic_flush
_mdp5_crtc_atomic_flush:                ; @mdp5_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
	bl	_to_mdp5_crtc
	mov	x20, x0
	ldr	x0, [x19]
	bl	_to_mdp5_crtc_state
	mov	x21, x0
	ldr	x22, [x19, #16]
	ldr	w1, [x19, #8]
	ldr	x8, [x19]
	ldr	x2, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	ldr	x0, [x20, #16]
	bl	_WARN_ON
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
	ldr	x9, [x8]
	str	x9, [x20, #16]
	str	xzr, [x8]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	w8, [x21, #24]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	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_2:
	mov	x0, x19
	bl	_blend_setup
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_request_pp_done_pending
LBB0_4:
	mov	x0, x19
	bl	_crtc_flush_all
	ldr	w8, [x21, #8]
	stp	w8, w0, [x20, #8]
	ldr	d0, [x21]
	str	d0, [x20]
Lloh2:
	adrp	x8, _PENDING_FLIP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PENDING_FLIP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	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	_request_pending
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: event: %p"

	.comm	_PENDING_FLIP,4,2               ; @PENDING_FLIP
	.no_dead_strip	_mdp5_crtc_atomic_flush
.subsections_via_symbols
