	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpool_resume                   ## -- Begin function tpool_resume
	.p2align	4, 0x90
_tpool_resume:                          ## @tpool_resume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	32(%rdi), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movl	(%r15), %eax
	movq	_TP_SUSPEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_6
## %bb.1:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r15)
	leaq	36(%r15), %rdi
	callq	_pthread_cond_broadcast
	movl	4(%r15), %ebx
	subl	8(%r15), %ebx
	jle	LBB0_6
## %bb.2:
	movq	16(%r15), %rax
	incl	%ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	24(%r15), %rax
	jge	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_create_worker
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rax
	incq	%rax
	movq	%rax, 16(%r15)
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_3
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pthread_mutex_unlock           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TP_SUSPEND,4,2                 ## @TP_SUSPEND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpool_resume                   ; -- Begin function tpool_resume
	.p2align	2
_tpool_resume:                          ; @tpool_resume
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	add	x19, x0, #32
	mov	x0, x19
	bl	_pthread_mutex_lock
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _TP_SUSPEND@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TP_SUSPEND@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	bic	w8, w8, w9
	str	w8, [x20]
	add	x0, x20, #36
	bl	_pthread_cond_broadcast
	ldp	w8, w9, [x20, #4]
	sub	w9, w8, w9
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.2:
	ldr	x8, [x20, #16]
	add	w21, w9, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #24]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_create_worker
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	add	x8, x8, #1
	str	x8, [x20, #16]
	sub	w21, w21, #1
	cmp	w21, #1
	b.hi	LBB0_3
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pthread_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TP_SUSPEND,4,2                 ; @TP_SUSPEND
.subsections_via_symbols
