	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_AreaGroundFaceArea         ## -- Begin function AAS_AreaGroundFaceArea
	.p2align	4, 0x90
_AAS_AreaGroundFaceArea:                ## @AAS_AreaGroundFaceArea
	.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	_aasworld@GOTPCREL(%rip), %r14
	movq	16(%r14), %r15
	movslq	%edi, %r12
	cmpl	$0, (%r15,%r12,8)
	jle	LBB0_1
## %bb.2:
	xorps	%xmm0, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpl	(%r15,%r12,8), %ebx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	8(%r14), %r13
	movslq	4(%r15,%r12,8), %rcx
	addq	%rbx, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_abs
	movq	_FACE_GROUND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r13,%rax,4)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	callq	_AAS_FaceArea
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_5
LBB0_1:
	xorps	%xmm0, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
LBB0_6:
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,24,3                  ## @aasworld
	.comm	_FACE_GROUND,4,2                ## @FACE_GROUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_AreaGroundFaceArea         ; -- Begin function AAS_AreaGroundFaceArea
	.p2align	2
_AAS_AreaGroundFaceArea:                ; @AAS_AreaGroundFaceArea
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x19, _aasworld@GOTPAGE
Lloh1:
	ldr	x19, [x19, _aasworld@GOTPAGEOFF]
	ldr	x8, [x19, #16]
	add	x20, x8, w0, sxtw #3
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
	sxtw	x9, w0
	add	x8, x8, x9, lsl #3
	add	x22, x8, #4
	movi	d8, #0000000000000000
Lloh2:
	adrp	x23, _FACE_GROUND@GOTPAGE
Lloh3:
	ldr	x23, [x23, _FACE_GROUND@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	add	x21, x21, #1
	cmp	w21, w8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x24, [x19]
	ldrsw	x9, [x22]
	add	x9, x21, x9
	ldr	w0, [x8, x9, lsl #2]
	bl	_abs
	add	x0, x24, x0, lsl #2
	ldr	w8, [x0]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_AAS_FaceArea
	scvtf	s0, x0
	fadd	s8, s8, s0
	b	LBB0_2
LBB0_5:
	movi	d8, #0000000000000000
LBB0_6:
	fmov	s0, s8
	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	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,24,3                  ; @aasworld
	.comm	_FACE_GROUND,4,2                ; @FACE_GROUND
.subsections_via_symbols
