	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CleanupProcSignalState
_CleanupProcSignalState:                ## @CleanupProcSignalState
	.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
	movl	%esi, %edi
	callq	_DatumGetInt32
	movl	%eax, %r14d
	movq	_ProcSignalSlots@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movslq	%r14d, %rbx
	leaq	(%r12,%rbx,8), %r15
	addq	$-8, %r15
	movq	_MyProcSignalSlot@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpq	(%r13), %r15
	sete	%dil
	callq	_Assert
	movq	$0, (%r13)
	movq	-8(%r12,%rbx,8), %rax
	movq	_MyProcPid@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_2
## %bb.1:
	movq	$0, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %r8
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ProcSignalSlots,8,3            ## @ProcSignalSlots
	.comm	_MyProcSignalSlot,8,3           ## @MyProcSignalSlot
	.comm	_MyProcPid,8,3                  ## @MyProcPid
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"process %d releasing ProcSignal slot %d, but it contains %d"

	.no_dead_strip	_CleanupProcSignalState
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CleanupProcSignalState
_CleanupProcSignalState:                ; @CleanupProcSignalState
	.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	x0, x1
	bl	_DatumGetInt32
	mov	x19, x0
Lloh0:
	adrp	x8, _ProcSignalSlots@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ProcSignalSlots@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	w9, w0, #1
	add	x20, x8, w9, sxtw #3
Lloh3:
	adrp	x21, _MyProcSignalSlot@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MyProcSignalSlot@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x20, x8
	cset	w0, eq
	bl	_Assert
	str	xzr, [x21]
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _MyProcPid@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MyProcPid@GOTPAGEOFF]
Lloh7:
	ldr	x2, [x9]
	cmp	x8, x2
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [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
	ret
LBB0_2:
Lloh8:
	adrp	x8, _LOG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x4, [x20]
	mov	x3, x19
                                        ; kill: def $w4 killed $w4 killed $x4
	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	_elog
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ProcSignalSlots,8,3            ; @ProcSignalSlots
	.comm	_MyProcSignalSlot,8,3           ; @MyProcSignalSlot
	.comm	_MyProcPid,8,3                  ; @MyProcPid
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"process %d releasing ProcSignal slot %d, but it contains %d"

	.no_dead_strip	_CleanupProcSignalState
.subsections_via_symbols
