	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_antispam_engine_common_init_part ## -- Begin function antispam_engine_common_init_part
	.p2align	4, 0x90
_antispam_engine_common_init_part:      ## @antispam_engine_common_init_part
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_binlogname@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	callq	_engine_preload_filelist
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movq	_engine_snapshot_replica@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_open_recent_snapshot
	movq	_Snapshot@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%rax), %rax
	movl	4(%rax), %edi
	callq	_strdup
	movq	_engine_snapshot_name@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rdi
	movq	(%rdi), %rcx
	movl	(%rcx), %ecx
	movq	_engine_snapshot_size@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_verbosity@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	jle	LBB0_7
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%rbx), %rdi
	jmp	LBB0_7
LBB0_6:
	movq	_engine_snapshot_name@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_engine_snapshot_size@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	xorl	%edi, %edi
LBB0_7:
	callq	_init_all
	movq	(%rbx), %rdi
	movl	$1, %esi
	callq	_close_snapshot
	movq	_engine_replica@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_jump_log_pos@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	callq	_open_binlog
	movq	_Binlog@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	(%rax), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, (%r15)
	movq	_verbosity@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jle	LBB0_11
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	(%rax), %rax
	movl	8(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_11:
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_get_utime
	movq	_binlog_load_time@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	xorl	%eax, %eax
	callq	_clear_log
	movq	(%r14), %rdi
	movq	_jump_log_ts@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_jump_log_crc32@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_init_log_data
	cmpq	$0, (%r15)
	jle	LBB0_13
## %bb.12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_13:
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_replay_log
	movl	%eax, %ebx
	movq	_binlog_disabled@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	je	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	callq	_clear_read_log
LBB0_15:
	testl	%ebx, %ebx
	js	LBB0_21
## %bb.16:
	cmpq	$0, (%r15)
	jle	LBB0_18
## %bb.17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_18:
	movl	(%r13), %edi
	callq	_get_utime
	subq	(%r12), %rax
	movq	%rax, (%r12)
	movq	_log_readto_pos@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	(%r14), %rax
	movq	_binlog_loaded_size@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	cmpq	$0, (%r15)
	jle	LBB0_20
## %bb.19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_log_pos@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	xorl	%eax, %eax
	callq	_dyn_used_memory
	movq	(%r12), %r8
	leaq	L_.str.7(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_20:
	xorl	%eax, %eax
	callq	_clear_write_log
	xorl	%edi, %edi
	callq	_time
	movq	_start_time@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rcx
	jmp	LBB0_2
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ecx, %ecx
LBB0_2:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_21:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_binlogname,8,3                 ## @binlogname
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fatal: cannot preload files for binlog: '%s' and index: '%s'\n"

	.comm	_engine_snapshot_replica,4,2    ## @engine_snapshot_replica
	.comm	_Snapshot,8,3                   ## @Snapshot
	.comm	_engine_snapshot_name,8,3       ## @engine_snapshot_name
	.comm	_engine_snapshot_size,4,2       ## @engine_snapshot_size
	.comm	_verbosity,8,3                  ## @verbosity
L_.str.1:                               ## @.str.1
	.asciz	"load index file %s (size %lld)\n"

	.comm	_engine_replica,8,3             ## @engine_replica
	.comm	_jump_log_pos,8,3               ## @jump_log_pos
	.comm	_Binlog,8,3                     ## @Binlog
L_.str.2:                               ## @.str.2
	.asciz	"fatal: cannot find binlog for %s, log position %lld\n"

L_.str.3:                               ## @.str.3
	.asciz	"replaying binlog file %s (size %lld)\n"

	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
	.comm	_binlog_load_time,8,3           ## @binlog_load_time
	.comm	_jump_log_ts,4,2                ## @jump_log_ts
	.comm	_jump_log_crc32,4,2             ## @jump_log_crc32
L_.str.4:                               ## @.str.4
	.asciz	"jump_log_pos = %lld\nreplay log events started\n"

	.comm	_binlog_disabled,4,2            ## @binlog_disabled
L_.str.5:                               ## @.str.5
	.asciz	"fatal: error reading binlog\n"

L_.str.6:                               ## @.str.6
	.asciz	"replay log events finished\n"

	.comm	_log_readto_pos,8,3             ## @log_readto_pos
	.comm	_binlog_loaded_size,8,3         ## @binlog_loaded_size
L_.str.7:                               ## @.str.7
	.asciz	"replay binlog file: done, log_pos=%lld, used_z_memory=%ld, time %.06lfs\n"

	.comm	_log_pos,8,3                    ## @log_pos
	.comm	_start_time,4,2                 ## @start_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_antispam_engine_common_init_part ; -- Begin function antispam_engine_common_init_part
	.p2align	2
_antispam_engine_common_init_part:      ; @antispam_engine_common_init_part
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x23, _binlogname@GOTPAGE
Lloh1:
	ldr	x23, [x23, _binlogname@GOTPAGEOFF]
	ldr	x1, [x23]
	bl	_engine_preload_filelist
	tbnz	x0, #63, LBB0_18
; %bb.1:
Lloh2:
	adrp	x8, _engine_snapshot_replica@GOTPAGE
Lloh3:
	ldr	x8, [x8, _engine_snapshot_replica@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_open_recent_snapshot
Lloh5:
	adrp	x19, _Snapshot@GOTPAGE
Lloh6:
	ldr	x19, [x19, _Snapshot@GOTPAGEOFF]
	str	x0, [x19]
Lloh7:
	adrp	x21, _verbosity@GOTPAGE
Lloh8:
	ldr	x21, [x21, _verbosity@GOTPAGEOFF]
Lloh9:
	adrp	x20, _stderr@GOTPAGE
Lloh10:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x0]
	ldr	w0, [x8, #4]
	bl	_strdup
	mov	x8, x0
Lloh11:
	adrp	x9, _engine_snapshot_name@GOTPAGE
Lloh12:
	ldr	x9, [x9, _engine_snapshot_name@GOTPAGEOFF]
Lloh13:
	str	x0, [x9]
	ldr	x0, [x19]
	ldr	x9, [x0]
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _engine_snapshot_size@GOTPAGE
Lloh15:
	ldr	x10, [x10, _engine_snapshot_size@GOTPAGEOFF]
Lloh16:
	str	w9, [x10]
	ldr	x10, [x21]
	cmp	x10, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	w0, [x20]
	stp	x8, x9, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	x0, [x19]
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x8, _engine_snapshot_name@GOTPAGE
Lloh20:
	ldr	x8, [x8, _engine_snapshot_name@GOTPAGEOFF]
Lloh21:
	str	xzr, [x8]
Lloh22:
	adrp	x8, _engine_snapshot_size@GOTPAGE
Lloh23:
	ldr	x8, [x8, _engine_snapshot_size@GOTPAGEOFF]
Lloh24:
	str	wzr, [x8]
LBB0_5:
	bl	_init_all
	ldr	x0, [x19]
	mov	w1, #1
	bl	_close_snapshot
Lloh25:
	adrp	x19, _engine_replica@GOTPAGE
Lloh26:
	ldr	x19, [x19, _engine_replica@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh27:
	adrp	x22, _jump_log_pos@GOTPAGE
Lloh28:
	ldr	x22, [x22, _jump_log_pos@GOTPAGEOFF]
	ldr	x1, [x22]
	bl	_open_binlog
Lloh29:
	adrp	x8, _Binlog@GOTPAGE
Lloh30:
	ldr	x8, [x8, _Binlog@GOTPAGEOFF]
Lloh31:
	str	x0, [x8]
	cbz	x0, LBB0_19
; %bb.6:
	ldr	x8, [x0]
	ldr	x9, [x8]
	str	x9, [x23]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.7:
	ldr	w8, [x20]
	ldr	x10, [x0]
	ldr	w10, [x10, #8]
	stp	x9, x10, [sp]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	bl	_fprintf
LBB0_8:
Lloh34:
	adrp	x24, _CLOCK_MONOTONIC@GOTPAGE
Lloh35:
	ldr	x24, [x24, _CLOCK_MONOTONIC@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_get_utime
Lloh36:
	adrp	x23, _binlog_load_time@GOTPAGE
Lloh37:
	ldr	x23, [x23, _binlog_load_time@GOTPAGEOFF]
	str	x0, [x23]
	bl	_clear_log
	ldr	x0, [x22]
Lloh38:
	adrp	x8, _jump_log_ts@GOTPAGE
Lloh39:
	ldr	x8, [x8, _jump_log_ts@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x8, _jump_log_crc32@GOTPAGE
Lloh42:
	ldr	x8, [x8, _jump_log_crc32@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	bl	_init_log_data
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.9:
	ldr	w0, [x20]
	ldr	x8, [x22]
	str	x8, [sp]
Lloh44:
	adrp	x1, l_.str.4@PAGE
Lloh45:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_10:
	mov	w0, #0
	mov	w1, #1
	bl	_replay_log
	mov	x19, x0
Lloh46:
	adrp	x8, _binlog_disabled@GOTPAGE
Lloh47:
	ldr	x8, [x8, _binlog_disabled@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_12
; %bb.11:
	bl	_clear_read_log
LBB0_12:
	tbnz	w19, #31, LBB0_20
; %bb.13:
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_15
; %bb.14:
	ldr	w0, [x20]
Lloh49:
	adrp	x1, l_.str.6@PAGE
Lloh50:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
LBB0_15:
	ldr	w0, [x24]
	bl	_get_utime
	ldr	x8, [x23]
	sub	x8, x0, x8
	str	x8, [x23]
Lloh51:
	adrp	x8, _log_readto_pos@GOTPAGE
Lloh52:
	ldr	x8, [x8, _log_readto_pos@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	ldr	x9, [x22]
	sub	x8, x8, x9
Lloh54:
	adrp	x9, _binlog_loaded_size@GOTPAGE
Lloh55:
	ldr	x9, [x9, _binlog_loaded_size@GOTPAGEOFF]
Lloh56:
	str	x8, [x9]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_17
; %bb.16:
	ldr	w19, [x20]
Lloh57:
	adrp	x8, _log_pos@GOTPAGE
Lloh58:
	ldr	x8, [x8, _log_pos@GOTPAGEOFF]
Lloh59:
	ldr	x20, [x8]
	bl	_dyn_used_memory
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x23]
	stp	x0, x8, [sp, #8]
	str	x20, [sp]
Lloh60:
	adrp	x1, l_.str.7@PAGE
Lloh61:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_17:
	bl	_clear_write_log
	mov	w0, #0
	bl	_time
Lloh62:
	adrp	x8, _start_time@GOTPAGE
Lloh63:
	ldr	x8, [x8, _start_time@GOTPAGEOFF]
Lloh64:
	str	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
Lloh65:
	adrp	x8, _stderr@GOTPAGE
Lloh66:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
	ldr	x8, [x23]
	stp	x8, x19, [sp]
Lloh68:
	adrp	x1, l_.str@PAGE
Lloh69:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_21
LBB0_19:
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldr	x8, [x8]
	stp	x8, xzr, [sp]
Lloh70:
	adrp	x1, l_.str.2@PAGE
Lloh71:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_20:
	ldr	w0, [x20]
Lloh72:
	adrp	x1, l_.str.5@PAGE
Lloh73:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_21:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotStr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotStr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.cfi_endproc
                                        ; -- End function
	.comm	_binlogname,8,3                 ; @binlogname
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fatal: cannot preload files for binlog: '%s' and index: '%s'\n"

	.comm	_engine_snapshot_replica,4,2    ; @engine_snapshot_replica
	.comm	_Snapshot,8,3                   ; @Snapshot
	.comm	_engine_snapshot_name,8,3       ; @engine_snapshot_name
	.comm	_engine_snapshot_size,4,2       ; @engine_snapshot_size
	.comm	_verbosity,8,3                  ; @verbosity
l_.str.1:                               ; @.str.1
	.asciz	"load index file %s (size %lld)\n"

	.comm	_engine_replica,8,3             ; @engine_replica
	.comm	_jump_log_pos,8,3               ; @jump_log_pos
	.comm	_Binlog,8,3                     ; @Binlog
l_.str.2:                               ; @.str.2
	.asciz	"fatal: cannot find binlog for %s, log position %lld\n"

l_.str.3:                               ; @.str.3
	.asciz	"replaying binlog file %s (size %lld)\n"

	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
	.comm	_binlog_load_time,8,3           ; @binlog_load_time
	.comm	_jump_log_ts,4,2                ; @jump_log_ts
	.comm	_jump_log_crc32,4,2             ; @jump_log_crc32
l_.str.4:                               ; @.str.4
	.asciz	"jump_log_pos = %lld\nreplay log events started\n"

	.comm	_binlog_disabled,4,2            ; @binlog_disabled
l_.str.5:                               ; @.str.5
	.asciz	"fatal: error reading binlog\n"

l_.str.6:                               ; @.str.6
	.asciz	"replay log events finished\n"

	.comm	_log_readto_pos,8,3             ; @log_readto_pos
	.comm	_binlog_loaded_size,8,3         ; @binlog_loaded_size
l_.str.7:                               ; @.str.7
	.asciz	"replay binlog file: done, log_pos=%lld, used_z_memory=%ld, time %.06lfs\n"

	.comm	_log_pos,8,3                    ; @log_pos
	.comm	_start_time,4,2                 ; @start_time
.subsections_via_symbols
