	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_reqbufs
_vino_reqbufs:                          ## @vino_reqbufs
	.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	%rdx, %r15
	callq	_video_drvdata
	cmpq	$0, 16(%rax)
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_2:
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	_V4L2_MEMORY_MMAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movl	8(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dprintk
	cmpl	$0, 8(%r15)
	jle	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	callq	_vino_is_capturing
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	movq	$0, 8(%r14)
	movq	%r14, %rdi
	callq	_vino_capture_stop
	movq	%r14, %rdi
	callq	_vino_queue_free
	jmp	LBB0_12
LBB0_8:
	movq	%r14, %rdi
	callq	_vino_queue_has_mapped_buffers
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
LBB0_10:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	addq	$8, %r15
	movq	$0, 8(%r14)
	movq	%r14, %rdi
	callq	_vino_queue_free
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vino_queue_init
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_V4L2_MEMORY_MMAP,8,3           ## @V4L2_MEMORY_MMAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"type not mmap\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"count = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"busy, capturing\n"

L_.str.3:                               ## @.str.3
	.asciz	"busy, buffers still mapped\n"

	.no_dead_strip	_vino_reqbufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vino_reqbufs
_vino_reqbufs:                          ; @vino_reqbufs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x2
	bl	_video_drvdata
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _V4L2_MEMORY_MMAP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_MEMORY_MMAP@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	mov	x19, x0
	ldr	w8, [x20, #8]!
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_vino_is_capturing
	cbz	x0, LBB0_10
; %bb.5:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
	b	LBB0_1
LBB0_6:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_vino_capture_stop
	mov	x0, x19
	bl	_vino_queue_free
	b	LBB0_13
LBB0_10:
	mov	x0, x19
	bl	_vino_queue_has_mapped_buffers
	cbz	x0, LBB0_12
; %bb.11:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dprintk
	b	LBB0_1
LBB0_12:
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_vino_queue_free
	mov	x0, x19
	mov	x1, x20
	bl	_vino_queue_init
LBB0_13:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_V4L2_MEMORY_MMAP,8,3           ; @V4L2_MEMORY_MMAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"type not mmap\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"count = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"busy, capturing\n"

l_.str.3:                               ; @.str.3
	.asciz	"busy, buffers still mapped\n"

	.no_dead_strip	_vino_reqbufs
.subsections_via_symbols
