	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_buffer_queue
_uvc_buffer_queue:                      ## @uvc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_to_vb2_v4l2_buffer
	movq	%rax, %r14
	movl	(%r15), %edi
	callq	_vb2_get_drv_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_uvc_vbuf_to_buffer
	movq	%rax, %r12
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_UVC_QUEUE_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%rbx), %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	8(%r12), %rdi
	callq	_kref_init
	addq	$4, %r12
	addq	$8, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
	jmp	LBB0_3
LBB0_2:
	movq	_UVC_BUF_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vb2_buffer_done
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UVC_QUEUE_DISCONNECTED,4,2     ## @UVC_QUEUE_DISCONNECTED
	.comm	_UVC_BUF_STATE_ERROR,4,2        ## @UVC_BUF_STATE_ERROR
	.comm	_VB2_BUF_STATE_ERROR,4,2        ## @VB2_BUF_STATE_ERROR
	.no_dead_strip	_uvc_buffer_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_buffer_queue
_uvc_buffer_queue:                      ; @uvc_buffer_queue
	.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, x0
	bl	_to_vb2_v4l2_buffer
	mov	x19, x0
	ldr	w0, [x20]
	bl	_vb2_get_drv_priv
	mov	x21, x0
	mov	x0, x19
	bl	_uvc_vbuf_to_buffer
	mov	x22, x0
	add	x19, x21, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _UVC_QUEUE_DISCONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UVC_QUEUE_DISCONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x22, #8
	bl	_kref_init
	add	x0, x22, #4
	add	x1, x21, #8
	bl	_list_add_tail
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _UVC_BUF_STATE_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UVC_BUF_STATE_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x22]
Lloh6:
	adrp	x8, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_vb2_buffer_done
LBB0_3:
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_UVC_QUEUE_DISCONNECTED,4,2     ; @UVC_QUEUE_DISCONNECTED
	.comm	_UVC_BUF_STATE_ERROR,4,2        ; @UVC_BUF_STATE_ERROR
	.comm	_VB2_BUF_STATE_ERROR,4,2        ; @VB2_BUF_STATE_ERROR
	.no_dead_strip	_uvc_buffer_queue
.subsections_via_symbols
