	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_dictionary                ## -- Begin function load_dictionary
	.p2align	4, 0x90
_load_dictionary:                       ## @load_dictionary
	.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	%rdx, %rbx
	movq	%rdi, %r14
	movq	_MAX_FILE_DICTIONARY_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	callq	_load_index_part
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_assert
	movq	%rbx, 8(%r14)
	xorl	%edi, %edi
	cmpq	$4, %rbx
	setge	%dil
	callq	_assert
	movslq	(%r14), %r15
	movslq	(%r15), %r12
	testq	%r12, %r12
	setns	%al
	movq	%rbx, %rcx
	sarq	$2, %rcx
	addq	$-2, %rcx
	cmpq	%r12, %rcx
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movl	%r12d, 16(%r14)
	movq	8(%r15), %rax
	movslq	(%rax), %rax
	leal	8(,%r12,4), %ecx
	cmpl	%ecx, %eax
	setge	%cl
	cmpq	%rbx, %rax
	setle	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	8(%r15), %rax
	movslq	(%rax,%r12,4), %rax
	xorl	%edi, %edi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %rax
	setle	%dil
	callq	_assert
	leal	(,%r12,8), %edi
	callq	_zmalloc
	movl	%r12d, %r8d
	movq	%rax, 32(%r14)
	testq	%r12, %r12
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r14), %r13
	movq	8(%r15), %rax
	movq	%r15, %r12
	movslq	(%rax,%rbx,4), %r15
	leaq	1(%rbx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpl	4(%rax,%rbx,4), %r15d
	setl	%dil
	callq	_assert
	movq	8(%r12), %rax
	movslq	4(%rax,%rbx,4), %rax
	xorl	%edi, %edi
	cmpq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	setle	%dil
	callq	_assert
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %ecx
	movl	(%r15,%r13), %edx
	addl	%edx, %ecx
	addl	$2, %ecx
	xorl	%edi, %edi
	cmpl	4(%rax,%rbx,4), %ecx
	setle	%dil
	callq	_assert
	movl	4(%r15,%r13), %eax
	movq	%r12, %r15
	decl	%eax
	xorl	%edi, %edi
	cmpl	$32, %eax
	setb	%dil
	callq	_assert
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rbx
	cmpq	%rax, %r8
	jne	LBB0_2
LBB0_3:
	movl	$32, 20(%r14)
	movl	$1, %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movq	%r15, %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdi
	cmpq	$33, %rdi
	je	LBB0_12
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	cmpq	%rax, %r12
	jg	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%edi, 20(%r14)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r14), %rax
	movq	%r12, -8(%rax,%rdi,8)
	movslq	%esi, %rax
	shlq	$3, %rax
	addq	32(%r14), %rax
	movl	$32, %ecx
	subq	%rdi, %rcx
	movq	%r12, %rdx
	sarq	%cl, %rdx
	shlq	$3, %rdx
	subq	%rdx, %rax
	movq	40(%r14), %rdx
	movq	%rax, -8(%rdx,%rdi,8)
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%r15
	cmpq	%r15, %r8
	je	LBB0_11
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%r14), %rcx
	movq	8(%rbx), %rax
	movslq	(%rax,%r15,4), %rax
	movl	4(%rax,%rcx), %edx
	cmpq	%rdx, %rdi
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	addq	%rcx, %rax
	movq	32(%r14), %rcx
	movslq	%esi, %rdx
	incl	%esi
	movq	%rax, (%rcx,%rdx,8)
	addq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	xorl	%edi, %edi
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	cmpq	%rax, %r12
	setl	%dil
	movq	%r14, %r13
	movq	%rsi, %r14
	callq	_assert
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r13, %r14
	jmp	LBB0_10
LBB0_12:
	xorl	%edi, %edi
	cmpl	%r8d, %esi
	jne	LBB0_15
## %bb.13:
	movl	$1, %edi
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	cmpq	%rax, %r12
	je	LBB0_15
## %bb.14:
	xorl	%edi, %edi
	orq	%r12, %r8
	sete	%dil
LBB0_15:
	callq	_assert
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FILE_DICTIONARY_BYTES,4,2  ## @MAX_FILE_DICTIONARY_BYTES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_dictionary                ; -- Begin function load_dictionary
	.p2align	2
