	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TH_AddTriangleToHash           ## -- Begin function TH_AddTriangleToHash
	.p2align	4, 0x90
_TH_AddTriangleToHash:                  ## @TH_AddTriangleToHash
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovsl	%ecx, %edx
	movl	4(%rax), %ecx
	movl	%ecx, %esi
	negl	%esi
	cmovsl	%ecx, %esi
	addl	%edx, %esi
	movl	8(%rax), %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovsl	%eax, %ecx
	addl	%esi, %ecx
	movq	_TRIANGLEHASH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	andl	%ecx, %eax
	movq	_thworld@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rdx
	movq	%rdx, (%rdi)
	movq	%rdi, (%rcx,%rax,8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRIANGLEHASH_SIZE,4,2          ## @TRIANGLEHASH_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_AddTriangleToHash           ; -- Begin function TH_AddTriangleToHash
	.p2align	2
_TH_AddTriangleToHash:                  ; @TH_AddTriangleToHash
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldp	w9, w10, [x8]
	cmp	w9, #0
	cneg	w9, w9, mi
	cmp	w10, #0
	cneg	w10, w10, mi
	ldr	w8, [x8, #8]
	cmp	w8, #0
	cneg	w8, w8, mi
	add	w9, w10, w9
	add	w8, w9, w8
Lloh0:
	adrp	x9, _TRIANGLEHASH_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TRIANGLEHASH_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w8, w8, w9
Lloh3:
	adrp	x9, _thworld@GOTPAGE
Lloh4:
	ldr	x9, [x9, _thworld@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	lsl	x8, x8, #3
	ldr	x10, [x9, x8]
	str	x10, [x0]
	str	x0, [x9, x8]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TRIANGLEHASH_SIZE,4,2          ; @TRIANGLEHASH_SIZE
	.comm	_thworld,8,3                    ; @thworld
.subsections_via_symbols
