	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_capture
_vino_capture:                          ## @vino_capture
	.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	%rsi, %r15
	movq	%rdi, %r14
	leaq	8(%rsi), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_VINO_FRAMEBUFFER_IN_USE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	cmpq	%rax, (%r15)
	cmovnel	%edx, %ebx
	movq	%rax, (%r15)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_vino_drvdata@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_spin_lock_irqsave
	movq	(%r12), %rdi
	addq	$4, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vino_dma_setup
	movq	%r14, %rdi
	callq	_vino_dma_start
	movq	(%r12), %rdi
	addq	$4, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r12), %rdi
	callq	_spin_unlock_irqrestore
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VINO_FRAMEBUFFER_IN_USE,8,3    ## @VINO_FRAMEBUFFER_IN_USE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_vino_drvdata,8,3               ## @vino_drvdata
	.no_dead_strip	_vino_capture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vino_capture
_vino_capture:                          ; @vino_capture
	.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	x21, x1
	mov	x20, x0
	add	x22, x1, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _VINO_FRAMEBUFFER_IN_USE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VINO_FRAMEBUFFER_IN_USE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _EBUSY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x8, x9
	csneg	w19, wzr, w10, ne
	str	x9, [x21]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cbnz	w19, LBB0_2
; %bb.1:
Lloh6:
	adrp	x22, _vino_drvdata@GOTPAGE
Lloh7:
	ldr	x22, [x22, _vino_drvdata@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_spin_lock_irqsave
	ldr	x8, [x22]
	add	x0, x8, #4
	bl	_spin_lock_irqsave
	mov	x0, x20
	mov	x1, x21
	bl	_vino_dma_setup
	mov	x0, x20
	bl	_vino_dma_start
	ldr	x8, [x22]
	add	x0, x8, #4
	bl	_spin_unlock_irqrestore
	ldr	x0, [x22]
	bl	_spin_unlock_irqrestore
LBB0_2:
	mov	x0, x19
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VINO_FRAMEBUFFER_IN_USE,8,3    ; @VINO_FRAMEBUFFER_IN_USE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_vino_drvdata,8,3               ; @vino_drvdata
	.no_dead_strip	_vino_capture
.subsections_via_symbols
