	.file	"extr_vdec_vp9_if.c_vp9_ref_cnt_fb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vp9_ref_cnt_fb, @function
vp9_ref_cnt_fb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movsx	rbx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	r13, QWORD PTR [rdi]
	mov	eax, DWORD PTR [rsi]
	mov	rdx, QWORD PTR 0[r13]
	test	eax, eax
	js	.L2
	movsx	rbp, eax
	sal	rbp, 4
	lea	rcx, [rdx+rbp]
	mov	rax, QWORD PTR [rcx]
	test	rax, rax
	jle	.L2
	sub	rax, 1
	mov	QWORD PTR [rcx], rax
	je	.L6
.L2:
	mov	DWORD PTR [r12], ebx
	sal	rbx, 4
	add	QWORD PTR [rdx+rbx], 1
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rsi, QWORD PTR 8[rcx]
	mov	QWORD PTR 8[rsp], rdi
	call	vp9_is_sf_ref_fb@PLT
	test	eax, eax
	mov	rax, QWORD PTR 0[r13]
	jne	.L3
	mov	rax, QWORD PTR 8[rax+rbp]
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR [rax]
	call	vp9_rm_from_fb_use_list@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, rax
	call	vp9_add_to_fb_free_list@PLT
	mov	rdx, QWORD PTR 0[r13]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR 8[rax+rbp]
	call	vp9_free_sf_ref_fb@PLT
	mov	rdx, QWORD PTR 0[r13]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	vp9_ref_cnt_fb, .-vp9_ref_cnt_fb
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_vdec_vp9_if.c_vp9_ref_cnt_fb.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vp9_ref_cnt_fb, %function
vp9_ref_cnt_fb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r1]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0]
	cmp	ip, #0
	mov	r6, r1
	mov	r4, r2
	ldr	r3, [r5]
	blt	.L2
	ldr	r2, [r3, ip, lsl #3]
	lsl	r8, ip, #3
	cmp	r2, #0
	add	r1, r3, ip, lsl #3
	ble	.L2
	sub	r2, r2, #1
	cmp	r2, #0
	str	r2, [r3, ip, lsl #3]
	beq	.L6
.L2:
	ldr	r2, [r3, r4, lsl #3]
	str	r4, [r6]
	add	r2, r2, #1
	str	r2, [r3, r4, lsl #3]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r1, [r1, #4]
	mov	r7, r0
	bl	vp9_is_sf_ref_fb
	cmp	r0, #0
	ldr	r3, [r5]
	bne	.L3
	add	r8, r3, r8
	ldr	r3, [r8, #4]
	mov	r0, r7
	ldr	r1, [r3]
	bl	vp9_rm_from_fb_use_list
	mov	r1, r0
	mov	r0, r7
	bl	vp9_add_to_fb_free_list
	ldr	r3, [r5]
	b	.L2
.L3:
	add	r8, r3, r8
	ldr	r0, [r8, #4]
	bl	vp9_free_sf_ref_fb
	ldr	r3, [r5]
	b	.L2
	.size	vp9_ref_cnt_fb, .-vp9_ref_cnt_fb
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
