	.file	"extr_tetrahedron.c_TH_TetrahedronVolume.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	TH_TetrahedronVolume
	.type	TH_TetrahedronVolume, @function
TH_TetrahedronVolume:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xor	ebx, ebx
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rbp, QWORD PTR thworld[rip+24]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	lea	r14, 28[rsp]
	mov	edi, DWORD PTR [rax]
	call	abs@PLT
	sal	rax, 4
	add	rbp, rax
.L4:
	mov	rax, QWORD PTR 0[rbp]
	mov	r12, QWORD PTR thworld[rip+16]
	movsx	rdi, DWORD PTR [rax+rbx]
	test	edi, edi
	js	.L15
	mov	rax, QWORD PTR [r12+rdi*8]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [r14+rbx], eax
.L3:
	add	rbx, 4
	cmp	rbx, 12
	jne	.L4
	mov	rax, QWORD PTR 0[r13]
	mov	r12, QWORD PTR thworld[rip+24]
	mov	ebx, 3
	mov	edi, DWORD PTR 4[rax]
	call	abs@PLT
	mov	r14d, DWORD PTR 28[rsp]
	sal	rax, 4
	add	r12, rax
.L9:
	mov	rax, QWORD PTR [r12]
	mov	r13, QWORD PTR thworld[rip+16]
	movsx	rdi, DWORD PTR 12[rax]
	test	edi, edi
	js	.L16
	mov	rax, QWORD PTR 0[r13+rdi*8]
	movsx	rax, DWORD PTR [rax]
.L6:
	cmp	eax, r14d
	je	.L7
	cmp	DWORD PTR 32[rsp], eax
	je	.L7
	cmp	DWORD PTR 36[rsp], eax
	jne	.L8
.L7:
	sub	ebx, 1
	jne	.L9
.L8:
	mov	rcx, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR thworld[rip+8]
	lea	rbx, [rdx+rcx*8]
	mov	rdx, QWORD PTR thworld[rip]
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR [rdx+rax*4]
	call	DotProduct@PLT
	subss	xmm0, DWORD PTR [rbx]
	xorps	xmm0, XMMWORD PTR .LC0[rip]
	mov	rdi, rbp
	movss	DWORD PTR 12[rsp], xmm0
	call	TH_TriangleArea@PLT
	mulss	xmm0, DWORD PTR 12[rsp]
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	divss	xmm0, DWORD PTR .LC1[rip]
	jne	.L17
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	call	abs@PLT
	mov	rax, QWORD PTR [r12+rax*8]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR [r14+rbx], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	call	abs@PLT
	mov	rax, QWORD PTR 0[r13+rax*8]
	movsx	rax, DWORD PTR 4[rax]
	jmp	.L6
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	TH_TetrahedronVolume, .-TH_TetrahedronVolume
	.comm	thworld,32,32
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	2147483648
	.long	0
	.long	0
	.long	0
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC1:
	.long	1077936128
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tetrahedron.c_TH_TetrahedronVolume.c"
	.text
	.global	__aeabi_fsub
	.global	__aeabi_fmul
	.global	__aeabi_fdiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	TH_TetrahedronVolume
	.syntax unified
	.arm
	.fpu softvfp
	.type	TH_TetrahedronVolume, %function
TH_TetrahedronVolume:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #16
	mov	r1, sp
	ldr	r6, [r0]
	ldr	ip, .L16
	ldr	r4, [r6]
	ldr	r5, [ip, #12]
	ldr	r3, .L16+4
	ldr	r0, [r5, r4, lsl #3]
	ldr	lr, [ip, #8]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	add	r4, r5, r4, lsl #3
	sub	r3, r0, #4
	add	r0, r0, #8
.L4:
	ldr	r2, [r3, #4]!
	cmp	r2, #0
	ldr	r2, [lr, r2, lsl #2]
	ldrlt	r2, [r2, #4]
	ldrge	r2, [r2]
	cmp	r0, r3
	str	r2, [r1], #4
	bne	.L4
	mov	r2, #3
	ldr	r3, [r6, #4]
	ldr	r0, [sp]
	ldr	r3, [r5, r3, lsl #3]
	ldr	r6, [sp, #8]
	ldr	r1, [r3, #12]
	ldr	r5, [sp, #4]
	ldr	lr, [lr, r1, lsl #2]
.L9:
	cmp	r1, #0
	ldrlt	r3, [lr, #4]
	ldrge	r3, [lr]
	cmp	r0, r3
	beq	.L7
	cmp	r5, r3
	beq	.L7
	cmp	r6, r3
	bne	.L8
.L7:
	subs	r2, r2, #1
	bne	.L9
.L8:
	ldm	ip, {r1, r5}
	ldr	r6, [r4, #4]
	ldr	r0, [r1, r3, lsl #2]
	add	r2, r5, r6, lsl #3
	ldr	r1, [r2, #4]
	bl	DotProduct
	ldr	r1, [r5, r6, lsl #3]	@ float
	bl	__aeabi_fsub
	mov	r1, r0
	mov	r0, r4
	add	r4, r1, #-2147483648
	bl	TH_TriangleArea
	mov	r1, r4
	bl	__aeabi_fmul
	ldr	r1, .L16+8
	bl	__aeabi_fdiv
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	thworld
	.word	.LC0
	.word	1077936128
	.size	TH_TetrahedronVolume, .-TH_TetrahedronVolume
	.comm	thworld,16,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
