	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcArrayRemove                ## -- Begin function ProcArrayRemove
	.p2align	4, 0x90
_ProcArrayRemove:                       ## @ProcArrayRemove
	.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, %r15d
	movq	%rdi, %r14
	movq	_procArray@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_ProcArrayLock@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movl	%r15d, %edi
	callq	_TransactionIdIsValid
	movl	%eax, %ebx
	movq	_allPgXact@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_TransactionIdIsValid
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movl	%eax, %edi
	callq	_Assert
	movq	_ShmemVariableCache@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rbx), %rax
	movl	%r15d, (%rax)
	jmp	LBB0_4
LBB0_3:
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
LBB0_4:
	movl	(%r13), %edx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.5:
	movq	8(%r13), %rdi
	movq	8(%r14), %rcx
	leaq	(,%rdx,4), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rdi)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	$8, %rdi
	addq	$4, %rax
	cmpq	%rax, %rsi
	jne	LBB0_6
LBB0_8:
	movl	(%r12), %edi
	callq	_LWLockRelease
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
LBB0_9:
	leaq	8(%rdi), %rsi
	shll	$2, %edx
	subl	%eax, %edx
	addl	$-4, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memmove
	movq	8(%r13), %rax
	movslq	(%r13), %rcx
	movq	$-1, -8(%rax,%rcx,8)
	decq	%rcx
	movl	%ecx, (%r13)
	movl	(%r12), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_procArray,8,3                  ## @procArray
	.comm	_ProcArrayLock,4,2              ## @ProcArrayLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_allPgXact,8,3                  ## @allPgXact
	.comm	_ShmemVariableCache,8,3         ## @ShmemVariableCache
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find proc %p in ProcArray"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcArrayRemove                ; -- Begin function ProcArrayRemove
	.p2align	2
_ProcArrayRemove:                       ; @ProcArrayRemove
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _procArray@GOTPAGE
Lloh1:
	ldr	x8, [x8, _procArray@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x22, _ProcArrayLock@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ProcArrayLock@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh5:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	mov	x0, x20
	bl	_TransactionIdIsValid
	mov	x21, x0
Lloh8:
	adrp	x8, _allPgXact@GOTPAGE
Lloh9:
	ldr	x8, [x8, _allPgXact@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldr	w0, [x8, x9, lsl #2]
	bl	_TransactionIdIsValid
	cbz	w21, LBB0_3
; %bb.1:
	bl	_Assert
Lloh11:
	adrp	x21, _ShmemVariableCache@GOTPAGE
Lloh12:
	ldr	x21, [x21, _ShmemVariableCache@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_TransactionIdPrecedes
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x21]
	str	w20, [x8]
	b	LBB0_4
LBB0_3:
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
LBB0_4:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	ldr	x0, [x23, #8]
	ldr	x9, [x19, #8]
	lsl	w10, w8, #2
	sub	w2, w10, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x0]
	cmp	x10, x9
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x0, #8
	sub	w2, w2, #4
	subs	x8, x8, #1
	b.ne	LBB0_6
LBB0_8:
	ldr	w0, [x22]
	bl	_LWLockRelease
Lloh13:
	adrp	x8, _LOG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_elog
LBB0_9:
	add	x1, x0, #8
	bl	_memmove
	ldr	x8, [x23, #8]
	ldrsw	x9, [x23]
	sub	x9, x9, #1
	mov	x10, #-1
	str	x10, [x8, x9, lsl #3]
	str	w9, [x23]
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_LWLockRelease
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_procArray,8,3                  ; @procArray
	.comm	_ProcArrayLock,4,2              ; @ProcArrayLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_allPgXact,8,3                  ; @allPgXact
	.comm	_ShmemVariableCache,8,3         ; @ShmemVariableCache
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find proc %p in ProcArray"

.subsections_via_symbols
