	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstat_reset_shared_counters   ## -- Begin function pgstat_reset_shared_counters
	.p2align	4, 0x90
_pgstat_reset_shared_counters:          ## @pgstat_reset_shared_counters
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_pgStatSock@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PGINVALID_SOCKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_errmsg
	leaq	L_.str.3(%rip), %rdi
	callq	_errhint
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_7
LBB0_2:
	movq	_RESET_ARCHIVER@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_RESET_BGWRITER@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
LBB0_7:
	movq	_PGSTAT_MTYPE_RESETSHAREDCOUNTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_pgstat_setheader
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_pgstat_send
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pgStatSock,8,3                 ## @pgStatSock
	.comm	_PGINVALID_SOCKET,8,3           ## @PGINVALID_SOCKET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"archiver"

	.comm	_RESET_ARCHIVER,4,2             ## @RESET_ARCHIVER
L_.str.1:                               ## @.str.1
	.asciz	"bgwriter"

	.comm	_RESET_BGWRITER,4,2             ## @RESET_BGWRITER
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
L_.str.2:                               ## @.str.2
	.asciz	"unrecognized reset target: \"%s\""

L_.str.3:                               ## @.str.3
	.asciz	"Target must be \"archiver\" or \"bgwriter\"."

	.comm	_PGSTAT_MTYPE_RESETSHAREDCOUNTER,4,2 ## @PGSTAT_MTYPE_RESETSHAREDCOUNTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstat_reset_shared_counters   ; -- Begin function pgstat_reset_shared_counters
	.p2align	2
_pgstat_reset_shared_counters:          ; @pgstat_reset_shared_counters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _pgStatSock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pgStatSock@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _PGINVALID_SOCKET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PGINVALID_SOCKET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.3:
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
Lloh13:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_errcode
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_errmsg
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	b	LBB0_7
LBB0_4:
Lloh20:
	adrp	x8, _RESET_ARCHIVER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RESET_ARCHIVER@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh22:
	adrp	x8, _RESET_BGWRITER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RESET_BGWRITER@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [sp, #12]
LBB0_7:
Lloh24:
	adrp	x8, _PGSTAT_MTYPE_RESETSHAREDCOUNTER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PGSTAT_MTYPE_RESETSHAREDCOUNTER@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_pgstat_setheader
	add	x0, sp, #8
	mov	w1, #8
	bl	_pgstat_send
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_pgStatSock,8,3                 ; @pgStatSock
	.comm	_PGINVALID_SOCKET,8,3           ; @PGINVALID_SOCKET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"archiver"

	.comm	_RESET_ARCHIVER,4,2             ; @RESET_ARCHIVER
l_.str.1:                               ; @.str.1
	.asciz	"bgwriter"

	.comm	_RESET_BGWRITER,4,2             ; @RESET_BGWRITER
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
l_.str.2:                               ; @.str.2
	.asciz	"unrecognized reset target: \"%s\""

l_.str.3:                               ; @.str.3
	.asciz	"Target must be \"archiver\" or \"bgwriter\"."

	.comm	_PGSTAT_MTYPE_RESETSHAREDCOUNTER,4,2 ; @PGSTAT_MTYPE_RESETSHAREDCOUNTER
.subsections_via_symbols
