	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replay_synchronization_point   ## -- Begin function replay_synchronization_point
	.p2align	4, 0x90
_replay_synchronization_point:          ## @replay_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	20(%rdi), %edi
	movl	16(%rbx), %esi
	movl	12(%rbx), %edx
	movl	8(%rbx), %ecx
	movq	(%rbx), %r8
	leaq	-28(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-24(%rbp), %r9
	callq	_decrypt_transaction
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-24(%rbp), %rdi
	movl	-28(%rbp), %esi
	callq	_synchronization_point_transaction
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	-24(%rbp), %rax
	movl	(%rax), %ecx
	movq	_instance_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%ecx, %r8d
	je	LBB0_4
## %bb.5:
	movq	_last_synchronization_point_id@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setl	%dil
	callq	_assert
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	movl	8(%rbx), %eax
	movq	_last_synchronization_point_pos@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_6
LBB0_1:
	movl	8(%rbx), %eax
	movq	_last_decryption_failed_transaction_pos@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_7
LBB0_4:
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_vkprintf
LBB0_6:
	movq	-24(%rbp), %rdi
	callq	_free
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_last_decryption_failed_transaction_pos,4,2 ## @last_decryption_failed_transaction_pos
	.comm	_instance_mask,4,2              ## @instance_mask
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Skip synchronization point. (transaction_id: %d, mask: 0x%x, instance_mask: 0x%x)\n"

	.comm	_last_synchronization_point_id,8,3 ## @last_synchronization_point_id
	.comm	_last_synchronization_point_pos,4,2 ## @last_synchronization_point_pos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_replay_synchronization_point   ; -- Begin function replay_synchronization_point
	.p2align	2
_replay_synchronization_point:          ; @replay_synchronization_point
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0, #20]
	ldp	w2, w1, [x19, #12]
	ldr	w3, [x19, #8]
	ldr	x4, [x19]
	add	x5, sp, #8
	add	x6, sp, #4
	bl	_decrypt_transaction
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x0, [sp, #8]
	ldr	w1, [sp, #4]
	bl	_synchronization_point_transaction
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	w3, [x8]
Lloh0:
	adrp	x8, _instance_mask@GOTPAGE
Lloh1:
	ldr	x8, [x8, _instance_mask@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	tst	w4, w3
	b.eq	LBB0_5
; %bb.3:
Lloh3:
	adrp	x20, _last_synchronization_point_id@GOTPAGE
Lloh4:
	ldr	x20, [x20, _last_synchronization_point_id@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	cset	w0, lt
	bl	_assert
	ldr	x8, [x19]
	str	x8, [x20]
	ldr	w8, [x19, #8]
Lloh5:
	adrp	x9, _last_synchronization_point_pos@GOTPAGE
Lloh6:
	ldr	x9, [x9, _last_synchronization_point_pos@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
	b	LBB0_6
LBB0_4:
	ldr	w8, [x19, #8]
Lloh8:
	adrp	x9, _last_decryption_failed_transaction_pos@GOTPAGE
Lloh9:
	ldr	x9, [x9, _last_decryption_failed_transaction_pos@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
	b	LBB0_7
LBB0_5:
	ldr	x2, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
LBB0_6:
	ldr	x0, [sp, #8]
	bl	_free
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_last_decryption_failed_transaction_pos,4,2 ; @last_decryption_failed_transaction_pos
	.comm	_instance_mask,4,2              ; @instance_mask
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Skip synchronization point. (transaction_id: %d, mask: 0x%x, instance_mask: 0x%x)\n"

	.comm	_last_synchronization_point_id,8,3 ; @last_synchronization_point_id
	.comm	_last_synchronization_point_pos,4,2 ; @last_synchronization_point_pos
.subsections_via_symbols
