	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replorigin_session_get_progress ## -- Begin function replorigin_session_get_progress
	.p2align	4, 0x90
_replorigin_session_get_progress:       ## @replorigin_session_get_progress
	.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
	movl	%edi, %r14d
	movq	_session_replication_state@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
	callq	_Assert
	movq	(%rbx), %rdi
	addq	$16, %rdi
	movq	_LW_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	(%rbx), %rdi
	movq	(%rdi), %r15
	movq	8(%rdi), %rbx
	addq	$16, %rdi
	callq	_LWLockRelease
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_XLogFlush
LBB0_3:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_session_replication_state,8,3  ## @session_replication_state
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_InvalidXLogRecPtr,8,3          ## @InvalidXLogRecPtr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replorigin_session_get_progress ; -- Begin function replorigin_session_get_progress
	.p2align	2
_replorigin_session_get_progress:       ; @replorigin_session_get_progress
	.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	x21, x0
Lloh0:
	adrp	x19, _session_replication_state@GOTPAGE
Lloh1:
	ldr	x19, [x19, _session_replication_state@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x19]
	add	x0, x8, #16
Lloh2:
	adrp	x8, _LW_SHARED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LW_SHARED@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	x8, [x19]
	ldp	x19, x20, [x8]
	add	x0, x8, #16
	bl	_LWLockRelease
	cbz	w21, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x20, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_XLogFlush
LBB0_3:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_session_replication_state,8,3  ; @session_replication_state
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_InvalidXLogRecPtr,8,3          ; @InvalidXLogRecPtr
.subsections_via_symbols