_load_dictionary:                       ; @load_dictionary
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _MAX_FILE_DICTIONARY_BYTES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_FILE_DICTIONARY_BYTES@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w0, #0
	bl	_load_index_part
	str	w0, [x19]
	bl	_assert
	str	x20, [x19, #8]
	cmp	x20, #3
	cset	w0, gt
	bl	_assert
	ldrsw	x22, [x19]
	ldrsw	x23, [x22]
	asr	x8, x20, #2
	sub	x8, x8, #2
	cmp	x23, #0
	and	x21, x23, #0xffffffff
	ccmp	x8, x23, #8, ge
	cset	w0, ge
	bl	_assert
	str	w23, [x19, #16]
	ldr	x8, [x22, #8]
	ldrsw	x8, [x8]
	lsl	w9, w23, #2
	add	w9, w9, #8
	cmp	w8, w9
	ccmp	x8, x20, #0, ge
	cset	w0, le
	bl	_assert
	ldr	x8, [x22, #8]
	ldrsw	x8, [x8, x23, lsl #2]
	cmp	x8, x20
	cset	w0, le
	bl	_assert
	lsl	w0, w23, #3
	bl	_zmalloc
	str	x0, [x19, #32]
	cmp	w23, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
	lsl	x24, x21, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19]
	ldr	x9, [x22, #8]
	add	x9, x9, x23
	ldp	w10, w9, [x9]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	x25, x10, x8
	cmp	w10, w9
	cset	w0, lt
	bl	_assert
	ldr	x8, [x22, #8]
	add	x8, x8, x23
	ldrsw	x8, [x8, #4]
	cmp	x8, x20
	cset	w0, le
	bl	_assert
	ldr	x8, [x22, #8]
	add	x8, x8, x23
	ldr	w9, [x25]
	ldp	w10, w8, [x8]
	add	w9, w10, w9
	add	w9, w9, #2
	cmp	w9, w8
	cset	w0, le
	bl	_assert
	ldr	w8, [x25, #4]
	sub	w8, w8, #1
	cmp	w8, #32
	cset	w0, lo
	bl	_assert
	add	x23, x23, #4
	cmp	x24, x23
	b.ne	LBB0_2
LBB0_3:
	mov	x20, #0
	mov	w8, #0
	mov	w9, #32
	str	w9, [x19, #20]
	lsl	x24, x21, #2
	mov	x27, #4294967297
	mov	w28, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x28, #1
	cmp	x28, #33
	b.eq	LBB0_12
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	mov	w9, #-1
	cmp	x20, x9
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w28, [x19, #20]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsl	x9, x28, #3
	sub	x10, x9, #8
	ldp	x9, x11, [x19, #24]
	str	x20, [x9, x10]
	add	x11, x11, w8, sxtw #3
	mov	w9, #32
	sub	x9, x9, x28
	asr	x12, x20, x9
	sub	x11, x11, x12, lsl #3
	ldr	x12, [x19, #40]
	str	x11, [x12, x10]
	cmp	w21, #1
	b.lt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, #0
	mov	w10, #1
	lsl	w23, w10, w9
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x25, x25, #4
	cmp	x24, x25
	b.eq	LBB0_4
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x9, [x19]
	ldr	x10, [x22, #8]
	ldrsw	x10, [x10, x25]
	add	x9, x10, x9
	ldr	w10, [x9, #4]
	cmp	x28, x10
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x10, [x19, #32]
	add	w26, w8, #1
	str	x9, [x10, w8, sxtw #3]
	add	x20, x20, x23
	cmp	x20, x27
	cset	w0, lt
	bl	_assert
	mov	x8, x26
	b	LBB0_9
LBB0_12:
	mov	w9, #1
	mov	x10, #4294967296
	cmp	w21, #0
	ccmp	x20, #0, #0, eq
	cset	w11, eq
	cmp	x20, x10
	csel	w9, w9, w11, eq
	cmp	w8, w21
	csel	w0, wzr, w9, ne
	bl	_assert
	mov	x0, x19
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FILE_DICTIONARY_BYTES,4,2  ; @MAX_FILE_DICTIONARY_BYTES
.subsections_via_symbols
