	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TH_CreateTrianglePlanes        ## -- Begin function TH_CreateTrianglePlanes
	.p2align	4, 0x90
_TH_CreateTrianglePlanes:               ## @TH_CreateTrianglePlanes
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_thworld@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	4(%rdi), %rcx
	movl	(%rax,%rcx,4), %edi
	movslq	(%r14), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_VectorSubtract
	movl	(%r15), %esi
	movl	(%rbx), %edx
	callq	_CrossProduct
	movl	(%rbx), %edi
	callq	_VectorNormalize
	movq	(%r12), %rax
	movslq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	(%rbx), %esi
	callq	_DotProduct
	movl	%eax, 4(%rbx)
	movq	(%r12), %rax
	movslq	8(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	movslq	4(%r14), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_VectorSubtract
	movl	(%r15), %esi
	movl	8(%rbx), %edx
	callq	_CrossProduct
	movl	8(%rbx), %edi
	callq	_VectorNormalize
	movq	(%r12), %rax
	movslq	4(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	8(%rbx), %esi
	callq	_DotProduct
	movl	%eax, 12(%rbx)
	movq	(%r12), %rax
	movslq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	movslq	8(%r14), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_VectorSubtract
	movl	(%r15), %esi
	movl	16(%rbx), %edx
	callq	_CrossProduct
	movl	16(%rbx), %edi
	callq	_VectorNormalize
	movq	(%r12), %rax
	movslq	8(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	16(%rbx), %esi
	callq	_DotProduct
	movl	%eax, 20(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_CreateTrianglePlanes        ; -- Begin function TH_CreateTrianglePlanes
	.p2align	2
_TH_CreateTrianglePlanes:               ; @TH_CreateTrianglePlanes
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _thworld@GOTPAGE
Lloh1:
	ldr	x22, [x22, _thworld@GOTPAGEOFF]
	ldr	x8, [x22]
	ldpsw	x10, x9, [x0]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x8, x10, lsl #2]
	bl	_VectorSubtract
	ldr	w1, [x21]
	ldr	w2, [x19]
	bl	_CrossProduct
	ldr	w0, [x19]
	bl	_VectorNormalize
	ldr	x8, [x22]
	ldrsw	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x19]
	bl	_DotProduct
	str	w0, [x19, #4]
	ldr	x8, [x22]
	ldpsw	x10, x9, [x20, #4]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x8, x10, lsl #2]
	bl	_VectorSubtract
	ldr	w1, [x21]
	ldr	w2, [x19, #8]
	bl	_CrossProduct
	ldr	w0, [x19, #8]
	bl	_VectorNormalize
	ldr	x8, [x22]
	ldrsw	x9, [x20, #4]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x19, #8]
	bl	_DotProduct
	str	w0, [x19, #12]
	ldr	x8, [x22]
	ldrsw	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	ldrsw	x9, [x20, #8]
	ldr	w1, [x8, x9, lsl #2]
	bl	_VectorSubtract
	ldr	w1, [x21]
	ldr	w2, [x19, #16]
	bl	_CrossProduct
	ldr	w0, [x19, #16]
	bl	_VectorNormalize
	ldr	x8, [x22]
	ldrsw	x9, [x20, #8]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x19, #16]
	bl	_DotProduct
	str	w0, [x19, #20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_thworld,8,3                    ; @thworld
.subsections_via_symbols
