	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmw_overlay_unref              ## -- Begin function vmw_overlay_unref
	.p2align	4, 0x90
_vmw_overlay_unref:                     ## @vmw_overlay_unref
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	movq	_VMW_MAX_NUM_STREAMS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rsi, (%rax)
	setbe	%dil
	callq	_BUG_ON
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax,%r14,4)
	sete	%dil
	callq	_WARN_ON
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vmw_overlay_stop
	movq	8(%rbx), %rax
	movl	$0, (%rax,%r14,4)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	jmp	LBB0_3
LBB0_1:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_3:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMW_MAX_NUM_STREAMS,8,3        ## @VMW_MAX_NUM_STREAMS
	.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_unref              ; -- Begin function vmw_overlay_unref
	.p2align	2
_vmw_overlay_unref:                     ; @vmw_overlay_unref
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _VMW_MAX_NUM_STREAMS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMW_MAX_NUM_STREAMS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	cset	w0, ls
	bl	_BUG_ON
	cbz	x19, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	lsl	x22, x20, #2
	ldr	w8, [x8, x22]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_vmw_overlay_stop
	ldr	x8, [x19, #8]
	str	wzr, [x8, x22]
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VMW_MAX_NUM_STREAMS,8,3        ; @VMW_MAX_NUM_STREAMS
	.comm	_ENOSYS,4,2                     ; @ENOSYS
.subsections_via_symbols
