	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_atomic_helper_check_plane_damage ## -- Begin function drm_atomic_helper_check_plane_damage
	.p2align	4, 0x90
_drm_atomic_helper_check_plane_damage:  ## @drm_atomic_helper_check_plane_damage
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	8(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	callq	_drm_atomic_get_new_crtc_state
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_drm_atomic_crtc_needs_modeset
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	callq	_drm_property_blob_put
	movq	$0, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_atomic_helper_check_plane_damage ; -- Begin function drm_atomic_helper_check_plane_damage
	.p2align	2
_drm_atomic_helper_check_plane_damage:  ; @drm_atomic_helper_check_plane_damage
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x1, [x1, #8]
	cbz	x1, LBB0_4
; %bb.1:
	bl	_drm_atomic_get_new_crtc_state
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_drm_atomic_crtc_needs_modeset
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19]
	bl	_drm_property_blob_put
	str	xzr, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
