	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replorigin_session_advance     ## -- Begin function replorigin_session_advance
	.p2align	4, 0x90
_replorigin_session_advance:            ## @replorigin_session_advance
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_session_replication_state@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
	callq	_Assert
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_InvalidRepOriginId@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_Assert
	movq	(%rbx), %rdi
	addq	$24, %rdi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	(%rbx), %rdi
	cmpq	%r15, 8(%rdi)
	jge	LBB0_2
## %bb.1:
	movq	%r15, 8(%rdi)
LBB0_2:
	cmpq	%r14, 16(%rdi)
	jge	LBB0_4
## %bb.3:
	movq	%r14, 16(%rdi)
LBB0_4:
	addq	$24, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_session_replication_state,8,3  ## @session_replication_state
	.comm	_InvalidRepOriginId,8,3         ## @InvalidRepOriginId
	.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_advance     ; -- Begin function replorigin_session_advance
	.p2align	2
_replorigin_session_advance:            ; @replorigin_session_advance
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _session_replication_state@GOTPAGE
Lloh1:
	ldr	x21, [x21, _session_replication_state@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _InvalidRepOriginId@GOTPAGE
Lloh3:
	ldr	x9, [x9, _InvalidRepOriginId@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x21]
	add	x0, x8, #24
Lloh5:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	cmp	x9, x20
	b.ge	LBB0_2
; %bb.1:
	str	x20, [x8, #8]
LBB0_2:
	ldr	x9, [x8, #16]
	cmp	x9, x19
	b.ge	LBB0_4
; %bb.3:
	str	x19, [x8, #16]
LBB0_4:
	add	x0, x8, #24
	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	_LWLockRelease
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_session_replication_state,8,3  ; @session_replication_state
	.comm	_InvalidRepOriginId,8,3         ; @InvalidRepOriginId
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
.subsections_via_symbols
