	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_SplitWinding               ## -- Begin function AAS_SplitWinding
	.p2align	4, 0x90
_AAS_SplitWinding:                      ## @AAS_SplitWinding
	.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, %r12
	movq	_mapplanes@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	%esi, %rcx
	movl	(%rax,%rcx,8), %esi
	movl	4(%rax,%rcx,8), %edi
	callq	_BaseWindingForPlane
	movq	%rax, -48(%rbp)
	movq	(%r12), %r13
	testq	%r13, %r13
	je	LBB0_5
## %bb.1:
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	leaq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%ebx, %ebx
	cmpq	%r12, 8(%r13)
	setne	%bl
	movq	(%r15), %rax
	movl	(%r13), %ecx
	xorl	%ebx, %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,8), %edx
	movl	4(%rax,%rcx,8), %esi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_ChopWindingInPlace
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %r13
	movq	-48(%rbp), %rax
	testq	%r13, %r13
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	jne	LBB0_3
LBB0_5:
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_SplitWinding               ; -- Begin function AAS_SplitWinding
	.p2align	2
_AAS_SplitWinding:                      ; @AAS_SplitWinding
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x20, _mapplanes@GOTPAGE
Lloh1:
	ldr	x20, [x20, _mapplanes@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x8, x8, w1, sxtw #3
	ldp	w1, w0, [x8]
	bl	_BaseWindingForPlane
	str	x0, [sp, #8]
	ldr	x21, [x19]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x21, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x21, #8]
	cmp	x8, x19
	cset	w22, ne
	ldr	x8, [x20]
	ldr	w9, [x21]
	eor	w9, w9, w22
	add	x8, x8, w9, sxtw #3
	ldp	w2, w1, [x8]
	add	x0, sp, #8
	mov	w3, #0
	bl	_ChopWindingInPlace
	ldr	x8, [x21, #16]
	ldr	x21, [x8, w22, uxtw #3]
	ldr	x0, [sp, #8]
	b	LBB0_1
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mapplanes,8,3                  ; @mapplanes
.subsections_via_symbols
