	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BaseWindingForNode             ## -- Begin function BaseWindingForNode
	.p2align	4, 0x90
_BaseWindingForNode:                    ## @BaseWindingForNode
	.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
	movq	%rdi, %rbx
	movq	_mapplanes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movl	(%rax,%rcx,8), %esi
	movl	4(%rax,%rcx,8), %edi
	callq	_BaseWindingForPlane
	movq	%rax, -48(%rbp)
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.1:
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	_BASE_WINDING_EPSILON@GOTPCREL(%rip), %r12
	leaq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	movq	%rcx, %rbx
	movq	_mapplanes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	movq	(%rbx), %r15
	movq	16(%rbx), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_vec3_origin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r13,%r15,8), %esi
	callq	_VectorSubtract
	xorl	%edx, %edx
	subl	(%r13,%r15,8), %edx
                                        ## implicit-def: $hsi
                                        ## implicit-def: $esi
                                        ## implicit-def: $si
                                        ## implicit-def: $sil
                                        ## implicit-def: $sih
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13,%r15,8), %edx
	movl	4(%r13,%r15,8), %esi
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %ecx
	movq	%r14, %rdi
	callq	_ChopWindingInPlace
	movq	8(%rbx), %rcx
	movq	-48(%rbp), %rax
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	jne	LBB0_3
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mapplanes,8,3                  ## @mapplanes
	.comm	_BASE_WINDING_EPSILON,4,2       ## @BASE_WINDING_EPSILON
	.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	_BaseWindingForNode             ; -- Begin function BaseWindingForNode
	.p2align	2
_BaseWindingForNode:                    ; @BaseWindingForNode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _mapplanes@GOTPAGE
Lloh1:
	ldr	x20, [x20, _mapplanes@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x0]
	add	x8, x8, x9, lsl #3
	ldp	w1, w0, [x8]
	bl	_BaseWindingForPlane
	str	x0, [sp, #8]
	ldr	x8, [x19, #8]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_7
; %bb.1:
Lloh2:
	adrp	x21, _BASE_WINDING_EPSILON@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BASE_WINDING_EPSILON@GOTPAGEOFF]
Lloh4:
	adrp	x22, _vec3_origin@GOTPAGE
Lloh5:
	ldr	x22, [x22, _vec3_origin@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x19
	mov	x19, x8
	ldr	x8, [x20]
	ldr	x10, [x19]
	add	x23, x8, x10, lsl #3
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22]
	ldr	w1, [x23, #4]
	bl	_VectorSubtract
	ldr	w8, [x23]
	neg	w2, w8
                                        ; implicit-def: $w1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	w2, w1, [x23]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w3, [x21]
	add	x0, sp, #8
	bl	_ChopWindingInPlace
	ldr	x8, [x19, #8]
	ldr	x0, [sp, #8]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	x0, LBB0_2
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_mapplanes,8,3                  ; @mapplanes
	.comm	_BASE_WINDING_EPSILON,4,2       ; @BASE_WINDING_EPSILON
	.comm	_vec3_origin,4,2                ; @vec3_origin
.subsections_via_symbols
