	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_main_empty_binlog
_create_main_empty_binlog:              ## @create_main_empty_binlog
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_instance_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	leaq	-52(%rbp), %rdi
	movl	$8, %esi
	callq	_get_random_bytes
	cmpl	$8, %eax
	jne	LBB0_6
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_find_last_synchronization_point
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	leaq	-64(%rbp), %r15
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_kprintf
	movq	_LEV_COPYEXEC_MAIN_TRANSACTION_SKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	incl	%ebx
	movl	%ebx, -64(%rbp)
	movl	$8, %r12d
	jmp	LBB0_4
LBB0_2:
	xorl	%r15d, %r15d
LBB0_4:
	movq	_empty_binlog_volume_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_COPYEXEC_MAIN_SCHEMA_V1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, (%rsp)
	leaq	-52(%rbp), %rcx
	movq	%r14, %rdi
	movl	$12, %r8d
	movq	%r15, %r9
	callq	_make_empty_binlog
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.5:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_instance_mask,4,2              ## @instance_mask
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"random_tag creation failed, get_random_bytes returns %d instead of 8.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Last synchronization point transaction id is %d.\n"

	.comm	_LEV_COPYEXEC_MAIN_TRANSACTION_SKIP,4,2 ## @LEV_COPYEXEC_MAIN_TRANSACTION_SKIP
	.comm	_empty_binlog_volume_name,4,2   ## @empty_binlog_volume_name
	.comm	_COPYEXEC_MAIN_SCHEMA_V1,4,2    ## @COPYEXEC_MAIN_SCHEMA_V1
	.no_dead_strip	_create_main_empty_binlog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_main_empty_binlog
_create_main_empty_binlog:              ; @create_main_empty_binlog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _instance_mask@GOTPAGE
Lloh4:
	ldr	x8, [x8, _instance_mask@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	add	x0, sp, #12
	mov	w1, #8
	bl	_get_random_bytes
	cmp	w0, #8
	b.ne	LBB0_6
; %bb.1:
	bl	_find_last_synchronization_point
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
	mov	x20, sp
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_kprintf
Lloh8:
	adrp	x8, _LEV_COPYEXEC_MAIN_TRANSACTION_SKIP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LEV_COPYEXEC_MAIN_TRANSACTION_SKIP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w9, w21, #1
	stp	w9, w8, [sp]
	mov	w6, #8
	b	LBB0_4
LBB0_3:
	mov	w6, #0
	mov	x20, #0
LBB0_4:
Lloh11:
	adrp	x8, _empty_binlog_volume_name@GOTPAGE
Lloh12:
	ldr	x8, [x8, _empty_binlog_volume_name@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _COPYEXEC_MAIN_SCHEMA_V1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _COPYEXEC_MAIN_SCHEMA_V1@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #12
	mov	x5, x20
	bl	_make_empty_binlog
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.5:
	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
	add	sp, sp, #80
	ret
LBB0_6:
	mov	x1, x0
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kprintf
	mov	w0, #1
	bl	_exit
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_instance_mask,4,2              ; @instance_mask
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"random_tag creation failed, get_random_bytes returns %d instead of 8.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Last synchronization point transaction id is %d.\n"

	.comm	_LEV_COPYEXEC_MAIN_TRANSACTION_SKIP,4,2 ; @LEV_COPYEXEC_MAIN_TRANSACTION_SKIP
	.comm	_empty_binlog_volume_name,4,2   ; @empty_binlog_volume_name
	.comm	_COPYEXEC_MAIN_SCHEMA_V1,4,2    ; @COPYEXEC_MAIN_SCHEMA_V1
	.no_dead_strip	_create_main_empty_binlog
.subsections_via_symbols
