	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_poll
_vino_poll:                             ## @vino_poll
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_video_drvdata
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_vino_queue_get_outgoing
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_POLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	testl	%eax, %eax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dprintk
	cmpl	$0, -28(%rbp)
	je	LBB0_7
## %bb.6:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_poll_wait
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_vino_queue_get_outgoing
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	movl	-28(%rbp), %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"poll():\n"

L_.str.1:                               ## @.str.1
	.asciz	"poll(): vino_queue_get_outgoing() failed\n"

	.comm	_POLLERR,4,2                    ## @POLLERR
L_.str.2:                               ## @.str.2
	.asciz	"poll(): data %savailable\n"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"not "

	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.no_dead_strip	_vino_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vino_poll
_vino_poll:                             ; @vino_poll
	.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	x20, x1
	mov	x21, x0
	bl	_video_drvdata
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	add	x1, sp, #12
	mov	x0, x19
	bl	_vino_queue_get_outgoing
	cbz	x0, LBB0_2
LBB0_1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
Lloh4:
	adrp	x8, _POLLERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _POLLERR@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_2:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
LBB0_3:
Lloh7:
	adrp	x9, l_.str.3@PAGE
Lloh8:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh9:
	adrp	x10, l_.str.4@PAGE
Lloh10:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	w8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.4:
Lloh13:
	adrp	x8, _POLLIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh17:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w0, w9, w8
	b	LBB0_8
LBB0_5:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_poll_wait
	add	x1, sp, #12
	mov	x0, x19
	bl	_vino_queue_get_outgoing
	cbnz	x0, LBB0_1
; %bb.6:
	ldr	w8, [sp, #12]
	b	LBB0_3
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"poll():\n"

l_.str.1:                               ; @.str.1
	.asciz	"poll(): vino_queue_get_outgoing() failed\n"

	.comm	_POLLERR,4,2                    ; @POLLERR
l_.str.2:                               ; @.str.2
	.asciz	"poll(): data %savailable\n"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"not "

	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.no_dead_strip	_vino_poll
.subsections_via_symbols
