	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_dqbuf
_vino_dqbuf:                            ## @vino_dqbuf
	.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
	movq	%rdx, %r14
	movq	%rdi, %rbx
	callq	_video_drvdata
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_2:
	movq	%rax, %r15
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	(%rbx), %r12d
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_vino_queue_get_incoming
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_5:
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	callq	_vino_queue_get_outgoing
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_20:
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	cmpl	$0, -36(%rbp)
	je	LBB0_8
LBB0_14:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vino_queue_remove
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_vino_check_buffer
	movl	%eax, %r12d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_vino_v4l2_get_buffer_status
	testl	%r12d, %r12d
	je	LBB0_17
LBB0_18:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_8:
	cmpl	$0, -40(%rbp)
	je	LBB0_9
## %bb.10:
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_15:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_4
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_4
LBB0_12:
	movq	%r15, %rdi
	callq	_vino_wait_for_frame
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_vino_wait_for_frame
	testl	%eax, %eax
	jne	LBB0_18
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vino_queue_get_incoming() failed\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"incoming = %d, outgoing = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"no incoming or outgoing buffers\n"

L_.str.4:                               ## @.str.4
	.asciz	"non-blocking I/O was selected and there are no buffers to dequeue\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EIO,4,2                        ## @EIO
L_.str.5:                               ## @.str.5
	.asciz	"vino_queue_remove() failed\n"

	.no_dead_strip	_vino_dqbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vino_dqbuf
_vino_dqbuf:                            ; @vino_dqbuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x21, x0
	bl	_video_drvdata
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x20, x0
	ldr	w21, [x21]
Lloh2:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	add	x1, sp, #28
	bl	_vino_queue_get_incoming
	cbz	w0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	add	x1, sp, #24
	mov	x0, x20
	bl	_vino_queue_get_outgoing
	cbz	w0, LBB0_9
; %bb.5:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_dprintk
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	ldp	w9, w8, [sp, #24]
	stp	x8, x9, [sp]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_13
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_vino_queue_remove
	cbz	x0, LBB0_16
; %bb.11:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_vino_check_buffer
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_vino_v4l2_get_buffer_status
	cbz	w22, LBB0_17
LBB0_12:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_13:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_18
; %bb.14:
	and	w8, w22, w21
	cbz	w8, LBB0_19
; %bb.15:
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_dprintk
Lloh17:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_7
LBB0_16:
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_17:
	mov	w0, #0
	b	LBB0_8
LBB0_18:
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_19:
	mov	x0, x20
	bl	_vino_wait_for_frame
	cbz	w0, LBB0_10
; %bb.20:
	mov	x0, x20
	bl	_vino_wait_for_frame
	cbnz	w0, LBB0_12
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vino_queue_get_incoming() failed\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"incoming = %d, outgoing = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"no incoming or outgoing buffers\n"

l_.str.4:                               ; @.str.4
	.asciz	"non-blocking I/O was selected and there are no buffers to dequeue\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EIO,4,2                        ; @EIO
l_.str.5:                               ; @.str.5
	.asciz	"vino_queue_remove() failed\n"

	.no_dead_strip	_vino_dqbuf
.subsections_via_symbols
