	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_streamon
_vino_streamon:                         ## @vino_streamon
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_video_drvdata
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_2:
	movq	%rax, %r14
	xorl	%ebx, %ebx
	cmpl	$0, (%rax)
	je	LBB0_3
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_vino_queue_get_length
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	leaq	-28(%rbp), %rsi
	movq	%r15, %rdi
	callq	_vino_queue_get_incoming
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_10
LBB0_7:
	movl	$1, (%r14)
	cmpl	$0, -28(%rbp)
	je	LBB0_12
## %bb.8:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_vino_capture_next
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movl	$0, (%r14)
	leaq	L_.str.2(%rip), %rdi
LBB0_10:
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no buffers allocated\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"vino_queue_get_incoming() failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't start capture\n"

	.no_dead_strip	_vino_streamon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vino_streamon
_vino_streamon:                         ; @vino_streamon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	bl	_video_drvdata
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	add	x20, x19, #4
	mov	x0, x20
	bl	_vino_queue_get_length
	cmp	w0, #0
	b.le	LBB0_9
; %bb.7:
	add	x1, sp, #12
	mov	x0, x20
	bl	_vino_queue_get_incoming
	cbz	w0, LBB0_10
; %bb.8:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_9:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_10:
	mov	w8, #1
	str	w8, [x19]
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_4
; %bb.11:
	mov	x0, x19
	mov	w1, #1
	bl	_vino_capture_next
	cbz	w0, LBB0_5
; %bb.12:
	str	wzr, [x19]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_dprintk
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no buffers allocated\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"vino_queue_get_incoming() failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't start capture\n"

	.no_dead_strip	_vino_streamon
.subsections_via_symbols
