	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_Reachability_Grapple       ## -- Begin function AAS_Reachability_Grapple
	.p2align	4, 0x90
_AAS_Reachability_Grapple:              ## @AAS_Reachability_Grapple
	.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
	movl	%esi, %r14d
	movl	%edi, %ebx
	callq	_AAS_AreaGrounded
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_AAS_AreaSwim
	testq	%rax, %rax
	je	LBB0_14
LBB0_2:
	movl	%ebx, %edi
	callq	_AAS_AreaPresenceType
	movq	_PRESENCE_NORMAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.3:
	movl	%ebx, %edi
	callq	_AAS_AreaSwim
	testq	%rax, %rax
	jne	LBB0_14
## %bb.4:
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	56(%rax), %r12
	movslq	%ebx, %rax
	movslq	%r14d, %r14
	shlq	$5, %r14
	movq	(%r12,%r14), %rcx
	movq	16(%rcx), %rcx
	shlq	$5, %rax
	movq	8(%r12,%rax), %rdx
	cmpq	16(%rdx), %rcx
	jl	LBB0_14
## %bb.5:
	movq	16(%r12,%rax), %rdi
	callq	_VectorCopy
	movl	%ebx, %edi
	callq	_AAS_AreaSwim
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	callq	_AAS_PointContents
	movq	_CONTENTS_LAVA@GOTPCREL(%rip), %rcx
	movq	_CONTENTS_SLIME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_CONTENTS_WATER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_14
## %bb.8:
	cmpl	$0, 24(%r12,%r14)
	jle	LBB0_14
