	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_framebuffer_bo_dirty
_vmw_framebuffer_bo_dirty:              ## @vmw_framebuffer_bo_dirty
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movl	8(%rdi), %edi
	callq	_vmw_priv
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_vmw_framebuffer_to_vfbd
	movq	%rax, %r15
	movl	4(%r14), %edi
	callq	_drm_modeset_lock_all
	movq	%r14, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ttm_read_lock
	movl	%eax, %r13d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	testl	%r9d, %r9d
	je	LBB0_2
## %bb.3:
	movq	_DRM_MODE_FB_DIRTY_ANNOTATE_COPY@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	testl	%ecx, (%rax)
	sete	%dl
	setne	%cl
	shrl	%cl, %r9d
	movl	$2, %eax
	subl	%edx, %eax
	cmpl	$128, (%r14)
	jne	LBB0_6
LBB0_5:
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vmw_kms_ldu_do_bo_dirty
	movl	%eax, %r13d
	jmp	LBB0_7
LBB0_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	movl	4(%r12), %eax
	movl	%eax, -76(%rbp)
	movl	(%r12), %eax
	movl	%eax, -80(%rbp)
	leaq	-80(%rbp), %r8
	movl	$1, %r9d
	movl	$1, %eax
	cmpl	$128, (%r14)
	je	LBB0_5
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN_ONCE
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_vmw_fifo_flush
	movq	%rbx, %rdi
	callq	_ttm_read_unlock
LBB0_8:
	movl	4(%r14), %edi
	callq	_drm_modeset_unlock_all
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FB_DIRTY_ANNOTATE_COPY,4,2 ## @DRM_MODE_FB_DIRTY_ANNOTATE_COPY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dirty called with invalid display system.\n"

	.no_dead_strip	_vmw_framebuffer_bo_dirty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_framebuffer_bo_dirty
_vmw_framebuffer_bo_dirty:              ; @vmw_framebuffer_bo_dirty
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x5
	mov	x21, x4
	mov	x26, x2
	mov	x25, x0
	ldr	w0, [x0, #8]
	bl	_vmw_priv
	mov	x19, x0
	mov	x0, x25
	bl	_vmw_framebuffer_to_vfbd
	mov	x22, x0
	ldr	w0, [x19, #4]
	bl	_drm_modeset_lock_all
	add	x20, x19, #8
	mov	x0, x20
	mov	w1, #1
	bl	_ttm_read_lock
	mov	x23, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.1:
	cbz	w24, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _DRM_MODE_FB_DIRTY_ANNOTATE_COPY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_FB_DIRTY_ANNOTATE_COPY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w26
	cset	w8, ne
	lsr	w5, w24, w8
	mov	w8, #1
	cinc	w6, w8, ne
	b	LBB0_4
LBB0_3:
	stp	xzr, xzr, [sp, #16]
	ldr	d0, [x25]
	str	d0, [sp, #8]
	add	x21, sp, #8
	mov	w5, #1
	mov	w6, #1
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	mov	w3, #0
	mov	x4, x21
	bl	_vmw_kms_ldu_do_bo_dirty
	mov	x23, x0
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN_ONCE
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	bl	_vmw_fifo_flush
	mov	x0, x20
	bl	_ttm_read_unlock
LBB0_8:
	ldr	w0, [x19, #4]
	bl	_drm_modeset_unlock_all
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FB_DIRTY_ANNOTATE_COPY,4,2 ; @DRM_MODE_FB_DIRTY_ANNOTATE_COPY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dirty called with invalid display system.\n"

	.no_dead_strip	_vmw_framebuffer_bo_dirty
.subsections_via_symbols
