	.file	"extr_dm-stats.c_free_shared_memory.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Memory usage accounting bug."
	.text
	.p2align 4
	.type	free_shared_memory, @function
free_shared_memory:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xor	esi, esi
	mov	rbx, rdi
	lea	rdi, shared_memory_lock[rip]
	call	spin_lock_irqsave@PLT
	xor	edi, edi
	cmp	QWORD PTR shared_memory_amount[rip], rbx
	setb	dil
	call	WARN_ON_ONCE@PLT
	test	rax, rax
	jne	.L5
	sub	QWORD PTR shared_memory_amount[rip], rbx
	xor	esi, esi
	lea	rdi, shared_memory_lock[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, shared_memory_lock[rip]
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	lea	rdi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	jmp	DMCRIT@PLT
	.cfi_endproc
.LFE0:
	.size	free_shared_memory, .-free_shared_memory
	.comm	shared_memory_lock,4,4
	.comm	shared_memory_amount,8,8
	.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_dm-stats.c_free_shared_memory.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Memory usage accounting bug.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_shared_memory, %function
free_shared_memory:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r5, .L6
	mov	r1, #0
	ldr	r0, .L6+4
	bl	spin_lock_irqsave
	ldr	r0, [r5]
	cmp	r0, r4
	movcs	r0, #0
	movcc	r0, #1
	bl	WARN_ON_ONCE
	cmp	r0, #0
	bne	.L5
	ldr	r0, [r5]
	mov	r1, #0
	sub	r4, r0, r4
	str	r4, [r5]
	ldr	r0, .L6+4
	pop	{r4, r5, r6, lr}
	b	spin_unlock_irqrestore
.L5:
	mov	r1, #0
	ldr	r0, .L6+4
	bl	spin_unlock_irqrestore
	pop	{r4, r5, r6, lr}
	ldr	r0, .L6+8
	b	DMCRIT
.L7:
	.align	2
.L6:
	.word	shared_memory_amount
	.word	shared_memory_lock
	.word	.LC0
	.size	free_shared_memory, .-free_shared_memory
	.comm	shared_memory_lock,4,4
	.comm	shared_memory_amount,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
