	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetLatch                       ## -- Begin function SetLatch
	.p2align	4, 0x90
_SetLatch:                              ## @SetLatch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_pg_memory_barrier
	cmpl	$0, (%rbx)
	je	LBB0_1
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movl	$1, (%rbx)
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.2:
	movq	_MyProcPid@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_5
## %bb.3:
	movq	_waiting@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_sendSelfPipeByte               ## TAILCALL
LBB0_5:
	movq	_SIGUSR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kill                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MyProcPid,8,3                  ## @MyProcPid
	.comm	_waiting,8,3                    ## @waiting
	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetLatch                       ; -- Begin function SetLatch
	.p2align	2
_SetLatch:                              ; @SetLatch
	.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
	mov	x19, x0
	bl	_pg_memory_barrier
	ldr	w8, [x19]
	cbz	w8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w8, #1
	str	w8, [x19]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_1
; %bb.3:
Lloh0:
	adrp	x8, _MyProcPid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MyProcPid@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _waiting@GOTPAGE
Lloh4:
	ldr	x8, [x8, _waiting@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sendSelfPipeByte
LBB0_6:
Lloh6:
	adrp	x8, _SIGUSR1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIGUSR1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kill
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MyProcPid,8,3                  ; @MyProcPid
	.comm	_waiting,8,3                    ; @waiting
	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
.subsections_via_symbols
