	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsp1_video_buffer_queue
_vsp1_video_buffer_queue:               ## @vsp1_video_buffer_queue
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_vb2_v4l2_buffer
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_vb2_get_drv_priv
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_to_vsp1_vb2_buffer
	movq	%rax, %r12
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	leaq	20(%rbx), %r13
	movq	%r13, %rdi
	callq	_list_empty
	movl	%eax, %r14d
	leaq	4(%r12), %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.1:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	(%r12), %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movb	(%rbx), %cl
	movl	$1, %eax
	shll	%cl, %eax
	orl	%eax, (%r14)
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_vb2_is_streaming
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_vsp1_pipeline_ready
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_vsp1_video_pipeline_run
LBB0_4:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vsp1_video_buffer_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsp1_video_buffer_queue
_vsp1_video_buffer_queue:               ; @vsp1_video_buffer_queue
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_to_vb2_v4l2_buffer
	mov	x21, x0
	ldr	w0, [x19]
	bl	_vb2_get_drv_priv
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8, #8]
	mov	x0, x21
	bl	_to_vsp1_vb2_buffer
	mov	x22, x0
	add	x21, x20, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x23, x20, #20
	mov	x0, x23
	bl	_list_empty
	mov	x24, x0
	add	x0, x22, #4
	mov	x1, x23
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	w24, LBB0_5
; %bb.1:
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x22]
	ldr	x9, [x20, #8]
	str	w8, [x9]
	ldr	w8, [x20]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	add	x0, x20, #4
	bl	_vb2_is_streaming
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_vsp1_pipeline_ready
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_vsp1_video_pipeline_run
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vsp1_video_buffer_queue
.subsections_via_symbols
