	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_stdu_crtc_atomic_disable
_vmw_stdu_crtc_atomic_disable:          ## @vmw_stdu_crtc_atomic_disable
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	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
	callq	_vmw_crtc_to_stdu
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_vmw_priv
	cmpq	$0, 8(%r15)
	je	LBB0_7
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_vmw_stdu_bind_st
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
LBB0_4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vmw_stdu_update_st
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vmw_stdu_destroy_st
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
LBB0_6:
	movq	_SAME_AS_DISPLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rdi
	jmp	_DRM_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CRTC is NULL\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to blank CRTC\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to destroy Screen Target\n"

	.comm	_SAME_AS_DISPLAY,4,2            ## @SAME_AS_DISPLAY
	.no_dead_strip	_vmw_stdu_crtc_atomic_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_stdu_crtc_atomic_disable
_vmw_stdu_crtc_atomic_disable:          ; @vmw_stdu_crtc_atomic_disable
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_8
; %bb.1:
	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	x20, x0
	bl	_vmw_crtc_to_stdu
	mov	x19, x0
	ldr	w0, [x20]
	bl	_vmw_priv
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x20, x0
	mov	x1, x19
	mov	x2, #0
	bl	_vmw_stdu_bind_st
	cbz	w0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_vmw_stdu_update_st
	mov	x0, x20
	mov	x1, x19
	bl	_vmw_stdu_destroy_st
	cbz	w0, LBB0_6
; %bb.5:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
LBB0_6:
Lloh4:
	adrp	x8, _SAME_AS_DISPLAY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SAME_AS_DISPLAY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	b	_DRM_ERROR
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CRTC is NULL\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to blank CRTC\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to destroy Screen Target\n"

	.comm	_SAME_AS_DISPLAY,4,2            ; @SAME_AS_DISPLAY
	.no_dead_strip	_vmw_stdu_crtc_atomic_disable
.subsections_via_symbols
