	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_kms_present                ## -- Begin function vmw_kms_present
	.p2align	4, 0x90
_vmw_kms_present:                       ## @vmw_kms_present
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %rax
	movq	%rdi, %r14
	movl	32(%rbp), %ebx
	movq	24(%rbp), %rcx
	movl	16(%rbp), %r10d
	movl	(%rdi), %edi
	cmpl	$129, %edi
	je	LBB0_3
## %bb.1:
	cmpl	$128, %edi
	jne	LBB0_5
## %bb.2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rsp)
	movl	%ebx, 8(%rsp)
	movl	%r10d, (%rsp)
	movl	$1, 16(%rsp)
	movq	%r14, %rdi
	movq	%rdx, %rsi
	xorl	%edx, %edx
	movq	%rax, %r8
	callq	_vmw_kms_stdu_surface_dirty
	jmp	LBB0_4
LBB0_3:
	movl	%ebx, 16(%rsp)
	movq	%rcx, 8(%rsp)
	movl	%r10d, (%rsp)
	movq	%r14, %rdi
	movq	%rax, %rcx
	callq	_vmw_kms_generic_present
LBB0_4:
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jne	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_vmw_fifo_flush
LBB0_7:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN_ONCE
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_7
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Present called with invalid display system.\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_kms_present                ; -- Begin function vmw_kms_present
	.p2align	2
_vmw_kms_present:                       ; @vmw_kms_present
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x9, x3
	mov	x19, x0
	ldr	w8, [x29, #16]
	ldr	w10, [x0]
	cmp	w10, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w10, #128
	b.ne	LBB0_4
; %bb.2:
	stp	xzr, xzr, [sp, #8]
	mov	w10, #1
	str	w10, [sp]
	mov	x0, x19
	mov	x1, x2
	mov	x2, #0
	mov	x3, x7
	mov	x4, x9
	mov	x7, x8
	bl	_vmw_kms_stdu_surface_dirty
	mov	x20, x0
	cbnz	w20, LBB0_6
	b	LBB0_5
LBB0_3:
	str	w8, [sp]
	mov	x0, x19
	mov	x3, x9
	bl	_vmw_kms_generic_present
	mov	x20, x0
	cbnz	w20, LBB0_6
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN_ONCE
Lloh2:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	cbnz	w20, LBB0_6
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	bl	_vmw_fifo_flush
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Present called with invalid display system.\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
.subsections_via_symbols
