	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_save_index                     ## -- Begin function save_index
	.p2align	4, 0x90
_save_index:                            ## @save_index
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_engine_snapshot_replica@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_31
## %bb.1:
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_log_cur_pos
	movq	(%r14), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_get_new_snapshot_name
	testq	%rax, %rax
	je	LBB0_31
## %bb.2:
	movq	%rax, %rbx
	cmpb	$45, (%rax)
	je	LBB0_31
## %bb.3:
	xorl	%eax, %eax
	callq	_log_cur_pos
	movq	_jump_log_pos@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_30
LBB0_5:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_log_cur_pos
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_7:
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_O_EXCL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$432, %edx                      ## imm = 0x1B0
	callq	_open
	movq	_newidx_fd@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	js	LBB0_32
## %bb.8:
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$36, %edx
	callq	_memset
	movq	_reverse_friends_mode@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	jne	LBB0_9
## %bb.10:
	movq	_FRIEND_INDEX_MAGIC@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_REVERSE_FRIEND_INDEX_MAGIC@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	xorl	%edi, %edi
	callq	_time
	movl	%eax, -52(%rbp)
	xorl	%eax, %eax
	callq	_log_cur_pos
	movl	%eax, -56(%rbp)
	movq	_log_read_until@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	testl	%r15d, %r15d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	_relax_write_log_crc32
	jmp	LBB0_14
LBB0_13:
	xorl	%edi, %edi
	callq	_relax_log_crc32
LBB0_14:
	movq	_log_crc32_complement@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	%eax, -64(%rbp)
	movq	_log_split_min@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_log_split_max@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_log_split_mod@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_tot_users@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_write_seek
	leaq	-80(%rbp), %rdi
	movl	$36, %esi
	callq	_writeout
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_16
## %bb.15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_16:
	movq	_MAX_USERS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_24
## %bb.17:
	movq	_User@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_24
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jle	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	incl	%r12d
	movl	%ebx, %edi
	callq	_writeout_int
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	$52, %rdi
	movl	$8, %esi
	callq	_writeout
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	$16, %rdi
	movl	$144, %esi
	callq	_writeout
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	12(%rax), %edi
	callq	_dump_tree
	cmpq	$0, (%r13)
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	8(%rax), %edi
	callq	_dump_tree
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	4(%rax), %edi
	callq	_dump_tree
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	callq	_dump_privacy_tree
	jmp	LBB0_23
LBB0_24:
	xorl	%edi, %edi
	movq	_tot_users@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	sete	%dil
	callq	_assert
	cmpq	$0, (%r13)
	je	LBB0_26
## %bb.25:
	movq	_rev_friends@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dump_rev_friends
LBB0_26:
	xorl	%eax, %eax
	callq	_flushout
	movq	_newidx_fd@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_fsync
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	movq	(%rbx), %rdi
	callq	_close
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jl	LBB0_28
## %bb.27:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_28:
	movq	%rbx, %rdi
	callq	_rename_temporary_snapshot
	testq	%rax, %rax
	jne	LBB0_33
## %bb.29:
	movq	%rbx, %rdi
	callq	_print_snapshot_name
LBB0_30:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_32:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_33:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_unlink
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_engine_snapshot_replica,8,3    ## @engine_snapshot_replica
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot write index: cannot compute its name\n"

	.comm	_jump_log_pos,4,2               ## @jump_log_pos
L_.str.1:                               ## @.str.1
	.asciz	"skipping generation of new snapshot %s for position %lld: snapshot for this position already exists\n"

	.comm	_verbosity,4,2                  ## @verbosity
L_.str.2:                               ## @.str.2
	.asciz	"creating index %s at log position %lld\n"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_EXCL,4,2                     ## @O_EXCL
	.comm	_newidx_fd,8,3                  ## @newidx_fd
L_.str.3:                               ## @.str.3
	.asciz	"cannot create new index file %s: %m\n"

	.comm	_reverse_friends_mode,8,3       ## @reverse_friends_mode
	.comm	_FRIEND_INDEX_MAGIC,4,2         ## @FRIEND_INDEX_MAGIC
	.comm	_REVERSE_FRIEND_INDEX_MAGIC,4,2 ## @REVERSE_FRIEND_INDEX_MAGIC
	.comm	_log_read_until,4,2             ## @log_read_until
	.comm	_log_crc32_complement,4,2       ## @log_crc32_complement
	.comm	_log_split_min,4,2              ## @log_split_min
	.comm	_log_split_max,4,2              ## @log_split_max
	.comm	_log_split_mod,4,2              ## @log_split_mod
	.comm	_tot_users,4,2                  ## @tot_users
L_.str.4:                               ## @.str.4
	.asciz	"Written header\n"

	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
	.comm	_User,8,3                       ## @User
L_.str.5:                               ## @.str.5
	.asciz	"Writing user %d (real %d)\n"

	.comm	_rev_friends,4,2                ## @rev_friends
L_.str.6:                               ## @.str.6
	.asciz	"writing index done\n"

L_.str.7:                               ## @.str.7
	.asciz	"cannot rename new index file from %s: %m\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_save_index                     ; -- Begin function save_index
	.p2align	2
