	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tree_lookup_all_next           ## -- Begin function tree_lookup_all_next
	.p2align	4, 0x90
_tree_lookup_all_next:                  ## @tree_lookup_all_next
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rsi, %r8
	movl	16(%rbp), %esi
	movq	8(%rdi), %rax
	movl	(%rax), %ebx
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movl	4(%rax), %r14d
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r9d, %edi
	movq	%r8, %rbx
	movl	%ecx, %r12d
	movl	%edx, %r13d
	callq	_min
	leaq	-1(%rax), %r8
	movq	%rbx, %rdi
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r13d, %esi
	movl	%r12d, %r13d
	movq	%rbx, %r12
	movl	%r14d, %edx
	movq	%r15, %r14
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	callq	_mystrcmp2
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	cmpl	%r13d, %r15d
	jle	LBB0_4
LBB0_3:
	movq	16(%r14), %rdi
	movl	%r15d, %eax
	negl	%eax
	cmovsl	%r15d, %eax
	movl	%eax, (%rsp)
	movq	%r12, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_tree_lookup_all_next
	testl	%eax, %eax
	js	LBB0_12
LBB0_4:
	movl	%r13d, %ebx
	negl	%ebx
	movl	%r15d, %eax
	orl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_7
## %bb.5:
	cmpl	%ebx, %r15d
	jl	LBB0_7
## %bb.6:
	cmpl	%r13d, %r15d
	jle	LBB0_8
LBB0_7:
	movq	8(%r14), %rdi
	callq	_iterator_report
	testl	%eax, %eax
	js	LBB0_12
LBB0_8:
	testl	%r15d, %r15d
	jg	LBB0_10
## %bb.9:
	cmpl	%ebx, %r15d
	jge	LBB0_11
LBB0_10:
	movq	(%r14), %rdi
	movl	%r15d, %r9d
	negl	%r9d
	cmovsl	%r15d, %r9d
	movl	16(%rbp), %eax
	movl	%eax, (%rsp)
	movq	%r12, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_tree_lookup_all_next
	testl	%eax, %eax
	js	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tree_lookup_all_next           ; -- Begin function tree_lookup_all_next
	.p2align	2
_tree_lookup_all_next:                  ; @tree_lookup_all_next
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x6
	mov	x26, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x8, [x0, #8]
	ldp	w27, w25, [x8]
	mov	x0, x5
	mov	x1, x6
	bl	_min
	sub	x4, x0, #1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	mov	x3, x27
	bl	_mystrcmp2
	mov	x25, x0
	tbnz	w0, #31, LBB0_3
; %bb.2:
	cmp	w25, w21
	b.le	LBB0_4
LBB0_3:
	ldr	x0, [x24, #16]
	cmp	w25, #0
	cneg	w6, w25, mi
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x26
	bl	_tree_lookup_all_next
	tbnz	w0, #31, LBB0_9
LBB0_4:
	orr	w8, w25, w20
	neg	w26, w21
	cmp	w8, #0
	ccmp	w25, w26, #8, ne
	ccmp	w25, w21, #0, ge
	b.le	LBB0_6
; %bb.5:
	ldr	x0, [x24, #8]
	bl	_iterator_report
	tbnz	w0, #31, LBB0_9
LBB0_6:
	cmp	w25, #0
	ccmp	w25, w26, #8, le
	b.ge	LBB0_8
; %bb.7:
	ldr	x0, [x24]
	cmp	w25, #0
	cneg	w5, w25, mi
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x6, x19
	bl	_tree_lookup_all_next
	tbnz	w0, #31, LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
