	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function startScanKey
_startScanKey:                          ## @startScanKey
	.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	%rsi, %r15
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	64(%rdx), %rdi
	callq	_ItemPointerSetMin
	movq	$0, (%rbx)
	movl	$0, 8(%rbx)
	cmpl	$2, 12(%rbx)
	jl	LBB0_26
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	4(%r15), %edi
	callq	_MemoryContextSwitchTo
	movl	12(%rbx), %edi
	shll	$2, %edi
	callq	_palloc
	movq	%rax, %r14
	movl	12(%rbx), %esi
	testl	%esi, %esi
	jle	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%r14,%rax,4)
	incq	%rax
	movslq	12(%rbx), %rsi
	cmpq	%rsi, %rax
	jl	LBB0_3
LBB0_4:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_entryIndexByFrequencyCmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$4, %edx
	movq	%rbx, %r8
	callq	_qsort_arg
	xorl	%edx, %edx
	movl	$1, %r15d
	movq	_GIN_MAYBE@GOTPCREL(%rip), %r13
	movq	_GIN_FALSE@GOTPCREL(%rip), %r12
	xorl	%r10d, %r10d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdi, %rbx
	callq	*16(%rdi)
	incq	%r15
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	cmpq	(%r12), %rax
	movl	-48(%rbp), %r10d                ## 4-byte Reload
	je	LBB0_18
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	movl	12(%rbx), %r8d
	leal	-1(%r8), %ecx
	cmpl	%ecx, %r10d
	movq	%rbx, %rdi
	jge	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	56(%rdi), %rcx
	cmpq	$3, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rsi
	andq	$-4, %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rbx
	movslq	(%r14,%rdx,4), %rax
	movq	%rbx, (%rcx,%rax,8)
	movq	(%r12), %rax
	movslq	4(%r14,%rdx,4), %rbx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r12), %rax
	movslq	8(%r14,%rdx,4), %rbx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r12), %rax
	movslq	12(%r14,%rdx,4), %rbx
	movq	%rax, (%rcx,%rbx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	$3, %r15b
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %r9d
	andl	$3, %r9d
	leaq	(%r14,%rdx,4), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	movslq	(%rdx,%rsi,4), %rbx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rsi
	cmpq	%rsi, %r9
	jne	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%r10d
	movl	%r10d, -48(%rbp)                ## 4-byte Spill
	cmpl	%r8d, %r10d
	jge	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rax
	movslq	(%r14,%rdx,4), %rsi
	movq	%rax, (%rcx,%rsi,8)
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_16
	jmp	LBB0_17
LBB0_26:
	movl	(%r15), %edi
	callq	_MemoryContextSwitchTo
	movq	$1, 24(%rbx)
	movl	$4, %edi
	callq	_palloc
	movq	%rax, 40(%rbx)
	movq	32(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_27
LBB0_6:
	incl	%r10d
	movq	%rdi, %rbx
LBB0_18:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	movl	%r10d, %r12d
	callq	_MemoryContextSwitchTo
	movl	%r12d, 24(%rbx)
	movl	12(%rbx), %eax
	subl	%r12d, %eax
	movl	%eax, 28(%rbx)
	shll	$2, %r12d
	movl	%r12d, %edi
	callq	_palloc
	movq	%rax, 40(%rbx)
	movl	28(%rbx), %edi
	shll	$2, %edi
	callq	_palloc
	movq	%rax, 48(%rbx)
	cmpl	$0, 24(%rbx)
	movq	%rbx, %rdx
	jle	LBB0_19
## %bb.24:
	movq	32(%rdx), %r8
	movq	40(%rdx), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	leaq	1(%rdi), %rcx
	movslq	(%r14,%rdi,4), %rbx
	movl	(%r8,%rbx,4), %ebx
	movl	%ebx, (%rsi,%rdi,4)
	movslq	24(%rdx), %rbx
	movq	%rcx, %rdi
	cmpq	%rbx, %rcx
	jl	LBB0_25
## %bb.20:
	cmpl	$0, 28(%rdx)
	jg	LBB0_21
	jmp	LBB0_23
LBB0_19:
	xorl	%ecx, %ecx
	cmpl	$0, 28(%rdx)
	jle	LBB0_23
LBB0_21:
	movq	32(%rdx), %rbx
	leaq	(%r14,%rcx,4), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rcx,%rsi,4), %rdi
	movl	(%rbx,%rdi,4), %edi
	movl	%edi, (%rax,%rsi,4)
	incq	%rsi
	movslq	28(%rdx), %rdi
	cmpq	%rdi, %rsi
	jl	LBB0_22
LBB0_23:
	movl	4(%r15), %edi
	callq	_MemoryContextReset
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_27:
	movl	%r14d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MemoryContextSwitchTo          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.comm	_entryIndexByFrequencyCmp,4,2   ## @entryIndexByFrequencyCmp
	.comm	_GIN_FALSE,8,3                  ## @GIN_FALSE
	.comm	_GIN_MAYBE,8,3                  ## @GIN_MAYBE
	.no_dead_strip	_startScanKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function startScanKey
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_startScanKey:                          ; @startScanKey
	.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	x21, x1
Lloh0:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	add	x0, x2, #64
	bl	_ItemPointerSetMin
	str	xzr, [x20]
	str	wzr, [x20, #8]
	ldr	w8, [x20, #12]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.1:
	ldr	w0, [x21, #4]
	bl	_MemoryContextSwitchTo
	ldr	w8, [x20, #12]
	lsl	w0, w8, #2
	bl	_palloc
	mov	x22, x0
	ldr	w1, [x20, #12]
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x8, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	w8, [x22, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x1, [x20, #12]
	cmp	x8, x1
	b.lt	LBB0_3
LBB0_4:
Lloh3:
	adrp	x8, _entryIndexByFrequencyCmp@GOTPAGE
Lloh4:
	ldr	x8, [x8, _entryIndexByFrequencyCmp@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #4
	mov	x4, x20
	bl	_qsort_arg
	mov	w23, #0
	add	x24, x22, #4
	mov	w25, #1
Lloh6:
	adrp	x26, _GIN_FALSE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _GIN_FALSE@GOTPAGEOFF]
Lloh8:
	adrp	x27, _GIN_MAYBE@GOTPAGE
Lloh9:
	ldr	x27, [x27, _GIN_MAYBE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #16]
	mov	x0, x20
	blr	x8
	ldr	x8, [x26]
	add	x25, x25, #1
	add	x24, x24, #4
	cmp	x0, x8
	b.eq	LBB0_14
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w8, [x20, #12]
	sub	w9, w8, #1
	cmp	w23, w9
	b.ge	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x10, #0
	ldr	x9, [x20, #56]
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x26]
	ldrsw	x12, [x22, x10, lsl #2]
	str	x11, [x9, x12, lsl #3]
	add	x10, x10, #1
	cmp	x25, x10
	b.ne	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w23, w23, #1
	cmp	w23, w8
	b.ge	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x10, x24
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x27]
	ldrsw	x12, [x10], #4
	str	x11, [x9, x12, lsl #3]
	sub	x8, x8, #1
	cmp	x25, x8
	b.ne	LBB0_11
	b	LBB0_5
LBB0_12:
	ldr	w0, [x21]
	bl	_MemoryContextSwitchTo
Lloh10:
	adrp	x8, lCPI0_0@PAGE
Lloh11:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20, #24]
	mov	w0, #4
	bl	_palloc
	str	x0, [x20, #40]
	ldr	x8, [x20, #32]
	ldr	w8, [x8]
	str	w8, [x0]
	b	LBB0_22
LBB0_13:
	add	w23, w23, #1
LBB0_14:
	ldr	w0, [x21]
	bl	_MemoryContextSwitchTo
	ldr	w8, [x20, #12]
	sub	w8, w8, w23
	stp	w23, w8, [x20, #24]
	lsl	w0, w23, #2
	bl	_palloc
	str	x0, [x20, #40]
	ldr	w8, [x20, #28]
	lsl	w0, w8, #2
	bl	_palloc
	str	x0, [x20, #48]
	ldr	w8, [x20, #24]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.15:
	mov	x11, #0
	ldp	x8, x9, [x20, #32]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	lsl	x12, x11, #2
	ldrsw	x10, [x22, x12]
	ldr	w13, [x8, x10, lsl #2]
	add	x10, x11, #1
	str	w13, [x9, x12]
	ldrsw	x12, [x20, #24]
	mov	x11, x10
	cmp	x10, x12
	b.lt	LBB0_16
	b	LBB0_18
LBB0_17:
	mov	x10, #0
LBB0_18:
	ldr	w8, [x20, #28]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.19:
	mov	x8, #0
	ldr	x9, [x20, #32]
	add	x10, x22, x10, lsl #2
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #2
	ldrsw	x12, [x10, x11]
	ldr	w12, [x9, x12, lsl #2]
	str	w12, [x0, x11]
	add	x8, x8, #1
	ldrsw	x11, [x20, #28]
	cmp	x8, x11
	b.lt	LBB0_20
LBB0_21:
	ldr	w0, [x21, #4]
	bl	_MemoryContextReset
LBB0_22:
	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
	b	_MemoryContextSwitchTo
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.comm	_entryIndexByFrequencyCmp,4,2   ; @entryIndexByFrequencyCmp
	.comm	_GIN_FALSE,8,3                  ; @GIN_FALSE
	.comm	_GIN_MAYBE,8,3                  ; @GIN_MAYBE
	.no_dead_strip	_startScanKey
.subsections_via_symbols
