	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fast_intersection_query
_fast_intersection_query:               ## @fast_intersection_query
	.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	_Q_words@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_IHE@GOTPCREL(%rip), %r15
	movq	_QW@GOTPCREL(%rip), %r12
	movq	_QT@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	movq	(%r12), %rax
	movl	(%rax,%r14,4), %esi
	movq	(%r13), %rax
	movl	(%rax,%r14,4), %edx
	xorl	%ecx, %ecx
	callq	_ihe_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	_Q_words@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jl	LBB0_3
LBB0_5:
	movq	_Q_min_priority@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_12
## %bb.6:
	movq	_MAX_PRIORITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	movl	%ecx, (%rdx)
	cmpl	$1, %eax
	jne	LBB0_17
## %bb.7:
	movq	_IHE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testl	%ecx, %ecx
	jne	LBB0_8
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_ihe_advance
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	testb	$1, (%rbx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %esi
	callq	_store_res
	testl	%eax, %eax
	jne	LBB0_11
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	cmpl	$1, %eax
	jne	LBB0_17
## %bb.13:
	movq	_IHE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%rbx), %esi
	andl	$1, %esi
	callq	_store_res
	testl	%eax, %eax
	je	LBB0_4
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_ihe_advance
	jmp	LBB0_14
LBB0_17:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intersect_lists                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_words,4,2                    ## @Q_words
	.comm	_IHE,8,3                        ## @IHE
	.comm	_QW,8,3                         ## @QW
	.comm	_QT,8,3                         ## @QT
	.comm	_Q_min_priority,4,2             ## @Q_min_priority
	.comm	_MAX_PRIORITY,4,2               ## @MAX_PRIORITY
	.no_dead_strip	_fast_intersection_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fast_intersection_query
_fast_intersection_query:               ; @fast_intersection_query
	.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
Lloh0:
	adrp	x19, _Q_words@GOTPAGE
Lloh1:
	ldr	x19, [x19, _Q_words@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, #0
	mov	x21, #0
Lloh2:
	adrp	x22, _IHE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IHE@GOTPAGEOFF]
Lloh4:
	adrp	x23, _QW@GOTPAGE
Lloh5:
	ldr	x23, [x23, _QW@GOTPAGEOFF]
Lloh6:
	adrp	x24, _QT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _QT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x0, x8, x20
	ldr	x8, [x23]
	lsl	x9, x21, #2
	ldr	w1, [x8, x9]
	ldr	x8, [x24]
	ldr	w2, [x8, x9]
	mov	w3, #0
	bl	_ihe_init
	cbz	w0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #16
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_4:
Lloh8:
	adrp	x10, _Q_min_priority@GOTPAGE
Lloh9:
	ldr	x10, [x10, _Q_min_priority@GOTPAGEOFF]
	ldr	w9, [x10]
	cbz	w9, LBB0_12
; %bb.5:
Lloh10:
	adrp	x9, _MAX_PRIORITY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MAX_PRIORITY@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w9, w8, w9, lt
	str	w9, [x10]
	cmp	w8, #1
	b.ne	LBB0_17
; %bb.6:
Lloh13:
	adrp	x8, _IHE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IHE@GOTPAGEOFF]
Lloh15:
	ldr	x19, [x8]
	cbnz	w9, LBB0_8
	b	LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_ihe_advance
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x19]
	tbz	w8, #0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w1, #1
	bl	_store_res
	cbnz	w0, LBB0_7
LBB0_11:
	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
	ret
LBB0_12:
	cmp	w8, #1
	b.ne	LBB0_17
; %bb.13:
Lloh16:
	adrp	x8, _IHE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IHE@GOTPAGEOFF]
Lloh18:
	ldr	x19, [x8]
LBB0_14:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_11
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	and	w1, w8, #0x1
	bl	_store_res
	cbz	w0, LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x19
	bl	_ihe_advance
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_15
	b	LBB0_11
LBB0_17:
	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	_intersect_lists
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_words,4,2                    ; @Q_words
	.comm	_IHE,8,3                        ; @IHE
	.comm	_QW,8,3                         ; @QW
	.comm	_QT,8,3                         ; @QT
	.comm	_Q_min_priority,4,2             ; @Q_min_priority
	.comm	_MAX_PRIORITY,4,2               ; @MAX_PRIORITY
	.no_dead_strip	_fast_intersection_query
.subsections_via_symbols
