	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcSignalInit                 ## -- Begin function ProcSignalInit
	.p2align	4, 0x90
_ProcSignalInit:                        ## @ProcSignalInit
	.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
	movl	%edi, %r15d
	testl	%edi, %edi
	setg	%al
	movq	_NumProcSignalSlots@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	movq	_ProcSignalSlots@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movslq	%r15d, %rbx
	decq	%rbx
	shlq	$4, %rbx
	leaq	(%r12,%rbx), %r14
	cmpq	$0, (%r12,%rbx)
	je	LBB0_2
## %bb.1:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MyProcPid@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	callq	_elog
LBB0_2:
	movl	8(%r12,%rbx), %edi
	movq	_NUM_PROCSIGNALS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_MemSet
	movq	_MyProcPid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_MyProcSignalSlot@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	_CleanupProcSignalState@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r15d, %edi
	callq	_Int32GetDatum
	movl	%r14d, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_on_shmem_exit                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NumProcSignalSlots,4,2         ## @NumProcSignalSlots
	.comm	_ProcSignalSlots,8,3            ## @ProcSignalSlots
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"process %d taking over ProcSignal slot %d, but it's not empty"

	.comm	_MyProcPid,8,3                  ## @MyProcPid
	.comm	_NUM_PROCSIGNALS,4,2            ## @NUM_PROCSIGNALS
	.comm	_MyProcSignalSlot,8,3           ## @MyProcSignalSlot
	.comm	_CleanupProcSignalState,4,2     ## @CleanupProcSignalState
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcSignalInit                 ; -- Begin function ProcSignalInit
	.p2align	2
_ProcSignalInit:                        ; @ProcSignalInit
	.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
	cmp	w0, #0
Lloh0:
	adrp	x8, _NumProcSignalSlots@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NumProcSignalSlots@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w0, #8, gt
	cset	w0, ge
	bl	_Assert
Lloh3:
	adrp	x8, _ProcSignalSlots@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ProcSignalSlots@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sxtw	x9, w19
	sub	x9, x9, #1
	add	x20, x8, x9, lsl #4
	ldr	x8, [x20]
Lloh6:
	adrp	x21, _MyProcPid@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MyProcPid@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _LOG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x2, [x21]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_elog
LBB0_2:
	ldr	w0, [x20, #8]
Lloh13:
	adrp	x8, _NUM_PROCSIGNALS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NUM_PROCSIGNALS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_MemSet
	ldr	x8, [x21]
	str	x8, [x20]
Lloh16:
	adrp	x8, _MyProcSignalSlot@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MyProcSignalSlot@GOTPAGEOFF]
Lloh18:
	str	x20, [x8]
Lloh19:
	adrp	x8, _CleanupProcSignalState@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CleanupProcSignalState@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_Int32GetDatum
	mov	x1, x0
	mov	x0, x20
	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	_on_shmem_exit
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NumProcSignalSlots,4,2         ; @NumProcSignalSlots
	.comm	_ProcSignalSlots,8,3            ; @ProcSignalSlots
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"process %d taking over ProcSignal slot %d, but it's not empty"

	.comm	_MyProcPid,8,3                  ; @MyProcPid
	.comm	_NUM_PROCSIGNALS,4,2            ; @NUM_PROCSIGNALS
	.comm	_MyProcSignalSlot,8,3           ; @MyProcSignalSlot
	.comm	_CleanupProcSignalState,4,2     ; @CleanupProcSignalState
.subsections_via_symbols
