	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp9_ref_cnt_fb
_vp9_ref_cnt_fb:                        ## @vp9_ref_cnt_fb
	.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
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	(%rdi), %r12
	movl	(%rsi), %ebx
	testl	%ebx, %ebx
	js	LBB0_6
## %bb.1:
	movq	(%r12), %rax
	shlq	$4, %rbx
	movq	(%rax,%rbx), %rcx
	testq	%rcx, %rcx
	jle	LBB0_6
## %bb.2:
	leaq	(%rax,%rbx), %rdx
	decq	%rcx
	movq	%rcx, (%rdx)
	jne	LBB0_6
## %bb.3:
	movq	%rdi, %r15
	movq	8(%rax,%rbx), %rsi
	callq	_vp9_is_sf_ref_fb
	movq	(%r12), %rcx
	movq	8(%rcx,%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	callq	_vp9_free_sf_ref_fb
	jmp	LBB0_6
LBB0_4:
	movl	(%rdi), %esi
	movq	%r15, %rdi
	callq	_vp9_rm_from_fb_use_list
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_vp9_add_to_fb_free_list
LBB0_6:
	movl	%r14d, (%r13)
	movq	(%r12), %rax
	movslq	%r14d, %rcx
	shlq	$4, %rcx
	incq	(%rax,%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vp9_ref_cnt_fb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp9_ref_cnt_fb
_vp9_ref_cnt_fb:                        ; @vp9_ref_cnt_fb
	.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, x2
	mov	x20, x1
	ldr	x22, [x0]
	ldr	w8, [x1]
	tbnz	w8, #31, LBB0_6
; %bb.1:
	ldr	x9, [x22]
	add	x10, x9, x8, lsl #4
	ldr	x11, [x10]
	subs	x11, x11, #1
	b.lt	LBB0_6
; %bb.2:
	str	x11, [x10]
	b.ne	LBB0_6
; %bb.3:
	mov	x21, x0
	lsl	x23, x8, #4
	add	x8, x9, x23
	ldr	x1, [x8, #8]
	bl	_vp9_is_sf_ref_fb
	mov	x8, x0
	ldr	x9, [x22]
	add	x9, x9, x23
	ldr	x0, [x9, #8]
	cbz	w8, LBB0_5
; %bb.4:
	bl	_vp9_free_sf_ref_fb
	b	LBB0_6
LBB0_5:
	ldr	w1, [x0]
	mov	x0, x21
	bl	_vp9_rm_from_fb_use_list
	mov	x1, x0
	mov	x0, x21
	bl	_vp9_add_to_fb_free_list
LBB0_6:
	str	w19, [x20]
	ldr	x8, [x22]
	sbfiz	x9, x19, #4, #32
	ldr	x10, [x8, x9]
	add	x10, x10, #1
	str	x10, [x8, x9]
	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	_vp9_ref_cnt_fb
.subsections_via_symbols
