	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_MeltFaceWinding            ## -- Begin function AAS_MeltFaceWinding
	.p2align	4, 0x90
_AAS_MeltFaceWinding:                   ## @AAS_MeltFaceWinding
	.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
	movq	8(%rsi), %r13
	cmpl	$0, (%r13)
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_mapplanes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,8), %edx
	movl	4(%rcx,%rax,8), %esi
	movq	8(%r13), %rax
	movl	(%rax,%r15,4), %ecx
	leaq	-44(%rbp), %r8
	callq	_PointOnWinding
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rdi
	movq	8(%r13), %rax
	movl	(%rax,%r15,4), %esi
	movl	-44(%rbp), %edx
	callq	_AddWindingPoint
	movq	%rax, %rbx
	movq	8(%r12), %rdi
	callq	_FreeWinding
	movq	%rbx, 8(%r12)
	incl	%r14d
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %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_MeltFaceWinding            ; -- Begin function AAS_MeltFaceWinding
	.p2align	2
_AAS_MeltFaceWinding:                   ; @AAS_MeltFaceWinding
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	ldr	x22, [x1, #8]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x23, #0
	mov	w20, #0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _mapplanes@GOTPAGE
Lloh1:
	ldr	x9, [x9, _mapplanes@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x24, x9, x8, lsl #3
	add	x25, x24, #4
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	ldr	w1, [x25]
	ldr	w2, [x24]
	ldr	x8, [x22, #8]
	ldr	w3, [x8, x23, lsl #2]
	add	x4, sp, #12
	bl	_PointOnWinding
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #8]
	ldr	x8, [x22, #8]
	ldr	w1, [x8, x23, lsl #2]
	ldr	w2, [sp, #12]
	bl	_AddWindingPoint
	mov	x21, x0
	ldr	x0, [x19, #8]
	bl	_FreeWinding
	str	x21, [x19, #8]
	add	w20, w20, #1
	b	LBB0_2
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mapplanes,8,3                  ; @mapplanes
.subsections_via_symbols
