	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function AAS_HashVec
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_AAS_HashVec
	.p2align	4, 0x90
_AAS_HashVec:                           ## @AAS_HashVec
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	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, %r8d
	addl	%eax, %r8d
	movq	_VERTEX_HASH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %r8d
	movq	8(%rdi), %rdx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rdx, %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %r9d
	addl	%eax, %r9d
	sarl	%cl, %r9d
	testl	%r8d, %r8d
	js	LBB0_4
## %bb.1:
	movq	_VERTEX_HASH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r8d
	jge	LBB0_4
## %bb.2:
	testl	%r9d, %r9d
	js	LBB0_4
## %bb.3:
	cmpl	%eax, %r9d
	jge	LBB0_4
## %bb.5:
	imull	%r9d, %eax
	addl	%r8d, %eax
	popq	%rbp
	retq
LBB0_4:
	movq	16(%rdi), %rcx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_Print
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_Print
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MAP_BOUNDS,4,2             ## @MAX_MAP_BOUNDS
	.comm	_VERTEX_HASH_SHIFT,4,2          ## @VERTEX_HASH_SHIFT
	.comm	_VERTEX_HASH_SIZE,4,2           ## @VERTEX_HASH_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING! HashVec: point %f %f %f outside valid range\n"

L_.str.1:                               ## @.str.1
	.asciz	"This should never happen!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_HashVec                    ; -- Begin function AAS_HashVec
	.p2align	2
_AAS_HashVec:                           ; @AAS_HashVec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
Lloh0:
	adrp	x10, _MAX_MAP_BOUNDS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MAX_MAP_BOUNDS@GOTPAGEOFF]
	ldp	x8, x9, [x0]
	scvtf	d1, x8
	fmov	d0, #0.50000000
	fadd	d1, d1, d0
	fcvtzs	w11, d1
Lloh2:
	ldr	w12, [x10]
	add	w10, w12, w11
Lloh3:
	adrp	x11, _VERTEX_HASH_SHIFT@GOTPAGE
Lloh4:
	ldr	x11, [x11, _VERTEX_HASH_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w13, [x11]
	asr	w10, w10, w13
	tbnz	w10, #31, LBB0_5
; %bb.1:
Lloh6:
	adrp	x11, _VERTEX_HASH_SIZE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _VERTEX_HASH_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ge	LBB0_5
; %bb.2:
	scvtf	d1, x9
	fadd	d0, d1, d0
	fcvtzs	w14, d0
	add	w12, w12, w14
	asr	w12, w12, w13
	tbnz	w12, #31, LBB0_5
; %bb.3:
	cmp	w12, w11
	b.ge	LBB0_5
; %bb.4:
	madd	w0, w11, w12, w10
	b	LBB0_6
LBB0_5:
	ldr	x10, [x0, #16]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Log_Print
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Log_Print
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MAP_BOUNDS,4,2             ; @MAX_MAP_BOUNDS
	.comm	_VERTEX_HASH_SHIFT,4,2          ; @VERTEX_HASH_SHIFT
	.comm	_VERTEX_HASH_SIZE,4,2           ; @VERTEX_HASH_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING! HashVec: point %f %f %f outside valid range\n"

l_.str.1:                               ; @.str.1
	.asciz	"This should never happen!\n"

.subsections_via_symbols
