	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstat_initialize              ## -- Begin function pgstat_initialize
	.p2align	4, 0x90
_pgstat_initialize:                     ## @pgstat_initialize
	.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	_MyBackendId@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_InvalidBackendId@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_MyAuxProcType@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_NotAnAuxProcess@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setne	%dil
	callq	_Assert
	movq	_MaxBackends@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_1:
	testl	%eax, %eax
	setg	%cl
	movq	_MaxBackends@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	setle	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_Assert
	movl	$-1, %eax
LBB0_3:
	movq	_BackendStatusArray@GOTPCREL(%rip), %rcx
	movslq	(%rbx), %rdx
	cltq
	addq	%rdx, %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
	movq	_MyBEEntry@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_pgstat_beshutdown_hook@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_on_shmem_exit                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MyBackendId,4,2                ## @MyBackendId
	.comm	_InvalidBackendId,4,2           ## @InvalidBackendId
	.comm	_MaxBackends,4,2                ## @MaxBackends
	.comm	_BackendStatusArray,8,3         ## @BackendStatusArray
	.comm	_MyBEEntry,8,3                  ## @MyBEEntry
	.comm	_MyAuxProcType,4,2              ## @MyAuxProcType
	.comm	_NotAnAuxProcess,4,2            ## @NotAnAuxProcess
	.comm	_pgstat_beshutdown_hook,4,2     ## @pgstat_beshutdown_hook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstat_initialize              ; -- Begin function pgstat_initialize
	.p2align	2
_pgstat_initialize:                     ; @pgstat_initialize
	.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
Lloh0:
	adrp	x8, _MyBackendId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MyBackendId@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _InvalidBackendId@GOTPAGE
Lloh4:
	ldr	x9, [x9, _InvalidBackendId@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x19, _MyAuxProcType@GOTPAGE
Lloh7:
	ldr	x19, [x19, _MyAuxProcType@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _NotAnAuxProcess@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NotAnAuxProcess@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, ne
	bl	_Assert
Lloh11:
	adrp	x8, _MaxBackends@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MaxBackends@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	b	LBB0_3
LBB0_2:
	cmp	w8, #0
Lloh14:
	adrp	x9, _MaxBackends@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MaxBackends@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	ccmp	w8, w9, #0, gt
	cset	w0, le
	bl	_Assert
	mov	w8, #-1
Lloh17:
	adrp	x19, _MyBackendId@GOTPAGE
Lloh18:
	ldr	x19, [x19, _MyBackendId@GOTPAGEOFF]
LBB0_3:
Lloh19:
	adrp	x9, _BackendStatusArray@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BackendStatusArray@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	ldr	w10, [x19]
	add	w8, w10, w8
	add	x8, x9, w8, sxtw #2
Lloh22:
	adrp	x9, _MyBEEntry@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MyBEEntry@GOTPAGEOFF]
Lloh24:
	str	x8, [x9]
Lloh25:
	adrp	x8, _pgstat_beshutdown_hook@GOTPAGE
Lloh26:
	ldr	x8, [x8, _pgstat_beshutdown_hook@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_on_shmem_exit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MyBackendId,4,2                ; @MyBackendId
	.comm	_InvalidBackendId,4,2           ; @InvalidBackendId
	.comm	_MaxBackends,4,2                ; @MaxBackends
	.comm	_BackendStatusArray,8,3         ; @BackendStatusArray
	.comm	_MyBEEntry,8,3                  ; @MyBEEntry
	.comm	_MyAuxProcType,4,2              ; @MyAuxProcType
	.comm	_NotAnAuxProcess,4,2            ; @NotAnAuxProcess
	.comm	_pgstat_beshutdown_hook,4,2     ; @pgstat_beshutdown_hook
.subsections_via_symbols
