	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function TH_TetrahedronVolume
LCPI0_0:
	.long	0xc0400000                      ## float -3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_TH_TetrahedronVolume
	.p2align	4, 0x90
_TH_TetrahedronVolume:                  ## @TH_TetrahedronVolume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_thworld@GOTPCREL(%rip), %r14
	movq	24(%r14), %rbx
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_abs
	movq	%rax, %r12
	shlq	$4, %r12
	leaq	(%rbx,%r12), %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx,%r12), %rax
	movl	(%rax), %edi
	movq	16(%r14), %rbx
	testl	%edi, %edi
	js	LBB0_2
## %bb.1:
	movq	(%rbx,%rdi,8), %rcx
	jmp	LBB0_3
LBB0_2:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_abs
	movq	(%rbx,%rax,8), %rcx
	addq	$4, %rcx
	movq	(%r13), %rax
LBB0_3:
	movl	(%rcx), %ecx
	movl	4(%rax), %edi
	movq	16(%r14), %rbx
	testl	%edi, %edi
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	js	LBB0_5
## %bb.4:
	movq	(%rbx,%rdi,8), %rcx
	jmp	LBB0_6
LBB0_5:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_abs
	movq	(%rbx,%rax,8), %rcx
	addq	$4, %rcx
	movq	(%r13), %rax
LBB0_6:
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rax), %edi
	movq	16(%r14), %rbx
	testl	%edi, %edi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	js	LBB0_8
## %bb.7:
	movq	(%rbx,%rdi,8), %rax
	jmp	LBB0_9
LBB0_8:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_abs
	movq	(%rbx,%rax,8), %rax
	addq	$4, %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	24(%r14), %r13
	movq	(%r15), %rax
	movl	4(%rax), %edi
	callq	_abs
	movq	%rax, %rbx
	shlq	$4, %rbx
	movq	(%r13,%rbx), %rax
	movl	12(%rax), %edi
	movq	16(%r14), %r15
	testl	%edi, %edi
	js	LBB0_11
## %bb.10:
	movq	(%r15,%rdi,8), %rax
	jmp	LBB0_12
LBB0_11:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_abs
	movq	(%r15,%rax,8), %rax
	addq	$4, %rax
LBB0_12:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	(%rax), %eax
	cmpl	%ecx, %eax
	je	LBB0_15
## %bb.13:
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_15
## %bb.14:
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_25
LBB0_15:
	addq	%rbx, %r13
	movq	(%r13), %rax
	movl	12(%rax), %edi
	movq	16(%r14), %rbx
	testl	%edi, %edi
	js	LBB0_17
## %bb.16:
	movq	(%rbx,%rdi,8), %rax
	jmp	LBB0_18
LBB0_17:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_abs
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	(%rbx,%rax,8), %rax
	addq	$4, %rax
LBB0_18:
	movl	(%rax), %eax
	cmpl	%ecx, %eax
	je	LBB0_21
## %bb.19:
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_21
## %bb.20:
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_25
LBB0_21:
	movq	(%r13), %rax
	movl	12(%rax), %edi
	movq	16(%r14), %rbx
	testl	%edi, %edi
	js	LBB0_23
## %bb.22:
	movq	(%rbx,%rdi,8), %rax
	jmp	LBB0_24
LBB0_23:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_abs
	movq	(%rbx,%rax,8), %rax
	addq	$4, %rax
LBB0_24:
	movl	(%rax), %eax
LBB0_25:
	movq	(%r14), %rcx
	movq	8(%r14), %r14
	movq	8(%r15,%r12), %rbx
	cltq
	movl	(%rcx,%rax,4), %edi
	movl	4(%r14,%rbx,8), %esi
	callq	_DotProduct
	subss	(%r14,%rbx,8), %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_TH_TriangleArea
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	divss	LCPI0_0(%rip), %xmm0
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_thworld,32,3                   ## @thworld
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TH_TetrahedronVolume           ; -- Begin function TH_TetrahedronVolume
	.p2align	2
