	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function XLogWalRcvSendHSFeedback
_XLogWalRcvSendHSFeedback:              ## @XLogWalRcvSendHSFeedback
	.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
	movl	%edi, %ebx
	movq	_wal_receiver_status_interval@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	setg	%al
	movq	_hot_standby_feedback@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	setne	%cl
	testb	%cl, %al
	jne	LBB0_2
## %bb.1:
	testb	$1, _XLogWalRcvSendHSFeedback.master_has_standby_xmin(%rip)
	jne	LBB0_14
LBB0_2:
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.3:
	movl	%eax, %r14d
	movl	_XLogWalRcvSendHSFeedback.sendTime(%rip), %edi
	imull	$1000, (%r12), %edx             ## imm = 0x3E8
	movl	%eax, %esi
	callq	_TimestampDifferenceExceeds
	testl	%eax, %eax
	je	LBB0_14
## %bb.4:
	movl	%r14d, _XLogWalRcvSendHSFeedback.sendTime(%rip)
LBB0_5:
	xorl	%eax, %eax
	callq	_HotStandbyActive
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.7:
	movq	_PROCARRAY_FLAGS_DEFAULT@GOTPCREL(%rip), %rax
	movq	_PROCARRAY_SLOTS_XMIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	xorl	%edi, %edi
	callq	_GetOldestXmin
	movq	%rax, %r14
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_ProcArrayGetReplicationSlotXmin
	movq	-56(%rbp), %rdi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	-56(%rbp), %rdi
	movq	%r14, %rsi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	-56(%rbp), %r14
	jmp	LBB0_11
LBB0_10:
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, -48(%rbp)
LBB0_11:
	xorl	%eax, %eax
	callq	_ReadNextFullTransactionId
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_XidFromFullTransactionId
	movq	%rax, %r13
	movl	%ebx, %edi
	callq	_EpochFromFullTransactionId
	leaq	-1(%rax), %r12
	cmpq	%r14, %r13
	movq	%rax, %r15
	cmovlq	%r12, %r15
	movq	-48(%rbp), %r8
	cmpq	%r8, %r13
	cmovgeq	%rax, %r12
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%r12, %r9
	callq	_elog
	movq	_reply_message@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_resetStringInfo
	movq	%rbx, %rdi
	movl	$104, %esi
	callq	_pq_sendbyte
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pq_sendint64
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_pq_sendint32
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pq_sendint32
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_pq_sendint32
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_pq_sendint32
	movq	_wrconn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	callq	_walrcv_send
	movq	%r14, %rdi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	movl	$0, %eax
	jne	LBB0_13
## %bb.12:
	movq	-48(%rbp), %rdi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	sete	%al
LBB0_13:
	movb	%al, _XLogWalRcvSendHSFeedback.master_has_standby_xmin(%rip)
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_XLogWalRcvSendHSFeedback.sendTime,4,2 ## @XLogWalRcvSendHSFeedback.sendTime
.zerofill __DATA,__bss,_XLogWalRcvSendHSFeedback.master_has_standby_xmin,1,2 ## @XLogWalRcvSendHSFeedback.master_has_standby_xmin
	.comm	_wal_receiver_status_interval,4,2 ## @wal_receiver_status_interval
	.comm	_hot_standby_feedback,8,3       ## @hot_standby_feedback
	.comm	_PROCARRAY_FLAGS_DEFAULT,4,2    ## @PROCARRAY_FLAGS_DEFAULT
	.comm	_PROCARRAY_SLOTS_XMIN,4,2       ## @PROCARRAY_SLOTS_XMIN
	.comm	_InvalidTransactionId,8,3       ## @InvalidTransactionId
	.comm	_DEBUG2,4,2                     ## @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sending hot standby feedback xmin %u epoch %u catalog_xmin %u catalog_xmin_epoch %u"

	.comm	_reply_message,8,2              ## @reply_message
	.comm	_wrconn,4,2                     ## @wrconn
	.no_dead_strip	_XLogWalRcvSendHSFeedback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function XLogWalRcvSendHSFeedback
_XLogWalRcvSendHSFeedback:              ; @XLogWalRcvSendHSFeedback
	.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
Lloh0:
	adrp	x22, _wal_receiver_status_interval@GOTPAGE
