	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_search_query_heap_insert       ## -- Begin function search_query_heap_insert
	.p2align	4, 0x90
_search_query_heap_insert:              ## @search_query_heap_insert
	.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	%rdi, %r12
	movq	_SQH_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_SEARCH_QUERY_HEAP_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.1:
	movq	_SQH@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	24(%rax), %r14d
	movl	%r14d, %edi
	callq	_strlen
	leaq	1(%rax), %rsi
	movl	%r14d, %edi
	callq	_zzfree
	movl	(%r15), %esi
	movl	$1, %ebx
	cmpl	$2, %esi
	jl	LBB0_15
## %bb.2:
	movl	$1, %eax
	movl	$2, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	cmpl	%esi, %edx
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%edx, %rsi
	shlq	$4, %rsi
	movq	(%rcx,%rsi), %rsi
	movl	%edx, %ebx
	orl	$1, %ebx
	movslq	%ebx, %rdi
	shlq	$4, %rdi
	cmpq	(%rcx,%rdi), %rsi
	jg	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rdx
	movslq	%ebx, %rsi
	shlq	$4, %rsi
	cmpq	(%rcx,%rsi), %rdx
	jle	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%rcx, %rsi
	movslq	%eax, %rdi
	shlq	$4, %rdi
	addq	%rcx, %rdi
	movl	$16, %edx
	callq	_memcpy
	leal	(%rbx,%rbx), %edx
	movl	(%r15), %esi
	movl	%ebx, %eax
	cmpl	%esi, %edx
	jle	LBB0_3
	jmp	LBB0_15
LBB0_8:
	leal	1(%rax), %r14d
	movl	%r14d, (%r15)
	testl	%eax, %eax
	jle	LBB0_13
## %bb.9:
	movq	_SQH@GOTPCREL(%rip), %r15
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	shrl	%ebx
	movq	(%r15), %rax
	movq	%rbx, %rsi
	shlq	$4, %rsi
	movq	(%rax,%rsi), %rcx
	cmpq	(%r12), %rcx
	jle	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	%rax, %rsi
	movl	%r14d, %edi
	shlq	$4, %rdi
	addq	%rax, %rdi
	movl	$16, %edx
	callq	_memcpy
	cmpl	$3, %r14d
	movl	%ebx, %r14d
	ja	LBB0_10
	jmp	LBB0_15
LBB0_13:
	movl	%r14d, %ebx
	jmp	LBB0_15
LBB0_14:
	movl	%eax, %ebx
LBB0_15:
	movq	_SQH@GOTPCREL(%rip), %rax
	movslq	%ebx, %rdi
	shlq	$4, %rdi
	addq	(%rax), %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SQH_SIZE,4,2                   ## @SQH_SIZE
	.comm	_SEARCH_QUERY_HEAP_SIZE,4,2     ## @SEARCH_QUERY_HEAP_SIZE
	.comm	_SQH,8,3                        ## @SQH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_search_query_heap_insert       ; -- Begin function search_query_heap_insert
	.p2align	2
_search_query_heap_insert:              ; @search_query_heap_insert
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _SQH_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SQH_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _SEARCH_QUERY_HEAP_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SEARCH_QUERY_HEAP_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x21, _SQH@GOTPAGE
Lloh6:
	ldr	x21, [x21, _SQH@GOTPAGEOFF]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x21]
	ldr	w20, [x8, #24]
	mov	x0, x20
	bl	_strlen
	add	x1, x0, #1
	mov	x0, x20
	bl	_zzfree
	ldr	w11, [x22]
	cmp	w11, #2
	b.ge	LBB0_7
; %bb.2:
	mov	w20, #1
	b	LBB0_14
LBB0_3:
	add	w23, w8, #1
	str	w23, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w20, w23, #1
	ldr	x8, [x21]
	add	x1, x8, w20, uxtw #4
	ldr	x9, [x1]
	ldr	x10, [x19]
	cmp	x9, x10
	b.le	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x8, w23, uxtw #4
	mov	w2, #16
	bl	_memcpy
	cmp	w23, #3
	mov	x23, x20
	b.hi	LBB0_4
	b	LBB0_14
LBB0_6:
	mov	x20, x23
	b	LBB0_14
LBB0_7:
	mov	w8, #1
	mov	w9, #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x21]
	cmp	w9, w11
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sxtw	x11, w9
	sbfiz	x12, x9, #4, #32
	ldr	x12, [x10, x12]
	orr	x11, x11, #0x1
	lsl	x13, x11, #4
	ldr	x13, [x10, x13]
	cmp	x12, x13
	csel	w20, w11, w9, gt
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x20, x9
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x19]
	add	x1, x10, w20, sxtw #4
	ldr	x11, [x1]
	cmp	x9, x11
	b.le	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x0, x10, w8, sxtw #4
	mov	w2, #16
	bl	_memcpy
	lsl	w9, w20, #1
	ldr	w11, [x22]
	mov	x8, x20
	cmp	w9, w11
	b.le	LBB0_8
	b	LBB0_14
LBB0_13:
	mov	x20, x8
LBB0_14:
	ldr	x8, [x21]
	add	x0, x8, w20, sxtw #4
	mov	x1, x19
	mov	w2, #16
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_memcpy
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SQH_SIZE,4,2                   ; @SQH_SIZE
	.comm	_SEARCH_QUERY_HEAP_SIZE,4,2     ; @SEARCH_QUERY_HEAP_SIZE
	.comm	_SQH,8,3                        ; @SQH
.subsections_via_symbols
