	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function backend_read_statsfile
_backend_read_statsfile:                ## @backend_read_statsfile
	.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
	movq	_pgStatDBHash@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_27
## %bb.1:
	movq	_pgStatRunningInCollector@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_Assert
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_IsAutoVacuumLauncherProcess
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_MyDatabaseId@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_InvalidOid@GOTPCREL(%rip), %rcx
LBB0_4:
	movq	_PGSTAT_POLL_LOOP_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_21
## %bb.5:
	movl	(%rcx), %ebx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_PGSTAT_RETRY_DELAY@GOTPCREL(%rip), %rax
	imulq	$1000, (%rax), %rdi             ## imm = 0x3E8
	callq	_pg_usleep
	incl	%r15d
	movq	_PGSTAT_POLL_LOOP_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	jge	LBB0_21
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -56(%rbp)
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movl	%ebx, %edi
	xorl	%esi, %esi
	leaq	-56(%rbp), %rdx
	callq	_pgstat_read_db_statsfile_timestamp
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	movq	%rax, %r12
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r14, %r12
	jl	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_12
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_IsAutoVacuumWorkerProcess
	movq	_PGSTAT_RETRY_DELAY@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_PGSTAT_STAT_INTERVAL@GOTPCREL(%rip), %rcx
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%esi, %esi
	subl	(%rcx), %esi
	movq	%r12, %rdi
	callq	_TimestampTzPlusMilliseconds
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %r14
	testl	%r13d, %r13d
	je	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %r13d
	movq	-56(%rbp), %rbx
	cmpq	%r12, %rbx
	jg	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	movl	%r13d, %ebx
	jge	LBB0_16
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, %eax
	cltd
	movq	_PGSTAT_INQ_LOOP_COUNT@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	testl	%edx, %edx
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_pgstat_send_inquiry
	jmp	LBB0_20
LBB0_13:
	movq	%r12, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_TimestampTzPlusMilliseconds
	cmpq	%rax, %rbx
	jl	LBB0_15
## %bb.14:
	movq	-56(%rbp), %rdi
	callq	_timestamptz_to_str
	movl	%eax, %edi
	callq	_pstrdup
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_timestamptz_to_str
	movl	%eax, %edi
	callq	_pstrdup
	movq	%rax, %rbx
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_elog
	movq	%r14, %rdi
	callq	_pfree
	movq	%rbx, %rdi
	callq	_pfree
LBB0_15:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_pgstat_send_inquiry
LBB0_16:
	movq	_PGSTAT_POLL_LOOP_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_21:
	cmpl	%eax, %r15d
	jl	LBB0_23
## %bb.22:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_23:
	xorl	%eax, %eax
	callq	_IsAutoVacuumLauncherProcess
	xorl	%edx, %edx
	testq	%rax, %rax
	sete	%dl
	movq	_pgStatDBHash@GOTPCREL(%rip), %rbx
	jne	LBB0_24
## %bb.25:
	movq	_MyDatabaseId@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_24:
	movq	_InvalidOid@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_pgstat_read_statsfiles
	movq	%rax, (%rbx)
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pgStatDBHash,8,3               ## @pgStatDBHash
	.comm	_pgStatRunningInCollector,4,2   ## @pgStatRunningInCollector
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_MyDatabaseId,4,2               ## @MyDatabaseId
	.comm	_PGSTAT_POLL_LOOP_COUNT,4,2     ## @PGSTAT_POLL_LOOP_COUNT
	.comm	_PGSTAT_RETRY_DELAY,8,3         ## @PGSTAT_RETRY_DELAY
	.comm	_PGSTAT_STAT_INTERVAL,4,2       ## @PGSTAT_STAT_INTERVAL
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stats collector's time %s is later than backend local time %s"

	.comm	_PGSTAT_INQ_LOOP_COUNT,4,2      ## @PGSTAT_INQ_LOOP_COUNT
L_.str.1:                               ## @.str.1
	.asciz	"using stale statistics instead of current ones because stats collector is not responding"

	.no_dead_strip	_backend_read_statsfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function backend_read_statsfile
_backend_read_statsfile:                ; @backend_read_statsfile
	.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
Lloh0:
	adrp	x20, _pgStatDBHash@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pgStatDBHash@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_20
; %bb.1:
Lloh2:
	adrp	x8, _pgStatRunningInCollector@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pgStatRunningInCollector@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	bl	_IsAutoVacuumLauncherProcess
Lloh5:
	adrp	x21, _MyDatabaseId@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MyDatabaseId@GOTPAGEOFF]
Lloh7:
	adrp	x22, _InvalidOid@GOTPAGE
Lloh8:
	ldr	x22, [x22, _InvalidOid@GOTPAGEOFF]
	cmp	x0, #0
	csel	x9, x21, x22, eq
