	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_header
_load_header:                           ## @load_header
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movl	(%rdi), %r15d
	movl	4(%rdi), %r14d
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_lseek
	cmpl	%r14d, %eax
	jne	LBB0_7
## %bb.2:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	$20, %edx
	callq	_read
	cmpl	$20, %eax
	jne	LBB0_8
## %bb.3:
	movl	8(%rbx), %eax
	movq	_ANTISPAM_INDEX_MAGIC@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_9
## %bb.4:
	movl	(%rbx), %edi
	callq	_assert
	movl	12(%rbx), %ecx
	movq	_log_split_min@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movl	(%rbx), %r8d
	movq	_log_split_max@GOTPCREL(%rip), %rax
	movl	%r8d, (%rax)
	movl	4(%rbx), %r9d
	movq	_log_split_mod@GOTPCREL(%rip), %rax
	movl	%r9d, (%rax)
	movq	_verbosity@GOTPCREL(%rip), %rax
	movq	_TRUE@GOTPCREL(%rip), %rbx
	cmpl	$2, (%rax)
	jl	LBB0_12
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_12
LBB0_6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	xorl	%edi, %edi
	callq	_time
	movl	%eax, 16(%rbx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_11
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	movl	$20, %ecx
	jmp	LBB0_10
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %edi
	movl	8(%rbx), %edx
	movl	(%r12), %ecx
	leaq	L_.str.3(%rip), %rsi
LBB0_10:
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_11:
	movq	_FALSE@GOTPCREL(%rip), %rbx
LBB0_12:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error reading header from index file: incorrect Index->offset = %d: %m\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"error reading header from index file: read %d bytes instead of %d at position %d: %m\n"

	.comm	_ANTISPAM_INDEX_MAGIC,4,2       ## @ANTISPAM_INDEX_MAGIC
L_.str.2:                               ## @.str.2
	.asciz	"bad antispam index file header\n"

L_.str.3:                               ## @.str.3
	.asciz	"magic = 0x%08x instead of 0x%08x // offset = %d\n"

	.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	_verbosity,4,2                  ## @verbosity
L_.str.4:                               ## @.str.4
	.asciz	"header loaded %d %d %d %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"ok\n"

	.no_dead_strip	_load_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_header
_load_header:                           ; @load_header
	.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, x1
	cbz	x0, LBB0_6
; %bb.1:
	ldp	w20, w21, [x0]
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_lseek
	cmp	w0, w21
	b.ne	LBB0_8
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #20
	bl	_read
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #20
	b.ne	LBB0_9
; %bb.3:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x22, _ANTISPAM_INDEX_MAGIC@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ANTISPAM_INDEX_MAGIC@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.4:
	ldr	w0, [x19]
	bl	_assert
	ldr	w8, [x19, #12]
Lloh5:
	adrp	x9, _log_split_min@GOTPAGE
Lloh6:
	ldr	x9, [x9, _log_split_min@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
Lloh8:
	adrp	x11, _log_split_max@GOTPAGE
Lloh9:
	ldr	x11, [x11, _log_split_max@GOTPAGEOFF]
	ldp	w9, w10, [x19]
Lloh10:
	adrp	x12, _log_split_mod@GOTPAGE
Lloh11:
	ldr	x12, [x12, _log_split_mod@GOTPAGEOFF]
Lloh12:
	str	w9, [x11]
Lloh13:
	str	w10, [x12]
Lloh14:
	adrp	x11, _verbosity@GOTPAGE
Lloh15:
	ldr	x11, [x11, _verbosity@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	cmp	w11, #2
	b.lt	LBB0_7
; %bb.5:
Lloh17:
	adrp	x19, _stderr@GOTPAGE
Lloh18:
	ldr	x19, [x19, _stderr@GOTPAGEOFF]
	ldr	w0, [x19]
	stp	x9, x10, [sp, #16]
	stp	x20, x8, [sp]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	w0, [x19]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	mov	x0, #0
	bl	_time
	str	w0, [x19, #16]
	movi.2s	v0, #1
	str	d0, [x19]
LBB0_7:
Lloh23:
	adrp	x8, _TRUE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh25:
	adrp	x8, _stderr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh30:
	adrp	x8, _stderr@GOTPAGE
Lloh31:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	mov	w9, #20
	stp	x9, x21, [sp, #8]
	str	x0, [sp]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	b	LBB0_11
LBB0_10:
Lloh35:
	adrp	x20, _stderr@GOTPAGE
Lloh36:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh37:
	adrp	x1, l_.str.2@PAGE
Lloh38:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	w0, [x20]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	ldr	w8, [x19, #8]
	ldr	w9, [x22]
	stp	x9, x21, [sp, #8]
	str	x8, [sp]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	bl	_fprintf
Lloh41:
	adrp	x8, _FALSE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error reading header from index file: incorrect Index->offset = %d: %m\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"error reading header from index file: read %d bytes instead of %d at position %d: %m\n"

	.comm	_ANTISPAM_INDEX_MAGIC,4,2       ; @ANTISPAM_INDEX_MAGIC
l_.str.2:                               ; @.str.2
	.asciz	"bad antispam index file header\n"

l_.str.3:                               ; @.str.3
	.asciz	"magic = 0x%08x instead of 0x%08x // offset = %d\n"

	.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	_verbosity,4,2                  ; @verbosity
l_.str.4:                               ; @.str.4
	.asciz	"header loaded %d %d %d %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"ok\n"

	.no_dead_strip	_load_header
.subsections_via_symbols
