	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dictstat_read                  ## -- Begin function dictstat_read
	.p2align	4, 0x90
_dictstat_read:                         ## @dictstat_read
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r13
	cmpl	$0, (%r13)
	je	LBB0_18
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	cmpl	$1, (%rax)
	je	LBB0_18
## %bb.2:
	movl	4(%r13), %esi
	leaq	L_.str(%rip), %rdx
	leaq	-44(%rbp), %rdi
	callq	_hc_fopen
	testl	%eax, %eax
	je	LBB0_18
## %bb.3:
	leaq	-48(%rbp), %rdi
	leaq	-44(%rbp), %r14
	movl	$4, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_hc_fread
	movq	%rax, %r15
	leaq	-52(%rbp), %rdi
	movl	$4, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_hc_fread
	cmpq	$1, %r15
	jne	LBB0_5
## %bb.4:
	cmpq	$1, %rax
	jne	LBB0_5
## %bb.7:
	movl	-48(%rbp), %edi
	callq	_byte_swap_64
	movl	%eax, -48(%rbp)
	movl	-52(%rbp), %edi
	callq	_byte_swap_64
	movl	%eax, -52(%rbp)
	movl	-48(%rbp), %ecx
	movq	_DICTSTAT_VERSION@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	xorl	%ecx, %esi
	cmpl	$256, %esi                      ## imm = 0x100
	jae	LBB0_8
## %bb.9:
	testl	%eax, %eax
	je	LBB0_10
LBB0_8:
	movl	4(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	movl	4(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%rbx, %rdi
	callq	_event_log_error
LBB0_17:
	leaq	-44(%rbp), %rdi
	callq	_hc_fclose
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movzbl	%cl, %eax
	movzbl	%dl, %ecx
	cmpl	%ecx, %eax
	jae	LBB0_11
## %bb.19:
	movl	4(%r13), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_event_log_warning
	jmp	LBB0_17
LBB0_11:
	leaq	-44(%rbp), %rdi
	callq	_hc_feof
	testl	%eax, %eax
	jne	LBB0_17
## %bb.12:
	leaq	8(%r13), %r14
	leaq	-56(%rbp), %r15
	leaq	-44(%rbp), %r12
	jmp	LBB0_13
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	callq	_hc_feof
	testl	%eax, %eax
	jne	LBB0_17
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$4, %esi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_hc_fread
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	12(%r13), %esi
	movq	_sort_by_dictstat@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$4, %ecx
	callq	_lsearch
	movl	8(%r13), %eax
	movq	_MAX_DICTSTAT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.15:
	movl	4(%r13), %edx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

L_.str.1:                               ## @.str.1
	.asciz	"%s: Invalid header"

	.comm	_DICTSTAT_VERSION,4,2           ## @DICTSTAT_VERSION
L_.str.2:                               ## @.str.2
	.asciz	"%s: Invalid header, ignoring content"

L_.str.3:                               ## @.str.3
	.asciz	"%s: Outdated header version, ignoring content"

	.comm	_sort_by_dictstat,4,2           ## @sort_by_dictstat
	.comm	_MAX_DICTSTAT,4,2               ## @MAX_DICTSTAT
L_.str.4:                               ## @.str.4
	.asciz	"There are too many entries in the %s database. You have to remove/rename it."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dictstat_read                  ; -- Begin function dictstat_read
	.p2align	2
_dictstat_read:                         ; @dictstat_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x21, [x0]
	ldr	w8, [x21]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_11
; %bb.2:
	ldr	w1, [x21, #4]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #12
	bl	_hc_fopen
	cbz	w0, LBB0_11
; %bb.3:
	add	x0, sp, #8
	add	x3, sp, #12
	mov	w1, #4
	mov	w2, #1
	bl	_hc_fread
	mov	x20, x0
	add	x0, sp, #4
	add	x3, sp, #12
	mov	w1, #4
	mov	w2, #1
	bl	_hc_fread
	cmp	x20, #1
	b.ne	LBB0_8
; %bb.4:
	cmp	x0, #1
	b.ne	LBB0_8
; %bb.5:
	ldr	w0, [sp, #8]
	bl	_byte_swap_64
	str	w0, [sp, #8]
	ldr	w0, [sp, #4]
	bl	_byte_swap_64
	str	w0, [sp, #4]
	ldr	w8, [sp, #8]
Lloh2:
	adrp	x9, _DICTSTAT_VERSION@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DICTSTAT_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	eor	w10, w9, w8
	cmp	w10, #256
	b.hs	LBB0_7
; %bb.6:
	cbz	w0, LBB0_12
LBB0_7:
	ldr	w2, [x21, #4]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
	ldr	w2, [x21, #4]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_event_log_error
LBB0_10:
	add	x0, sp, #12
	bl	_hc_fclose
LBB0_11:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	and	w8, w8, #0xff
	cmp	w8, w9, uxtb
	b.hs	LBB0_14
; %bb.13:
	ldr	w2, [x21, #4]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_event_log_warning
	b	LBB0_10
LBB0_14:
	add	x0, sp, #12
	bl	_hc_feof
	cbnz	w0, LBB0_10
; %bb.15:
	add	x20, x21, #8
Lloh11:
	adrp	x22, _sort_by_dictstat@GOTPAGE
Lloh12:
	ldr	x22, [x22, _sort_by_dictstat@GOTPAGEOFF]
Lloh13:
	adrp	x23, _MAX_DICTSTAT@GOTPAGE
Lloh14:
	ldr	x23, [x23, _MAX_DICTSTAT@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x0, sp, #12
	bl	_hc_feof
	cbnz	w0, LBB0_10
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	add	x3, sp, #12
	mov	w1, #4
	mov	w2, #1
	bl	_hc_fread
	cbz	x0, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w1, [x21, #12]
	ldr	w4, [x22]
	mov	x0, sp
	mov	x2, x20
	mov	w3, #4
	bl	_lsearch
	ldr	w8, [x21, #8]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.19:
	ldr	w2, [x21, #4]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

l_.str.1:                               ; @.str.1
	.asciz	"%s: Invalid header"

	.comm	_DICTSTAT_VERSION,4,2           ; @DICTSTAT_VERSION
l_.str.2:                               ; @.str.2
	.asciz	"%s: Invalid header, ignoring content"

l_.str.3:                               ; @.str.3
	.asciz	"%s: Outdated header version, ignoring content"

	.comm	_sort_by_dictstat,4,2           ; @sort_by_dictstat
	.comm	_MAX_DICTSTAT,4,2               ; @MAX_DICTSTAT
l_.str.4:                               ; @.str.4
	.asciz	"There are too many entries in the %s database. You have to remove/rename it."

.subsections_via_symbols
