	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ProcessStandbyReplyMessage
_ProcessStandbyReplyMessage:            ## @ProcessStandbyReplyMessage
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_reply_message@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_pq_getmsgint64
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_pq_getmsgint64
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_pq_getmsgint64
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_pq_getmsgint64
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_pq_getmsgbyte
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_log_min_messages@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_DEBUG2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_timestamptz_to_str
	movl	%eax, %edi
	callq	_pstrdup
	movq	%rax, %rbx
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	%rbx, 24(%rsp)
	movq	%rcx, 16(%rsp)
	movl	%r14d, 8(%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	movl	%r12d, %r9d
	callq	_elog
	movq	%rbx, %rdi
	callq	_pfree
LBB0_2:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	movq	%rax, %rbx
	movq	_SYNC_REP_WAIT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	_LagTrackerRead
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_SYNC_REP_WAIT_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_LagTrackerRead
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_SYNC_REP_WAIT_APPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_LagTrackerRead
	movl	%eax, %r13d
	movq	_sentPtr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r14d, %eax
	sete	%bl
	andb	_ProcessStandbyReplyMessage.fullyAppliedLastTime(%rip), %bl
	cmpl	%r14d, %eax
	sete	_ProcessStandbyReplyMessage.fullyAppliedLastTime(%rip)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	callq	_WalSndKeepalive
LBB0_4:
	movq	_MyWalSnd@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	24(%r15), %r12
	movq	%r12, %rdi
	callq	_SpinLockAcquire
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%r15)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 4(%r15)
	movl	%r14d, 8(%r15)
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$-1, %ecx
	sete	%al
	xorb	$1, %bl
	testb	%bl, %al
	jne	LBB0_6
## %bb.5:
	movl	%ecx, 12(%r15)
LBB0_6:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$-1, %ecx
	sete	%al
	testb	%bl, %al
	jne	LBB0_8
## %bb.7:
	movl	%ecx, 16(%r15)
LBB0_8:
	cmpl	$-1, %r13d
	sete	%al
	testb	%bl, %al
	jne	LBB0_10
## %bb.9:
	movl	%r13d, 20(%r15)
LBB0_10:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r15)
	movq	%r12, %rdi
	callq	_SpinLockRelease
	movq	_am_cascading_walsender@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_SyncRepReleaseWaiters
LBB0_12:
	movq	_MyReplicationSlot@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_16
## %bb.13:
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_16
## %bb.14:
	callq	_SlotIsLogical
	movl	%ebx, %edi
	addq	$72, %rsp
	testq	%rax, %rax
	je	LBB0_15
## %bb.17:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LogicalConfirmReceivedLocation ## TAILCALL
LBB0_16:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PhysicalConfirmReceivedLocation ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_ProcessStandbyReplyMessage.fullyAppliedLastTime,1,2 ## @ProcessStandbyReplyMessage.fullyAppliedLastTime
	.comm	_reply_message,4,2              ## @reply_message
	.comm	_log_min_messages,8,3           ## @log_min_messages
	.comm	_DEBUG2,8,3                     ## @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write %X/%X flush %X/%X apply %X/%X%s reply_time %s"

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

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

	.comm	_SYNC_REP_WAIT_WRITE,4,2        ## @SYNC_REP_WAIT_WRITE
	.comm	_SYNC_REP_WAIT_FLUSH,4,2        ## @SYNC_REP_WAIT_FLUSH
	.comm	_SYNC_REP_WAIT_APPLY,4,2        ## @SYNC_REP_WAIT_APPLY
	.comm	_sentPtr,4,2                    ## @sentPtr
	.comm	_MyWalSnd,8,3                   ## @MyWalSnd
	.comm	_am_cascading_walsender,4,2     ## @am_cascading_walsender
	.comm	_MyReplicationSlot,8,3          ## @MyReplicationSlot
	.comm	_InvalidXLogRecPtr,4,2          ## @InvalidXLogRecPtr
	.no_dead_strip	_ProcessStandbyReplyMessage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ProcessStandbyReplyMessage
_ProcessStandbyReplyMessage:            ; @ProcessStandbyReplyMessage
	.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	x23, _reply_message@GOTPAGE
Lloh1:
	ldr	x23, [x23, _reply_message@GOTPAGEOFF]
	mov	x0, x23
	bl	_pq_getmsgint64
	mov	x21, x0
	mov	x0, x23
	bl	_pq_getmsgint64
	mov	x19, x0
	mov	x0, x23
	bl	_pq_getmsgint64
	mov	x22, x0
	mov	x0, x23
	bl	_pq_getmsgint64
	mov	x20, x0
	mov	x0, x23
	bl	_pq_getmsgbyte
	mov	x23, x0
Lloh2:
	adrp	x8, _log_min_messages@GOTPAGE