## %bb.9:
	addq	%r12, %r14
	addq	$24, %r14
	xorl	%ebx, %ebx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	cmpl	(%r14), %ebx
	jge	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movslq	4(%r14), %rax
	addq	%rbx, %rax
	movq	_aasworld@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	movq	48(%rdx), %r13
	movl	(%rcx,%rax,4), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_abs
	leaq	(%rax,%rax,2), %r15
	movq	_FACE_SOLID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13,%r15,8)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_aasworld@GOTPCREL(%rip), %r12
	movq	40(%r12), %r14
	movq	8(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rax
	movq	8(%r13,%r15,8), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_abs
	movq	(%r14,%rax,8), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rdi
	callq	_VectorSubtract
	movq	32(%r12), %rax
	movq	16(%r13,%r15,8), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_DotProduct
	testq	%rax, %rax
	jg	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_AAS_FaceCenter
	jmp	LBB0_13
LBB0_14:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%ebx, %edi
	callq	_AAS_Reachability_Grapple.cold.1
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function AAS_Reachability_Grapple.cold.1
_AAS_Reachability_Grapple.cold.1:       ## @AAS_Reachability_Grapple.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	callq	_AAS_PointAreaNum
	testl	%eax, %eax
	jne	LBB1_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_Log_Write
LBB1_2:
	callq	_VectorCopy
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_PRESENCE_NORMAL,4,2            ## @PRESENCE_NORMAL
	.comm	_aasworld,64,3                  ## @aasworld
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"area %d center %f %f %f in solid?\r\n"

	.comm	_PRESENCE_CROUCH,4,2            ## @PRESENCE_CROUCH
	.comm	_CONTENTS_LAVA,4,2              ## @CONTENTS_LAVA
	.comm	_CONTENTS_SLIME,4,2             ## @CONTENTS_SLIME
	.comm	_CONTENTS_WATER,4,2             ## @CONTENTS_WATER
	.comm	_FACE_SOLID,4,2                 ## @FACE_SOLID
	.comm	_M_PI,4,2                       ## @M_PI
	.comm	_CONTENTS_SOLID,4,2             ## @CONTENTS_SOLID
	.comm	_SURF_SKY,4,2                   ## @SURF_SKY
	.comm	_AREACONTENTS_SLIME,4,2         ## @AREACONTENTS_SLIME
	.comm	_AREACONTENTS_LAVA,4,2          ## @AREACONTENTS_LAVA
	.comm	_AREACONTENTS_CLUSTERPORTAL,4,2 ## @AREACONTENTS_CLUSTERPORTAL
	.comm	_TRAVEL_GRAPPLEHOOK,4,2         ## @TRAVEL_GRAPPLEHOOK
	.comm	_aassettings,8,3                ## @aassettings
	.comm	_areareachability,8,3           ## @areareachability
	.comm	_reach_grapple,4,2              ## @reach_grapple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_Reachability_Grapple       ; -- Begin function AAS_Reachability_Grapple
	.p2align	2
_AAS_Reachability_Grapple:              ; @AAS_Reachability_Grapple
	.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, x1
	mov	x20, x0
	bl	_AAS_AreaGrounded
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_AAS_AreaSwim
	cbz	x0, LBB0_13
LBB0_2:
	mov	x0, x20
	bl	_AAS_AreaPresenceType
Lloh0:
	adrp	x8, _PRESENCE_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRESENCE_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.3:
	mov	x0, x20
	bl	_AAS_AreaSwim
	cbnz	x0, LBB0_13
; %bb.4:
Lloh3:
	adrp	x21, _aasworld@GOTPAGE
Lloh4:
	ldr	x21, [x21, _aasworld@GOTPAGEOFF]
	ldr	x22, [x21, #56]
	sbfiz	x8, x19, #5, #32
	ldr	x8, [x22, x8]
	sxtw	x9, w20
	ldr	x10, [x8, #16]
	add	x8, x22, x9, lsl #5
	ldr	x9, [x8, #8]
	ldr	x9, [x9, #16]
	cmp	x10, x9
	b.lt	LBB0_13
; %bb.5:
	ldr	x0, [x8, #16]
	bl	_VectorCopy
	mov	x0, x20
	bl	_AAS_AreaSwim
	cbz	x0, LBB0_14
; %bb.6:
	bl	_AAS_PointContents
Lloh5:
	adrp	x8, _CONTENTS_LAVA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONTENTS_LAVA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _CONTENTS_SLIME@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CONTENTS_SLIME@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _CONTENTS_WATER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CONTENTS_WATER@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w0
	b.eq	LBB0_13
; %bb.7:
	sxtw	x8, w19
	add	x8, x22, x8, lsl #5
	mov	x20, x8
	ldr	w9, [x20, #24]!
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.8:
	mov	x22, #0
	add	x23, x8, #28
	mov	w24, #24
Lloh14:
	adrp	x25, _FACE_SOLID@GOTPAGE
Lloh15:
	ldr	x25, [x25, _FACE_SOLID@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x20]
	add	x22, x22, #1
	cmp	w22, w8
	b.ge	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldrsw	x9, [x23]
	add	x9, x22, x9
	ldr	w19, [x8, x9, lsl #2]
	ldr	x26, [x21, #48]
	mov	x0, x19
	bl	_abs
	mul	x8, x0, x24
	ldr	w8, [x26, x8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x27, [x21, #40]
	ldp	x28, x8, [x21, #8]
	madd	x26, x0, x24, x26
	ldr	x9, [x26, #8]
	ldr	w0, [x8, x9, lsl #2]
	bl	_abs
	ldr	x8, [x27, x0, lsl #3]
	ldr	x8, [x8]
	ldr	x0, [x28, x8, lsl #3]
	bl	_VectorSubtract
	ldr	x8, [x21, #32]
	ldr	x9, [x26, #16]
	ldr	x0, [x8, x9, lsl #3]
	bl	_DotProduct
	cmp	x0, #0
	b.gt	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	bl	_AAS_FaceCenter
	b	LBB0_9
LBB0_13:
Lloh16:
	adrp	x8, _qfalse@GOTPAGE
Lloh17:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	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
LBB0_14:
	mov	x0, x20
	bl	_AAS_Reachability_Grapple.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function AAS_Reachability_Grapple.cold.1
_AAS_Reachability_Grapple.cold.1:       ; @AAS_Reachability_Grapple.cold.1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_AAS_PointAreaNum
	cbnz	w0, LBB1_2
; %bb.1:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_Log_Write
LBB1_2:
	bl	_VectorCopy
	brk	#0x1
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_PRESENCE_NORMAL,4,2            ; @PRESENCE_NORMAL
	.comm	_aasworld,64,3                  ; @aasworld
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"area %d center %f %f %f in solid?\r\n"

	.comm	_PRESENCE_CROUCH,4,2            ; @PRESENCE_CROUCH
	.comm	_CONTENTS_LAVA,4,2              ; @CONTENTS_LAVA
	.comm	_CONTENTS_SLIME,4,2             ; @CONTENTS_SLIME
	.comm	_CONTENTS_WATER,4,2             ; @CONTENTS_WATER
	.comm	_FACE_SOLID,4,2                 ; @FACE_SOLID
	.comm	_M_PI,4,2                       ; @M_PI
	.comm	_CONTENTS_SOLID,4,2             ; @CONTENTS_SOLID
	.comm	_SURF_SKY,4,2                   ; @SURF_SKY
	.comm	_AREACONTENTS_SLIME,4,2         ; @AREACONTENTS_SLIME
	.comm	_AREACONTENTS_LAVA,4,2          ; @AREACONTENTS_LAVA
	.comm	_AREACONTENTS_CLUSTERPORTAL,4,2 ; @AREACONTENTS_CLUSTERPORTAL
	.comm	_TRAVEL_GRAPPLEHOOK,4,2         ; @TRAVEL_GRAPPLEHOOK
	.comm	_aassettings,8,3                ; @aassettings
	.comm	_areareachability,8,3           ; @areareachability
	.comm	_reach_grapple,4,2              ; @reach_grapple
.subsections_via_symbols
