	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function XLogWalRcvSendReply
_XLogWalRcvSendReply:                   ## @XLogWalRcvSendReply
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_wal_receiver_status_interval@GOTPCREL(%rip), %r12
	testl	%edi, %edi
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%r12)
	jg	LBB0_2
LBB0_6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	movl	%eax, %r15d
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.3:
	movl	_XLogWalRcvSendReply.writePtr(%rip), %ecx
	movq	_LogstreamResult@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_7
## %bb.4:
	movl	_XLogWalRcvSendReply.flushPtr(%rip), %ecx
	cmpl	4(%rax), %ecx
	jne	LBB0_7
## %bb.5:
	movl	_XLogWalRcvSendReply.sendTime(%rip), %edi
	imull	$1000, (%r12), %edx             ## imm = 0x3E8
	movl	%r15d, %esi
	callq	_TimestampDifferenceExceeds
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movl	%r15d, _XLogWalRcvSendReply.sendTime(%rip)
	movq	_LogstreamResult@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %eax
	movl	%ecx, _XLogWalRcvSendReply.writePtr(%rip)
	movl	%eax, _XLogWalRcvSendReply.flushPtr(%rip)
	xorl	%edi, %edi
	callq	_GetXLogReplayRecPtr
	movl	%eax, %r15d
	movq	_reply_message@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_resetStringInfo
	movq	%r12, %rdi
	movl	$114, %esi
	callq	_pq_sendbyte
	movl	_XLogWalRcvSendReply.writePtr(%rip), %esi
	movq	%r12, %rdi
	callq	_pq_sendint64
	movl	_XLogWalRcvSendReply.flushPtr(%rip), %esi
	movq	%r12, %rdi
	callq	_pq_sendint64
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_pq_sendint64
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_pq_sendint64
	xorl	%esi, %esi
	testl	%r14d, %r14d
	setne	%sil
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	%r12, %rdi
	callq	_pq_sendbyte
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	_XLogWalRcvSendReply.writePtr(%rip), %ecx
	movl	_XLogWalRcvSendReply.flushPtr(%rip), %r9d
	movq	%rbx, 16(%rsp)
	movl	%r15d, 8(%rsp)
	leaq	L_.str(%rip), %rsi
	callq	_elog
	movq	_wrconn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	movl	4(%r12), %esi
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_walrcv_send                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_XLogWalRcvSendReply.writePtr,4,2 ## @XLogWalRcvSendReply.writePtr
.zerofill __DATA,__bss,_XLogWalRcvSendReply.flushPtr,4,2 ## @XLogWalRcvSendReply.flushPtr
.zerofill __DATA,__bss,_XLogWalRcvSendReply.sendTime,4,2 ## @XLogWalRcvSendReply.sendTime
	.comm	_wal_receiver_status_interval,4,2 ## @wal_receiver_status_interval
	.comm	_LogstreamResult,8,2            ## @LogstreamResult
	.comm	_reply_message,8,2              ## @reply_message
	.comm	_DEBUG2,4,2                     ## @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sending write %X/%X flush %X/%X apply %X/%X%s"

L_.str.1:                               ## @.str.1
	.asciz	" (reply requested)"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_wrconn,4,2                     ## @wrconn
	.no_dead_strip	_XLogWalRcvSendReply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function XLogWalRcvSendReply
_XLogWalRcvSendReply:                   ; @XLogWalRcvSendReply
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _wal_receiver_status_interval@GOTPAGE
Lloh1:
	ldr	x25, [x25, _wal_receiver_status_interval@GOTPAGEOFF]
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x25]
	cmp	w8, #1
	b.ge	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_3:
	bl	_GetCurrentTimestamp
	mov	x20, x0
	adrp	x22, _XLogWalRcvSendReply.writePtr@PAGE
Lloh2:
	adrp	x24, _LogstreamResult@GOTPAGE
Lloh3:
	ldr	x24, [x24, _LogstreamResult@GOTPAGEOFF]
	adrp	x23, _XLogWalRcvSendReply.flushPtr@PAGE
	adrp	x26, _XLogWalRcvSendReply.sendTime@PAGE
	cbnz	w21, LBB0_7
; %bb.4:
	ldr	w8, [x22, _XLogWalRcvSendReply.writePtr@PAGEOFF]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [x23, _XLogWalRcvSendReply.flushPtr@PAGEOFF]
	ldr	w9, [x24, #4]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x26, _XLogWalRcvSendReply.sendTime@PAGEOFF]
	ldr	w8, [x25]
	mov	w9, #1000
	mul	w2, w8, w9
	mov	x1, x20
	bl	_TimestampDifferenceExceeds
	cbz	w0, LBB0_2
LBB0_7:
	str	w20, [x26, _XLogWalRcvSendReply.sendTime@PAGEOFF]
	ldp	w8, w9, [x24]
	str	w8, [x22, _XLogWalRcvSendReply.writePtr@PAGEOFF]
	str	w9, [x23, _XLogWalRcvSendReply.flushPtr@PAGEOFF]
	mov	x0, #0
	bl	_GetXLogReplayRecPtr
	mov	x21, x0
Lloh4:
	adrp	x20, _reply_message@GOTPAGE
Lloh5:
	ldr	x20, [x20, _reply_message@GOTPAGEOFF]
	mov	x0, x20
	bl	_resetStringInfo
	mov	x0, x20
	mov	w1, #114
	bl	_pq_sendbyte
	ldr	w1, [x22, _XLogWalRcvSendReply.writePtr@PAGEOFF]
	mov	x0, x20
	bl	_pq_sendint64
	ldr	w1, [x23, _XLogWalRcvSendReply.flushPtr@PAGEOFF]
	mov	x0, x20
	bl	_pq_sendint64
	mov	x0, x20
	mov	x1, x21
	bl	_pq_sendint64
	bl	_GetCurrentTimestamp
	mov	x1, x0
	mov	x0, x20
	bl	_pq_sendint64
	cmp	w19, #0
	cset	w1, ne
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
	csel	x19, x9, x8, eq
	mov	x0, x20
	bl	_pq_sendbyte
Lloh10:
	adrp	x8, _DEBUG2@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DEBUG2@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w3, [x22, _XLogWalRcvSendReply.writePtr@PAGEOFF]
	ldr	w5, [x23, _XLogWalRcvSendReply.flushPtr@PAGEOFF]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	str	x19, [sp]
	mov	x7, x21
	bl	_elog
Lloh15:
	adrp	x8, _wrconn@GOTPAGE
Lloh16:
	ldr	x8, [x8, _wrconn@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	w2, w1, [x20]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_walrcv_send
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_XLogWalRcvSendReply.writePtr,4,2 ; @XLogWalRcvSendReply.writePtr
.zerofill __DATA,__bss,_XLogWalRcvSendReply.flushPtr,4,2 ; @XLogWalRcvSendReply.flushPtr
.zerofill __DATA,__bss,_XLogWalRcvSendReply.sendTime,4,2 ; @XLogWalRcvSendReply.sendTime
	.comm	_wal_receiver_status_interval,4,2 ; @wal_receiver_status_interval
	.comm	_LogstreamResult,8,2            ; @LogstreamResult
	.comm	_reply_message,8,2              ; @reply_message
	.comm	_DEBUG2,4,2                     ; @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sending write %X/%X flush %X/%X apply %X/%X%s"

l_.str.1:                               ; @.str.1
	.asciz	" (reply requested)"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_wrconn,4,2                     ; @wrconn
	.no_dead_strip	_XLogWalRcvSendReply
.subsections_via_symbols
