	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_finish_crtc_commit
_intel_finish_crtc_commit:              ## @intel_finish_crtc_commit
	.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	%rsi, %r15
	movq	%rdi, %rbx
	callq	_intel_atomic_get_old_crtc_state
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_intel_atomic_get_new_crtc_state
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_intel_pipe_update_end
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_needs_modeset
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_I915_MODE_FLAG_INHERITED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_crtc_arm_fifo_underrun   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_MODE_FLAG_INHERITED,4,2   ## @I915_MODE_FLAG_INHERITED
	.no_dead_strip	_intel_finish_crtc_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_finish_crtc_commit
_intel_finish_crtc_commit:              ; @intel_finish_crtc_commit
	.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, x1
	mov	x20, x0
	bl	_intel_atomic_get_old_crtc_state
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_intel_atomic_get_new_crtc_state
	mov	x20, x0
	bl	_intel_pipe_update_end
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_needs_modeset
	cbz	w0, LBB0_3
LBB0_2:
	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_3:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _I915_MODE_FLAG_INHERITED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I915_MODE_FLAG_INHERITED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	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	_intel_crtc_arm_fifo_underrun
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_MODE_FLAG_INHERITED,4,2   ; @I915_MODE_FLAG_INHERITED
	.no_dead_strip	_intel_finish_crtc_commit
.subsections_via_symbols
