	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_du_primary_plane_atomic_check ## -- Begin function vmw_du_primary_plane_atomic_check
	.p2align	4, 0x90
_vmw_du_primary_plane_atomic_check:     ## @vmw_du_primary_plane_atomic_check
	.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, %rbx
	movq	(%rsi), %rsi
	movq	16(%rbx), %r15
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movl	8(%rbx), %edi
	callq	_drm_atomic_get_new_crtc_state
	movq	%rax, %rsi
	jmp	LBB0_3
LBB0_1:
	xorl	%esi, %esi
LBB0_3:
	movq	_DRM_PLANE_HELPER_NO_SCALING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_drm_atomic_helper_check_plane_state
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	(%rbx), %rdi
	callq	_vmw_crtc_to_du
	movl	(%rax), %edi
	callq	_vmw_connector_state_to_vcs
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_PLANE_HELPER_NO_SCALING,4,2 ## @DRM_PLANE_HELPER_NO_SCALING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_du_primary_plane_atomic_check ; -- Begin function vmw_du_primary_plane_atomic_check
	.p2align	2
_vmw_du_primary_plane_atomic_check:     ; @vmw_du_primary_plane_atomic_check
	.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
	ldr	x21, [x1, #16]
	ldr	x1, [x1]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_drm_atomic_get_new_crtc_state
	mov	x1, x0
LBB0_2:
Lloh0:
	adrp	x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	mov	w4, #0
	mov	w5, #1
	bl	_drm_atomic_helper_check_plane_state
	mov	x20, x0
	cmp	w0, #0
	ccmp	x21, #0, #4, eq
	b.eq	LBB0_4
; %bb.3:
	ldr	x0, [x19]
	bl	_vmw_crtc_to_du
	ldr	w0, [x0]
	bl	_vmw_connector_state_to_vcs
LBB0_4:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_PLANE_HELPER_NO_SCALING,4,2 ; @DRM_PLANE_HELPER_NO_SCALING
.subsections_via_symbols
