	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XidCacheRemoveRunningXids      ## -- Begin function XidCacheRemoveRunningXids
	.p2align	4, 0x90
_XidCacheRemoveRunningXids:             ## @XidCacheRemoveRunningXids
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	callq	_TransactionIdIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	_ProcArrayLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.1:
	movl	%ebx, %r13d
	movq	_MyProc@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MyPgXact@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$1, %r12
	jle	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r13, %r12
	decq	%r13
	movl	%r13d, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %ebx
	movq	_MyPgXact@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	-4(%rax,%r14,4), %edi
	decq	%r14
	movl	%ebx, %esi
	callq	_TransactionIdEquals
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_XidCacheRemove
	jmp	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_elog
	jmp	LBB0_8
LBB0_9:
	movq	_MyPgXact@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %ebx
	movq	_MyProc@GOTPCREL(%rip), %r15
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	-4(%rax,%rbx,4), %edi
	decq	%rbx
	movl	%r12d, %esi
	callq	_TransactionIdEquals
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:
	movl	%ebx, %edi
	callq	_XidCacheRemove
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_ProcArrayLock@GOTPCREL(%rip), %r15
	jmp	LBB0_15
LBB0_13:
	movq	(%r14), %rax
	cmpl	$0, 4(%rax)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_ProcArrayLock@GOTPCREL(%rip), %r15
	jne	LBB0_15
## %bb.14:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_elog
LBB0_15:
	movq	_ShmemVariableCache@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	(%r14), %rax
	movl	%ebx, (%rax)
LBB0_17:
	movl	(%r15), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ProcArrayLock,4,2              ## @ProcArrayLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_MyPgXact,8,3                   ## @MyPgXact
	.comm	_MyProc,8,3                     ## @MyProc
	.comm	_WARNING,4,2                    ## @WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"did not find subXID %u in MyProc"

	.comm	_ShmemVariableCache,8,3         ## @ShmemVariableCache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XidCacheRemoveRunningXids      ; -- Begin function XidCacheRemoveRunningXids
	.p2align	2
_XidCacheRemoveRunningXids:             ; @XidCacheRemoveRunningXids
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w3, [sp, #12]                   ; 4-byte Folded Spill
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_TransactionIdIsValid
	bl	_Assert
Lloh0:
	adrp	x8, _ProcArrayLock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ProcArrayLock@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh6:
	adrp	x26, _MyPgXact@GOTPAGE
Lloh7:
	ldr	x26, [x26, _MyPgXact@GOTPAGEOFF]
Lloh8:
	adrp	x27, _MyProc@GOTPAGE
Lloh9:
	ldr	x27, [x27, _MyProc@GOTPAGEOFF]
	cmp	w22, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w19, w22
Lloh10:
	adrp	x25, _WARNING@GOTPAGE
Lloh11:
	ldr	x25, [x25, _WARNING@GOTPAGEOFF]
Lloh12:
	adrp	x22, l_.str@PAGE
Lloh13:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x28, #1
	b.le	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x28, x19
	sub	x19, x19, #1
	ldr	w23, [x21, w19, uxtw #2]
	ldr	x8, [x26]
	ldr	w8, [x8]
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	sub	x24, x8, #1
	ldr	x9, [x27]
	ldr	x9, [x9]
	add	x8, x9, x8, lsl #2
	ldur	w0, [x8, #-4]
	mov	x1, x23
	bl	_TransactionIdEquals
	mov	x8, x24
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_XidCacheRemove
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	mov	x1, x22
	mov	x2, x23
	bl	_elog
	b	LBB0_3
LBB0_9:
	ldr	x8, [x26]
	ldr	w8, [x8]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	sub	x21, x8, #1
	ldr	x9, [x27]
	ldr	x9, [x9]
	add	x8, x9, x8, lsl #2
	ldur	w0, [x8, #-4]
	mov	x1, x20
	bl	_TransactionIdEquals
	mov	x8, x21
	cbz	x0, LBB0_10
; %bb.12:
	mov	x0, x21
	bl	_XidCacheRemove
	ldr	w21, [sp, #12]                  ; 4-byte Folded Reload
Lloh14:
	adrp	x22, _ProcArrayLock@GOTPAGE
Lloh15:
	ldr	x22, [x22, _ProcArrayLock@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	ldr	x8, [x26]
	ldr	w8, [x8, #4]
	ldr	w21, [sp, #12]                  ; 4-byte Folded Reload
Lloh16:
	adrp	x22, _ProcArrayLock@GOTPAGE
Lloh17:
	ldr	x22, [x22, _ProcArrayLock@GOTPAGEOFF]
	cbnz	w8, LBB0_15
; %bb.14:
Lloh18:
	adrp	x8, _WARNING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WARNING@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_elog
LBB0_15:
Lloh23:
	adrp	x19, _ShmemVariableCache@GOTPAGE
Lloh24:
	ldr	x19, [x19, _ShmemVariableCache@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_TransactionIdPrecedes
	cbz	x0, LBB0_17
; %bb.16:
	ldr	x8, [x19]
	str	w21, [x8]
LBB0_17:
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_LWLockRelease
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ProcArrayLock,4,2              ; @ProcArrayLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_MyPgXact,8,3                   ; @MyPgXact
	.comm	_MyProc,8,3                     ; @MyProc
	.comm	_WARNING,4,2                    ; @WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"did not find subXID %u in MyProc"

	.comm	_ShmemVariableCache,8,3         ; @ShmemVariableCache
.subsections_via_symbols