_TH_TetrahedronVolume:                  ; @TH_TetrahedronVolume
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x21, x0
Lloh0:
	adrp	x22, _thworld@GOTPAGE
Lloh1:
	ldr	x22, [x22, _thworld@GOTPAGEOFF]
	ldr	x23, [x22, #24]
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_abs
	mov	x20, x0
	add	x19, x23, x0, lsl #4
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	x24, [x22, #16]
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x9, [x24, x0, lsl #3]
	b	LBB0_3
LBB0_2:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_abs
	ldr	x8, [x24, x0, lsl #3]
	add	x9, x8, #4
	ldr	x8, [x19]
LBB0_3:
	ldr	w24, [x9]
	ldr	w0, [x8, #4]
	ldr	x25, [x22, #16]
	tbnz	w0, #31, LBB0_5
; %bb.4:
	ldr	x9, [x25, x0, lsl #3]
	b	LBB0_6
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_abs
	ldr	x8, [x25, x0, lsl #3]
	add	x9, x8, #4
	ldr	x8, [x19]
LBB0_6:
	ldr	w25, [x9]
	ldr	w0, [x8, #8]
	ldr	x26, [x22, #16]
	tbnz	w0, #31, LBB0_8
; %bb.7:
	ldr	x8, [x26, x0, lsl #3]
	b	LBB0_9
LBB0_8:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_abs
	ldr	x8, [x26, x0, lsl #3]
	add	x8, x8, #4
LBB0_9:
	ldr	w26, [x8]
	ldr	x27, [x22, #24]
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	bl	_abs
	add	x21, x27, x0, lsl #4
	ldr	x8, [x21]
	ldr	w0, [x8, #12]
	ldr	x27, [x22, #16]
	tbnz	w0, #31, LBB0_11
; %bb.10:
	ldr	x8, [x27, x0, lsl #3]
	b	LBB0_12
LBB0_11:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_abs
	ldr	x8, [x27, x0, lsl #3]
	add	x8, x8, #4
LBB0_12:
	ldr	w8, [x8]
	cmp	w8, w24
	ccmp	w8, w25, #4, ne
	ccmp	w8, w26, #4, ne
	b.ne	LBB0_21
; %bb.13:
	ldr	x8, [x21]
	ldr	w0, [x8, #12]
	ldr	x27, [x22, #16]
	tbnz	w0, #31, LBB0_15
; %bb.14:
	ldr	x8, [x27, x0, lsl #3]
	b	LBB0_16
LBB0_15:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_abs
	ldr	x8, [x27, x0, lsl #3]
	add	x8, x8, #4
LBB0_16:
	ldr	w8, [x8]
	cmp	w8, w24
	ccmp	w8, w25, #4, ne
	ccmp	w8, w26, #4, ne
	b.ne	LBB0_21
; %bb.17:
	ldr	x8, [x21]
	ldr	w0, [x8, #12]
	ldr	x21, [x22, #16]
	tbnz	w0, #31, LBB0_19
; %bb.18:
	ldr	x8, [x21, x0, lsl #3]
	b	LBB0_20
LBB0_19:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_abs
	ldr	x8, [x21, x0, lsl #3]
	add	x8, x8, #4
LBB0_20:
	ldr	w8, [x8]
LBB0_21:
	add	x9, x23, x20, lsl #4
	ldr	x9, [x9, #8]
	ldp	x11, x10, [x22]
	ldr	w0, [x11, w8, sxtw #2]
	add	x20, x10, x9, lsl #3
	ldr	w1, [x20, #4]
	bl	_DotProduct
	ldr	s1, [x20]
	fsub	s8, s0, s1
	mov	x0, x19
	bl	_TH_TriangleArea
	fmul	s0, s0, s8
	fmov	s1, #-3.00000000
	fdiv	s0, s0, s1
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_thworld,32,3                   ; @thworld
.subsections_via_symbols
