	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_overlay_ioctl              ## -- Begin function vmw_overlay_ioctl
	.p2align	4, 0x90
_vmw_overlay_ioctl:                     ## @vmw_overlay_ioctl
	.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, %r15
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	callq	_vmw_fpriv
	movq	(%rax), %r12
	movq	%rbx, %rdi
	callq	_vmw_priv
	movq	%rax, %r13
	movq	(%rax), %rbx
	movq	%rax, %rdi
	callq	_vmw_overlay_available
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	4(%r15), %r14
	leaq	-64(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_vmw_user_stream_lookup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_lock
	cmpl	$0, 8(%r15)
	je	LBB0_4
## %bb.5:
	movl	(%r15), %esi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_vmw_user_bo_lookup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_vmw_overlay_update_stream
	movl	%eax, %ebx
	leaq	-56(%rbp), %rdi
	callq	_vmw_bo_unreference
	jmp	LBB0_7
LBB0_1:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movl	(%r14), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_vmw_overlay_stop
	movl	%eax, %ebx
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	leaq	-64(%rbp), %rdi
	callq	_vmw_resource_unreference
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_overlay_ioctl              ; -- Begin function vmw_overlay_ioctl
	.p2align	2
_vmw_overlay_ioctl:                     ; @vmw_overlay_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x2
	bl	_vmw_fpriv
	ldr	x22, [x0]
	mov	x0, x19
	bl	_vmw_priv
	mov	x21, x0
	ldr	x19, [x0]
	bl	_vmw_overlay_available
	cbz	w0, LBB0_5
; %bb.1:
	add	x24, x20, #4
	mov	x3, sp
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	bl	_vmw_user_stream_lookup
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x22
	mov	x3, #0
	bl	_vmw_user_bo_lookup
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	x1, [sp, #8]
	mov	x0, x21
	mov	x2, x20
	mov	w3, #1
	bl	_vmw_overlay_update_stream
	mov	x23, x0
	add	x0, sp, #8
	bl	_vmw_bo_unreference
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_8
LBB0_6:
	ldr	w1, [x24]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #1
	bl	_vmw_overlay_stop
	mov	x23, x0
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, sp
	bl	_vmw_resource_unreference
LBB0_8:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
.subsections_via_symbols
