	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_vbs
_free_vbs:                              ## @free_vbs
	.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	(%rdi), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.2:
	movq	_VB2_BUF_STATE_DONE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_v4l2_m2m_buf_done
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	cmpq	16(%rax), %rdi
	je	LBB0_5
## %bb.4:
	movl	(%r15), %esi
	callq	_v4l2_m2m_buf_done
	movq	(%rbx), %rax
LBB0_5:
	movq	$0, 16(%rax)
	movq	(%rbx), %rax
	movq	$0, 8(%rax)
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VB2_BUF_STATE_DONE,4,2         ## @VB2_BUF_STATE_DONE
	.no_dead_strip	_free_vbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_vbs
_free_vbs:                              ; @free_vbs
	.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
	ldr	x8, [x0]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x21, _VB2_BUF_STATE_DONE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VB2_BUF_STATE_DONE@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_v4l2_m2m_buf_done
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x9, [x8, #16]
	cmp	x0, x9
	b.eq	LBB0_5
; %bb.4:
	ldr	w1, [x21]
	bl	_v4l2_m2m_buf_done
	ldr	x8, [x19]
LBB0_5:
	str	xzr, [x8, #16]
	ldr	x8, [x19]
	str	xzr, [x8, #8]
LBB0_6:
	mov	x0, x20
	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
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VB2_BUF_STATE_DONE,4,2         ; @VB2_BUF_STATE_DONE
	.no_dead_strip	_free_vbs
.subsections_via_symbols
