	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TH_AddPlaneToHash              ## -- Begin function TH_AddPlaneToHash
	.p2align	4, 0x90
_TH_AddPlaneToHash:                     ## @TH_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	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_fabs
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movq	_PLANEHASH_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decq	%rax
	movslq	%ecx, %rcx
	andq	%rax, %rcx
	movq	_thworld@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rcx,8), %rdx
	movq	%rdx, (%rbx)
	movq	%rbx, (%rax,%rcx,8)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANEHASH_SIZE,4,2             ## @PLANEHASH_SIZE
	.comm	_thworld,8,3                    ## @thworld
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TH_AddPlaneToHash              ; -- Begin function TH_AddPlaneToHash
	.p2align	2
_TH_AddPlaneToHash:                     ; @TH_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
	ldr	w0, [x0, #8]
	bl	_fabs
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
Lloh0:
	adrp	x9, _PLANEHASH_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PLANEHASH_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w8, w9, w8, asr #3
Lloh3:
	adrp	x9, _thworld@GOTPAGE
Lloh4:
	ldr	x9, [x9, _thworld@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sbfiz	x8, x8, #3, #32
	ldr	x10, [x9, x8]
	str	x10, [x19]
	str	x19, [x9, x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANEHASH_SIZE,4,2             ; @PLANEHASH_SIZE
	.comm	_thworld,8,3                    ; @thworld
.subsections_via_symbols
