	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SwitchBackToLocalLatch         ## -- Begin function SwitchBackToLocalLatch
	.p2align	4, 0x90
_SwitchBackToLocalLatch:                ## @SwitchBackToLocalLatch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_MyLatch@GOTPCREL(%rip), %r14
	movq	_LocalLatchData@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	%rbx, (%r14)
	setne	%dil
	callq	_Assert
	movq	_MyProc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	setne	%cl
	cmpq	%rax, (%r14)
	sete	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_Assert
	movq	%rbx, (%r14)
	movq	_FeBeWaitSet@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_WL_LATCH_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LocalLatchData@GOTPCREL(%rip), %rcx
	movl	$1, %esi
	callq	_ModifyWaitEvent
	movq	(%r14), %rbx
LBB0_2:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_SetLatch                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MyLatch,8,3                    ## @MyLatch
	.comm	_LocalLatchData,4,2             ## @LocalLatchData
	.comm	_MyProc,8,3                     ## @MyProc
	.comm	_FeBeWaitSet,8,3                ## @FeBeWaitSet
	.comm	_WL_LATCH_SET,4,2               ## @WL_LATCH_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SwitchBackToLocalLatch         ; -- Begin function SwitchBackToLocalLatch
	.p2align	2
_SwitchBackToLocalLatch:                ; @SwitchBackToLocalLatch
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _MyLatch@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MyLatch@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x19, _LocalLatchData@GOTPAGE
Lloh3:
	ldr	x19, [x19, _LocalLatchData@GOTPAGEOFF]
	cmp	x8, x19
	cset	w0, ne
	bl	_Assert
Lloh4:
	adrp	x8, _MyProc@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MyProc@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x8, #0
	ldr	x9, [x20]
	ccmp	x9, x8, #0, ne
	cset	w0, eq
	bl	_Assert
	str	x19, [x20]
Lloh7:
	adrp	x8, _FeBeWaitSet@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FeBeWaitSet@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _WL_LATCH_SET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WL_LATCH_SET@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x3, _LocalLatchData@GOTPAGE
Lloh14:
	ldr	x3, [x3, _LocalLatchData@GOTPAGEOFF]
	mov	w1, #1
	bl	_ModifyWaitEvent
	ldr	x19, [x20]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SetLatch
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MyLatch,8,3                    ; @MyLatch
	.comm	_LocalLatchData,4,2             ; @LocalLatchData
	.comm	_MyProc,8,3                     ; @MyProc
	.comm	_FeBeWaitSet,8,3                ; @FeBeWaitSet
	.comm	_WL_LATCH_SET,4,2               ; @WL_LATCH_SET
.subsections_via_symbols
