	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_du_vsp_complete
_rcar_du_vsp_complete:                  ## @rcar_du_vsp_complete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%edx, -20(%rbp)
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_drm_crtc_handle_vblank
LBB0_2:
	movq	_VSP1_DU_STATUS_COMPLETE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_rcar_du_crtc_finish_page_flip
LBB0_4:
	movq	_VSP1_DU_STATUS_WRITEBACK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_rcar_du_writeback_complete
LBB0_6:
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_drm_crtc_add_crc_entry
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VSP1_DU_STATUS_COMPLETE,4,2    ## @VSP1_DU_STATUS_COMPLETE
	.comm	_VSP1_DU_STATUS_WRITEBACK,4,2   ## @VSP1_DU_STATUS_WRITEBACK
	.no_dead_strip	_rcar_du_vsp_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_du_vsp_complete
_rcar_du_vsp_complete:                  ; @rcar_du_vsp_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	str	w2, [sp, #12]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_drm_crtc_handle_vblank
LBB0_2:
Lloh0:
	adrp	x8, _VSP1_DU_STATUS_COMPLETE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VSP1_DU_STATUS_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_rcar_du_crtc_finish_page_flip
LBB0_4:
Lloh3:
	adrp	x8, _VSP1_DU_STATUS_WRITEBACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VSP1_DU_STATUS_WRITEBACK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_rcar_du_writeback_complete
LBB0_6:
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_drm_crtc_add_crc_entry
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VSP1_DU_STATUS_COMPLETE,4,2    ; @VSP1_DU_STATUS_COMPLETE
	.comm	_VSP1_DU_STATUS_WRITEBACK,4,2   ; @VSP1_DU_STATUS_WRITEBACK
	.no_dead_strip	_rcar_du_vsp_complete
.subsections_via_symbols
