	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_combined_search             ## -- Begin function do_combined_search
	.p2align	4, 0x90
_do_combined_search:                    ## @do_combined_search
	.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	_ResL@GOTPCREL(%rip), %r13
	movl	$0, (%r13)
	xorl	%eax, %eax
	callq	_prefetch_search_lists
	movq	_UH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	24(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movl	$-2147483647, %r15d             ## imm = 0x80000001
	movl	$2147483647, %r12d              ## imm = 0x7FFFFFFF
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %eax
	movl	(%rbx), %ecx
	cmpl	%r15d, %ecx
	cmovgl	%ecx, %r15d
	movl	%r12d, %edx
	cmpl	%r12d, %ecx
	cmovll	%ecx, %r12d
	testl	%ecx, %ecx
	cmovnsl	%eax, %r15d
	movl	4(%rbx), %esi
	cmovlel	%edx, %r12d
	movl	8(%rbx), %edi
	callq	_search_in_msg
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %eax
	movq	_ResBuff@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%r13), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%r13)
	movl	%eax, (%rcx,%rdx,4)
	movl	(%r13), %r14d
	movq	_MAX_INTERMEDIATE_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_7
	jmp	LBB0_36
LBB0_1:
	movl	$2147483647, %r12d              ## imm = 0x7FFFFFFF
	movl	$-2147483647, %r15d             ## imm = 0x80000001
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_3:
	movl	$2147483647, %r12d              ## imm = 0x7FFFFFFF
	movl	$-2147483647, %r15d             ## imm = 0x80000001
	jmp	LBB0_9
LBB0_8:
	movq	_UH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:
	movl	(%rax), %ebx
	movl	4(%rax), %esi
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_11
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %edx
	movl	%esi, %r14d
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	%r14d, %esi
LBB0_11:
	movl	(%r13), %eax
	movq	_ResR@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	movl	$0, (%r13)
	movq	_cur_user@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movl	$0, %ecx
	jle	LBB0_13
## %bb.12:
	movl	%ebx, %edi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_do_search
	movl	(%r14), %eax
	movl	(%r13), %ecx
LBB0_13:
	movl	%ecx, %r14d
	addl	%eax, %r14d
	movl	%r14d, (%r13)
	movq	_ResBuff@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_Res@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_UH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_36
## %bb.14:
	movslq	8(%rax), %r15
	testq	%r15, %r15
	je	LBB0_36
## %bb.15:
	movq	16(%rax), %rbx
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_17
## %bb.16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %ecx
	movl	4(%rbx), %r8d
	movl	8(%rbx), %r9d
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_17:
	movq	%rbx, %rdi
	callq	_assert
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.19:
	leaq	(%rbx,%r15,4), %rax
	addq	$-4, %rax
	movq	(%r12), %rdx
	xorl	%esi, %esi
	xorl	%r14d, %r14d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_20 Depth=1
	movslq	%r14d, %rdi
	incl	%r14d
	movl	%ecx, (%rdx,%rdi,4)
LBB0_32:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rsi
	movslq	(%r13), %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_33
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
	movl	(%rdx,%rsi,4), %ecx
	testl	%ecx, %ecx
	js	LBB0_24
	.p2align	4, 0x90
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpq	%rax, %rbx
	ja	LBB0_27
LBB0_22:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%ecx, (%rax)
	jle	LBB0_30
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	addq	$-4, %rax
	cmpq	%rax, %rbx
	jbe	LBB0_22
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=2
	addq	$4, %rbx
LBB0_24:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rax, %rbx
	ja	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	cmpl	%ecx, (%rbx)
	jl	LBB0_26
## %bb.28:                              ##   in Loop: Header=BB0_20 Depth=1
	jne	LBB0_27
## %bb.29:                              ##   in Loop: Header=BB0_20 Depth=1
	addq	$4, %rbx
	jmp	LBB0_32
LBB0_30:                                ##   in Loop: Header=BB0_20 Depth=1
	jne	LBB0_27
## %bb.31:                              ##   in Loop: Header=BB0_20 Depth=1
	addq	$-4, %rax
	jmp	LBB0_32
LBB0_18:
	xorl	%r14d, %r14d
LBB0_33:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_35
## %bb.34:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_35:
	movl	%r14d, (%r13)
LBB0_36:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ResL,4,2                       ## @ResL
	.comm	_UH,8,3                         ## @UH
	.comm	_ResBuff,8,3                    ## @ResBuff
	.comm	_MAX_INTERMEDIATE_SIZE,4,2      ## @MAX_INTERMEDIATE_SIZE
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recent_search(): %d messages found\n"

	.comm	_ResR,4,2                       ## @ResR
	.comm	_cur_user,8,3                   ## @cur_user
	.comm	_Res,8,3                        ## @Res
L_.str.1:                               ## @.str.1
	.asciz	"user has %d deleted messages %d %d %d ..., pruning\n"

L_.str.2:                               ## @.str.2
	.asciz	"pruned: resulting list contains %d, original %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_combined_search             ; -- Begin function do_combined_search
	.p2align	2
_do_combined_search:                    ; @do_combined_search
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x23, _ResL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ResL@GOTPAGEOFF]
	str	wzr, [x23]
	bl	_prefetch_search_lists
Lloh2:
	adrp	x25, _UH@GOTPAGE
