	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_last_synchronization_point ## -- Begin function find_last_synchronization_point
	.p2align	4, 0x90
_find_last_synchronization_point:       ## @find_last_synchronization_point
	.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	_last_synchronization_point_id@GOTPCREL(%rip), %r14
	movl	$0, (%r14)
	movq	_last_synchronization_point_pos@GOTPCREL(%rip), %r15
	movq	$0, (%r15)
	movq	_last_decryption_failed_transaction_pos@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	movq	_replay_synchronization_point@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_copyexec_aux_replay_binlog
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_vkprintf
LBB0_2:
	movq	(%rbx), %rsi
	movq	(%r15), %rdx
	cmpq	%rdx, %rsi
	jg	LBB0_4
## %bb.3:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_last_synchronization_point_id,4,2 ## @last_synchronization_point_id
	.comm	_last_synchronization_point_pos,8,3 ## @last_synchronization_point_pos
	.comm	_last_decryption_failed_transaction_pos,8,3 ## @last_decryption_failed_transaction_pos
	.comm	_replay_synchronization_point,4,2 ## @replay_synchronization_point
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"find_last_synchronization_point: copyexec_aux_replay_binlog returns %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Couldn't decrypt transaction at %lld pos, last synchronization point pos is %lld.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_last_synchronization_point ; -- Begin function find_last_synchronization_point
	.p2align	2
_find_last_synchronization_point:       ; @find_last_synchronization_point
	.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
Lloh0:
	adrp	x19, _last_synchronization_point_id@GOTPAGE
Lloh1:
	ldr	x19, [x19, _last_synchronization_point_id@GOTPAGEOFF]
	str	wzr, [x19]
Lloh2:
	adrp	x20, _last_synchronization_point_pos@GOTPAGE
Lloh3:
	ldr	x20, [x20, _last_synchronization_point_pos@GOTPAGEOFF]
	str	xzr, [x20]
Lloh4:
	adrp	x21, _last_decryption_failed_transaction_pos@GOTPAGE
Lloh5:
	ldr	x21, [x21, _last_decryption_failed_transaction_pos@GOTPAGEOFF]
	str	xzr, [x21]
Lloh6:
	adrp	x8, _replay_synchronization_point@GOTPAGE
Lloh7:
	ldr	x8, [x8, _replay_synchronization_point@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_copyexec_aux_replay_binlog
	tbz	w0, #31, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
LBB0_2:
	ldr	x1, [x21]
	ldr	x2, [x20]
	cmp	x1, x2
	b.gt	LBB0_4
; %bb.3:
	ldr	w0, [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
LBB0_4:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_last_synchronization_point_id,4,2 ; @last_synchronization_point_id
	.comm	_last_synchronization_point_pos,8,3 ; @last_synchronization_point_pos
	.comm	_last_decryption_failed_transaction_pos,8,3 ; @last_decryption_failed_transaction_pos
	.comm	_replay_synchronization_point,4,2 ; @replay_synchronization_point
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"find_last_synchronization_point: copyexec_aux_replay_binlog returns %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Couldn't decrypt transaction at %lld pos, last synchronization point pos is %lld.\n"

.subsections_via_symbols