Lloh9:
	adrp	x28, _PGSTAT_POLL_LOOP_COUNT@GOTPAGE
Lloh10:
	ldr	x28, [x28, _PGSTAT_POLL_LOOP_COUNT@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.2:
	mov	x20, #0
	mov	x25, #0
	mov	w27, #0
Lloh11:
	adrp	x23, _PGSTAT_RETRY_DELAY@GOTPAGE
Lloh12:
	ldr	x23, [x23, _PGSTAT_RETRY_DELAY@GOTPAGEOFF]
	ldr	w19, [x9]
	mov	w26, #1000
Lloh13:
	adrp	x24, _PGSTAT_INQ_LOOP_COUNT@GOTPAGE
Lloh14:
	ldr	x24, [x24, _PGSTAT_INQ_LOOP_COUNT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	mul	x0, x8, x26
	bl	_pg_usleep
	add	w27, w27, #1
	ldr	w8, [x28]
	cmp	w27, w8
	b.ge	LBB0_17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #8]
	bl	_CHECK_FOR_INTERRUPTS
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #0
	bl	_pgstat_read_db_statsfile_timestamp
	mov	x22, x0
	bl	_GetCurrentTimestamp
	mov	x21, x0
	cbz	w27, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x21, x25
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w22, LBB0_8
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_IsAutoVacuumWorkerProcess
	cmp	x0, #0
Lloh15:
	adrp	x8, _PGSTAT_STAT_INTERVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PGSTAT_STAT_INTERVAL@GOTPAGEOFF]
	csel	x8, x8, x23, eq
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x21
	bl	_TimestampTzPlusMilliseconds
	mov	x20, x0
	mov	x25, x21
	cbz	w22, LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [sp, #8]
	cmp	x22, x21
	b.gt	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x22, x20
	b.ge	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	sdiv	w9, w27, w8
	msub	w8, w9, w8, w27
	cbnz	w8, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_pgstat_send_inquiry
	b	LBB0_3
LBB0_12:
	mov	w27, #0
	cmp	w27, w8
	b.ge	LBB0_18
	b	LBB0_19
LBB0_13:
	mov	x0, x21
	mov	w1, #1000
	bl	_TimestampTzPlusMilliseconds
	cmp	x22, x0
	b.lt	LBB0_15
; %bb.14:
	ldr	x0, [sp, #8]
	bl	_timestamptz_to_str
	bl	_pstrdup
	mov	x22, x0
	mov	x0, x21
	bl	_timestamptz_to_str
	bl	_pstrdup
	mov	x23, x0
Lloh17:
	adrp	x8, _LOG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x23
	bl	_elog
	mov	x0, x22
	bl	_pfree
	mov	x0, x23
	bl	_pfree
LBB0_15:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_pgstat_send_inquiry
LBB0_16:
	ldr	w8, [x28]
LBB0_17:
Lloh22:
	adrp	x20, _pgStatDBHash@GOTPAGE
Lloh23:
	ldr	x20, [x20, _pgStatDBHash@GOTPAGEOFF]
Lloh24:
	adrp	x21, _MyDatabaseId@GOTPAGE
Lloh25:
	ldr	x21, [x21, _MyDatabaseId@GOTPAGEOFF]
Lloh26:
	adrp	x22, _InvalidOid@GOTPAGE
Lloh27:
	ldr	x22, [x22, _InvalidOid@GOTPAGEOFF]
	cmp	w27, w8
	b.lt	LBB0_19
LBB0_18:
Lloh28:
	adrp	x8, _LOG@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh30:
	ldr	w19, [x8]
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_19:
	bl	_IsAutoVacuumLauncherProcess
	cmp	x0, #0
	csel	x8, x21, x22, eq
	cset	w2, eq
	ldr	w0, [x8]
	mov	w1, #0
	bl	_pgstat_read_statsfiles
	str	x0, [x20]
LBB0_20:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_pgStatDBHash,8,3               ; @pgStatDBHash
	.comm	_pgStatRunningInCollector,4,2   ; @pgStatRunningInCollector
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_MyDatabaseId,4,2               ; @MyDatabaseId
	.comm	_PGSTAT_POLL_LOOP_COUNT,4,2     ; @PGSTAT_POLL_LOOP_COUNT
	.comm	_PGSTAT_RETRY_DELAY,8,3         ; @PGSTAT_RETRY_DELAY
	.comm	_PGSTAT_STAT_INTERVAL,4,2       ; @PGSTAT_STAT_INTERVAL
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stats collector's time %s is later than backend local time %s"

	.comm	_PGSTAT_INQ_LOOP_COUNT,4,2      ; @PGSTAT_INQ_LOOP_COUNT
l_.str.1:                               ; @.str.1
	.asciz	"using stale statistics instead of current ones because stats collector is not responding"

	.no_dead_strip	_backend_read_statsfile
.subsections_via_symbols
