	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function complete_flip
_complete_flip:                         ## @complete_flip
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	callq	_to_mdp5_crtc_state
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_to_mdp5_crtc
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rbx
	movq	16(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %r13
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movq	$0, (%r15)
	movl	8(%r14), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rdx
	callq	_DBG
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_drm_crtc_send_vblank_event
LBB0_2:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$8, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mdp5_ctl_blend                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: send event: %p"

	.no_dead_strip	_complete_flip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function complete_flip
_complete_flip:                         ; @complete_flip
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x0, [x0]
	bl	_to_mdp5_crtc_state
	mov	x19, x0
	mov	x0, x20
	bl	_to_mdp5_crtc
	mov	x24, x0
	ldr	x21, [x19], #8
	ldr	x22, [x20, #16]
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x23, [x24]
	cbz	x23, LBB0_2
; %bb.1:
	str	xzr, [x24]
	ldr	w1, [x20, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x23
	bl	_DBG
	mov	x0, x20
	mov	x1, x23
	bl	_drm_crtc_send_vblank_event
LBB0_2:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cbz	x21, LBB0_4
; %bb.3:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x21
	mov	x1, x19
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	mov	w5, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mdp5_ctl_blend
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: send event: %p"

	.no_dead_strip	_complete_flip
.subsections_via_symbols
