	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function TH_HashVec
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_TH_HashVec
	.p2align	4, 0x90
_TH_HashVec:                            ## @TH_HashVec
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_MAX_MAP_BOUNDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rdi), %rsi
	cvtsi2sd	%rsi, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %r14d
	addl	%eax, %r14d
	movq	_VERTEXHASH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %r14d
	movq	8(%rdi), %rdx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdx, %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %ebx
	addl	%eax, %ebx
	sarl	%cl, %ebx
	testl	%r14d, %r14d
	js	LBB0_4
## %bb.1:
	movq	_VERTEXHASH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r14d
	jge	LBB0_4
## %bb.2:
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.3:
	cmpl	%eax, %ebx
	jl	LBB0_5
LBB0_4:
	movq	16(%rdi), %rcx
	leaq	L_.str(%rip), %rdi
	callq	_Error
	movq	_VERTEXHASH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	imull	%ebx, %eax
	addl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MAP_BOUNDS,4,2             ## @MAX_MAP_BOUNDS
	.comm	_VERTEXHASH_SHIFT,4,2           ## @VERTEXHASH_SHIFT
	.comm	_VERTEXHASH_SIZE,4,2            ## @VERTEXHASH_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HashVec: point %f %f %f outside valid range"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TH_HashVec                     ; -- Begin function TH_HashVec
	.p2align	2
_TH_HashVec:                            ; @TH_HashVec
	.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	x8, _MAX_MAP_BOUNDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_MAP_BOUNDS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	x1, x2, [x0]
	scvtf	d0, x1
	fmov	d1, #0.50000000
	fadd	d0, d0, d1
	fcvtzs	w9, d0
Lloh3:
	adrp	x10, _VERTEXHASH_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VERTEXHASH_SHIFT@GOTPAGEOFF]
	add	w9, w8, w9
Lloh5:
	ldr	w10, [x10]
	asr	w19, w9, w10
	scvtf	d0, x2
	fadd	d0, d0, d1
	fcvtzs	w9, d0
	add	w8, w8, w9
	asr	w20, w8, w10
Lloh6:
	adrp	x21, _VERTEXHASH_SIZE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _VERTEXHASH_SIZE@GOTPAGEOFF]
	tbnz	w19, #31, LBB0_4
; %bb.1:
	ldr	w8, [x21]
	cmp	w19, w8
	b.ge	LBB0_4
; %bb.2:
	tbnz	w20, #31, LBB0_4
; %bb.3:
	cmp	w20, w8
	b.lt	LBB0_5
LBB0_4:
	ldr	x3, [x0, #16]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
	ldr	w8, [x21]
LBB0_5:
	madd	w0, w8, w20, w19
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MAP_BOUNDS,4,2             ; @MAX_MAP_BOUNDS
	.comm	_VERTEXHASH_SHIFT,4,2           ; @VERTEXHASH_SHIFT
	.comm	_VERTEXHASH_SIZE,4,2            ; @VERTEXHASH_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HashVec: point %f %f %f outside valid range"

.subsections_via_symbols
