	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_suggestions               ## -- Begin function load_suggestions
	.p2align	4, 0x90
_load_suggestions:                      ## @load_suggestions
	.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, %rsi
	movl	$3, %edi
	movl	$-1, %edx
	callq	_open_file
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	movq	_fd@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	12(%rax), %edi
	leaq	-56(%rbp), %rsi
	movl	$8, %edx
	xorl	%eax, %eax
	callq	_read
	xorl	%edi, %edi
	cmpl	$8, %eax
	sete	%dil
	callq	_assert
	movq	-56(%rbp), %rax
	movq	_fsize@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	24(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	(%r13), %rax
	movl	12(%rax), %edi
	leaq	-48(%rbp), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_read
	cmpl	$4, %eax
	jne	LBB0_9
## %bb.1:
	leaq	_load_suggestions.buff(%rip), %r12
	leaq	-48(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movl	12(%rax), %edi
	movl	$4, %edx
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_read
	cmpl	$4, %eax
	jne	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	(%r13), %rax
	movl	12(%rax), %edi
	movl	$4, %edx
	leaq	-44(%rbp), %rsi
	xorl	%eax, %eax
	callq	_read
	xorl	%edi, %edi
	cmpl	$4, %eax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$15000, -44(%rbp)               ## imm = 0x3A98
	setb	%dil
	callq	_assert
	movl	-44(%rbp), %ebx
	shll	$3, %ebx
	movq	(%r13), %rax
	movl	12(%rax), %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_read
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	sete	%dil
	callq	_assert
	movl	-48(%rbp), %edi
	callq	_conv_uid
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movl	-44(%rbp), %eax
	movq	_MAX_SUGGESTIONS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, -44(%rbp)
	movl	%ecx, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12,%r14,8), %edx
	movl	4(%r12,%r14,8), %esi
	movq	%rbx, %rdi
	callq	_trp_incr
	incq	%r14
	movslq	-44(%rbp), %rax
	cmpq	%rax, %r14
	jl	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movq	(%r13), %rax
	movl	12(%rax), %edi
	callq	_close
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	movq	(%r13), %rax
	movl	$-1, 12(%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_load_suggestions.buff,120000,4 ## @load_suggestions.buff
	.comm	_fd,8,3                         ## @fd
	.comm	_fsize,8,3                      ## @fsize
	.comm	_MAX_SUGGESTIONS,4,2            ## @MAX_SUGGESTIONS
	.comm	_MAX_INIT,4,2                   ## @MAX_INIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_suggestions               ; -- Begin function load_suggestions
	.p2align	2
_load_suggestions:                      ; @load_suggestions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x1, x0
	mov	w0, #3
	mov	w2, #-1
	bl	_open_file
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
Lloh0:
	adrp	x21, _fd@GOTPAGE
Lloh1:
	ldr	x21, [x21, _fd@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w0, [x8, #12]
	mov	w8, #8
	add	x9, sp, #16
	stp	x9, x8, [sp]
	bl	_read
	cmp	w0, #8
	cset	w0, eq
	bl	_assert
	ldr	x8, [sp, #16]
Lloh2:
	adrp	x9, _fsize@GOTPAGE
Lloh3:
	ldr	x9, [x9, _fsize@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x9, [x9, #24]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x21]
	ldr	w0, [x8, #12]
	mov	w8, #4
	add	x22, sp, #28
	stp	x22, x8, [sp]
	bl	_read
	cmp	w0, #4
	b.ne	LBB0_9
; %bb.1:
	mov	w23, #4
	add	x24, sp, #24
Lloh5:
	adrp	x25, _load_suggestions.buff@PAGE
Lloh6:
	add	x25, x25, _load_suggestions.buff@PAGEOFF
Lloh7:
	adrp	x26, _MAX_SUGGESTIONS@GOTPAGE
Lloh8:
	ldr	x26, [x26, _MAX_SUGGESTIONS@GOTPAGEOFF]
Lloh9:
	adrp	x20, _load_suggestions.buff@PAGE+4
Lloh10:
	add	x20, x20, _load_suggestions.buff@PAGEOFF+4
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, #12]
	stp	x22, x23, [sp]
	bl	_read
	cmp	w0, #4
	b.ne	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x8, [x21]
	ldr	w0, [x8, #12]
	stp	x24, x23, [sp]
	bl	_read
	cmp	w0, #4
	cset	w0, eq
	bl	_assert
	ldr	w8, [sp, #24]
	lsr	w8, w8, #3
	cmp	w8, #1875
	cset	w0, lo
	bl	_assert
	ldr	w8, [sp, #24]
	lsl	w19, w8, #3
	ldr	x8, [x21]
	ldr	w0, [x8, #12]
	stp	x25, x19, [sp]
	bl	_read
	cmp	w0, w19
	cset	w0, eq
	bl	_assert
	ldr	w0, [sp, #28]
	bl	_conv_uid
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x0
	ldr	w8, [sp, #24]
	ldr	w9, [x26]
	cmp	w8, w9
	b.le	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w9, [sp, #24]
	mov	x8, x9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, #0
	mov	x27, x20
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w2, w1, [x27, #-4]
	mov	x0, x19
	bl	_trp_incr
	add	x28, x28, #1
	ldrsw	x8, [sp, #24]
	add	x27, x27, #8
	cmp	x28, x8
	b.lt	LBB0_8
	b	LBB0_2
LBB0_9:
	ldr	x8, [x21]
	ldr	w0, [x8, #12]
	bl	_close
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	ldr	x8, [x21]
	mov	w9, #-1
	str	w9, [x8, #12]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_load_suggestions.buff,120000,2 ; @load_suggestions.buff
	.comm	_fd,8,3                         ; @fd
	.comm	_fsize,8,3                      ; @fsize
	.comm	_MAX_SUGGESTIONS,4,2            ; @MAX_SUGGESTIONS
	.comm	_MAX_INIT,4,2                   ; @MAX_INIT
.subsections_via_symbols