Lloh3:
	ldr	x8, [x8, _log_min_messages@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x25, _DEBUG2@GOTPAGE
Lloh6:
	ldr	x25, [x25, _DEBUG2@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_timestamptz_to_str
	bl	_pstrdup
	mov	x24, x0
	ldr	x0, [x25]
Lloh7:
	adrp	x8, l_.str.1@PAGE
Lloh8:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh9:
	adrp	x9, l_.str.2@PAGE
Lloh10:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w23, #0
	csel	x8, x9, x8, eq
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	stp	x8, x24, [sp]
	mov	x3, x21
	mov	x5, x19
	mov	x7, x22
	bl	_elog
	mov	x0, x24
	bl	_pfree
LBB0_2:
	bl	_GetCurrentTimestamp
	mov	x24, x0
Lloh13:
	adrp	x8, _SYNC_REP_WAIT_WRITE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SYNC_REP_WAIT_WRITE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x24
	bl	_LagTrackerRead
	mov	x25, x0
Lloh16:
	adrp	x8, _SYNC_REP_WAIT_FLUSH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SYNC_REP_WAIT_FLUSH@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, x24
	bl	_LagTrackerRead
	mov	x26, x0
Lloh19:
	adrp	x8, _SYNC_REP_WAIT_APPLY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SYNC_REP_WAIT_APPLY@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x24
	bl	_LagTrackerRead
	mov	x24, x0
Lloh22:
	adrp	x8, _sentPtr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _sentPtr@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w8, w22
	cset	w8, eq
	adrp	x9, _ProcessStandbyReplyMessage.fullyAppliedLastTime@PAGE
	ldrb	w10, [x9, _ProcessStandbyReplyMessage.fullyAppliedLastTime@PAGEOFF]
	and	w27, w8, w10
	strb	w8, [x9, _ProcessStandbyReplyMessage.fullyAppliedLastTime@PAGEOFF]
	cbz	w23, LBB0_4
; %bb.3:
	mov	w0, #0
	bl	_WalSndKeepalive
LBB0_4:
Lloh25:
	adrp	x8, _MyWalSnd@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MyWalSnd@GOTPAGEOFF]
Lloh27:
	ldr	x28, [x8]
	add	x23, x28, #24
	mov	x0, x23
	bl	_SpinLockAcquire
	stp	w21, w19, [x28]
	str	w22, [x28, #8]
	cmn	w25, #1
	cset	w9, eq
	eor	w8, w27, #0x1
	and	w9, w9, w8
	tbnz	w9, #0, LBB0_6
; %bb.5:
	str	w25, [x28, #12]
LBB0_6:
	cmn	w26, #1
	cset	w9, eq
	and	w8, w9, w8
	tbnz	w8, #0, LBB0_8
; %bb.7:
	str	w26, [x28, #16]
LBB0_8:
	cmn	w24, #1
	cset	w8, eq
	eor	w9, w27, #0x1
	and	w8, w8, w9
	tbnz	w8, #0, LBB0_10
; %bb.9:
	str	w24, [x28, #20]
LBB0_10:
	str	x20, [x28, #32]
	mov	x0, x23
	bl	_SpinLockRelease
Lloh28:
	adrp	x8, _am_cascading_walsender@GOTPAGE
Lloh29:
	ldr	x8, [x8, _am_cascading_walsender@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cbnz	w8, LBB0_12
; %bb.11:
	bl	_SyncRepReleaseWaiters
LBB0_12:
Lloh31:
	adrp	x8, _MyReplicationSlot@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MyReplicationSlot@GOTPAGEOFF]
Lloh33:
	ldr	x0, [x8]
	cbz	x0, LBB0_16
; %bb.13:
Lloh34:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh35:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_16
; %bb.14:
	bl	_SlotIsLogical
	cbz	x0, LBB0_17
; %bb.15:
	mov	x0, x19
	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
	b	_LogicalConfirmReceivedLocation
LBB0_16:
	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
LBB0_17:
	mov	x0, x19
	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
	b	_PhysicalConfirmReceivedLocation
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_ProcessStandbyReplyMessage.fullyAppliedLastTime,1,2 ; @ProcessStandbyReplyMessage.fullyAppliedLastTime
	.comm	_reply_message,4,2              ; @reply_message
	.comm	_log_min_messages,8,3           ; @log_min_messages
	.comm	_DEBUG2,8,3                     ; @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write %X/%X flush %X/%X apply %X/%X%s reply_time %s"

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

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

	.comm	_SYNC_REP_WAIT_WRITE,4,2        ; @SYNC_REP_WAIT_WRITE
	.comm	_SYNC_REP_WAIT_FLUSH,4,2        ; @SYNC_REP_WAIT_FLUSH
	.comm	_SYNC_REP_WAIT_APPLY,4,2        ; @SYNC_REP_WAIT_APPLY
	.comm	_sentPtr,4,2                    ; @sentPtr
	.comm	_MyWalSnd,8,3                   ; @MyWalSnd
	.comm	_am_cascading_walsender,4,2     ; @am_cascading_walsender
	.comm	_MyReplicationSlot,8,3          ; @MyReplicationSlot
	.comm	_InvalidXLogRecPtr,4,2          ; @InvalidXLogRecPtr
	.no_dead_strip	_ProcessStandbyReplyMessage
.subsections_via_symbols
