	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateInitDecodingContext      ## -- Begin function CreateInitDecodingContext
	.p2align	4, 0x90
_CreateInitDecodingContext:             ## @CreateInitDecodingContext
	.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
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rdi, %r14
	movq	_MyReplicationSlot@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	testq	%r14, %r14
	jne	LBB0_4
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_4:
	movq	%r15, %rdi
	callq	_SlotIsPhysical
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	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.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movq	16(%r15), %rax
	movq	_MyDatabaseId@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	40(%r15), %edi
	callq	_NameStr
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	xorl	%eax, %eax
	callq	_IsTransactionState
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	xorl	%eax, %eax
	callq	_GetTopTransactionIdIfAny
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_ACTIVE_SQL_TRANSACTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_11:
	movq	%r15, %rdi
	callq	_SpinLockAcquire
	movl	36(%r15), %edi
	callq	_NameStr
	movq	_NAMEDATALEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_StrNCpy
	movq	%r15, %rdi
	callq	_SpinLockRelease
	movl	%r12d, %edi
	callq	_XLogRecPtrIsInvalid
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	_ReplicationSlotReserveWal
	jmp	LBB0_14
LBB0_1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	testq	%r14, %r14
	jne	LBB0_4
	jmp	LBB0_3
LBB0_13:
	movq	%r15, %rdi
	callq	_SpinLockAcquire
	movl	%r12d, 32(%r15)
	movq	%r15, %rdi
	callq	_SpinLockRelease
LBB0_14:
	movq	_ProcArrayLock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	xorl	%edi, %edi
	testl	%r13d, %r13d
	sete	%dil
	callq	_GetOldestSafeDecodingTransactionId
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_SpinLockAcquire
	movq	%rbx, 48(%r15)
	movq	%rbx, 24(%r15)
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.15:
	movq	%rbx, 8(%r15)
