	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_suggestions                ## -- Begin function get_suggestions
	.p2align	4, 0x90
_get_suggestions:                       ## @get_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r13d
	movl	%edi, %ebx
	callq	_conv_uid
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_local_uid
	movq	_MAX_CNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%r13d, %ecx
	cmovll	%ecx, %r13d
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	shll	$2, %r12d
	cmpl	$5, %r12d
	movl	$4, %r14d
	cmovgel	%r12d, %r14d
	movq	_NOAIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_load_user_metafile
	movq	%r15, %rdi
	callq	_user_loaded
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_del_user_used
	movq	%r15, %rdi
	callq	_add_user_used
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_heap_init
	movl	(%r15), %edi
	callq	_heap_add
	movq	_heap_size@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	$1, %ecx
	je	LBB0_13
## %bb.5:
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.6:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_heap_get
	movq	%rax, %rbx
	movswl	2(%rax), %eax
	cmpl	%r14d, %eax
	jl	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_user_has_exception
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%rbx), %eax
	leal	(%r12,%r12), %ecx
	leal	(%r12,%r12), %edx
	incl	%edx
	movslq	%edx, %rdx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, (%rsi,%rdx,4)
	movswl	2(%rbx), %eax
	movslq	%ecx, %rcx
	movl	%eax, 8(%rsi,%rcx,4)
	incl	%r12d
	decl	%r13d
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	12(%rbx), %edi
	callq	_heap_add
	movl	8(%rbx), %edi
	callq	_heap_add
	movq	_heap_size@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_7
LBB0_12:
	movl	$1, %ecx
	jmp	LBB0_13
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	jmp	LBB0_14
LBB0_3:
	movl	$-2, %ecx
LBB0_14:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CNT,4,2                    ## @MAX_CNT
	.comm	_NOAIO,4,2                      ## @NOAIO
	.comm	_heap_size,8,3                  ## @heap_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_suggestions                ; -- Begin function get_suggestions
	.p2align	2
_get_suggestions:                       ; @get_suggestions
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_conv_uid
	mov	x20, x0
	mov	x0, x23
	bl	_local_uid
Lloh0:
	adrp	x8, _MAX_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_CNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	csel	w22, w8, w22, lt
	cbz	x20, LBB0_9
; %bb.1:
	mov	x1, x0
	lsl	w8, w21, #2
	mov	w9, #4
	cmp	w8, #4
	csel	w23, w8, w9, gt
Lloh3:
	adrp	x8, _NOAIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NOAIO@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_load_user_metafile
	mov	x0, x20
	bl	_user_loaded
	cbz	w0, LBB0_11
; %bb.2:
	mov	x0, x20
	bl	_del_user_used
	mov	x0, x20
	bl	_add_user_used
	bl	_heap_init
	ldr	w0, [x20]
	bl	_heap_add
Lloh6:
	adrp	x25, _heap_size@GOTPAGE
Lloh7:
	ldr	x25, [x25, _heap_size@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x8, #0
	mov	w24, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21, #12]
	bl	_heap_add
	ldr	w0, [x21, #8]
	bl	_heap_add
	ldr	x8, [x25]
	cmp	x8, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ccmp	w22, #0, #4, ne
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_heap_get
	ldrsh	w8, [x0, #2]
	cmp	w8, w23
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	ldr	w1, [x0, #4]
	mov	x0, x20
	bl	_user_has_exception
	cbnz	w0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #4]
	lsl	w9, w24, #1
	add	x9, x19, w9, sxtw #2
	str	w8, [x9, #4]
	ldrsh	w8, [x21, #2]
	add	x9, x19, w24, sxtw #3
	str	w8, [x9, #8]
	add	w24, w24, #1
	sub	w22, w22, #1
	b	LBB0_3
LBB0_8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w24, #0
	mov	w0, #0
LBB0_10:
	str	w24, [x19]
	b	LBB0_12
LBB0_11:
	mov	w0, #-2
LBB0_12:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CNT,4,2                    ; @MAX_CNT
	.comm	_NOAIO,4,2                      ; @NOAIO
	.comm	_heap_size,8,3                  ; @heap_size
.subsections_via_symbols
