	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DestroyParallelContext         ## -- Begin function DestroyParallelContext
	.p2align	4, 0x90
_DestroyParallelContext:                ## @DestroyParallelContext
	.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, %r14
	addq	$60, %rdi
	callq	_dlist_delete
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movslq	%ecx, %rdx
	addq	$64, %rbx
	cmpq	%rdx, %r15
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 48(%rax,%rbx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	56(%rax,%rbx), %edi
	callq	_TerminateBackgroundWorker
	movq	24(%r14), %rax
	movq	48(%rax,%rbx), %rdi
	callq	_shm_mq_detach
	movq	24(%r14), %rax
	movq	$0, 48(%rax,%rbx)
	movl	(%r14), %ecx
	jmp	LBB0_5
LBB0_6:
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_dsm_detach
	movq	$0, 40(%r14)
LBB0_8:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_pfree
	movq	$0, 32(%r14)
LBB0_10:
	xorl	%eax, %eax
	callq	_HOLD_INTERRUPTS
	movq	%r14, %rdi
	callq	_WaitForParallelWorkersToExit
	xorl	%eax, %eax
	callq	_RESUME_INTERRUPTS
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_pfree
	movq	$0, 24(%r14)
LBB0_12:
	movq	16(%r14), %rdi
	callq	_pfree
	movq	8(%r14), %rdi
	callq	_pfree
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DestroyParallelContext         ; -- Begin function DestroyParallelContext
	.p2align	2
_DestroyParallelContext:                ; @DestroyParallelContext
	.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	x0, x0, #60
	bl	_dlist_delete
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x20, #0
	mov	w21, #48
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	add	x21, x21, #64
	cmp	x20, w9, sxtw
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x21]
	cbz	x10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, x21
	ldr	w0, [x8, #8]
	bl	_TerminateBackgroundWorker
	ldr	x8, [x19, #24]
	ldr	x0, [x8, x21]
	bl	_shm_mq_detach
	ldr	x8, [x19, #24]
	str	xzr, [x8, x21]
	ldr	w9, [x19]
	b	LBB0_3
LBB0_6:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_dsm_detach
	str	xzr, [x19, #40]
LBB0_8:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_pfree
	str	xzr, [x19, #32]
LBB0_10:
	bl	_HOLD_INTERRUPTS
	mov	x0, x19
	bl	_WaitForParallelWorkersToExit
	bl	_RESUME_INTERRUPTS
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_pfree
	str	xzr, [x19, #24]
LBB0_12:
	ldr	x0, [x19, #16]
	bl	_pfree
	ldr	x0, [x19, #8]
	bl	_pfree
	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	_pfree
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