LBB0_16:
	movq	%r15, %rdi
	callq	_SpinLockRelease
	movl	$1, %edi
	callq	_ReplicationSlotsComputeRequiredXmin
	movl	(%r14), %edi
	callq	_LWLockRelease
	xorl	%eax, %eax
	callq	_ReplicationSlotMarkDirty
	xorl	%eax, %eax
	callq	_ReplicationSlotSave
	movq	_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subq	$8, %rsp
	movl	%r12d, %esi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movl	24(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_StartupDecodingContext
	addq	$32, %rsp
	movq	%rax, %rbx
	movl	24(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	cmpq	$0, 16(%rbx)
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_startup_cb_wrapper
LBB0_18:
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	movl	(%rbx), %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidTransactionId,8,3       ## @InvalidTransactionId
	.comm	_MyReplicationSlot,8,3          ## @MyReplicationSlot
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot perform logical decoding without an acquired slot"

L_.str.1:                               ## @.str.1
	.asciz	"cannot initialize logical decoding without a specified plugin"

	.comm	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,4,2 ## @ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
L_.str.2:                               ## @.str.2
	.asciz	"cannot use physical replication slot for logical decoding"

	.comm	_MyDatabaseId,8,3               ## @MyDatabaseId
L_.str.3:                               ## @.str.3
	.asciz	"replication slot \"%s\" was not created in this database"

	.comm	_ERRCODE_ACTIVE_SQL_TRANSACTION,4,2 ## @ERRCODE_ACTIVE_SQL_TRANSACTION
L_.str.4:                               ## @.str.4
	.asciz	"cannot create logical replication slot in transaction that has performed writes"

	.comm	_NAMEDATALEN,4,2                ## @NAMEDATALEN
	.comm	_ProcArrayLock,4,2              ## @ProcArrayLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_NIL,4,2                        ## @NIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateInitDecodingContext      ; -- Begin function CreateInitDecodingContext
	.p2align	2
_CreateInitDecodingContext:             ; @CreateInitDecodingContext
	.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
	mov	x23, x7
	str	w6, [sp, #12]                   ; 4-byte Folded Spill
	mov	x20, x5
	mov	x21, x4
	mov	x24, x3
	mov	x22, x2
	mov	x26, x0
Lloh0:
	adrp	x8, _MyReplicationSlot@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MyReplicationSlot@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
Lloh3:
	adrp	x28, _ERROR@GOTPAGE
Lloh4:
	ldr	x28, [x28, _ERROR@GOTPAGEOFF]
	cbz	x25, LBB0_12
; %bb.1:
	cbnz	x26, LBB0_3
LBB0_2:
	ldr	w0, [x28]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_3:
	mov	x0, x25
	bl	_SlotIsPhysical
Lloh7:
	adrp	x19, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGE
Lloh8:
	ldr	x19, [x19, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w27, [x28]
	ldr	w0, [x19]
	bl	_errcode
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x27
	bl	_ereport
LBB0_5:
	ldr	x8, [x25, #16]
Lloh11:
	adrp	x9, _MyDatabaseId@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MyDatabaseId@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	ldr	w27, [x28]
	ldr	w0, [x19]
	bl	_errcode
	ldr	w0, [x25, #40]
	bl	_NameStr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x27
	bl	_ereport
LBB0_7:
	bl	_IsTransactionState
	cbz	x0, LBB0_10
; %bb.8:
	bl	_GetTopTransactionIdIfAny
Lloh16:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh17:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.9:
	ldr	w27, [x28]
Lloh19:
	adrp	x8, _ERRCODE_ACTIVE_SQL_TRANSACTION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERRCODE_ACTIVE_SQL_TRANSACTION@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_errcode
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x27
	bl	_ereport
LBB0_10:
	mov	x0, x25
	bl	_SpinLockAcquire
	ldr	w0, [x25, #36]
	bl	_NameStr
Lloh24:
	adrp	x8, _NAMEDATALEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NAMEDATALEN@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x1, x26
	bl	_StrNCpy
	mov	x0, x25
	bl	_SpinLockRelease
	mov	x0, x24
	bl	_XLogRecPtrIsInvalid
	cbz	x0, LBB0_13
; %bb.11:
	bl	_ReplicationSlotReserveWal
	b	LBB0_14
LBB0_12:
	ldr	w0, [x28]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	cbnz	x26, LBB0_3
	b	LBB0_2
LBB0_13:
	mov	x0, x25
	bl	_SpinLockAcquire
	str	w24, [x25, #32]
	mov	x0, x25
	bl	_SpinLockRelease
LBB0_14:
Lloh29:
	adrp	x27, _ProcArrayLock@GOTPAGE
Lloh30:
	ldr	x27, [x27, _ProcArrayLock@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh31:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	cmp	w22, #0
	cset	w0, eq
	bl	_GetOldestSafeDecodingTransactionId
	mov	x26, x0
	mov	x0, x25
	bl	_SpinLockAcquire
	str	x26, [x25, #48]
	str	x26, [x25, #24]
	cbz	w22, LBB0_16
; %bb.15:
	str	x26, [x25, #8]
LBB0_16:
	mov	x0, x25
	bl	_SpinLockRelease
	mov	w0, #1
	bl	_ReplicationSlotsComputeRequiredXmin
	ldr	w0, [x27]
	bl	_LWLockRelease
	bl	_ReplicationSlotMarkDirty
	bl	_ReplicationSlotSave
Lloh34:
	adrp	x8, _NIL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	str	w23, [sp]
	mov	x1, x24
	mov	x2, x26
	mov	x3, x22
	mov	w4, #0
	mov	x5, x21
	mov	x6, x20
	ldr	w7, [sp, #12]                   ; 4-byte Folded Reload
	bl	_StartupDecodingContext
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_18
; %bb.17:
	mov	x0, x19
	mov	x1, x19
	mov	w2, #1
	bl	_startup_cb_wrapper
LBB0_18:
	mov	x0, x20
	bl	_MemoryContextSwitchTo
	ldr	w8, [x19]
	ldr	x9, [x19, #8]
	str	w8, [x9]
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidTransactionId,8,3       ; @InvalidTransactionId
	.comm	_MyReplicationSlot,8,3          ; @MyReplicationSlot
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot perform logical decoding without an acquired slot"

l_.str.1:                               ; @.str.1
	.asciz	"cannot initialize logical decoding without a specified plugin"

	.comm	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,4,2 ; @ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
l_.str.2:                               ; @.str.2
	.asciz	"cannot use physical replication slot for logical decoding"

	.comm	_MyDatabaseId,8,3               ; @MyDatabaseId
l_.str.3:                               ; @.str.3
	.asciz	"replication slot \"%s\" was not created in this database"

	.comm	_ERRCODE_ACTIVE_SQL_TRANSACTION,4,2 ; @ERRCODE_ACTIVE_SQL_TRANSACTION
l_.str.4:                               ; @.str.4
	.asciz	"cannot create logical replication slot in transaction that has performed writes"

	.comm	_NAMEDATALEN,4,2                ; @NAMEDATALEN
	.comm	_ProcArrayLock,4,2              ; @ProcArrayLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_NIL,4,2                        ; @NIL
.subsections_via_symbols
