	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BaseWindingForPlane            ## -- Begin function BaseWindingForPlane
	.p2align	4, 0x90
_BaseWindingForPlane:                   ## @BaseWindingForPlane
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	_BOGUS_RANGE@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movl	(%rdi), %edi
	callq	_fabs
	cmpl	%r14d, %eax
	movl	%r14d, %r13d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmovgl	%eax, %r13d
	movl	4(%r12), %edi
	callq	_fabs
	movl	%eax, %ebx
	cmpl	%r13d, %eax
	movl	%r13d, %r15d
	cmovgl	%eax, %r15d
	movl	8(%r12), %edi
	callq	_fabs
	cmpl	%r15d, %eax
	jg	LBB0_4
## %bb.1:
	cmpl	%r13d, %ebx
	jg	LBB0_4
## %bb.2:
	cmpl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	jg	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_Error
LBB0_4:
	movq	_vec3_origin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_VectorCopy
	movq	%r12, %rsi
	callq	_DotProduct
	negl	%eax
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_VectorMA
	callq	_VectorNormalize
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_VectorScale
	movq	%r12, %rsi
	callq	_CrossProduct
	movq	_BOGUS_RANGE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_VectorScale
	movl	(%rbx), %esi
	callq	_VectorScale
	movl	$4, %edi
	callq	_AllocWinding
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	(%rax), %rdx
	callq	_VectorSubtract
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	%rdi, %rdx
	callq	_VectorAdd
	movq	(%rbx), %rax
	movq	8(%rax), %rdx
	callq	_VectorAdd
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	movq	%rdi, %rdx
	callq	_VectorAdd
	movq	(%rbx), %rax
	movq	16(%rax), %rdx
	callq	_VectorAdd
	movq	(%rbx), %rax
	movq	16(%rax), %rdi
	movq	%rdi, %rdx
	callq	_VectorSubtract
	movq	(%rbx), %rax
	movq	24(%rax), %rdx
	callq	_VectorSubtract
	movq	(%rbx), %rax
	movq	24(%rax), %rdi
	movq	%rdi, %rdx
	callq	_VectorSubtract
	movl	$4, 8(%rbx)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BOGUS_RANGE,4,2                ## @BOGUS_RANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BaseWindingForPlane: no axis found"

	.comm	_vec3_origin,4,2                ## @vec3_origin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BaseWindingForPlane            ; -- Begin function BaseWindingForPlane
	.p2align	2
_BaseWindingForPlane:                   ; @BaseWindingForPlane
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _BOGUS_RANGE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BOGUS_RANGE@GOTPAGEOFF]
	ldr	w22, [x23]
	neg	w24, w22
	ldr	w0, [x0]
	bl	_fabs
	mov	x21, x0
	cmp	w0, w24
	csneg	w25, w0, w22, gt
	ldr	w0, [x19, #4]
	bl	_fabs
	mov	x22, x0
	cmp	w0, w25
	csel	w26, w0, w25, gt
	ldr	w0, [x19, #8]
	bl	_fabs
	cmp	w0, w26
	ccmp	w22, w25, #0, le
	ccmp	w21, w24, #0, le
	b.gt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
LBB0_2:
Lloh4:
	adrp	x8, _vec3_origin@GOTPAGE
Lloh5:
	ldr	x8, [x8, _vec3_origin@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_VectorCopy
	mov	x1, x19
	bl	_DotProduct
	neg	w1, w0
	mov	x2, x19
	bl	_VectorMA
	bl	_VectorNormalize
	mov	x0, x19
	mov	x1, x20
	bl	_VectorScale
	mov	x1, x19
	bl	_CrossProduct
	ldr	w1, [x23]
	bl	_VectorScale
	ldr	w1, [x23]
	bl	_VectorScale
	mov	w20, #4
	mov	w0, #4
	bl	_AllocWinding
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x2, [x8]
	bl	_VectorSubtract
	ldr	x8, [x19]
	ldr	x0, [x8]
	mov	x2, x0
	bl	_VectorAdd
	ldr	x8, [x19]
	ldr	x2, [x8, #8]
	bl	_VectorAdd
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	mov	x2, x0
	bl	_VectorAdd
	ldr	x8, [x19]
	ldr	x2, [x8, #16]
	bl	_VectorAdd
	ldr	x8, [x19]
	ldr	x0, [x8, #16]
	mov	x2, x0
	bl	_VectorSubtract
	ldr	x8, [x19]
	ldr	x2, [x8, #24]
	bl	_VectorSubtract
	ldr	x8, [x19]
	ldr	x0, [x8, #24]
	mov	x2, x0
	bl	_VectorSubtract
	str	w20, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BOGUS_RANGE,4,2                ; @BOGUS_RANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BaseWindingForPlane: no axis found"

	.comm	_vec3_origin,4,2                ; @vec3_origin
.subsections_via_symbols
