	.file	"extr_dm-io.c_dec_count.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dec_count, @function
dec_count:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	edx, edx
	jne	.L10
.L2:
	lea	rdi, 40[rbp]
	call	atomic_dec_and_test@PLT
	test	rax, rax
	je	.L1
	mov	rdi, QWORD PTR 32[rbp]
	test	rdi, rdi
	je	.L4
	add	rsp, 8
	.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
	jmp	wake_up_process@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.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
.L4:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	mov	r12, QWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	rbx, QWORD PTR 24[rbp]
	mov	r13, QWORD PTR 16[rbp]
	mov	esi, DWORD PTR [rax]
	call	mempool_free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, r13
	mov	rdi, r12
	mov	rax, rbx
	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
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, esi
	mov	rsi, rbp
	call	set_bit@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	dec_count, .-dec_count
	.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-io.c_dec_count.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dec_count, %function
dec_count:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bne	.L10
.L2:
	add	r0, r4, #20
	bl	atomic_dec_and_test
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r0, [r4, #16]
	cmp	r0, #0
	beq	.L4
	pop	{r4, r5, r6, lr}
	b	wake_up_process
.L4:
	ldr	r3, [r4, #4]
	ldr	r5, [r4]
	ldr	r6, [r4, #8]
	mov	r0, r4
	ldr	r4, [r4, #12]
	ldr	r1, [r3]
	bl	mempool_free
	mov	r1, r6
	mov	r0, r5
	mov	r3, r4
	pop	{r4, r5, r6, lr}
	bx	r3
.L10:
	mov	r0, r1
	mov	r1, r4
	bl	set_bit
	b	.L2
	.size	dec_count, .-dec_count
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
