	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SharedInvalBackendInit         ## -- Begin function SharedInvalBackendInit
	.p2align	4, 0x90
_SharedInvalBackendInit:                ## @SharedInvalBackendInit
	.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	%edi, %r14d
	movq	_shmInvalBuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_SInvalWriteLock@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movslq	(%r15), %rax
	movl	%eax, %edx
	testq	%rax, %rax
	jle	LBB0_5
## %bb.1:
	movq	16(%r15), %rcx
	movq	%rdx, %rsi
	shlq	$4, %rsi
	leaq	(%rsi,%rsi,2), %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rbx)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$48, %rbx
	cmpq	%rbx, %rsi
	jne	LBB0_3
LBB0_5:
	cmpl	4(%r15), %edx
	jge	LBB0_8
## %bb.6:
	movq	16(%r15), %rcx
	leaq	(%rax,%rax,2), %rax
	shlq	$4, %rax
	leaq	(%rcx,%rax), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rcx,%rax)
	sete	%dil
	callq	_Assert
	incl	(%r15)
	movq	16(%r15), %rcx
	jmp	LBB0_7
LBB0_4:
	addq	%rcx, %rbx
LBB0_7:
	movq	%rbx, %rax
	subq	%rcx, %rax
	shrq	$4, %rax
	imull	$-1431655765, %eax, %eax        ## imm = 0xAAAAAAAB
	incl	%eax
	movq	_MyBackendId@GOTPCREL(%rip), %r13
	movl	%eax, (%r13)
	movq	_MyProc@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movl	40(%rbx), %eax
	movq	_nextLocalTransactionId@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	movq	_MyProcPid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%rcx, 32(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 8(%rbx)
	movl	$0, 16(%rbx)
	movl	%r14d, 20(%rbx)
	movl	(%r12), %edi
	callq	_LWLockRelease
	movq	_CleanupInvalidationState@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_PointerGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_on_shmem_exit
	movq	_DEBUG4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
LBB0_8:
	callq	_SharedInvalBackendInit.cold.1
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function SharedInvalBackendInit.cold.1
_SharedInvalBackendInit.cold.1:         ## @SharedInvalBackendInit.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_InvalidBackendId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MyBackendId@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_SInvalWriteLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_TOO_MANY_CONNECTIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_shmInvalBuffer,8,3             ## @shmInvalBuffer
	.comm	_SInvalWriteLock,4,2            ## @SInvalWriteLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_InvalidBackendId,4,2           ## @InvalidBackendId
	.comm	_MyBackendId,4,2                ## @MyBackendId
	.comm	_FATAL,4,2                      ## @FATAL
	.comm	_ERRCODE_TOO_MANY_CONNECTIONS,4,2 ## @ERRCODE_TOO_MANY_CONNECTIONS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sorry, too many clients already"

	.comm	_MyProc,8,3                     ## @MyProc
	.comm	_nextLocalTransactionId,4,2     ## @nextLocalTransactionId
	.comm	_MyProcPid,8,3                  ## @MyProcPid
	.comm	_CleanupInvalidationState,4,2   ## @CleanupInvalidationState
	.comm	_DEBUG4,4,2                     ## @DEBUG4
L_.str.1:                               ## @.str.1
	.asciz	"my backend ID is %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SharedInvalBackendInit         ; -- Begin function SharedInvalBackendInit
	.p2align	2
_SharedInvalBackendInit:                ; @SharedInvalBackendInit
	.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, x0
Lloh0:
	adrp	x8, _shmInvalBuffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _shmInvalBuffer@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x21, _SInvalWriteLock@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SInvalWriteLock@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x10, #0
	ldr	x9, [x19, #16]
	add	x11, x8, x8, lsl #1
	lsl	x11, x11, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, x10]
	cbz	x12, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #48
	cmp	x11, x10
	b.ne	LBB0_2
LBB0_4:
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.5:
	sxtw	x8, w8
	ldr	x9, [x19, #16]
	mov	w10, #48
	madd	x22, x8, x10, x9
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	x9, [x19, #16]
	b	LBB0_7
LBB0_6:
	add	x22, x9, x10
LBB0_7:
	sub	x8, x22, x9
	lsr	x8, x8, #4
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	orr	w10, wzr, #0x1
	madd	w8, w8, w9, w10
Lloh8:
	adrp	x23, _MyBackendId@GOTPAGE
Lloh9:
	ldr	x23, [x23, _MyBackendId@GOTPAGEOFF]
	str	w8, [x23]
Lloh10:
	adrp	x9, _MyProc@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MyProc@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	str	w8, [x9]
	ldr	w8, [x22, #40]
Lloh13:
	adrp	x10, _nextLocalTransactionId@GOTPAGE
Lloh14:
	ldr	x10, [x10, _nextLocalTransactionId@GOTPAGEOFF]
Lloh15:
	str	w8, [x10]
Lloh16:
	adrp	x8, _MyProcPid@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MyProcPid@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x22]
	str	x9, [x22, #32]
	ldr	w8, [x19, #8]
	stp	w20, w8, [x22, #20]
	str	xzr, [x22, #8]
	str	wzr, [x22, #16]
	ldr	w0, [x21]
	bl	_LWLockRelease
Lloh19:
	adrp	x8, _CleanupInvalidationState@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CleanupInvalidationState@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_PointerGetDatum
	mov	x1, x0
	mov	x0, x20
	bl	_on_shmem_exit
Lloh22:
	adrp	x8, _DEBUG4@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DEBUG4@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w2, [x23]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	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_8:
	bl	_SharedInvalBackendInit.cold.1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function SharedInvalBackendInit.cold.1
_SharedInvalBackendInit.cold.1:         ; @SharedInvalBackendInit.cold.1
	.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
Lloh27:
	adrp	x8, _InvalidBackendId@GOTPAGE
Lloh28:
	ldr	x8, [x8, _InvalidBackendId@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _MyBackendId@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MyBackendId@GOTPAGEOFF]
Lloh32:
	str	w8, [x9]
Lloh33:
	adrp	x8, _SInvalWriteLock@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SInvalWriteLock@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_LWLockRelease
Lloh36:
	adrp	x8, _FATAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh38:
	ldr	w19, [x8]
Lloh39:
	adrp	x8, _ERRCODE_TOO_MANY_CONNECTIONS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ERRCODE_TOO_MANY_CONNECTIONS@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_errcode
Lloh42:
	adrp	x0, l_.str@PAGE
Lloh43:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	brk	#0x1
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_shmInvalBuffer,8,3             ; @shmInvalBuffer
	.comm	_SInvalWriteLock,4,2            ; @SInvalWriteLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_InvalidBackendId,4,2           ; @InvalidBackendId
	.comm	_MyBackendId,4,2                ; @MyBackendId
	.comm	_FATAL,4,2                      ; @FATAL
	.comm	_ERRCODE_TOO_MANY_CONNECTIONS,4,2 ; @ERRCODE_TOO_MANY_CONNECTIONS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sorry, too many clients already"

	.comm	_MyProc,8,3                     ; @MyProc
	.comm	_nextLocalTransactionId,4,2     ; @nextLocalTransactionId
	.comm	_MyProcPid,8,3                  ; @MyProcPid
	.comm	_CleanupInvalidationState,4,2   ; @CleanupInvalidationState
	.comm	_DEBUG4,4,2                     ; @DEBUG4
l_.str.1:                               ; @.str.1
	.asciz	"my backend ID is %d"

.subsections_via_symbols
