	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CleanupInvalidationState
_CleanupInvalidationState:              ## @CleanupInvalidationState
	.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
	movl	%esi, %edi
	callq	_DatumGetPointer
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PointerIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	_SInvalWriteLock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	8(%rbx), %rdx
	movq	_MyBackendId@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,4), %rax
	movq	_nextLocalTransactionId@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -8(%rdx,%rax,8)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -24(%rdx,%rax,8)
	movups	%xmm0, -40(%rdx,%rax,8)
	movl	(%rbx), %eax
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%eax, %ecx
	leaq	(%rax,%rax,4), %rsi
	leaq	(%rdx,%rsi,8), %rdx
	addq	$-40, %rdx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	%eax
	cmpq	$0, (%rdx)
	leaq	-40(%rdx), %rdx
	je	LBB0_1
## %bb.3:
	incl	%eax
	movl	%eax, %ecx
LBB0_4:
	movl	%ecx, (%rbx)
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SInvalWriteLock,4,2            ## @SInvalWriteLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_MyBackendId,4,2                ## @MyBackendId
	.comm	_nextLocalTransactionId,4,2     ## @nextLocalTransactionId
	.no_dead_strip	_CleanupInvalidationState
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CleanupInvalidationState
_CleanupInvalidationState:              ; @CleanupInvalidationState
	.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	x0, x1
	bl	_DatumGetPointer
	mov	x19, x0
	bl	_PointerIsValid
	bl	_Assert
Lloh0:
	adrp	x20, _SInvalWriteLock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SInvalWriteLock@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	x10, [x19, #8]
Lloh5:
	adrp	x8, _MyBackendId@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MyBackendId@GOTPAGEOFF]
Lloh7:
	ldrsw	x8, [x8]
Lloh8:
	adrp	x9, _nextLocalTransactionId@GOTPAGE
Lloh9:
	ldr	x9, [x9, _nextLocalTransactionId@GOTPAGEOFF]
	mov	w11, #40
Lloh10:
	ldr	w9, [x9]
	madd	x8, x8, x11, x10
	stur	w9, [x8, #-8]
	movi.2d	v0, #0000000000000000
	stur	q0, [x8, #-40]
	stur	q0, [x8, #-24]
	ldr	w9, [x19]
	cmp	w9, #0
	csel	w8, w9, wzr, lt
	madd	x10, x9, x11, x10
	sub	x10, x10, #40
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	subs	w9, w9, #1
	b.lt	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x11, [x10], #-40
	cbz	x11, LBB0_1
; %bb.3:
	add	w8, w9, #1
LBB0_4:
	str	w8, [x19]
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_LWLockRelease
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SInvalWriteLock,4,2            ; @SInvalWriteLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_MyBackendId,4,2                ; @MyBackendId
	.comm	_nextLocalTransactionId,4,2     ; @nextLocalTransactionId
	.no_dead_strip	_CleanupInvalidationState
.subsections_via_symbols
