	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_search_query_remove_expired    ## -- Begin function search_query_remove_expired
	.p2align	4, 0x90
_search_query_remove_expired:           ## @search_query_remove_expired
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_now@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	cmpl	_search_query_remove_expired.t(%rip), %ecx
	jle	LBB0_11
## %bb.1:
	leal	60(%rcx), %eax
	movl	%eax, _search_query_remove_expired.t(%rip)
	movq	_SQH_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.2:
	movl	$1, %ebx
	movq	_SQH@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdx
	movslq	%ebx, %rsi
	shlq	$4, %rsi
	cmpl	%ecx, (%rdx,%rsi)
	jge	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	-1(%rax), %ecx
	movl	%ecx, (%r15)
	cmpl	%ecx, %ebx
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cltq
	decq	%rax
	shlq	$4, %rax
	leaq	(%rdx,%rax), %rdi
	movq	8(%rdx,%rsi), %rcx
	cmpq	8(%rdx,%rax), %rcx
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %esi
	callq	_search_query_heapify_front
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	jg	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %ecx
	jmp	LBB0_3
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %esi
	callq	_search_query_heapify_back
	jmp	LBB0_9
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_search_query_remove_expired.t,4,2 ## @search_query_remove_expired.t
	.comm	_now,4,2                        ## @now
	.comm	_SQH_SIZE,4,2                   ## @SQH_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_remove_expired    ; -- Begin function search_query_remove_expired
	.p2align	2
_search_query_remove_expired:           ; @search_query_remove_expired
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _now@GOTPAGE
Lloh1:
	ldr	x20, [x20, _now@GOTPAGEOFF]
	ldr	w9, [x20]
	adrp	x8, _search_query_remove_expired.t@PAGE
	ldr	w10, [x8, _search_query_remove_expired.t@PAGEOFF]
	cmp	w9, w10
	b.le	LBB0_11
; %bb.1:
	add	w10, w9, #60
	str	w10, [x8, _search_query_remove_expired.t@PAGEOFF]
Lloh2:
	adrp	x21, _SQH_SIZE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SQH_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	w19, #1
Lloh4:
	adrp	x22, _SQH@GOTPAGE
Lloh5:
	ldr	x22, [x22, _SQH@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x22]
	sbfiz	x11, x19, #4, #32
	ldr	w11, [x10, x11]
	cmp	w11, w9
	b.ge	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w8
	sub	x8, x8, #1
	str	w8, [x21]
	cmp	w19, w8
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x9, w19
	add	x0, x10, x8, lsl #4
	add	x8, x10, x9, lsl #4
	ldr	x8, [x8, #8]
	ldr	x9, [x0, #8]
	mov	x1, x19
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_search_query_heapify_front
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w19, w19, #1
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21]
	cmp	w19, w8
	b.gt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x20]
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_search_query_heapify_back
	b	LBB0_8
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_search_query_remove_expired.t,4,2 ; @search_query_remove_expired.t
	.comm	_now,4,2                        ; @now
	.comm	_SQH_SIZE,4,2                   ; @SQH_SIZE
	.comm	_SQH,8,3                        ; @SQH
.subsections_via_symbols
