	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TextureAxisFromPlane           ## -- Begin function TextureAxisFromPlane
	.p2align	4, 0x90
_TextureAxisFromPlane:                  ## @TextureAxisFromPlane
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_baseaxis@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rcx, %r14
	movl	(%rax), %esi
	callq	_DotProduct
	xorl	%r15d, %r15d
	testq	%rax, %rax
	cmovgq	%rax, %r15
	movl	(%rbx), %edi
	movq	(%r14), %rax
	movl	12(%rax), %esi
	callq	_DotProduct
	xorl	%r12d, %r12d
	cmpq	%r15, %rax
	cmovgq	%rax, %r15
	setg	%r12b
	movl	(%rbx), %edi
	movq	(%r14), %rax
	movl	24(%rax), %esi
	callq	_DotProduct
	movq	%rax, %r13
	movl	(%rbx), %edi
	movq	(%r14), %rax
	movl	36(%rax), %esi
	callq	_DotProduct
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movq	(%r14), %rax
	movl	48(%rax), %esi
	callq	_DotProduct
	movq	%rax, %r14
	movl	(%rbx), %edi
	movq	_baseaxis@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	60(%rax), %esi
	callq	_DotProduct
	cmpq	%r15, %r13
	cmovgq	%r13, %r15
	leal	(%r12,%r12,2), %ecx
	movl	$6, %edx
	cmovlel	%ecx, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%r15, %rcx
	cmovgq	%rcx, %r15
	movl	$9, %ecx
	cmovlel	%edx, %ecx
	cmpq	%r15, %r14
	cmovgq	%r14, %r15
	movl	$12, %edx
	cmovlel	%ecx, %edx
	cmpq	%r15, %rax
	movq	%rbx, %r14
	movq	(%rbx), %rax
	movl	$15, %ebx
	cmovlel	%edx, %ebx
	movl	4(%rax,%rbx,4), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_VectorCopy
	movq	(%r14), %rax
	movl	8(%rax,%rbx,4), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VectorCopy                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_baseaxis,8,3                   ## @baseaxis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TextureAxisFromPlane           ; -- Begin function TextureAxisFromPlane
	.p2align	2
_TextureAxisFromPlane:                  ; @TextureAxisFromPlane
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x26, _baseaxis@GOTPAGE
Lloh1:
	ldr	x26, [x26, _baseaxis@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	w1, [x8]
	bl	_DotProduct
	cmp	x0, #0
	csel	x27, x0, xzr, gt
	ldr	w0, [x21]
	ldr	x8, [x26]
	ldr	w1, [x8, #12]
	bl	_DotProduct
	mov	x22, x0
	ldr	w0, [x21]
	ldr	x8, [x26]
	ldr	w1, [x8, #24]
	bl	_DotProduct
	mov	x23, x0
	ldr	w0, [x21]
	ldr	x8, [x26]
	ldr	w1, [x8, #36]
	bl	_DotProduct
	mov	x24, x0
	ldr	w0, [x21]
	ldr	x8, [x26]
	ldr	w1, [x8, #48]
	bl	_DotProduct
	mov	x25, x0
	ldr	w0, [x21]
	ldr	x8, [x26]
	ldr	w1, [x8, #60]
	bl	_DotProduct
	cmp	x22, x27
	csel	x8, x22, x27, gt
	mov	w9, #3
	csel	w9, w9, wzr, gt
	cmp	x23, x8
	csel	x8, x23, x8, gt
	mov	w10, #6
	csel	w9, w10, w9, gt
	cmp	x24, x8
	csel	x8, x24, x8, gt
	mov	w10, #9
	csel	w9, w10, w9, gt
	cmp	x25, x8
	csel	x8, x25, x8, gt
	ldr	x10, [x26]
	mov	w11, #12
	csel	w9, w11, w9, gt
	cmp	x0, x8
	mov	w8, #15
	csel	w21, w8, w9, gt
	add	w8, w21, #1
	ldr	w0, [x10, w8, uxtw #2]
	mov	x1, x20
	bl	_VectorCopy
	ldr	x8, [x26]
	add	w9, w21, #2
	ldr	w0, [x8, w9, uxtw #2]
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_VectorCopy
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_baseaxis,8,3                   ; @baseaxis
.subsections_via_symbols
