	.file	"extr_bm_pool.c_BmPoolFree.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	BmPoolFree, @function
BmPoolFree:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	ASSERT_COND@PLT
	mov	eax, DWORD PTR 44[r12]
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR BMAN_POOL_FLAG_DEPLETION[rip], eax
	je	.L6
	mov	rdi, r12
	call	depletion_unlink@PLT
	mov	esi, DWORD PTR 16[r12]
	mov	edi, DWORD PTR 20[r12]
	call	BmUnSetPoolThresholds@PLT
	cmp	QWORD PTR TRUE[rip], 0
	je	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR 40[r12]
	mov	rdi, r12
	call	BM_POOL_GetBuf@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L8
	mov	rsi, rax
	mov	rdi, r12
	call	BM_POOL_GetBufferContext@PLT
	test	ebx, ebx
	je	.L19
.L6:
	cmp	QWORD PTR TRUE[rip], 0
	jne	.L7
.L8:
	mov	esi, DWORD PTR 16[r12]
	mov	edi, DWORD PTR 20[r12]
	call	BmBpidPut@PLT
.L2:
	mov	rdi, QWORD PTR 8[r12]
	test	rdi, rdi
	je	.L9
	call	XX_Free@PLT
.L9:
	mov	rdi, r12
	call	XX_Free@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR E_OK[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[r12]
	mov	edx, eax
	mov	rsi, rbp
	call	[QWORD PTR 32[r12]]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	BmPoolFree, .-BmPoolFree
	.comm	TRUE,8,8
	.comm	E_OK,4,4
	.comm	BMAN_POOL_FLAG_DEPLETION,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_bm_pool.c_BmPoolFree.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	BmPoolFree, %function
BmPoolFree:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r6, r1
	bl	ASSERT_COND
	ldr	r3, [r5, #28]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L21
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L19
.L3:
	ldr	r7, .L21+4
	b	.L6
.L7:
	mov	r0, r5
	ldr	r1, [r5, #24]
	bl	BM_POOL_GetBuf
	subs	r4, r0, #0
	beq	.L8
	mov	r1, r4
	mov	r0, r5
	bl	BM_POOL_GetBufferContext
	cmp	r6, #0
	beq	.L20
.L6:
	ldr	r3, [r7]
	cmp	r3, #0
	bne	.L7
.L8:
	ldr	r1, [r5, #8]
	ldr	r0, [r5, #12]
	bl	BmBpidPut
.L2:
	ldr	r0, [r5, #4]
	cmp	r0, #0
	beq	.L9
	bl	XX_Free
.L9:
	mov	r0, r5
	bl	XX_Free
	ldr	r3, .L21+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	mov	r2, r0
	mov	r1, r4
	ldr	r3, [r5, #20]
	ldr	r0, [r5, #16]
	blx	r3
	b	.L6
.L19:
	mov	r0, r5
	bl	depletion_unlink
	ldr	r1, [r5, #8]
	ldr	r0, [r5, #12]
	bl	BmUnSetPoolThresholds
	b	.L3
.L22:
	.align	2
.L21:
	.word	BMAN_POOL_FLAG_DEPLETION
	.word	TRUE
	.word	E_OK
	.size	BmPoolFree, .-BmPoolFree
	.comm	TRUE,4,4
	.comm	E_OK,4,4
	.comm	BMAN_POOL_FLAG_DEPLETION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
