	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function should_apply_changes_for_rel
_should_apply_changes_for_rel:          ## @should_apply_changes_for_rel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_am_tablesync_worker
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MyLogicalRepWorker@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	sete	%al
	jmp	LBB0_6
LBB0_2:
	movq	8(%rbx), %rcx
	movq	_SUBREL_STATE_READY@GOTPCREL(%rip), %rdx
	movb	$1, %al
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.3:
	movq	_SUBREL_STATE_SYNCDONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_4
## %bb.5:
	movq	16(%rbx), %rax
	movq	_remote_final_lsn@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setle	%al
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	movzbl	%al, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MyLogicalRepWorker,8,3         ## @MyLogicalRepWorker
	.comm	_SUBREL_STATE_READY,8,3         ## @SUBREL_STATE_READY
	.comm	_SUBREL_STATE_SYNCDONE,8,3      ## @SUBREL_STATE_SYNCDONE
	.comm	_remote_final_lsn,8,3           ## @remote_final_lsn
	.no_dead_strip	_should_apply_changes_for_rel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function should_apply_changes_for_rel
_should_apply_changes_for_rel:          ; @should_apply_changes_for_rel
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_am_tablesync_worker
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MyLogicalRepWorker@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MyLogicalRepWorker@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	cset	w0, eq
	b	LBB0_7
LBB0_2:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _SUBREL_STATE_READY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUBREL_STATE_READY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x9, _SUBREL_STATE_SYNCDONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SUBREL_STATE_SYNCDONE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x19, #16]
Lloh9:
	adrp	x9, _remote_final_lsn@GOTPAGE
Lloh10:
	ldr	x9, [x9, _remote_final_lsn@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, le
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MyLogicalRepWorker,8,3         ; @MyLogicalRepWorker
	.comm	_SUBREL_STATE_READY,8,3         ; @SUBREL_STATE_READY
	.comm	_SUBREL_STATE_SYNCDONE,8,3      ; @SUBREL_STATE_SYNCDONE
	.comm	_remote_final_lsn,8,3           ; @remote_final_lsn
	.no_dead_strip	_should_apply_changes_for_rel
.subsections_via_symbols