Lloh1:
	ldr	x22, [x22, _wal_receiver_status_interval@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x21, _hot_standby_feedback@GOTPAGE
Lloh3:
	ldr	x21, [x21, _hot_standby_feedback@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x9, #0
	ccmp	w8, #0, #4, ne
	adrp	x23, _XLogWalRcvSendHSFeedback.master_has_standby_xmin@PAGE
	ldrb	w8, [x23, _XLogWalRcvSendHSFeedback.master_has_standby_xmin@PAGEOFF]
	ccmp	w8, #0, #4, le
	b.ne	LBB0_13
; %bb.1:
	mov	x20, x0
	bl	_GetCurrentTimestamp
	cbz	w20, LBB0_6
; %bb.2:
	bl	_HotStandbyActive
	cbz	w0, LBB0_13
LBB0_3:
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.4:
Lloh4:
	adrp	x8, _PROCARRAY_FLAGS_DEFAULT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PROCARRAY_FLAGS_DEFAULT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _PROCARRAY_SLOTS_XMIN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PROCARRAY_SLOTS_XMIN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, #0
	bl	_GetOldestXmin
	mov	x19, x0
	mov	x0, sp
	add	x1, sp, #8
	bl	_ProcArrayGetReplicationSlotXmin
	ldr	x0, [sp]
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x0, [sp]
	mov	x1, x19
	bl	_TransactionIdPrecedes
	ldr	x8, [sp]
	cmp	x0, #0
	csel	x19, x19, x8, eq
	b	LBB0_9
LBB0_6:
	mov	x19, x0
	adrp	x20, _XLogWalRcvSendHSFeedback.sendTime@PAGE
	ldr	w0, [x20, _XLogWalRcvSendHSFeedback.sendTime@PAGEOFF]
	ldr	w8, [x22]
	mov	w9, #1000
	mul	w2, w8, w9
	mov	x1, x19
	bl	_TimestampDifferenceExceeds
	cbz	w0, LBB0_13
; %bb.7:
	str	w19, [x20, _XLogWalRcvSendHSFeedback.sendTime@PAGEOFF]
	bl	_HotStandbyActive
	cbnz	w0, LBB0_3
	b	LBB0_13
LBB0_8:
Lloh10:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh11:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh12:
	ldr	x19, [x8]
	str	x19, [sp, #8]
LBB0_9:
	bl	_ReadNextFullTransactionId
	mov	x20, x0
	bl	_XidFromFullTransactionId
	mov	x21, x0
	mov	x0, x20
	bl	_EpochFromFullTransactionId
	sub	x8, x0, #1
	cmp	x21, x19
	csel	x20, x8, x0, lt
	ldr	x4, [sp, #8]
	cmp	x21, x4
	csel	x21, x8, x0, lt
Lloh13:
	adrp	x8, _DEBUG2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DEBUG2@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	mov	x5, x21
	bl	_elog
Lloh18:
	adrp	x22, _reply_message@GOTPAGE
Lloh19:
	ldr	x22, [x22, _reply_message@GOTPAGEOFF]
	mov	x0, x22
	bl	_resetStringInfo
	mov	x0, x22
	mov	w1, #104
	bl	_pq_sendbyte
	bl	_GetCurrentTimestamp
	mov	x1, x0
	mov	x0, x22
	bl	_pq_sendint64
	mov	x0, x22
	mov	x1, x19
	bl	_pq_sendint32
	mov	x0, x22
	mov	x1, x20
	bl	_pq_sendint32
	ldr	x1, [sp, #8]
	mov	x0, x22
	bl	_pq_sendint32
	mov	x0, x22
	mov	x1, x21
	bl	_pq_sendint32
Lloh20:
	adrp	x8, _wrconn@GOTPAGE
Lloh21:
	ldr	x8, [x8, _wrconn@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldp	w2, w1, [x22]
	bl	_walrcv_send
	mov	x0, x19
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_11
; %bb.10:
	mov	w8, #0
	b	LBB0_12
LBB0_11:
	ldr	x0, [sp, #8]
	bl	_TransactionIdIsValid
	cmp	x0, #0
	cset	w8, eq
LBB0_12:
	strb	w8, [x23, _XLogWalRcvSendHSFeedback.master_has_standby_xmin@PAGEOFF]
LBB0_13:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_XLogWalRcvSendHSFeedback.sendTime,4,2 ; @XLogWalRcvSendHSFeedback.sendTime
.zerofill __DATA,__bss,_XLogWalRcvSendHSFeedback.master_has_standby_xmin,1,2 ; @XLogWalRcvSendHSFeedback.master_has_standby_xmin
	.comm	_wal_receiver_status_interval,4,2 ; @wal_receiver_status_interval
	.comm	_hot_standby_feedback,8,3       ; @hot_standby_feedback
	.comm	_PROCARRAY_FLAGS_DEFAULT,4,2    ; @PROCARRAY_FLAGS_DEFAULT
	.comm	_PROCARRAY_SLOTS_XMIN,4,2       ; @PROCARRAY_SLOTS_XMIN
	.comm	_InvalidTransactionId,8,3       ; @InvalidTransactionId
	.comm	_DEBUG2,4,2                     ; @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sending hot standby feedback xmin %u epoch %u catalog_xmin %u catalog_xmin_epoch %u"

	.comm	_reply_message,8,2              ; @reply_message
	.comm	_wrconn,4,2                     ; @wrconn
	.no_dead_strip	_XLogWalRcvSendHSFeedback
.subsections_via_symbols
