	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_AddPlaneToHash             ## -- Begin function AAS_AddPlaneToHash
	.p2align	4, 0x90
_AAS_AddPlaneToHash:                    ## @AAS_AddPlaneToHash
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rbx
	movl	(%rax,%rbx,4), %edi
	callq	_fabs
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movq	_PLANE_HASH_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decq	%rax
	movslq	%ecx, %rcx
	andq	%rax, %rcx
	movq	_aas_hashplanes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %edx
	movq	_aas_planechain@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rsi,%rbx,4)
	movl	%ebx, (%rax,%rcx,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,8,3                   ## @aasworld
	.comm	_PLANE_HASH_SIZE,4,2            ## @PLANE_HASH_SIZE
	.comm	_aas_hashplanes,8,3             ## @aas_hashplanes
	.comm	_aas_planechain,8,3             ## @aas_planechain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_AddPlaneToHash             ; -- Begin function AAS_AddPlaneToHash
	.p2align	2
_AAS_AddPlaneToHash:                    ; @AAS_AddPlaneToHash
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _aasworld@GOTPAGE
Lloh1:
	ldr	x8, [x8, _aasworld@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sbfiz	x20, x19, #2, #32
	ldr	w0, [x8, x20]
	bl	_fabs
	add	w8, w0, #7
Lloh3:
	adrp	x9, _PLANE_HASH_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PLANE_HASH_SIZE@GOTPAGEOFF]
	cmp	w0, #0
	csel	w8, w8, w0, lt
Lloh5:
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w8, w9, w8, asr #3
Lloh6:
	adrp	x9, _aas_hashplanes@GOTPAGE
Lloh7:
	ldr	x9, [x9, _aas_hashplanes@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	sbfiz	x8, x8, #2, #32
	ldr	w10, [x9, x8]
Lloh9:
	adrp	x11, _aas_planechain@GOTPAGE
Lloh10:
	ldr	x11, [x11, _aas_planechain@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	str	w10, [x11, x20]
	str	w19, [x9, x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,8,3                   ; @aasworld
	.comm	_PLANE_HASH_SIZE,4,2            ; @PLANE_HASH_SIZE
	.comm	_aas_hashplanes,8,3             ; @aas_hashplanes
	.comm	_aas_planechain,8,3             ; @aas_planechain
.subsections_via_symbols