Lloh3:
	ldr	x25, [x25, _UH@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh4:
	adrp	x24, _ResBuff@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ResBuff@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x22, [x8, #24]
	cbz	x22, LBB0_7
; %bb.2:
	mov	w21, #-2147483647
	mov	w20, #2147483647
Lloh6:
	adrp	x26, _MAX_INTERMEDIATE_SIZE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _MAX_INTERMEDIATE_SIZE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x22, #16]
	cbz	x22, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w1, [x22]
	cmp	w8, w21
	ccmp	w8, #0, #0, gt
	csel	w21, w8, w21, lt
	cmp	w8, w20
	ccmp	w8, #0, #4, lt
	csel	w20, w8, w20, gt
	ldr	w0, [x22, #8]
	bl	_search_in_msg
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	ldr	x9, [x24]
	ldrsw	x10, [x23]
	add	w11, w10, #1
	str	w11, [x23]
	str	w8, [x9, x10, lsl #2]
	ldr	w19, [x23]
	ldr	w8, [x26]
	cmp	w19, w8
	b.lt	LBB0_3
	b	LBB0_37
LBB0_6:
	mov	w22, #0
	mov	w19, #0
	mov	w20, #2147483647
	mov	w21, #-2147483647
	b	LBB0_11
LBB0_7:
	mov	w20, #2147483647
	mov	w21, #-2147483647
	b	LBB0_9
LBB0_8:
	ldr	x8, [x25]
LBB0_9:
	ldp	w19, w22, [x8]
Lloh8:
	adrp	x8, _verbosity@GOTPAGE
Lloh9:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.10:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w2, [x23]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_11:
	ldr	w8, [x23]
Lloh16:
	adrp	x26, _ResR@GOTPAGE
Lloh17:
	ldr	x26, [x26, _ResR@GOTPAGEOFF]
	str	w8, [x26]
	str	wzr, [x23]
Lloh18:
	adrp	x9, _cur_user@GOTPAGE
Lloh19:
	ldr	x9, [x9, _cur_user@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, #1
	b.lt	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_do_search
	ldr	w8, [x26]
	ldr	w9, [x23]
	b	LBB0_14
LBB0_13:
	mov	w9, #0
LBB0_14:
	add	w19, w9, w8
	str	w19, [x23]
	ldr	x8, [x24]
Lloh21:
	adrp	x9, _Res@GOTPAGE
Lloh22:
	ldr	x9, [x9, _Res@GOTPAGEOFF]
Lloh23:
	str	x8, [x9]
	ldr	x8, [x25]
	cbz	x8, LBB0_37
; %bb.15:
	ldrsw	x21, [x8, #8]
	cbz	w21, LBB0_37
; %bb.16:
	ldr	x20, [x8, #16]
Lloh24:
	adrp	x22, _verbosity@GOTPAGE
Lloh25:
	ldr	x22, [x22, _verbosity@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_18
; %bb.17:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldp	w8, w9, [x20]
	ldr	w10, [x20, #8]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_fprintf
LBB0_18:
	mov	x0, x20
	bl	_assert
	ldr	w11, [x23]
	cmp	w11, #1
	b.lt	LBB0_33
; %bb.19:
	mov	x8, #0
	mov	w19, #0
	add	x9, x20, x21, lsl #2
	sub	x9, x9, #4
	ldr	x10, [x24]
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	str	w11, [x10, w19, sxtw #2]
	add	w19, w19, #1
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x8, x8, #1
	ldrsw	x11, [x23]
	cmp	x8, x11
	b.ge	LBB0_34
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
                                        ;     Child Loop BB0_27 Depth 2
	ldr	w11, [x10, x8, lsl #2]
	tbnz	w11, #31, LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	cmp	x20, x9
	b.hi	LBB0_20
LBB0_24:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x9]
	cmp	w12, w11
	b.le	LBB0_31
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	sub	x9, x9, #4
	cmp	x20, x9
	b.ls	LBB0_24
	b	LBB0_20
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=2
	add	x20, x20, #4
LBB0_27:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x20, x9
	b.hi	LBB0_20
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	ldr	w12, [x20]
	cmp	w12, w11
	b.lt	LBB0_26
; %bb.29:                               ;   in Loop: Header=BB0_22 Depth=1
	b.ne	LBB0_20
; %bb.30:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x20, x20, #4
	b	LBB0_21
LBB0_31:                                ;   in Loop: Header=BB0_22 Depth=1
	b.ne	LBB0_20
; %bb.32:                               ;   in Loop: Header=BB0_22 Depth=1
	sub	x9, x9, #4
	b	LBB0_21
LBB0_33:
	mov	w19, #0
LBB0_34:
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_36
; %bb.35:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
                                        ; kill: def $w11 killed $w11 killed $x11 def $x11
	str	x11, [sp]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_36:
	str	w19, [x23]
LBB0_37:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ResL,4,2                       ; @ResL
	.comm	_UH,8,3                         ; @UH
	.comm	_ResBuff,8,3                    ; @ResBuff
	.comm	_MAX_INTERMEDIATE_SIZE,4,2      ; @MAX_INTERMEDIATE_SIZE
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recent_search(): %d messages found\n"

	.comm	_ResR,4,2                       ; @ResR
	.comm	_cur_user,8,3                   ; @cur_user
	.comm	_Res,8,3                        ; @Res
l_.str.1:                               ; @.str.1
	.asciz	"user has %d deleted messages %d %d %d ..., pruning\n"

l_.str.2:                               ; @.str.2
	.asciz	"pruned: resulting list contains %d, original %d\n"

.subsections_via_symbols
