	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_overlay_stop
_vmw_overlay_stop:                      ## @vmw_overlay_stop
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	cmpl	$0, 4(%r15,%rsi,8)
	je	LBB0_9
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	(%r15,%rsi,8), %rdi
	addq	$4, %rdi
	cmpl	$0, (%r15,%rsi,8)
	je	LBB0_2
LBB0_6:
	movl	$1, %eax
	testl	%r14d, %r14d
	jne	LBB0_8
## %bb.7:
	callq	_vmw_bo_unreference
	xorl	%eax, %eax
LBB0_8:
	movl	%eax, (%r15,%r13,8)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movl	%ecx, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%ecx, %edx
	callq	_vmw_overlay_send_stop
	testl	%eax, %eax
	je	LBB0_3
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	callq	_vmw_overlay_move_buffer
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_9
LBB0_5:
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_BUG_ON
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.no_dead_strip	_vmw_overlay_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_overlay_stop
_vmw_overlay_stop:                      ; @vmw_overlay_stop
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0]
	ldr	x8, [x8]
	add	x23, x8, x1, lsl #3
	mov	x20, x23
	ldr	w8, [x20, #4]!
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x2
	ldr	w8, [x23]
	cbz	w8, LBB0_5
; %bb.2:
	cbz	w19, LBB0_9
LBB0_3:
	mov	w8, #1
	b	LBB0_10
LBB0_4:
	mov	w0, #0
	b	LBB0_11
LBB0_5:
	mov	x21, x3
	mov	x22, x0
	mov	x2, x3
	bl	_vmw_overlay_send_stop
	cbnz	w0, LBB0_11
; %bb.6:
	ldr	w1, [x20]
	mov	x0, x22
	mov	w2, #0
	mov	x3, x21
	bl	_vmw_overlay_move_buffer
	cbz	w21, LBB0_8
; %bb.7:
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_11
LBB0_8:
	cmp	w0, #0
	cset	w0, ne
	bl	_BUG_ON
	cbnz	w19, LBB0_3
LBB0_9:
	mov	x0, x20
	bl	_vmw_bo_unreference
	mov	w8, #0
LBB0_10:
	mov	w0, #0
	str	w8, [x23]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.no_dead_strip	_vmw_overlay_stop
.subsections_via_symbols
