	.file	"810147.c"
	.intel_syntax noprefix
	.text
	.globl	ZSTD_customMalloc
	.type	ZSTD_customMalloc, @function
ZSTD_customMalloc:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR 16[rbp]
	test	rax, rax
	je	.L2
	mov	rcx, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR 32[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	malloc@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ZSTD_customMalloc, .-ZSTD_customMalloc
	.globl	ZSTD_customCalloc
	.type	ZSTD_customCalloc, @function
ZSTD_customCalloc:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR 16[rbp]
	test	rax, rax
	je	.L5
	mov	rcx, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR 32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	rdi, rcx
	call	memset@PLT
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	calloc@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ZSTD_customCalloc, .-ZSTD_customCalloc
	.globl	ZSTD_customFree
	.type	ZSTD_customFree, @function
ZSTD_customFree:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L10
	mov	rax, QWORD PTR 24[rbp]
	test	rax, rax
	je	.L9
	mov	rcx, QWORD PTR 24[rbp]
	mov	rax, QWORD PTR 32[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L10:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	ZSTD_customFree, .-ZSTD_customFree
	.section	.rodata
	.align 16
	.type	ZSTD_defaultCMem, @object
	.size	ZSTD_defaultCMem, 24
ZSTD_defaultCMem:
	.zero	24
	.text
	.type	POOL_thread, @function
POOL_thread:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L12
	mov	eax, 0
	jmp	.L13
.L12:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 96
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	jmp	.L14
.L16:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 232[rax]
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 96
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -40[rbp]
	jmp	.L13
.L15:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 96[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 184
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_cond_wait@PLT
.L14:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 88[rax]
	test	eax, eax
	jne	.L16
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 80[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	cmp	rdx, rax
	jnb	.L16
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 56[rax]
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 56[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 72[rax]
	mov	rax, rdx
	mov	edx, 0
	div	rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 80[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 80[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 56[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 64[rax]
	cmp	rdx, rax
	sete	al
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 88[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 136
	mov	rdi, rax
	call	pthread_cond_signal@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 96
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rdx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 96
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 80[rax]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 80[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 136
	mov	rdi, rax
	call	pthread_cond_signal@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 96
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	jmp	.L12
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	POOL_thread, .-POOL_thread
	.globl	POOL_create
	.type	POOL_create, @function
POOL_create:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	QWORD PTR ZSTD_defaultCMem[rip+16]
	push	QWORD PTR ZSTD_defaultCMem[rip+8]
	push	QWORD PTR ZSTD_defaultCMem[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	POOL_create_advanced
	add	rsp, 32
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	POOL_create, .-POOL_create
	.globl	POOL_create_advanced
	.type	POOL_create_advanced, @function
POOL_create_advanced:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	cmp	QWORD PTR -40[rbp], 0
	jne	.L20
	mov	eax, 0
	jmp	.L21
.L20:
	sub	rsp, 8
	push	QWORD PTR 32[rbp]
	push	QWORD PTR 24[rbp]
	push	QWORD PTR 16[rbp]
	mov	edi, 240
	call	ZSTD_customCalloc
	add	rsp, 32
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L22
	mov	eax, 0
	jmp	.L21
.L22:
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 72[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 72[rax]
	sal	rax, 4
	sub	rsp, 8
	push	QWORD PTR 32[rbp]
	push	QWORD PTR 24[rbp]
	push	QWORD PTR 16[rbp]
	mov	rdi, rax
	call	ZSTD_customMalloc
	add	rsp, 32
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 48[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 56[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 64[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 80[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 88[rax], 1
	mov	DWORD PTR -20[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 96
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	or	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 136
	mov	esi, 0
	mov	rdi, rax
	call	pthread_cond_init@PLT
	or	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 184
	mov	esi, 0
	mov	rdi, rax
	call	pthread_cond_init@PLT
	or	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L23
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	POOL_free
	mov	eax, 0
	jmp	.L21
.L23:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 232[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	sal	rax, 3
	sub	rsp, 8
	push	QWORD PTR 32[rbp]
	push	QWORD PTR 24[rbp]
	push	QWORD PTR 16[rbp]
	mov	rdi, rax
	call	ZSTD_customMalloc
	add	rsp, 32
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], 0
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR 24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR 32[rbp]
	mov	QWORD PTR 16[rcx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L24
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	jne	.L25
.L24:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	POOL_free
	mov	eax, 0
	jmp	.L21
.L25:
	mov	QWORD PTR -16[rbp], 0
	jmp	.L26
.L28:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 3
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	lea	rdx, POOL_thread[rip]
	mov	esi, 0
	call	pthread_create@PLT
	test	eax, eax
	je	.L27
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	POOL_free
	mov	eax, 0
	jmp	.L21
.L27:
	add	QWORD PTR -16[rbp], 1
.L26:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jb	.L28
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	POOL_create_advanced, .-POOL_create_advanced
	.type	POOL_join, @function
POOL_join:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 96
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 232[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 96
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 136
	mov	rdi, rax
	call	pthread_cond_broadcast@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 184
	mov	rdi, rax
	call	pthread_cond_broadcast@PLT
	mov	QWORD PTR -8[rbp], 0
	jmp	.L30
.L31:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	QWORD PTR -8[rbp], 1
.L30:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L31
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	POOL_join, .-POOL_join
	.globl	POOL_free
	.type	POOL_free, @function
POOL_free:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L35
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	POOL_join
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 96
	mov	rdi, rax
	call	pthread_mutex_destroy@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 136
	mov	rdi, rax
	call	pthread_cond_destroy@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 184
	mov	rdi, rax
	call	pthread_cond_destroy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 48[rax]
	sub	rsp, 8
	mov	rax, QWORD PTR -8[rbp]
	push	QWORD PTR 16[rax]
	push	QWORD PTR 8[rax]
	push	QWORD PTR [rax]
	mov	rdi, rdx
	call	ZSTD_customFree
	add	rsp, 32
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 24[rax]
	sub	rsp, 8
	mov	rax, QWORD PTR -8[rbp]
	push	QWORD PTR 16[rax]
	push	QWORD PTR 8[rax]
	push	QWORD PTR [rax]
	mov	rdi, rdx
	call	ZSTD_customFree
	add	rsp, 32
	mov	rdx, QWORD PTR -8[rbp]
	sub	rsp, 8
	mov	rax, QWORD PTR -8[rbp]
	push	QWORD PTR 16[rax]
	push	QWORD PTR 8[rax]
	push	QWORD PTR [rax]
	mov	rdi, rdx
	call	ZSTD_customFree
	add	rsp, 32
	jmp	.L32
.L35:
	nop
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	POOL_free, .-POOL_free
	.type	isQueueFull, @function
isQueueFull:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 72[rax]
	cmp	rax, 1
	jbe	.L37
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 56[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 64[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR 72[rax]
	mov	rax, rdx
	mov	edx, 0
	div	rsi
	mov	rax, rdx
	cmp	rcx, rax
	sete	al
	movzx	eax, al
	jmp	.L38
.L37:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 80[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	cmp	rdx, rax
	je	.L39
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 88[rax]
	test	eax, eax
	jne	.L40
.L39:
	mov	eax, 1
	jmp	.L38
.L40:
	mov	eax, 0
.L38:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	isQueueFull, .-isQueueFull
	.type	POOL_add_internal, @function
POOL_add_internal:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	setne	al
	movzx	eax, al
	mov	edi, eax
	mov	eax, 0
	call	assert@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 232[rax]
	test	eax, eax
	jne	.L45
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 88[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 64[rax]
	sal	rax, 4
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 64[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 72[rax]
	mov	rax, rdx
	mov	edx, 0
	div	rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 64[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 184
	mov	rdi, rax
	call	pthread_cond_signal@PLT
	jmp	.L42
.L45:
	nop
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	POOL_add_internal, .-POOL_add_internal
	.globl	POOL_add
	.type	POOL_add, @function
POOL_add:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	cmp	QWORD PTR -8[rbp], 0
	setne	al
	movzx	eax, al
	mov	edi, eax
	mov	eax, 0
	call	assert@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 96
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	jmp	.L47
.L49:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 96[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 136
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_cond_wait@PLT
.L47:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	isQueueFull
	test	eax, eax
	je	.L48
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 232[rax]
	test	eax, eax
	je	.L49
.L48:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	POOL_add_internal
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 96
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	POOL_add, .-POOL_add
	.globl	foo
	.type	foo, @function
foo:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	edi, 1
	mov	eax, 0
	call	assert@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	foo, .-foo
	.globl	g
	.bss
	.align 4
	.type	g, @object
	.size	g, 4
g:
	.zero	4
	.text
	.globl	bar
	.type	bar, @function
bar:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, DWORD PTR g[rip]
	add	eax, 1
	mov	DWORD PTR g[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	bar, .-bar
	.globl	main
	.type	main, @function
main:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	esi, 10
	mov	edi, 20
	call	POOL_create
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L53
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	lea	rsi, foo[rip]
	mov	rdi, rax
	call	POOL_add
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	lea	rsi, bar[rip]
	mov	rdi, rax
	call	POOL_add
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	lea	rsi, bar[rip]
	mov	rdi, rax
	call	POOL_add
.L53:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"810147.c"
	.text
	.align	2
	.global	ZSTD_customMalloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	ZSTD_customMalloc, %function
ZSTD_customMalloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	sub	r0, fp, #20
	stm	r0, {r1, r2, r3}
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, r2
	blx	r3
	mov	r3, r0
	b	.L3
.L2:
	ldr	r0, [fp, #-8]
	bl	malloc
	mov	r3, r0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ZSTD_customMalloc, .-ZSTD_customMalloc
	.align	2
	.global	ZSTD_customCalloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	ZSTD_customCalloc, %function
ZSTD_customCalloc:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	sub	r0, fp, #28
	stm	r0, {r1, r2, r3}
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r0, r2
	blx	r3
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, [fp, #-8]
	b	.L6
.L5:
	ldr	r1, [fp, #-16]
	mov	r0, #1
	bl	calloc
	mov	r3, r0
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ZSTD_customCalloc, .-ZSTD_customCalloc
	.align	2
	.global	ZSTD_customFree
	.syntax unified
	.arm
	.fpu softvfp
	.type	ZSTD_customFree, %function
ZSTD_customFree:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	sub	r0, fp, #20
	stm	r0, {r1, r2, r3}
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, r2
	blx	r3
	b	.L10
.L9:
	ldr	r0, [fp, #-8]
	bl	free
.L10:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ZSTD_customFree, .-ZSTD_customFree
	.section	.rodata
	.align	2
	.type	ZSTD_defaultCMem, %object
	.size	ZSTD_defaultCMem, 12
ZSTD_defaultCMem:
	.space	12
	.global	__aeabi_uidivmod
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	POOL_thread, %function
POOL_thread:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L12
	mov	r3, #0
	b	.L13
.L12:
	ldr	r3, [fp, #-16]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_mutex_lock
	b	.L14
.L16:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #168]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-16]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-24]
	b	.L13
.L15:
	ldr	r3, [fp, #-16]
	add	r2, r3, #120
	ldr	r3, [fp, #-16]
	add	r3, r3, #48
	mov	r1, r3
	mov	r0, r2
	bl	pthread_cond_wait
.L14:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #40]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	cmp	r2, r3
	bcs	.L16
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	lsl	r3, r3, #3
	add	r2, r2, r3
	sub	r3, fp, #12
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #40]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #44]
	ldr	r3, [fp, #-16]
	add	r3, r3, #72
	mov	r0, r3
	bl	pthread_cond_signal
	ldr	r3, [fp, #-16]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	mov	r0, r2
	blx	r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #40]
	ldr	r3, [fp, #-16]
	add	r3, r3, #72
	mov	r0, r3
	bl	pthread_cond_signal
	ldr	r3, [fp, #-16]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_mutex_unlock
	b	.L12
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	POOL_thread, .-POOL_thread
	.align	2
	.global	POOL_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	POOL_create, %function
POOL_create:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L19
	ldr	r2, [r3, #8]
	str	r2, [sp]
	ldm	r3, {r2, r3}
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	POOL_create_advanced
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	ZSTD_defaultCMem
	.size	POOL_create, .-POOL_create
	.align	2
	.global	POOL_create_advanced
	.syntax unified
	.arm
	.fpu softvfp
	.type	POOL_create_advanced, %function
POOL_create_advanced:
	@ args = 12, pretend = 8, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #8
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	add	r1, fp, #4
	stm	r1, {r2, r3}
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L22
	mov	r3, #0
	b	.L23
.L22:
	add	r3, fp, #4
	ldm	r3, {r1, r2, r3}
	mov	r0, #176
	bl	ZSTD_customCalloc
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L24
	mov	r3, #0
	b	.L23
.L24:
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3, #36]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #36]
	lsl	r0, r3, #3
	add	r3, fp, #4
	ldm	r3, {r1, r2, r3}
	bl	ZSTD_customMalloc
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #28]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #32]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #40]
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3, #44]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #48
	mov	r1, #0
	mov	r0, r3
	bl	pthread_mutex_init
	mov	r2, r0
	ldr	r3, [fp, #-8]
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #72
	mov	r1, #0
	mov	r0, r3
	bl	pthread_cond_init
	mov	r2, r0
	ldr	r3, [fp, #-8]
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #120
	mov	r1, #0
	mov	r0, r3
	bl	pthread_cond_init
	mov	r2, r0
	ldr	r3, [fp, #-8]
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L25
	ldr	r0, [fp, #-12]
	bl	POOL_free
	mov	r3, #0
	b	.L23
.L25:
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #168]
	ldr	r3, [fp, #-24]
	lsl	r0, r3, #2
	add	r3, fp, #4
	ldm	r3, {r1, r2, r3}
	bl	ZSTD_customMalloc
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-12]
	mov	ip, r3
	add	r3, fp, #4
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L27
.L26:
	ldr	r0, [fp, #-12]
	bl	POOL_free
	mov	r3, #0
	b	.L23
.L27:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L28
.L30:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, [fp, #-12]
	ldr	r2, .L31
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #16]
	ldr	r0, [fp, #-12]
	bl	POOL_free
	mov	r3, #0
	b	.L23
.L29:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L28:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L30
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-12]
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #8
	bx	lr
.L32:
	.align	2
.L31:
	.word	POOL_thread
	.size	POOL_create_advanced, .-POOL_create_advanced
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	POOL_join, %function
POOL_join:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #168]
	ldr	r3, [fp, #-16]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-16]
	add	r3, r3, #72
	mov	r0, r3
	bl	pthread_cond_broadcast
	ldr	r3, [fp, #-16]
	add	r3, r3, #120
	mov	r0, r3
	bl	pthread_cond_broadcast
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L34
.L35:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L34:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L35
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	POOL_join, .-POOL_join
	.align	2
	.global	POOL_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	POOL_free, %function
POOL_free:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L39
	ldr	r0, [fp, #-8]
	bl	POOL_join
	ldr	r3, [fp, #-8]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_mutex_destroy
	ldr	r3, [fp, #-8]
	add	r3, r3, #72
	mov	r0, r3
	bl	pthread_cond_destroy
	ldr	r3, [fp, #-8]
	add	r3, r3, #120
	mov	r0, r3
	bl	pthread_cond_destroy
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #24]
	ldr	r3, [fp, #-8]
	ldm	r3, {r1, r2, r3}
	bl	ZSTD_customFree
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #12]
	ldr	r3, [fp, #-8]
	ldm	r3, {r1, r2, r3}
	bl	ZSTD_customFree
	ldr	r3, [fp, #-8]
	ldm	r3, {r1, r2, r3}
	ldr	r0, [fp, #-8]
	bl	ZSTD_customFree
	b	.L36
.L39:
	nop
.L36:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	POOL_free, .-POOL_free
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isQueueFull, %function
isQueueFull:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	cmp	r3, #1
	bls	.L41
	ldr	r3, [fp, #-16]
	ldr	r4, [r3, #28]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r4, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	b	.L42
.L41:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #40]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	cmp	r2, r3
	beq	.L43
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	bne	.L44
.L43:
	mov	r3, #1
	b	.L42
.L44:
	mov	r3, #0
.L42:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	isQueueFull, .-isQueueFull
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	POOL_add_internal, %function
POOL_add_internal:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	assert
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #168]
	cmp	r3, #0
	bne	.L49
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #44]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #32]
	ldr	r3, [fp, #-16]
	add	r3, r3, #120
	mov	r0, r3
	bl	pthread_cond_signal
	b	.L46
.L49:
	nop
.L46:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	POOL_add_internal, .-POOL_add_internal
	.align	2
	.global	POOL_add
	.syntax unified
	.arm
	.fpu softvfp
	.type	POOL_add, %function
POOL_add:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	assert
	ldr	r3, [fp, #-8]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_mutex_lock
	b	.L51
.L53:
	ldr	r3, [fp, #-8]
	add	r2, r3, #72
	ldr	r3, [fp, #-8]
	add	r3, r3, #48
	mov	r1, r3
	mov	r0, r2
	bl	pthread_cond_wait
.L51:
	ldr	r0, [fp, #-8]
	bl	isQueueFull
	mov	r3, r0
	cmp	r3, #0
	beq	.L52
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #168]
	cmp	r3, #0
	beq	.L53
.L52:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	POOL_add_internal
	ldr	r3, [fp, #-8]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_mutex_unlock
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	POOL_add, .-POOL_add
	.align	2
	.global	foo
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r0, #1
	bl	assert
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	foo, .-foo
	.comm	g,4,4
	.align	2
	.global	bar
	.syntax unified
	.arm
	.fpu softvfp
	.type	bar, %function
bar:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L56
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L56
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L57:
	.align	2
.L56:
	.word	g
	.size	bar, .-bar
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r1, #10
	mov	r0, #20
	bl	POOL_create
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L59
	mov	r2, #0
	ldr	r1, .L61
	ldr	r0, [fp, #-8]
	bl	POOL_add
	mov	r2, #0
	ldr	r1, .L61+4
	ldr	r0, [fp, #-8]
	bl	POOL_add
	mov	r2, #0
	ldr	r1, .L61+4
	ldr	r0, [fp, #-8]
	bl	POOL_add
.L59:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	foo
	.word	bar
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
