	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replorigin_session_reset       ## -- Begin function replorigin_session_reset
	.p2align	4, 0x90
_replorigin_session_reset:              ## @replorigin_session_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_max_replication_slots@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	callq	_Assert
	movq	_session_replication_state@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	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
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	_ReplicationOriginLock@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	(%r14), %rbx
	movq	$0, 8(%rbx)
	movq	$0, (%r14)
	movl	(%r15), %edi
	callq	_LWLockRelease
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ConditionVariableBroadcast     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_max_replication_slots,8,3      ## @max_replication_slots
	.comm	_session_replication_state,8,3  ## @session_replication_state
	.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	"no replication origin is configured"

	.comm	_ReplicationOriginLock,4,2      ## @ReplicationOriginLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replorigin_session_reset       ; -- Begin function replorigin_session_reset
	.p2align	2
_replorigin_session_reset:              ; @replorigin_session_reset
	.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
Lloh0:
	adrp	x8, _max_replication_slots@GOTPAGE
Lloh1:
	ldr	x8, [x8, _max_replication_slots@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
Lloh3:
	adrp	x20, _session_replication_state@GOTPAGE
Lloh4:
	ldr	x20, [x20, _session_replication_state@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w19, [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, x19
	bl	_ereport
LBB0_2:
Lloh13:
	adrp	x21, _ReplicationOriginLock@GOTPAGE
Lloh14:
	ldr	x21, [x21, _ReplicationOriginLock@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh15:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	x19, [x20]
	str	xzr, [x19, #8]
	str	xzr, [x20]
	ldr	w0, [x21]
	bl	_LWLockRelease
	mov	x0, x19
	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	_ConditionVariableBroadcast
	.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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_max_replication_slots,8,3      ; @max_replication_slots
	.comm	_session_replication_state,8,3  ; @session_replication_state
	.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	"no replication origin is configured"

	.comm	_ReplicationOriginLock,4,2      ; @ReplicationOriginLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
.subsections_via_symbols
