	.file	"extr_bufmgr.c_ForgetPrivateRefCountEntry.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ForgetPrivateRefCountEntry, @function
ForgetPrivateRefCountEntry:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR [rdi], 0
	sete	dil
	movzx	edi, dil
	call	Assert@PLT
	mov	rax, QWORD PTR PrivateRefCountArray[rip]
	cmp	rax, rbx
	ja	.L2
	mov	rdx, QWORD PTR REFCOUNT_ARRAY_ENTRIES[rip]
	sal	rdx, 4
	add	rax, rdx
	cmp	rbx, rax
	jb	.L7
.L2:
	mov	edx, DWORD PTR HASH_REMOVE[rip]
	mov	eax, DWORD PTR 8[rbx]
	mov	rcx, rsp
	lea	rsi, 4[rsp]
	mov	edi, DWORD PTR PrivateRefCountHash[rip]
	mov	DWORD PTR 4[rsp], eax
	call	hash_search@PLT
	mov	edi, DWORD PTR [rsp]
	call	Assert@PLT
	xor	edi, edi
	cmp	QWORD PTR PrivateRefCountOverflowed[rip], 0
	setg	dil
	call	Assert@PLT
	sub	QWORD PTR PrivateRefCountOverflowed[rip], 1
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR InvalidBuffer[rip]
	mov	QWORD PTR ReservedRefCountEntry[rip], rbx
	mov	DWORD PTR 8[rbx], eax
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ForgetPrivateRefCountEntry, .-ForgetPrivateRefCountEntry
	.comm	ReservedRefCountEntry,8,8
	.comm	REFCOUNT_ARRAY_ENTRIES,8,8
	.comm	PrivateRefCountOverflowed,8,8
	.comm	PrivateRefCountHash,4,4
	.comm	PrivateRefCountArray,8,8
	.comm	InvalidBuffer,4,4
	.comm	HASH_REMOVE,4,4
	.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_bufmgr.c_ForgetPrivateRefCountEntry.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ForgetPrivateRefCountEntry, %function
ForgetPrivateRefCountEntry:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, [r0]
	ldr	r3, .L9
	clz	r0, r0
	sub	sp, sp, #16
	lsr	r0, r0, #5
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	Assert
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r3, r4
	bhi	.L2
	ldr	r2, .L9+8
	ldr	r2, [r2]
	add	r3, r3, r2, lsl #3
	cmp	r4, r3
	bcc	.L7
.L2:
	ldr	r3, .L9+12
	ldr	r2, .L9+16
	ldr	ip, [r4, #4]
	ldr	r2, [r2]
	ldr	r4, .L9+20
	add	r1, sp, #8
	ldr	r0, [r3]
	add	r3, sp, #4
	str	ip, [sp, #8]
	bl	hash_search
	ldr	r0, [sp, #4]
	bl	Assert
	ldr	r0, [r4]
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
	bl	Assert
	ldr	r3, [r4]
	sub	r3, r3, #1
	str	r3, [r4]
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L7:
	ldr	r3, .L9+24
	ldr	r2, .L9+28
	ldr	r3, [r3]
	str	r4, [r2]
	str	r3, [r4, #4]
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	PrivateRefCountArray
	.word	REFCOUNT_ARRAY_ENTRIES
	.word	PrivateRefCountHash
	.word	HASH_REMOVE
	.word	PrivateRefCountOverflowed
	.word	InvalidBuffer
	.word	ReservedRefCountEntry
	.size	ForgetPrivateRefCountEntry, .-ForgetPrivateRefCountEntry
	.comm	ReservedRefCountEntry,4,4
	.comm	REFCOUNT_ARRAY_ENTRIES,4,4
	.comm	PrivateRefCountOverflowed,4,4
	.comm	PrivateRefCountHash,4,4
	.comm	PrivateRefCountArray,4,4
	.comm	InvalidBuffer,4,4
	.comm	HASH_REMOVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