_save_index:                            ; @save_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x21, _engine_snapshot_replica@GOTPAGE
Lloh1:
	ldr	x21, [x21, _engine_snapshot_replica@GOTPAGEOFF]
	ldr	x19, [x21]
	cbz	x19, LBB0_29
; %bb.1:
	mov	x20, x0
	bl	_log_cur_pos
	mov	x1, x0
	ldr	x8, [x21]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_get_new_snapshot_name
	cbz	x0, LBB0_29
; %bb.2:
	mov	x19, x0
	ldrb	w8, [x0]
	cmp	w8, #45
	b.eq	LBB0_29
; %bb.3:
	bl	_log_cur_pos
                                        ; kill: def $w0 killed $w0 def $x0
Lloh2:
	adrp	x8, _jump_log_pos@GOTPAGE
Lloh3:
	ldr	x8, [x8, _jump_log_pos@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stp	x19, x0, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_fprintf
	b	LBB0_28
LBB0_5:
Lloh10:
	adrp	x22, _verbosity@GOTPAGE
Lloh11:
	ldr	x22, [x22, _verbosity@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	bl	_log_cur_pos
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_fprintf
LBB0_7:
Lloh17:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh21:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh24:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _O_EXCL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _O_EXCL@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	mov	w2, #432
	bl	_open
Lloh29:
	adrp	x8, _newidx_fd@GOTPAGE
Lloh30:
	ldr	x8, [x8, _newidx_fd@GOTPAGEOFF]
Lloh31:
	str	x0, [x8]
	tbnz	x0, #63, LBB0_31
; %bb.8:
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #36
	bl	_memset
Lloh32:
	adrp	x24, _reverse_friends_mode@GOTPAGE
Lloh33:
	ldr	x24, [x24, _reverse_friends_mode@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh34:
	adrp	x9, _FRIEND_INDEX_MAGIC@GOTPAGE
Lloh35:
	ldr	x9, [x9, _FRIEND_INDEX_MAGIC@GOTPAGEOFF]
Lloh36:
	adrp	x10, _REVERSE_FRIEND_INDEX_MAGIC@GOTPAGE
Lloh37:
	ldr	x10, [x10, _REVERSE_FRIEND_INDEX_MAGIC@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [sp, #56]
	mov	x0, #0
	bl	_time
	str	w0, [sp, #52]
	bl	_log_cur_pos
Lloh38:
	adrp	x8, _log_read_until@GOTPAGE
Lloh39:
	ldr	x8, [x8, _log_read_until@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #44]
	cbz	w20, LBB0_10
; %bb.9:
	bl	_relax_write_log_crc32
	b	LBB0_11
LBB0_10:
	mov	w0, #0
	bl	_relax_log_crc32
LBB0_11:
Lloh41:
	adrp	x8, _log_crc32_complement@GOTPAGE
Lloh42:
	ldr	x8, [x8, _log_crc32_complement@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	mvn	w8, w8
	str	w8, [sp, #40]
Lloh44:
	adrp	x8, _log_split_min@GOTPAGE
Lloh45:
	ldr	x8, [x8, _log_split_min@GOTPAGEOFF]
Lloh46:
	adrp	x9, _log_split_max@GOTPAGE
Lloh47:
	ldr	x9, [x9, _log_split_max@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #32]
Lloh50:
	adrp	x8, _log_split_mod@GOTPAGE
Lloh51:
	ldr	x8, [x8, _log_split_mod@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	adrp	x9, _tot_users@GOTPAGE
Lloh54:
	ldr	x9, [x9, _tot_users@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	mov	w0, #0
	bl	_write_seek
	add	x0, sp, #24
	mov	w1, #36
	bl	_writeout
	ldr	w8, [x22]
	cmp	w8, #1
	b.le	LBB0_13
; %bb.12:
Lloh56:
	adrp	x8, _stderr@GOTPAGE
Lloh57:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
Lloh59:
	adrp	x1, l_.str.4@PAGE
Lloh60:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_13:
Lloh61:
	adrp	x27, _MAX_USERS@GOTPAGE
Lloh62:
	ldr	x27, [x27, _MAX_USERS@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.14:
	mov	x20, #0
	mov	w26, #0
Lloh63:
	adrp	x28, _User@GOTPAGE
Lloh64:
	ldr	x28, [x28, _User@GOTPAGEOFF]
Lloh65:
	adrp	x23, _stderr@GOTPAGE
Lloh66:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
Lloh67:
	adrp	x21, l_.str.5@PAGE
Lloh68:
	add	x21, x21, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x27]
	cmp	x20, x8
	b.ge	LBB0_22
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	ldr	x8, [x8, x20, lsl #3]
	cbz	x8, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x22]
	cmp	w8, #2
	b.le	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x23]
	stp	x26, x20, [sp]
	mov	x1, x21
	bl	_fprintf
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w26, w26, #1
	mov	x0, x20
	bl	_writeout_int
	ldr	x8, [x28]
	lsl	x25, x20, #3
	ldr	x8, [x8, x25]
	add	x0, x8, #52
	mov	w1, #8
	bl	_writeout
	ldr	x8, [x28]
	ldr	x8, [x8, x25]
	add	x0, x8, #16
	mov	w1, #144
	bl	_writeout
	ldr	x8, [x28]
	ldr	x8, [x8, x25]
	ldr	w0, [x8, #12]
	bl	_dump_tree
	ldr	x8, [x24]
	cbnz	x8, LBB0_15
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x28]
	ldr	x8, [x8, x25]
	ldr	w0, [x8, #8]
	bl	_dump_tree
	ldr	x8, [x28]
	ldr	x8, [x8, x25]
	ldr	w0, [x8, #4]
	bl	_dump_tree
	ldr	x8, [x28]
	ldr	x8, [x8, x25]
	ldr	w0, [x8]
	bl	_dump_privacy_tree
	b	LBB0_15
LBB0_21:
	mov	w26, #0
LBB0_22:
Lloh69:
	adrp	x8, _tot_users@GOTPAGE
Lloh70:
	ldr	x8, [x8, _tot_users@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
	cmp	w26, w8
	cset	w0, eq
	bl	_assert
	ldr	x8, [x24]
	cbz	x8, LBB0_24
; %bb.23:
Lloh72:
	adrp	x8, _rev_friends@GOTPAGE
Lloh73:
	ldr	x8, [x8, _rev_friends@GOTPAGEOFF]
Lloh74:
	ldr	w0, [x8]
	bl	_dump_rev_friends
LBB0_24:
	bl	_flushout
Lloh75:
	adrp	x20, _newidx_fd@GOTPAGE
Lloh76:
	ldr	x20, [x20, _newidx_fd@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_fsync
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	ldr	x0, [x20]
	bl	_close
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	ldr	w8, [x22]
	cmp	w8, #3
	b.lt	LBB0_26
; %bb.25:
Lloh77:
	adrp	x8, _stderr@GOTPAGE
Lloh78:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh79:
	ldr	w0, [x8]
Lloh80:
	adrp	x1, l_.str.6@PAGE
Lloh81:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
LBB0_26:
	mov	x0, x19
	bl	_rename_temporary_snapshot
	cbnz	x0, LBB0_32
; %bb.27:
	mov	x0, x19
	bl	_print_snapshot_name
LBB0_28:
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_29:
Lloh82:
	adrp	x8, _stderr@GOTPAGE
Lloh83:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh84:
	ldr	w0, [x8]
Lloh85:
	adrp	x1, l_.str@PAGE
Lloh86:
	add	x1, x1, l_.str@PAGEOFF
LBB0_30:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_31:
Lloh87:
	adrp	x8, _stderr@GOTPAGE
Lloh88:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh89:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh90:
	adrp	x1, l_.str.3@PAGE
Lloh91:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_30
LBB0_32:
Lloh92:
	adrp	x8, _stderr@GOTPAGE
Lloh93:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh94:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh95:
	adrp	x1, l_.str.7@PAGE
Lloh96:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
	mov	x0, x19
	bl	_unlink
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh48
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.cfi_endproc
                                        ; -- End function
	.comm	_engine_snapshot_replica,8,3    ; @engine_snapshot_replica
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot write index: cannot compute its name\n"

	.comm	_jump_log_pos,4,2               ; @jump_log_pos
l_.str.1:                               ; @.str.1
	.asciz	"skipping generation of new snapshot %s for position %lld: snapshot for this position already exists\n"

	.comm	_verbosity,4,2                  ; @verbosity
l_.str.2:                               ; @.str.2
	.asciz	"creating index %s at log position %lld\n"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_EXCL,4,2                     ; @O_EXCL
	.comm	_newidx_fd,8,3                  ; @newidx_fd
l_.str.3:                               ; @.str.3
	.asciz	"cannot create new index file %s: %m\n"

	.comm	_reverse_friends_mode,8,3       ; @reverse_friends_mode
	.comm	_FRIEND_INDEX_MAGIC,4,2         ; @FRIEND_INDEX_MAGIC
	.comm	_REVERSE_FRIEND_INDEX_MAGIC,4,2 ; @REVERSE_FRIEND_INDEX_MAGIC
	.comm	_log_read_until,4,2             ; @log_read_until
	.comm	_log_crc32_complement,4,2       ; @log_crc32_complement
	.comm	_log_split_min,4,2              ; @log_split_min
	.comm	_log_split_max,4,2              ; @log_split_max
	.comm	_log_split_mod,4,2              ; @log_split_mod
	.comm	_tot_users,4,2                  ; @tot_users
l_.str.4:                               ; @.str.4
	.asciz	"Written header\n"

	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
	.comm	_User,8,3                       ; @User
l_.str.5:                               ; @.str.5
	.asciz	"Writing user %d (real %d)\n"

	.comm	_rev_friends,4,2                ; @rev_friends
l_.str.6:                               ; @.str.6
	.asciz	"writing index done\n"

l_.str.7:                               ; @.str.7
	.asciz	"cannot rename new index file from %s: %m\n"

.subsections_via_symbols
