	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function StartReplication
_StartReplication:                      ## @StartReplication
	.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	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ThisTimeLineID@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	movl	$1, %esi
	callq	_ReplicationSlotAcquire
	movq	_MyReplicationSlot@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SlotIsLogical
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	movq	_am_cascading_walsender@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_GetStandbyFlushRecPtr
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	callq	_GetFlushRecPtr
LBB0_8:
	movl	%eax, %r14d
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	_sendTimeLine@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rdi
	cmpq	%rdi, %rax
	jne	LBB0_11
## %bb.10:
	movq	_sendTimeLineIsHistoric@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_sendTimeLineValidUpto@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_17
LBB0_16:
	movq	(%r15), %rax
	movq	_sendTimeLine@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_sendTimeLineValidUpto@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_sendTimeLineIsHistoric@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
LBB0_17:
	movq	_streamingDoneReceiving@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_streamingDoneSending@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
LBB0_18:
	movq	_WALSNDSTATE_CATCHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WalSndSetState
	leaq	-100(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$87, %esi
	callq	_pq_beginmessage
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pq_sendbyte
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pq_sendint16
	movq	%rbx, %rdi
	callq	_pq_endmessage
	xorl	%eax, %eax
	callq	_pq_flush
	movl	8(%r12), %edx
	cmpl	%edx, %r14d
	jge	LBB0_20
## %bb.19:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.4(%rip), %rdi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	8(%r12), %edx
LBB0_20:
	movq	_sentPtr@GOTPCREL(%rip), %r14
	movl	%edx, (%r14)
	movq	_MyWalSnd@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	$4, %rdi
	callq	_SpinLockAcquire
	movl	(%r14), %eax
	movq	(%rbx), %rdi
	movl	%eax, (%rdi)
	addq	$4, %rdi
	callq	_SpinLockRelease
	xorl	%eax, %eax
	callq	_SyncRepInitConfig
	movq	_replication_active@GOTPCREL(%rip), %rbx
	movl	$1, (%rbx)
	movq	_XLogSendPhysical@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WalSndLoop
	movl	$0, (%rbx)
	movq	_got_STOPPING@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.21:
	xorl	%edi, %edi
	callq	_proc_exit
LBB0_22:
	movq	_WALSNDSTATE_STARTUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WalSndSetState
	movq	_streamingDoneSending@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	setne	%al
	movq	_streamingDoneReceiving@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
LBB0_23:
	cmpq	$0, 16(%r12)
	je	LBB0_25
## %bb.24:
	xorl	%eax, %eax
	callq	_ReplicationSlotRelease
LBB0_25:
	movq	_sendTimeLineIsHistoric@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_27
## %bb.26:
	movq	_sendTimeLineValidUpto@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.5(%rip), %rdx
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	movl	$18, %esi
	callq	_snprintf
	movq	_DestRemoteSimple@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CreateDestReceiver
	movq	%rax, %r12
	leaq	-96(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_MemSet
	movl	$2, %edi
	callq	_CreateTemplateTupleDesc
	movl	%eax, %ebx
	movq	_INT8OID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.6(%rip), %rdx
	movl	%ebx, %edi
	movl	$1, %esi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_TupleDescInitBuiltinEntry
	movq	_TEXTOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.7(%rip), %rdx
	movl	%ebx, %edi
	movl	$2, %esi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_TupleDescInitBuiltinEntry
	movq	_TTSOpsVirtual@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_begin_tup_output_tupdesc
	movq	%rax, %rbx
	movq	_sendTimeLineNextTLI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Int64GetDatum
	movl	%eax, -88(%rbp)
	movq	%r14, %rdi
	callq	_CStringGetTextDatum
	movl	%eax, -84(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_do_tup_output
	movq	%rbx, %rdi
	callq	_end_tup_output
LBB0_27:
	leaq	L_.str.8(%rip), %rsi
	movl	$67, %edi
	callq	_pq_puttextmessage
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_sendTimeLineIsHistoric@GOTPCREL(%rip), %r13
	movl	$1, (%r13)
	callq	_readTimeLineHistory
	movq	%rax, %rbx
	movq	(%r12), %rdi
	movq	_sendTimeLineNextTLI@GOTPCREL(%rip), %rdx
	movq	%rax, %rsi
	callq	_tliSwitchPoint
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_list_free_deep
	movl	%r15d, %edi
	callq	_XLogRecPtrIsInvalid
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movl	8(%r12), %edx
	cmpl	%edx, %r15d
	jge	LBB0_14
## %bb.13:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r12), %rcx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movq	(%r12), %rsi
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %ecx
	callq	_errdetail
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_14:
	movq	_sendTimeLineValidUpto@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	movq	_streamingDoneReceiving@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_streamingDoneSending@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	cmpl	$0, (%r13)
	je	LBB0_18
## %bb.15:
	cmpl	%r15d, 8(%r12)
	jl	LBB0_18
	jmp	LBB0_23
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ThisTimeLineID,8,3             ## @ThisTimeLineID
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,4,2 ## @ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IDENTIFY_SYSTEM has not been run before START_REPLICATION"

	.comm	_MyReplicationSlot,4,2          ## @MyReplicationSlot
L_.str.1:                               ## @.str.1
	.asciz	"cannot use a logical replication slot for physical replication"

	.comm	_am_cascading_walsender,8,3     ## @am_cascading_walsender
	.comm	_sendTimeLine,8,3               ## @sendTimeLine
	.comm	_sendTimeLineIsHistoric,4,2     ## @sendTimeLineIsHistoric
	.comm	_InvalidXLogRecPtr,4,2          ## @InvalidXLogRecPtr
	.comm	_sendTimeLineValidUpto,4,2      ## @sendTimeLineValidUpto
	.comm	_sendTimeLineNextTLI,8,3        ## @sendTimeLineNextTLI
L_.str.2:                               ## @.str.2
	.asciz	"requested starting point %X/%X on timeline %u is not in this server's history"

L_.str.3:                               ## @.str.3
	.asciz	"This server's history forked from timeline %u at %X/%X."

	.comm	_streamingDoneReceiving,4,2     ## @streamingDoneReceiving
	.comm	_streamingDoneSending,4,2       ## @streamingDoneSending
	.comm	_WALSNDSTATE_CATCHUP,4,2        ## @WALSNDSTATE_CATCHUP
L_.str.4:                               ## @.str.4
	.asciz	"requested starting point %X/%X is ahead of the WAL flush position of this server %X/%X"

	.comm	_sentPtr,4,2                    ## @sentPtr
	.comm	_MyWalSnd,8,3                   ## @MyWalSnd
	.comm	_replication_active,4,2         ## @replication_active
	.comm	_XLogSendPhysical,4,2           ## @XLogSendPhysical
	.comm	_got_STOPPING,8,3               ## @got_STOPPING
	.comm	_WALSNDSTATE_STARTUP,4,2        ## @WALSNDSTATE_STARTUP
L_.str.5:                               ## @.str.5
	.asciz	"%X/%X"

	.comm	_DestRemoteSimple,4,2           ## @DestRemoteSimple
L_.str.6:                               ## @.str.6
	.asciz	"next_tli"

	.comm	_INT8OID,4,2                    ## @INT8OID
L_.str.7:                               ## @.str.7
	.asciz	"next_tli_startpos"

	.comm	_TEXTOID,4,2                    ## @TEXTOID
	.comm	_TTSOpsVirtual,4,2              ## @TTSOpsVirtual
L_.str.8:                               ## @.str.8
	.asciz	"START_STREAMING"

	.no_dead_strip	_StartReplication
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function StartReplication
_StartReplication:                      ; @StartReplication
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x21, _ThisTimeLineID@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ThisTimeLineID@GOTPAGEOFF]
	ldr	x8, [x21]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
Lloh8:
	adrp	x8, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_errcode
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_2:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.3:
	mov	w1, #1
	bl	_ReplicationSlotAcquire
Lloh13:
	adrp	x8, _MyReplicationSlot@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MyReplicationSlot@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_SlotIsLogical
	cbz	x0, LBB0_5
; %bb.4:
Lloh16:
	adrp	x8, _ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
Lloh19:
	adrp	x8, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_errcode
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_5:
Lloh24:
	adrp	x8, _am_cascading_walsender@GOTPAGE
Lloh25:
	ldr	x8, [x8, _am_cascading_walsender@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	bl	_GetStandbyFlushRecPtr
	b	LBB0_8
LBB0_7:
	bl	_GetFlushRecPtr
LBB0_8:
	mov	x20, x0
	ldr	x8, [x19]
Lloh27:
	adrp	x23, _sendTimeLineIsHistoric@GOTPAGE
Lloh28:
	ldr	x23, [x23, _sendTimeLineIsHistoric@GOTPAGEOFF]
Lloh29:
	adrp	x25, _streamingDoneSending@GOTPAGE
Lloh30:
	ldr	x25, [x25, _streamingDoneSending@GOTPAGEOFF]
Lloh31:
	adrp	x24, _streamingDoneReceiving@GOTPAGE
Lloh32:
	ldr	x24, [x24, _streamingDoneReceiving@GOTPAGEOFF]
	cbz	x8, LBB0_11
; %bb.9:
Lloh33:
	adrp	x9, _sendTimeLine@GOTPAGE
Lloh34:
	ldr	x9, [x9, _sendTimeLine@GOTPAGEOFF]
Lloh35:
	str	x8, [x9]
	ldr	x0, [x21]
	cmp	x8, x0
	b.ne	LBB0_24
; %bb.10:
	str	wzr, [x23]
Lloh36:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh37:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _sendTimeLineValidUpto@GOTPAGE
Lloh40:
	ldr	x9, [x9, _sendTimeLineValidUpto@GOTPAGEOFF]
Lloh41:
	str	w8, [x9]
	b	LBB0_12
LBB0_11:
	ldr	x8, [x21]
Lloh42:
	adrp	x9, _sendTimeLine@GOTPAGE
Lloh43:
	ldr	x9, [x9, _sendTimeLine@GOTPAGEOFF]
Lloh44:
	adrp	x10, _InvalidXLogRecPtr@GOTPAGE
Lloh45:
	ldr	x10, [x10, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh46:
	str	x8, [x9]
Lloh47:
	ldr	w8, [x10]
Lloh48:
	adrp	x9, _sendTimeLineValidUpto@GOTPAGE
Lloh49:
	ldr	x9, [x9, _sendTimeLineValidUpto@GOTPAGEOFF]
Lloh50:
	str	w8, [x9]
	str	wzr, [x23]
LBB0_12:
	str	wzr, [x24]
	str	wzr, [x25]
LBB0_13:
Lloh51:
	adrp	x8, _WALSNDSTATE_CATCHUP@GOTPAGE
Lloh52:
	ldr	x8, [x8, _WALSNDSTATE_CATCHUP@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	bl	_WalSndSetState
	add	x0, sp, #32
	mov	w1, #87
	bl	_pq_beginmessage
	add	x0, sp, #32
	mov	w1, #0
	bl	_pq_sendbyte
	add	x0, sp, #32
	mov	w1, #0
	bl	_pq_sendint16
	add	x0, sp, #32
	bl	_pq_endmessage
	bl	_pq_flush
	ldr	w8, [x19, #8]
	cmp	w20, w8
	b.ge	LBB0_15
; %bb.14:
Lloh54:
	adrp	x9, _ERROR@GOTPAGE
Lloh55:
	ldr	x9, [x9, _ERROR@GOTPAGEOFF]
Lloh56:
	ldr	w21, [x9]
	str	x20, [sp, #24]
	str	x8, [sp, #8]
Lloh57:
	adrp	x0, l_.str.4@PAGE
Lloh58:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
	ldr	w8, [x19, #8]
LBB0_15:
Lloh59:
	adrp	x20, _sentPtr@GOTPAGE
Lloh60:
	ldr	x20, [x20, _sentPtr@GOTPAGEOFF]
	str	w8, [x20]
Lloh61:
	adrp	x21, _MyWalSnd@GOTPAGE
Lloh62:
	ldr	x21, [x21, _MyWalSnd@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, #4
	bl	_SpinLockAcquire
	ldr	w8, [x20]
	ldr	x0, [x21]
	str	w8, [x0], #4
	bl	_SpinLockRelease
	bl	_SyncRepInitConfig
Lloh63:
	adrp	x20, _replication_active@GOTPAGE
Lloh64:
	ldr	x20, [x20, _replication_active@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x20]
Lloh65:
	adrp	x8, _XLogSendPhysical@GOTPAGE
Lloh66:
	ldr	x8, [x8, _XLogSendPhysical@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
	bl	_WalSndLoop
	str	wzr, [x20]
Lloh68:
	adrp	x8, _got_STOPPING@GOTPAGE
Lloh69:
	ldr	x8, [x8, _got_STOPPING@GOTPAGEOFF]
Lloh70:
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.16:
	mov	w0, #0
	bl	_proc_exit
LBB0_17:
Lloh71:
	adrp	x8, _WALSNDSTATE_STARTUP@GOTPAGE
Lloh72:
	ldr	x8, [x8, _WALSNDSTATE_STARTUP@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
	bl	_WalSndSetState
	ldr	w8, [x25]
	cmp	w8, #0
	ldr	w8, [x24]
	ccmp	w8, #0, #4, ne
	cset	w0, ne
	bl	_Assert
LBB0_18:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_20
; %bb.19:
	bl	_ReplicationSlotRelease
LBB0_20:
	ldr	w8, [x23]
	cbz	w8, LBB0_22
; %bb.21:
Lloh74:
	adrp	x8, _sendTimeLineValidUpto@GOTPAGE
Lloh75:
	ldr	x8, [x8, _sendTimeLineValidUpto@GOTPAGEOFF]
Lloh76:
	ldr	w4, [x8]
Lloh77:
	adrp	x2, l_.str.5@PAGE
Lloh78:
	add	x2, x2, l_.str.5@PAGEOFF
	add	x0, sp, #54
	mov	w1, #18
	bl	_snprintf
Lloh79:
	adrp	x8, _DestRemoteSimple@GOTPAGE
Lloh80:
	ldr	x8, [x8, _DestRemoteSimple@GOTPAGEOFF]
Lloh81:
	ldr	w0, [x8]
	bl	_CreateDestReceiver
	mov	x19, x0
	add	x0, sp, #36
	mov	w1, #0
	mov	w2, #8
	bl	_MemSet
	mov	w0, #2
	bl	_CreateTemplateTupleDesc
	mov	x20, x0
Lloh82:
	adrp	x8, _INT8OID@GOTPAGE
Lloh83:
	ldr	x8, [x8, _INT8OID@GOTPAGEOFF]
Lloh84:
	ldr	w3, [x8]
Lloh85:
	adrp	x2, l_.str.6@PAGE
Lloh86:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	w1, #1
	mov	w4, #-1
	mov	w5, #0
	bl	_TupleDescInitBuiltinEntry
Lloh87:
	adrp	x8, _TEXTOID@GOTPAGE
Lloh88:
	ldr	x8, [x8, _TEXTOID@GOTPAGEOFF]
Lloh89:
	ldr	w3, [x8]
Lloh90:
	adrp	x2, l_.str.7@PAGE
Lloh91:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	w1, #2
	mov	w4, #-1
	mov	w5, #0
	bl	_TupleDescInitBuiltinEntry
Lloh92:
	adrp	x2, _TTSOpsVirtual@GOTPAGE
Lloh93:
	ldr	x2, [x2, _TTSOpsVirtual@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_begin_tup_output_tupdesc
	mov	x19, x0
Lloh94:
	adrp	x8, _sendTimeLineNextTLI@GOTPAGE
Lloh95:
	ldr	x8, [x8, _sendTimeLineNextTLI@GOTPAGEOFF]
Lloh96:
	ldr	w0, [x8]
	bl	_Int64GetDatum
	str	w0, [sp, #44]
	add	x0, sp, #54
	bl	_CStringGetTextDatum
	str	w0, [sp, #48]
	add	x1, sp, #44
	add	x2, sp, #36
	mov	x0, x19
	bl	_do_tup_output
	mov	x0, x19
	bl	_end_tup_output
LBB0_22:
Lloh97:
	adrp	x1, l_.str.8@PAGE
Lloh98:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #67
	bl	_pq_puttextmessage
	ldr	x8, [sp, #72]
Lloh99:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh100:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh101:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.23:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_24:
	mov	w8, #1
	str	w8, [x23]
	bl	_readTimeLineHistory
	mov	x22, x0
	ldr	x0, [x19]
Lloh102:
	adrp	x2, _sendTimeLineNextTLI@GOTPAGE
Lloh103:
	ldr	x2, [x2, _sendTimeLineNextTLI@GOTPAGEOFF]
	mov	x1, x22
	bl	_tliSwitchPoint
	mov	x21, x0
	mov	x0, x22
	bl	_list_free_deep
	mov	x0, x21
	bl	_XLogRecPtrIsInvalid
	cbnz	w0, LBB0_27
; %bb.25:
	ldr	w8, [x19, #8]
	cmp	w21, w8
	b.ge	LBB0_27
; %bb.26:
Lloh104:
	adrp	x9, _ERROR@GOTPAGE
Lloh105:
	ldr	x9, [x9, _ERROR@GOTPAGEOFF]
Lloh106:
	ldr	w22, [x9]
	ldr	x9, [x19]
	stp	x8, x9, [sp, #8]
Lloh107:
	adrp	x0, l_.str.2@PAGE
Lloh108:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	ldr	x1, [x19]
Lloh109:
	adrp	x0, l_.str.3@PAGE
Lloh110:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x3, x21
	bl	_errdetail
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_27:
	ldr	w8, [x23]
Lloh111:
	adrp	x9, _sendTimeLineValidUpto@GOTPAGE
Lloh112:
	ldr	x9, [x9, _sendTimeLineValidUpto@GOTPAGEOFF]
Lloh113:
	str	w21, [x9]
	str	wzr, [x24]
	str	wzr, [x25]
	cbz	w8, LBB0_13
; %bb.28:
	ldr	w8, [x19, #8]
	cmp	w8, w21
	b.lt	LBB0_13
	b	LBB0_18
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotStr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh47
	.loh AdrpLdrGotStr	Lloh42, Lloh43, Lloh46
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpLdrGot	Lloh102, Lloh103
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotStr	Lloh111, Lloh112, Lloh113
	.cfi_endproc
                                        ; -- End function
	.comm	_ThisTimeLineID,8,3             ; @ThisTimeLineID
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,4,2 ; @ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IDENTIFY_SYSTEM has not been run before START_REPLICATION"

	.comm	_MyReplicationSlot,4,2          ; @MyReplicationSlot
l_.str.1:                               ; @.str.1
	.asciz	"cannot use a logical replication slot for physical replication"

	.comm	_am_cascading_walsender,8,3     ; @am_cascading_walsender
	.comm	_sendTimeLine,8,3               ; @sendTimeLine
	.comm	_sendTimeLineIsHistoric,4,2     ; @sendTimeLineIsHistoric
	.comm	_InvalidXLogRecPtr,4,2          ; @InvalidXLogRecPtr
	.comm	_sendTimeLineValidUpto,4,2      ; @sendTimeLineValidUpto
	.comm	_sendTimeLineNextTLI,8,3        ; @sendTimeLineNextTLI
l_.str.2:                               ; @.str.2
	.asciz	"requested starting point %X/%X on timeline %u is not in this server's history"

l_.str.3:                               ; @.str.3
	.asciz	"This server's history forked from timeline %u at %X/%X."

	.comm	_streamingDoneReceiving,4,2     ; @streamingDoneReceiving
	.comm	_streamingDoneSending,4,2       ; @streamingDoneSending
	.comm	_WALSNDSTATE_CATCHUP,4,2        ; @WALSNDSTATE_CATCHUP
l_.str.4:                               ; @.str.4
	.asciz	"requested starting point %X/%X is ahead of the WAL flush position of this server %X/%X"

	.comm	_sentPtr,4,2                    ; @sentPtr
	.comm	_MyWalSnd,8,3                   ; @MyWalSnd
	.comm	_replication_active,4,2         ; @replication_active
	.comm	_XLogSendPhysical,4,2           ; @XLogSendPhysical
	.comm	_got_STOPPING,8,3               ; @got_STOPPING
	.comm	_WALSNDSTATE_STARTUP,4,2        ; @WALSNDSTATE_STARTUP
l_.str.5:                               ; @.str.5
	.asciz	"%X/%X"

	.comm	_DestRemoteSimple,4,2           ; @DestRemoteSimple
l_.str.6:                               ; @.str.6
	.asciz	"next_tli"

	.comm	_INT8OID,4,2                    ; @INT8OID
l_.str.7:                               ; @.str.7
	.asciz	"next_tli_startpos"

	.comm	_TEXTOID,4,2                    ; @TEXTOID
	.comm	_TTSOpsVirtual,4,2              ; @TTSOpsVirtual
l_.str.8:                               ; @.str.8
	.asciz	"START_STREAMING"

	.no_dead_strip	_StartReplication
.subsections_via_symbols
