	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReinitializeParallelDSM        ## -- Begin function ReinitializeParallelDSM
	.p2align	4, 0x90
_ReinitializeParallelDSM:               ## @ReinitializeParallelDSM
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	cmpq	$0, (%rdi)
	jle	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_WaitForParallelWorkersToFinish
	movq	%r15, %rdi
	callq	_WaitForParallelWorkersToExit
	movq	$0, (%r15)
	movq	48(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_pfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r15)
LBB0_3:
	movl	32(%r15), %edi
	movq	_PARALLEL_KEY_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_shm_toc_lookup
	movq	$0, (%rax)
	cmpq	$0, 8(%r15)
	jle	LBB0_7
## %bb.4:
	movl	32(%r15), %edi
	movq	_PARALLEL_KEY_ERROR_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_shm_toc_lookup
	cmpq	$0, 8(%r15)
	jle	LBB0_7
## %bb.5:
	movq	%rax, %r14
	xorl	%ebx, %ebx
	movq	_MyProc@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PARALLEL_ERROR_QUEUE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %eax
	imull	%esi, %eax
	movslq	%eax, %rdi
	addq	%r14, %rdi
	callq	_shm_mq_create
	movq	%rax, %r12
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_shm_mq_set_receiver
	movl	16(%r15), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_shm_mq_attach
	movq	24(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, 8(%r15)
	jg	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARALLEL_KEY_FIXED,4,2         ## @PARALLEL_KEY_FIXED
	.comm	_PARALLEL_KEY_ERROR_QUEUE,4,2   ## @PARALLEL_KEY_ERROR_QUEUE
	.comm	_PARALLEL_ERROR_QUEUE_SIZE,4,2  ## @PARALLEL_ERROR_QUEUE_SIZE
	.comm	_MyProc,4,2                     ## @MyProc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReinitializeParallelDSM        ; -- Begin function ReinitializeParallelDSM
	.p2align	2
_ReinitializeParallelDSM:               ; @ReinitializeParallelDSM
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_WaitForParallelWorkersToFinish
	mov	x0, x19
	bl	_WaitForParallelWorkersToExit
	str	xzr, [x19]
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_pfree
	stp	xzr, xzr, [x19, #40]
LBB0_3:
	ldr	w0, [x19, #32]
Lloh0:
	adrp	x8, _PARALLEL_KEY_FIXED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PARALLEL_KEY_FIXED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_shm_toc_lookup
	str	xzr, [x0]
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.4:
	ldr	w0, [x19, #32]
Lloh3:
	adrp	x8, _PARALLEL_KEY_ERROR_QUEUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PARALLEL_KEY_ERROR_QUEUE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_shm_toc_lookup
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x20, x0
	mov	x22, #0
Lloh6:
	adrp	x23, _PARALLEL_ERROR_QUEUE_SIZE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PARALLEL_ERROR_QUEUE_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x24, _MyProc@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MyProc@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mul	w8, w1, w22
	add	x0, x20, w8, sxtw
	bl	_shm_mq_create
	mov	x21, x0
	ldr	w1, [x24]
	bl	_shm_mq_set_receiver
	ldr	w1, [x19, #16]
	mov	x0, x21
	mov	x2, #0
	bl	_shm_mq_attach
	ldr	x8, [x19, #24]
	str	w0, [x8, x22, lsl #2]
	add	x22, x22, #1
	ldr	x8, [x19, #8]
	cmp	x8, x22
	b.gt	LBB0_6
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PARALLEL_KEY_FIXED,4,2         ; @PARALLEL_KEY_FIXED
	.comm	_PARALLEL_KEY_ERROR_QUEUE,4,2   ; @PARALLEL_KEY_ERROR_QUEUE
	.comm	_PARALLEL_ERROR_QUEUE_SIZE,4,2  ; @PARALLEL_ERROR_QUEUE_SIZE
	.comm	_MyProc,4,2                     ; @MyProc
.subsections_via_symbols
