	.file	"extr_zstdmt_compress.c_ZSTDMT_sizeof_bufferPool.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ZSTDMT_sizeof_bufferPool, @function
ZSTDMT_sizeof_bufferPool:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	lea	rbp, 4[rdi]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	eax, DWORD PTR [rdi]
	mov	rbx, rdi
	mov	rdi, rbp
	sub	eax, 1
	cdqe
	lea	r12, 16[0+rax*4]
	call	ZSTD_pthread_mutex_lock@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L2
	mov	rcx, QWORD PTR 8[rbx]
	lea	edx, -1[rax]
	lea	rax, 8[rcx]
	lea	rsi, [rax+rdx*8]
	xor	edx, edx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	add	rax, 8
.L3:
	add	rdx, QWORD PTR [rcx]
	mov	rcx, rax
	cmp	rax, rsi
	jne	.L11
	add	r12, rdx
.L2:
	mov	rdi, rbp
	call	ZSTD_pthread_mutex_unlock@PLT
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ZSTDMT_sizeof_bufferPool, .-ZSTDMT_sizeof_bufferPool
	.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_zstdmt_compress.c_ZSTDMT_sizeof_bufferPool.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ZSTDMT_sizeof_bufferPool, %function
ZSTDMT_sizeof_bufferPool:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	mov	r5, r0
	ldr	r4, [r6], #4
	mov	r0, r6
	bl	ZSTD_pthread_mutex_lock
	ldr	r1, [r5]
	add	r4, r4, #2
	cmp	r1, #0
	lsl	r4, r4, #2
	beq	.L2
	mov	r2, #0
	ldr	r3, [r5, #8]
	sub	r3, r3, #4
	add	r0, r3, r1, lsl #2
.L3:
	ldr	r1, [r3, #4]!
	cmp	r3, r0
	add	r2, r2, r1
	bne	.L3
	add	r4, r4, r2
.L2:
	mov	r0, r6
	bl	ZSTD_pthread_mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, pc}
	.size	ZSTDMT_sizeof_bufferPool, .-ZSTDMT_sizeof_bufferPool
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
