	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_capture_stop
_vino_capture_stop:                     ## @vino_capture_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	$0, 8(%r14)
	movq	_vino_drvdata@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	callq	_vino_dma_stop
	movq	%r14, %rdi
	callq	_vino_clear_interrupt
	movq	(%rbx), %rdi
	callq	_spin_unlock_irqrestore
	leaq	4(%r14), %rbx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_vino_queue_get_incoming
	leaq	L_.str.1(%rip), %r15
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -48(%rbp)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_vino_queue_transfer
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_vino_queue_get_incoming
	testq	%rax, %rax
	je	LBB0_2
	jmp	LBB0_8
LBB0_4:
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_vino_queue_get_outgoing
	leaq	L_.str.2(%rip), %r15
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	leaq	-52(%rbp), %r12
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -44(%rbp)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_vino_queue_remove
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_vino_queue_get_outgoing
	testq	%rax, %rax
	je	LBB0_6
LBB0_8:
	movq	%r15, %rdi
	callq	_dprintk
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vino_capture_stop():\n"

	.comm	_vino_drvdata,8,3               ## @vino_drvdata
L_.str.1:                               ## @.str.1
	.asciz	"vino_capture_stop(): vino_queue_get_incoming() failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"vino_capture_stop(): vino_queue_get_outgoing() failed\n"

	.no_dead_strip	_vino_capture_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vino_capture_stop
_vino_capture_stop:                     ; @vino_capture_stop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	bl	_spin_lock_irqsave
	str	xzr, [x19, #8]
Lloh2:
	adrp	x20, _vino_drvdata@GOTPAGE
Lloh3:
	ldr	x20, [x20, _vino_drvdata@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_vino_dma_stop
	mov	x0, x19
	bl	_vino_clear_interrupt
	ldr	x0, [x20]
	bl	_spin_unlock_irqrestore
	add	x20, x19, #4
	add	x1, sp, #12
	mov	x0, x20
	bl	_vino_queue_get_incoming
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
	cbz	x0, LBB0_4
LBB0_1:
	mov	x0, x21
	bl	_dprintk
LBB0_2:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	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
	add	sp, sp, #64
	ret
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_vino_queue_transfer
	add	x1, sp, #12
	mov	x0, x20
	bl	_vino_queue_get_incoming
	cbnz	x0, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_3
; %bb.5:
	add	x1, sp, #8
	mov	x0, x20
	bl	_vino_queue_get_outgoing
Lloh6:
	adrp	x21, l_.str.2@PAGE
Lloh7:
	add	x21, x21, l_.str.2@PAGEOFF
	cbnz	x0, LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #4
	mov	x0, x20
	bl	_vino_queue_remove
	add	x1, sp, #8
	mov	x0, x20
	bl	_vino_queue_get_outgoing
	cbz	x0, LBB0_6
	b	LBB0_1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vino_capture_stop():\n"

	.comm	_vino_drvdata,8,3               ; @vino_drvdata
l_.str.1:                               ; @.str.1
	.asciz	"vino_capture_stop(): vino_queue_get_incoming() failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"vino_capture_stop(): vino_queue_get_outgoing() failed\n"

	.no_dead_strip	_vino_capture_stop
.subsections_via_symbols
