	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_capture_next
_vino_capture_next:                     ## @vino_capture_next
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%r12), %eax
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	testl	%eax, %eax
	je	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_3:
	testl	%eax, %eax
	je	LBB0_2
LBB0_4:
	leaq	8(%r12), %rbx
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_vino_queue_get_incoming
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	$0, (%r12)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_15:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpl	$0, -36(%rbp)
	je	LBB0_8
## %bb.10:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_vino_queue_peek
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rbx
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.13:
	movl	$1, (%r12)
LBB0_14:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_vino_capture
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	_dprintk
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vino_capture_next():\n"

L_.str.1:                               ## @.str.1
	.asciz	"vino_capture_next(): vino_queue_get_incoming() failed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"vino_capture_next(): no buffers available\n"

L_.str.3:                               ## @.str.3
	.asciz	"vino_capture_next(): vino_queue_peek() failed\n"

	.no_dead_strip	_vino_capture_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vino_capture_next
_vino_capture_next:                     ; @vino_capture_next
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
	cbz	w21, LBB0_3
; %bb.1:
	cbz	w8, LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w21, #0
	b	LBB0_8
LBB0_3:
	cbz	w8, LBB0_2
LBB0_4:
	add	x22, x19, #8
	add	x1, sp, #12
	mov	x0, x22
	bl	_vino_queue_get_incoming
	cbz	w0, LBB0_9
; %bb.5:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_dprintk
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	str	wzr, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_8:
	mov	x0, x21
	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_9:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_14
; %bb.10:
	add	x1, sp, #8
	mov	x0, x22
	bl	_vino_queue_peek
	cbz	x0, LBB0_15
; %bb.11:
	mov	x22, x0
	cbz	w21, LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x19]
LBB0_13:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x22
	bl	_vino_capture
	mov	x21, x0
	b	LBB0_8
LBB0_14:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
	mov	w21, #0
	b	LBB0_7
LBB0_15:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vino_capture_next():\n"

l_.str.1:                               ; @.str.1
	.asciz	"vino_capture_next(): vino_queue_get_incoming() failed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"vino_capture_next(): no buffers available\n"

l_.str.3:                               ; @.str.3
	.asciz	"vino_capture_next(): vino_queue_peek() failed\n"

	.no_dead_strip	_vino_capture_next
.subsections_via_symbols
