	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_v4l2_get_buffer_status
_vino_v4l2_get_buffer_status:           ## @vino_v4l2_get_buffer_status
	.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, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	20(%rsi), %esi
	callq	_vino_queue_outgoing_contains
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_V4L2_BUF_FLAG_QUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	(%rbx), %ecx
	movl	%ecx, (%rbx)
	movq	_V4L2_BUF_FLAG_DONE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	jmp	LBB0_6
LBB0_2:
	movl	20(%r14), %esi
	movq	%r15, %rdi
	callq	_vino_queue_incoming_contains
	movq	_V4L2_BUF_FLAG_DONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	notl	%ecx
	andl	(%rbx), %ecx
	movl	%ecx, (%rbx)
	movq	_V4L2_BUF_FLAG_QUEUED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	jmp	LBB0_6
LBB0_5:
	movq	_V4L2_BUF_FLAG_QUEUED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	(%rbx), %ecx
LBB0_6:
	movl	%ecx, (%rbx)
	movq	_V4L2_BUF_FLAG_TIMECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	cmpq	$0, (%r14)
	jle	LBB0_8
## %bb.7:
	movq	_V4L2_BUF_FLAG_MAPPED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
LBB0_8:
	movl	20(%r14), %eax
	movl	%eax, 32(%rbx)
	movq	(%r15), %rax
	movq	_VINO_MEMORY_MMAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.10:
	movq	_V4L2_MEMORY_MMAP@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_V4L2_MEMORY_USERPTR@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 24(%rbx)
	movl	12(%r14), %eax
	movl	%eax, 20(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	28(%r14), %eax
	movl	%eax, 8(%rbx)
	addq	$4, %rbx
	leaq	24(%r14), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	20(%r14), %esi
	movl	16(%r14), %edx
	movl	8(%r14), %r8d
	movl	12(%r14), %ecx
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dprintk                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_FLAG_QUEUED,4,2       ## @V4L2_BUF_FLAG_QUEUED
	.comm	_V4L2_BUF_FLAG_DONE,4,2         ## @V4L2_BUF_FLAG_DONE
	.comm	_V4L2_BUF_FLAG_TIMECODE,4,2     ## @V4L2_BUF_FLAG_TIMECODE
	.comm	_V4L2_BUF_FLAG_MAPPED,4,2       ## @V4L2_BUF_FLAG_MAPPED
	.comm	_VINO_MEMORY_MMAP,8,3           ## @VINO_MEMORY_MMAP
	.comm	_V4L2_MEMORY_MMAP,4,2           ## @V4L2_MEMORY_MMAP
	.comm	_V4L2_MEMORY_USERPTR,4,2        ## @V4L2_MEMORY_USERPTR
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buffer %d: length = %d, bytesused = %d, offset = %d\n"

	.no_dead_strip	_vino_v4l2_get_buffer_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vino_v4l2_get_buffer_status
_vino_v4l2_get_buffer_status:           ; @vino_v4l2_get_buffer_status
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w1, [x1, #20]
	bl	_vino_queue_outgoing_contains
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _V4L2_BUF_FLAG_QUEUED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_FLAG_QUEUED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
Lloh3:
	adrp	x9, _V4L2_BUF_FLAG_DONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_BUF_FLAG_DONE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	w1, [x19, #20]
	mov	x0, x21
	bl	_vino_queue_incoming_contains
Lloh5:
	adrp	x8, _V4L2_BUF_FLAG_DONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_BUF_FLAG_DONE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
Lloh8:
	adrp	x9, _V4L2_BUF_FLAG_QUEUED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_BUF_FLAG_QUEUED@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_5:
	str	w8, [x20]
Lloh10:
	adrp	x9, _V4L2_BUF_FLAG_TIMECODE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_BUF_FLAG_TIMECODE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x20]
	ldr	x9, [x19]
	cmp	x9, #1
	b.lt	LBB0_7
; %bb.6:
Lloh13:
	adrp	x9, _V4L2_BUF_FLAG_MAPPED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _V4L2_BUF_FLAG_MAPPED@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_7:
	ldr	w8, [x19, #20]
	str	w8, [x20, #32]
	ldr	x8, [x21]
Lloh16:
	adrp	x9, _VINO_MEMORY_MMAP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _VINO_MEMORY_MMAP@GOTPAGEOFF]
Lloh18:
	adrp	x10, _V4L2_MEMORY_MMAP@GOTPAGE
Lloh19:
	ldr	x10, [x10, _V4L2_MEMORY_MMAP@GOTPAGEOFF]
Lloh20:
	adrp	x11, _V4L2_MEMORY_USERPTR@GOTPAGE
Lloh21:
	ldr	x11, [x11, _V4L2_MEMORY_USERPTR@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	stp	w9, w8, [x20, #24]
	ldur	d0, [x19, #12]
	rev64.2s	v0, v0
	str	d0, [x20, #16]
Lloh23:
	adrp	x8, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x19, #28]
	stp	w9, w8, [x20, #8]
	add	x0, x20, #4
	add	x1, x19, #24
	mov	w2, #4
	bl	_memcpy
	ldp	w2, w1, [x19, #16]
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	ldp	w4, w3, [x19, #8]
	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
LBB0_8:
Lloh28:
	adrp	x9, _V4L2_BUF_FLAG_QUEUED@GOTPAGE
Lloh29:
	ldr	x9, [x9, _V4L2_BUF_FLAG_QUEUED@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20]
	bic	w8, w9, w8
	b	LBB0_5
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_FLAG_QUEUED,4,2       ; @V4L2_BUF_FLAG_QUEUED
	.comm	_V4L2_BUF_FLAG_DONE,4,2         ; @V4L2_BUF_FLAG_DONE
	.comm	_V4L2_BUF_FLAG_TIMECODE,4,2     ; @V4L2_BUF_FLAG_TIMECODE
	.comm	_V4L2_BUF_FLAG_MAPPED,4,2       ; @V4L2_BUF_FLAG_MAPPED
	.comm	_VINO_MEMORY_MMAP,8,3           ; @VINO_MEMORY_MMAP
	.comm	_V4L2_MEMORY_MMAP,4,2           ; @V4L2_MEMORY_MMAP
	.comm	_V4L2_MEMORY_USERPTR,4,2        ; @V4L2_MEMORY_USERPTR
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buffer %d: length = %d, bytesused = %d, offset = %d\n"

	.no_dead_strip	_vino_v4l2_get_buffer_status
.subsections_via_symbols
