	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function AAS_AgainstLadder
LCPI0_0:
	.long	0x3dcccccd                      ## float 0.100000001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_AAS_AgainstLadder
	.p2align	4, 0x90
_AAS_AgainstLadder:                     ## @AAS_AgainstLadder
	.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	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_VectorCopy
	callq	_AAS_PointAreaNum
	movq	_aasworld@GOTPCREL(%rip), %r15
	movq	32(%r15), %rcx
	movslq	%eax, %r12
	movq	_AREA_LADDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_qfalse@GOTPCREL(%rip), %rdx
	testl	%eax, (%rcx,%r12,8)
	je	LBB0_10
## %bb.1:
	movq	_PRESENCE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rcx,%r12,8)
	je	LBB0_10
## %bb.2:
	movq	24(%r15), %r13
	cmpl	$0, (%r13,%r12,8)
	jle	LBB0_10
## %bb.3:
	xorl	%r14d, %r14d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	cmpl	(%r13,%r12,8), %r14d
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	4(%r13,%r12,8), %rax
	addq	%r14, %rax
	movq	(%r15), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, %ebx
	negl	%ebx
	cmovsl	%eax, %ebx
	movq	16(%r15), %rcx
	movq	_FACE_LADDER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx,%rbx,8)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	shrl	$31, %eax
	movq	8(%r15), %r12
	xorl	4(%rcx,%rbx,8), %eax
	movq	%r15, %r13
	movslq	%eax, %r15
	movl	4(%r12,%r15,8), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_DotProduct
	subl	(%r12,%r15,8), %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, %ecx
	negl	%ecx
	cmovsl	%eax, %ecx
	cmpl	$2, %ecx
	ja	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_AAS_PointInsideFace
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_qtrue@GOTPCREL(%rip), %rdx
	jmp	LBB0_10
LBB0_9:
	movq	_qfalse@GOTPCREL(%rip), %rdx
LBB0_10:
	movl	(%rdx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_aasworld,40,3                  ## @aasworld
	.comm	_AREA_LADDER,4,2                ## @AREA_LADDER
	.comm	_PRESENCE_NORMAL,4,2            ## @PRESENCE_NORMAL
	.comm	_FACE_LADDER,4,2                ## @FACE_LADDER
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_AgainstLadder              ; -- Begin function AAS_AgainstLadder
	.p2align	2
_AAS_AgainstLadder:                     ; @AAS_AgainstLadder
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_VectorCopy
	bl	_AAS_PointAreaNum
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x21, _aasworld@GOTPAGE
Lloh1:
	ldr	x21, [x21, _aasworld@GOTPAGEOFF]
	ldr	x8, [x21, #32]
	sbfiz	x9, x0, #3, #32
	ldr	w9, [x8, x9]
Lloh2:
	adrp	x10, _AREA_LADDER@GOTPAGE
Lloh3:
	ldr	x10, [x10, _AREA_LADDER@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.1:
	sxtw	x9, w0
	add	x8, x8, x9, lsl #3
	ldr	w8, [x8, #4]
Lloh5:
	adrp	x10, _PRESENCE_NORMAL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PRESENCE_NORMAL@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_8
; %bb.2:
	ldr	x8, [x21, #24]
	add	x23, x8, x9, lsl #3
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x24, #0
Lloh8:
	adrp	x26, _FACE_LADDER@GOTPAGE
Lloh9:
	ldr	x26, [x26, _FACE_LADDER@GOTPAGEOFF]
	add	x27, x23, #4
	mov	w28, #52429
	movk	w28, #15820, lsl #16
Lloh10:
	adrp	x22, _qtrue@GOTPAGE
Lloh11:
	ldr	x22, [x22, _qtrue@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23]
	add	x24, x24, #1
	cmp	w24, w8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldrsw	x9, [x27]
	add	x9, x24, x9
	ldr	w8, [x8, x9, lsl #2]
	ldr	x9, [x21, #16]
	cmp	w8, #0
	cneg	w20, w8, mi
	lsl	x10, x20, #3
	ldr	w10, [x9, x10]
	ldr	w11, [x26]
	tst	w11, w10
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x21, #8]
	add	x9, x9, x20, lsl #3
	ldr	w9, [x9, #4]
	eor	w8, w9, w8, lsr #31
	add	x25, x10, w8, sxtw #3
	ldr	w0, [x25, #4]
	mov	x1, x19
	bl	_DotProduct
	ldr	w8, [x25]
	subs	w8, w0, w8
	cneg	w8, w8, mi
	cmp	w8, #2
	b.hi	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	fmov	s0, w28
	mov	x0, x20
	mov	x1, x19
	bl	_AAS_PointInsideFace
	cbz	x0, LBB0_4
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x22, _qfalse@GOTPAGE
Lloh13:
	ldr	x22, [x22, _qfalse@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x22]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_aasworld,40,3                  ; @aasworld
	.comm	_AREA_LADDER,4,2                ; @AREA_LADDER
	.comm	_PRESENCE_NORMAL,4,2            ; @PRESENCE_NORMAL
	.comm	_FACE_LADDER,4,2                ; @FACE_LADDER
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
