	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_frame_done
_vino_frame_done:                       ## @vino_frame_done
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	12(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	callq	_vino_queue_transfer
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testq	%r12, %r12
	je	LBB0_4
## %bb.1:
	leaq	4(%r14), %rsi
	movl	8(%r14), %eax
	movl	%eax, 16(%r12)
	leaq	12(%r12), %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%r12, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	(%r12), %rax
	movq	_VINO_FRAMEBUFFER_IN_USE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_VINO_FRAMEBUFFER_READY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
LBB0_3:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_wake_up
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vino_capture_next              ## TAILCALL
LBB0_4:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dprintk                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vino_frame_done(): vino_queue_transfer() failed!\n"

	.comm	_VINO_FRAMEBUFFER_IN_USE,8,3    ## @VINO_FRAMEBUFFER_IN_USE
	.comm	_VINO_FRAMEBUFFER_READY,8,3     ## @VINO_FRAMEBUFFER_READY
	.no_dead_strip	_vino_frame_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vino_frame_done
_vino_frame_done:                       ; @vino_frame_done
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	add	x21, x0, #12
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_vino_queue_transfer
	mov	x20, x0
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	x20, LBB0_4
; %bb.1:
	add	x1, x19, #4
	ldr	w8, [x19, #8]
	str	w8, [x20, #16]
	add	x0, x20, #12
	mov	w2, #4
	bl	_memcpy
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _VINO_FRAMEBUFFER_IN_USE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VINO_FRAMEBUFFER_IN_USE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _VINO_FRAMEBUFFER_READY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VINO_FRAMEBUFFER_READY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_3:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_wake_up
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_vino_capture_next
LBB0_4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dprintk
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vino_frame_done(): vino_queue_transfer() failed!\n"

	.comm	_VINO_FRAMEBUFFER_IN_USE,8,3    ; @VINO_FRAMEBUFFER_IN_USE
	.comm	_VINO_FRAMEBUFFER_READY,8,3     ; @VINO_FRAMEBUFFER_READY
	.no_dead_strip	_vino_frame_done
.subsections_via_symbols
