	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_stdu_primary_plane_atomic_update
_vmw_stdu_primary_plane_atomic_update:  ## @vmw_stdu_primary_plane_atomic_update
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	callq	_vmw_plane_state_to_vps
	movq	%rax, %rbx
	movq	(%r13), %rax
	movq	8(%rax), %r15
	movq	$0, -48(%rbp)
	testq	%r15, %r15
	je	LBB0_13
## %bb.1:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.2:
	callq	_vmw_framebuffer_to_vfb
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_vmw_crtc_to_stdu
	movq	%rax, %r12
	movl	8(%r15), %edi
	callq	_vmw_priv
	movq	8(%rbx), %rdx
	movq	%rdx, 8(%r12)
	movl	4(%rbx), %ecx
	movl	%ecx, 20(%r12)
	movl	(%rbx), %ecx
	movq	%rax, %rbx
	movl	%ecx, 16(%r12)
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_vmw_stdu_bind_st
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_4:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rcx)
	je	LBB0_6
## %bb.5:
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_vmw_stdu_plane_update_bo
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
LBB0_9:
	movq	(%r15), %rax
	movq	(%rax), %r8
	movq	-48(%rbp), %rsi
	testq	%r8, %r8
	je	LBB0_20
## %bb.10:
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.11:
	leaq	8(%r8), %rdx
	movq	8(%r8), %rdi
	leaq	4(%r8), %rcx
	movl	$1, %r9d
	callq	_vmw_event_fence_action_queue
	testl	%eax, %eax
	je	LBB0_18
## %bb.12:
	leaq	L_.str.3(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_19
LBB0_13:
	movq	(%r14), %rbx
	movq	%rbx, %rdi
	callq	_vmw_crtc_to_stdu
	movq	%rax, %r15
	movl	8(%rbx), %edi
	callq	_vmw_priv
	cmpl	$0, (%r15)
	je	LBB0_22
## %bb.14:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_vmw_stdu_bind_st
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
LBB0_16:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vmw_stdu_update_st
	testl	%eax, %eax
	je	LBB0_22
## %bb.17:
	leaq	L_.str.1(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_6:
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_vmw_stdu_plane_update_surface
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_9
LBB0_18:
	movq	(%r15), %rax
	movq	$0, (%rax)
LBB0_19:
	movq	-48(%rbp), %rsi
LBB0_20:
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.21:
	leaq	-48(%rbp), %rdi
	callq	_vmw_fence_obj_unreference
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to bind surface to STDU.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to update STDU.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to blank STDU\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to queue event on fence.\n"

	.no_dead_strip	_vmw_stdu_primary_plane_atomic_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_stdu_primary_plane_atomic_update
_vmw_stdu_primary_plane_atomic_update:  ; @vmw_stdu_primary_plane_atomic_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x0]
	bl	_vmw_plane_state_to_vps
	ldr	x8, [x21]
	ldr	x19, [x8, #8]
	str	xzr, [sp, #8]
	cbz	x19, LBB0_10
; %bb.1:
	mov	x24, x0
	ldr	x0, [x8]
	cbz	x0, LBB0_10
; %bb.2:
	bl	_vmw_framebuffer_to_vfb
	mov	x22, x0
	mov	x0, x19
	bl	_vmw_crtc_to_stdu
	mov	x25, x0
	ldr	w0, [x19, #8]
	bl	_vmw_priv
	mov	x23, x0
	ldr	x2, [x24, #8]
	str	x2, [x25, #8]
	ldr	d0, [x24]
	str	d0, [x25, #16]
	mov	x1, x25
	bl	_vmw_stdu_bind_st
	cbz	w0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_4:
	ldr	x8, [x22]
	cbz	x8, LBB0_15
; %bb.5:
	add	x4, sp, #8
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_vmw_stdu_plane_update_bo
	cbz	w0, LBB0_7
LBB0_6:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_7:
	ldr	x8, [x19]
	ldr	x4, [x8]
	ldr	x1, [sp, #8]
	cmp	x4, #0
	ccmp	x1, #0, #4, ne
	b.eq	LBB0_18
; %bb.8:
	mov	x2, x4
	ldr	x0, [x2, #8]!
	add	x3, x4, #4
	mov	w5, #1
	bl	_vmw_event_fence_action_queue
	cbz	w0, LBB0_16
; %bb.9:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_17
LBB0_10:
	ldr	x20, [x20]
	mov	x0, x20
	bl	_vmw_crtc_to_stdu
	mov	x19, x0
	ldr	w0, [x20, #8]
	bl	_vmw_priv
	ldr	w8, [x19]
	cbz	w8, LBB0_20
; %bb.11:
	mov	x20, x0
	mov	x1, x19
	mov	x2, #0
	bl	_vmw_stdu_bind_st
	cbz	w0, LBB0_13
; %bb.12:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_vmw_stdu_update_st
	cbz	w0, LBB0_20
; %bb.14:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_DRM_ERROR
LBB0_15:
	add	x4, sp, #8
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_vmw_stdu_plane_update_surface
	cbnz	w0, LBB0_6
	b	LBB0_7
LBB0_16:
	ldr	x8, [x19]
	str	xzr, [x8]
LBB0_17:
	ldr	x1, [sp, #8]
LBB0_18:
	cbz	x1, LBB0_20
; %bb.19:
	add	x0, sp, #8
	bl	_vmw_fence_obj_unreference
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to bind surface to STDU.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to update STDU.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to blank STDU\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to queue event on fence.\n"

	.no_dead_strip	_vmw_stdu_primary_plane_atomic_update
.subsections_via_symbols
