	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LogicalConfirmReceivedLocation ## -- Begin function LogicalConfirmReceivedLocation
	.p2align	4, 0x90
_LogicalConfirmReceivedLocation:        ## @LogicalConfirmReceivedLocation
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	%rbx, (%r12)
	setne	%dil
	callq	_Assert
	movq	_MyReplicationSlot@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	(%rdi), %rax
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.1:
	cmpq	%rax, 8(%rdi)
	jne	LBB0_3
## %bb.2:
	addq	$40, %rdi
	callq	_SpinLockAcquire
	movq	(%r15), %rdi
	movq	%rbx, 64(%rdi)
	addq	$40, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SpinLockRelease                ## TAILCALL
LBB0_3:
	addq	$40, %rdi
	callq	_SpinLockAcquire
	movq	(%r15), %rdi
	movq	%rbx, 64(%rdi)
	movq	(%rdi), %rax
	xorl	%r13d, %r13d
	cmpq	%rbx, %rax
	jg	LBB0_8
## %bb.4:
	cmpq	(%r12), %rax
	je	LBB0_8
## %bb.5:
	movq	16(%rdi), %rdi
	callq	_TransactionIdIsValid
	movq	(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	16(%rdi), %rax
	xorl	%r13d, %r13d
	cmpq	%rax, 48(%rdi)
	jne	LBB0_11
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_10:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_11:
	movq	%rax, 48(%rdi)
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rdi)
	movq	(%r12), %rax
	movq	%rax, (%rdi)
	movl	$1, %r14d
	movb	$1, %r13b
LBB0_12:
	movq	8(%rdi), %rax
	cmpq	%rbx, %rax
	jg	LBB0_15
## %bb.13:
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	je	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	cmpq	%rcx, 24(%rdi)
	setne	%al
	movl	%eax, %edi
	callq	_Assert
	movq	(%r15), %rdi
	movq	24(%rdi), %rax
	movq	%rax, 56(%rdi)
	movq	(%r12), %rax
	movq	%rax, 24(%rdi)
	movq	%rax, 8(%rdi)
	addq	$40, %rdi
	callq	_SpinLockRelease
	xorl	%eax, %eax
	callq	_ReplicationSlotMarkDirty
	xorl	%eax, %eax
	callq	_ReplicationSlotSave
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	$1, %ecx
	callq	_elog
	testb	%r13b, %r13b
	jne	LBB0_17
	jmp	LBB0_18
LBB0_15:
	addq	$40, %rdi
	callq	_SpinLockRelease
	testb	%r13b, %r13b
	je	LBB0_18
## %bb.16:
	xorl	%eax, %eax
	callq	_ReplicationSlotMarkDirty
	xorl	%eax, %eax
	callq	_ReplicationSlotSave
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_elog
LBB0_17:
	movq	(%r15), %rdi
	addq	$40, %rdi
	callq	_SpinLockAcquire
	movq	(%r15), %rdi
	movq	48(%rdi), %rax
	movq	%rax, 32(%rdi)
	addq	$40, %rdi
	callq	_SpinLockRelease
	xorl	%edi, %edi
	callq	_ReplicationSlotsComputeRequiredXmin
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ReplicationSlotsComputeRequiredLSN ## TAILCALL
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidXLogRecPtr,8,3          ## @InvalidXLogRecPtr
	.comm	_MyReplicationSlot,8,3          ## @MyReplicationSlot
	.comm	_InvalidTransactionId,8,3       ## @InvalidTransactionId
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"updated xmin: %u restart: %u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LogicalConfirmReceivedLocation ; -- Begin function LogicalConfirmReceivedLocation
	.p2align	2
_LogicalConfirmReceivedLocation:        ; @LogicalConfirmReceivedLocation
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _InvalidXLogRecPtr@GOTPAGE
Lloh1:
	ldr	x22, [x22, _InvalidXLogRecPtr@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x0
	cset	w0, ne
	bl	_Assert
Lloh2:
	adrp	x21, _MyReplicationSlot@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MyReplicationSlot@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x8]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	ldr	x10, [x8, #8]
	cmp	x10, x9
	b.ne	LBB0_3
; %bb.2:
	add	x0, x8, #40
	bl	_SpinLockAcquire
	ldr	x8, [x21]
	str	x19, [x8, #64]
	add	x0, x8, #40
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_SpinLockRelease
LBB0_3:
	add	x0, x8, #40
	bl	_SpinLockAcquire
	ldr	x8, [x21]
	str	x19, [x8, #64]
	ldr	x9, [x8]
	ldr	x10, [x22]
	cmp	x9, x19
	ccmp	x9, x10, #4, le
	b.eq	LBB0_6
; %bb.4:
	ldr	x0, [x8, #16]
	bl	_TransactionIdIsValid
	ldr	x8, [x21]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x10, [x8, #48]
	ldr	x9, [x8, #16]
	cmp	x10, x9
	b.ne	LBB0_13
LBB0_6:
	mov	w20, #0
LBB0_7:
	ldr	x10, [x8, #8]
	ldr	x9, [x22]
	cmp	x10, x19
	ccmp	x10, x9, #4, le
	b.ne	LBB0_10
; %bb.8:
	add	x0, x8, #40
	bl	_SpinLockRelease
	cbz	w20, LBB0_12
; %bb.9:
	bl	_ReplicationSlotMarkDirty
	bl	_ReplicationSlotSave
Lloh4:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	w3, #0
	bl	_elog
	b	LBB0_11
LBB0_10:
	ldr	x8, [x8, #24]
	cmp	x8, x9
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x21]
	ldr	x9, [x8, #24]
	str	x9, [x8, #56]
	ldr	x9, [x22]
	str	x9, [x8, #24]
	str	x9, [x8, #8]
	add	x0, x8, #40
	bl	_SpinLockRelease
	bl	_ReplicationSlotMarkDirty
	bl	_ReplicationSlotSave
Lloh9:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	w3, #1
	bl	_elog
	tbz	w20, #0, LBB0_12
LBB0_11:
	ldr	x8, [x21]
	add	x0, x8, #40
	bl	_SpinLockAcquire
	ldr	x8, [x21]
	ldr	x9, [x8, #48]
	str	x9, [x8, #32]
	add	x0, x8, #40
	bl	_SpinLockRelease
	mov	w0, #0
	bl	_ReplicationSlotsComputeRequiredXmin
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ReplicationSlotsComputeRequiredLSN
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh14:
	adrp	x10, _InvalidTransactionId@GOTPAGE
Lloh15:
	ldr	x10, [x10, _InvalidTransactionId@GOTPAGEOFF]
	str	x9, [x8, #48]
Lloh16:
	ldr	x9, [x10]
	str	x9, [x8, #16]
	ldr	x9, [x22]
	str	x9, [x8]
	mov	w20, #1
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidXLogRecPtr,8,3          ; @InvalidXLogRecPtr
	.comm	_MyReplicationSlot,8,3          ; @MyReplicationSlot
	.comm	_InvalidTransactionId,8,3       ; @InvalidTransactionId
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"updated xmin: %u restart: %u"

.subsections_via_symbols
