	.file	"extr_thread_pool.c_tpool_resume.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tpool_resume
	.type	tpool_resume, @function
tpool_resume:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, 32[rdi]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rdi, r12
	call	pthread_mutex_lock@PLT
	mov	edx, DWORD PTR [rbx]
	mov	eax, DWORD PTR TP_SUSPEND[rip]
	test	edx, eax
	je	.L5
	not	eax
	lea	rdi, 36[rbx]
	and	eax, edx
	mov	DWORD PTR [rbx], eax
	call	pthread_cond_broadcast@PLT
	mov	eax, DWORD PTR 4[rbx]
	sub	eax, DWORD PTR 8[rbx]
	lea	ebp, -1[rax]
	test	eax, eax
	jle	.L5
	mov	rax, QWORD PTR 16[rbx]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbx
	call	create_worker@PLT
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR 16[rbx]
	sub	ebp, 1
	add	rax, 1
	mov	QWORD PTR 16[rbx], rax
	cmp	ebp, -1
	je	.L5
.L4:
	cmp	QWORD PTR 24[rbx], rax
	jg	.L6
.L5:
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	pthread_mutex_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	tpool_resume, .-tpool_resume
	.comm	TP_SUSPEND,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_thread_pool.c_tpool_resume.c"
	.text
	.align	2
	.global	tpool_resume
	.syntax unified
	.arm
	.fpu softvfp
	.type	tpool_resume, %function
tpool_resume:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	add	r6, r0, #20
	mov	r0, r6
	bl	pthread_mutex_lock
	ldr	r2, .L12
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L5
	mov	r0, r4
	bic	r3, r3, r2
	str	r3, [r0], #24
	bl	pthread_cond_broadcast
	ldr	r3, [r4, #8]
	ldr	r5, [r4, #4]
	sub	r5, r5, r3
	cmp	r5, #0
	ldrgt	r3, [r4, #12]
	sub	r5, r5, #1
	bgt	.L4
	b	.L5
.L6:
	mov	r0, r4
	bl	create_worker
	cmp	r0, #0
	bne	.L5
	ldr	r3, [r4, #12]
	cmn	r5, #1
	add	r3, r3, #1
	str	r3, [r4, #12]
	beq	.L5
.L4:
	ldr	r2, [r4, #16]
	sub	r5, r5, #1
	cmp	r2, r3
	bgt	.L6
.L5:
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	pthread_mutex_unlock
.L13:
	.align	2
.L12:
	.word	TP_SUSPEND
	.size	tpool_resume, .-tpool_resume
	.comm	TP_SUSPEND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
