	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replorigin_get_progress        ## -- Begin function replorigin_get_progress
	.p2align	4, 0x90
_replorigin_get_progress:               ## @replorigin_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	%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
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r15
	movq	_ReplicationOriginLock@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_LW_SHARED@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_LWLockAcquire
	movq	_max_replication_slots@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	_replication_states@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	addq	$24, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, -24(%rbx)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$32, %rbx
	decq	%rax
	jne	LBB0_3
## %bb.6:
	movq	%r15, %r12
	jmp	LBB0_7
LBB0_1:
	movq	%r15, %r12
	jmp	LBB0_8
LBB0_4:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_LWLockAcquire
	movq	-16(%rbx), %r12
	movq	-8(%rbx), %r15
	movq	%rbx, %rdi
	callq	_LWLockRelease
LBB0_7:
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rbx
LBB0_8:
	movq	_ReplicationOriginLock@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_LWLockRelease
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.9:
	cmpq	(%rbx), %r15
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_XLogFlush
LBB0_11:
	movq	%r12, %rax
	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	_ReplicationOriginLock,8,3      ## @ReplicationOriginLock
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_max_replication_slots,4,2      ## @max_replication_slots
	.comm	_replication_states,8,3         ## @replication_states
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replorigin_get_progress        ; -- Begin function replorigin_get_progress
	.p2align	2
_replorigin_get_progress:               ; @replorigin_get_progress
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _InvalidXLogRecPtr@GOTPAGE
Lloh1:
	ldr	x23, [x23, _InvalidXLogRecPtr@GOTPAGEOFF]
	ldr	x20, [x23]
Lloh2:
	adrp	x24, _ReplicationOriginLock@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ReplicationOriginLock@GOTPAGEOFF]
	ldr	x0, [x24]
Lloh4:
	adrp	x25, _LW_SHARED@GOTPAGE
Lloh5:
	ldr	x25, [x25, _LW_SHARED@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_LWLockAcquire
Lloh6:
	adrp	x8, _max_replication_slots@GOTPAGE
Lloh7:
	ldr	x8, [x8, _max_replication_slots@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
Lloh9:
	adrp	x9, _replication_states@GOTPAGE
Lloh10:
	ldr	x9, [x9, _replication_states@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x22, x9, #24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x9, [x22, #-24]
	cmp	x9, x21
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #32
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	mov	x21, x20
	b	LBB0_6
LBB0_5:
	ldr	w1, [x25]
	mov	x0, x22
	bl	_LWLockAcquire
	ldp	x21, x20, [x22, #-16]
	mov	x0, x22
	bl	_LWLockRelease
LBB0_6:
	ldr	x0, [x24]
	bl	_LWLockRelease
	cbz	w19, LBB0_9
; %bb.7:
	ldr	x8, [x23]
	cmp	x20, x8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_XLogFlush
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidXLogRecPtr,8,3          ; @InvalidXLogRecPtr
	.comm	_ReplicationOriginLock,8,3      ; @ReplicationOriginLock
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_max_replication_slots,4,2      ; @max_replication_slots
	.comm	_replication_states,8,3         ; @replication_states
.subsections_via_symbols
