	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_handle_commit
_apply_handle_commit:                   ## @apply_handle_commit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	leaq	-16(%rbp), %rsi
	callq	_logicalrep_read_commit
	movq	-16(%rbp), %rax
	movq	_remote_final_lsn@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	xorl	%eax, %eax
	callq	_IsTransactionState
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_am_tablesync_worker
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_AcceptInvalidationMessages
	xorl	%eax, %eax
	callq	_maybe_reread_subscription
	jmp	LBB0_4
LBB0_2:
	movq	_replorigin_session_origin_lsn@GOTPCREL(%rip), %rax
	movl	-8(%rbp), %ecx
	movl	-4(%rbp), %edx
	movl	%ecx, (%rax)
	movq	_replorigin_session_origin_timestamp@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	xorl	%eax, %eax
	callq	_CommitTransactionCommand
	xorl	%edi, %edi
	callq	_pgstat_report_stat
	movl	-8(%rbp), %edi
	callq	_store_flush_position
LBB0_4:
	movq	_in_remote_transaction@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movl	-8(%rbp), %edi
	callq	_process_syncing_tables
	movq	_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_pgstat_report_activity
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_remote_final_lsn,8,3           ## @remote_final_lsn
	.comm	_replorigin_session_origin_lsn,4,2 ## @replorigin_session_origin_lsn
	.comm	_replorigin_session_origin_timestamp,4,2 ## @replorigin_session_origin_timestamp
	.comm	_in_remote_transaction,4,2      ## @in_remote_transaction
	.comm	_STATE_IDLE,4,2                 ## @STATE_IDLE
	.no_dead_strip	_apply_handle_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_handle_commit
_apply_handle_commit:                   ; @apply_handle_commit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x1, sp
	bl	_logicalrep_read_commit
	ldr	x8, [sp]
Lloh0:
	adrp	x9, _remote_final_lsn@GOTPAGE
Lloh1:
	ldr	x9, [x9, _remote_final_lsn@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	bl	_IsTransactionState
	cbz	x0, LBB0_2
; %bb.1:
	bl	_am_tablesync_worker
	cbz	w0, LBB0_3
LBB0_2:
	bl	_AcceptInvalidationMessages
	bl	_maybe_reread_subscription
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _replorigin_session_origin_lsn@GOTPAGE
Lloh4:
	ldr	x8, [x8, _replorigin_session_origin_lsn@GOTPAGEOFF]
	ldp	w9, w10, [sp, #8]
Lloh5:
	str	w9, [x8]
Lloh6:
	adrp	x8, _replorigin_session_origin_timestamp@GOTPAGE
Lloh7:
	ldr	x8, [x8, _replorigin_session_origin_timestamp@GOTPAGEOFF]
Lloh8:
	str	w10, [x8]
	bl	_CommitTransactionCommand
	mov	w0, #0
	bl	_pgstat_report_stat
	ldr	w0, [sp, #8]
	bl	_store_flush_position
LBB0_4:
Lloh9:
	adrp	x8, _in_remote_transaction@GOTPAGE
Lloh10:
	ldr	x8, [x8, _in_remote_transaction@GOTPAGEOFF]
Lloh11:
	str	wzr, [x8]
	ldr	w0, [sp, #8]
	bl	_process_syncing_tables
Lloh12:
	adrp	x8, _STATE_IDLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STATE_IDLE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_pgstat_report_activity
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_remote_final_lsn,8,3           ; @remote_final_lsn
	.comm	_replorigin_session_origin_lsn,4,2 ; @replorigin_session_origin_lsn
	.comm	_replorigin_session_origin_timestamp,4,2 ; @replorigin_session_origin_timestamp
	.comm	_in_remote_transaction,4,2      ; @in_remote_transaction
	.comm	_STATE_IDLE,4,2                 ; @STATE_IDLE
	.no_dead_strip	_apply_handle_commit
.subsections_via_symbols
