	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpool_destroy                  ## -- Begin function tpool_destroy
	.p2align	4, 0x90
_tpool_destroy:                         ## @tpool_destroy
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	_pthread_mutex_unlock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_pthread_cleanup_push
	movq	_TP_DESTROY@GOTPCREL(%rip), %rax
	movl	20(%r12), %ecx
	orl	(%rax), %ecx
	movq	_TP_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, 20(%r12)
	leaq	32(%r12), %rdi
	callq	_pthread_cond_broadcast
	movq	24(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_pthread_cancel
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_1
## %bb.2:
	cmpq	$0, 24(%r12)
	je	LBB0_5
## %bb.3:
	leaq	16(%r12), %r15
	movq	_TP_WAIT@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	orl	%eax, 20(%r12)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pthread_cond_wait
	cmpq	$0, 24(%r12)
	jne	LBB0_4
LBB0_5:
	cmpq	$0, (%r12)
	je	LBB0_8
## %bb.6:
	leaq	12(%r12), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_pthread_cond_wait
	cmpq	$0, (%r12)
	jne	LBB0_7
LBB0_8:
	movl	$1, %edi
	callq	_pthread_cleanup_pop
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_delete_pool                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pthread_mutex_unlock,8,3       ## @pthread_mutex_unlock
	.comm	_TP_DESTROY,4,2                 ## @TP_DESTROY
	.comm	_TP_SUSPEND,4,2                 ## @TP_SUSPEND
	.comm	_TP_WAIT,4,2                    ## @TP_WAIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tpool_destroy                  ; -- Begin function tpool_destroy
	.p2align	2
_tpool_destroy:                         ; @tpool_destroy
	.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	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_pthread_mutex_lock
Lloh0:
	adrp	x8, _pthread_mutex_unlock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pthread_mutex_unlock@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_pthread_cleanup_push
Lloh3:
	adrp	x8, _TP_DESTROY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TP_DESTROY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _TP_SUSPEND@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TP_SUSPEND@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19, #20]
	add	x0, x19, #32
	bl	_pthread_cond_broadcast
	ldr	x21, [x19, #24]
	cbz	x21, LBB0_5
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_pthread_cancel
	ldr	x21, [x21, #8]
	cbnz	x21, LBB0_1
; %bb.2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.3:
	add	x21, x19, #16
Lloh9:
	adrp	x22, _TP_WAIT@GOTPAGE
Lloh10:
	ldr	x22, [x22, _TP_WAIT@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
	str	w8, [x19, #20]
	mov	x0, x21
	mov	x1, x20
	bl	_pthread_cond_wait
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_4
LBB0_5:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.6:
	add	x21, x19, #12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_pthread_cond_wait
	ldr	x8, [x19]
	cbnz	x8, LBB0_7
LBB0_8:
	mov	w0, #1
	bl	_pthread_cleanup_pop
	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	_delete_pool
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_pthread_mutex_unlock,8,3       ; @pthread_mutex_unlock
	.comm	_TP_DESTROY,4,2                 ; @TP_DESTROY
	.comm	_TP_SUSPEND,4,2                 ; @TP_SUSPEND
	.comm	_TP_WAIT,4,2                    ; @TP_WAIT
.subsections_via_symbols
