	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_drm_crtc_atomic_begin
_mtk_drm_crtc_atomic_begin:             ## @mtk_drm_crtc_atomic_begin
	.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	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_mtk_crtc_state
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_mtk_crtc
	movq	%rax, %r14
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_3:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_drm_crtc_index
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_drm_crtc_vblank_get
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_WARN_ON
	movq	(%r15), %rax
	movq	%rax, (%r14)
	movq	$0, (%r15)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"new event while there is still a pending event\n"

	.no_dead_strip	_mtk_drm_crtc_atomic_begin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_drm_crtc_atomic_begin
_mtk_drm_crtc_atomic_begin:             ; @mtk_drm_crtc_atomic_begin
	.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	x20, x0
	ldr	w0, [x0]
	bl	_to_mtk_crtc_state
	mov	x19, x0
	mov	x0, x20
	bl	_to_mtk_crtc
	mov	x21, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_3:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_drm_crtc_index
	ldr	x8, [x19]
	str	w0, [x8]
	mov	x0, x20
	bl	_drm_crtc_vblank_get
	cmp	x0, #0
	cset	w0, ne
	bl	_WARN_ON
	ldr	x8, [x19]
	str	x8, [x21]
	str	xzr, [x19]
LBB0_5:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"new event while there is still a pending event\n"

	.no_dead_strip	_mtk_drm_crtc_atomic_begin
.subsections_via_symbols
