	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pgstat_recv_inquiry
_pgstat_recv_inquiry:                   ## @pgstat_recv_inquiry
	.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
	movq	%rdi, %rbx
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	16(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
	movq	_pending_write_requests@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	16(%rbx), %esi
	callq	_list_member_oid
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	callq	_pgstat_get_db_entry
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movq	(%rax), %rax
	cmpq	%rax, (%rbx)
	jge	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	movq	(%r14), %rdi
	cmpq	%rdi, %rax
	jge	LBB0_7
## %bb.4:
	movq	%rax, %r15
	callq	_timestamptz_to_str
	movl	%eax, %edi
	callq	_pstrdup
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_timestamptz_to_str
	movl	%eax, %edi
	callq	_pstrdup
	movq	%rax, %r15
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %r8d
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_elog
	movq	%r12, %rdi
	callq	_pfree
	movq	%r15, %rdi
	callq	_pfree
	jmp	LBB0_6
LBB0_5:
	cmpq	%rax, 8(%rbx)
	jle	LBB0_7
LBB0_6:
	movl	(%r13), %edi
	movl	16(%rbx), %esi
	callq	_lappend_oid
	movl	%eax, (%r13)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG2,4,2                     ## @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"received inquiry for database %u"

	.comm	_pending_write_requests,4,2     ## @pending_write_requests
	.comm	_LOG,4,2                        ## @LOG
L_.str.1:                               ## @.str.1
	.asciz	"stats_timestamp %s is later than collector's time %s for database %u"

	.no_dead_strip	_pgstat_recv_inquiry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pgstat_recv_inquiry
_pgstat_recv_inquiry:                   ; @pgstat_recv_inquiry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
Lloh0:
	adrp	x8, _DEBUG2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG2@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldrsw	x2, [x19, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
Lloh5:
	adrp	x23, _pending_write_requests@GOTPAGE
Lloh6:
	ldr	x23, [x23, _pending_write_requests@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w1, [x19, #16]
	bl	_list_member_oid
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	w0, [x19, #16]
	mov	w1, #0
	bl	_pgstat_get_db_entry
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	x9, [x19]
	ldr	x8, [x0]
	cmp	x9, x8
	b.ge	LBB0_5
; %bb.3:
	bl	_GetCurrentTimestamp
	mov	x21, x0
	ldr	x0, [x20]
	cmp	x21, x0
	b.ge	LBB0_7
; %bb.4:
	bl	_timestamptz_to_str
	bl	_pstrdup
	mov	x22, x0
	mov	x0, x21
	bl	_timestamptz_to_str
	bl	_pstrdup
	mov	x21, x0
Lloh7:
	adrp	x8, _LOG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w8, [x20, #8]
	stp	x21, x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_elog
	mov	x0, x22
	bl	_pfree
	mov	x0, x21
	bl	_pfree
	b	LBB0_6
LBB0_5:
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.le	LBB0_7
LBB0_6:
	ldr	w0, [x23]
	ldr	w1, [x19, #16]
	bl	_lappend_oid
	str	w0, [x23]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG2,4,2                     ; @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"received inquiry for database %u"

	.comm	_pending_write_requests,4,2     ; @pending_write_requests
	.comm	_LOG,4,2                        ; @LOG
l_.str.1:                               ; @.str.1
	.asciz	"stats_timestamp %s is later than collector's time %s for database %u"

	.no_dead_strip	_pgstat_recv_inquiry
.subsections_via_symbols
