	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_Reachability_Swim          ## -- Begin function AAS_Reachability_Swim
	.p2align	4, 0x90
_AAS_Reachability_Swim:                 ## @AAS_Reachability_Swim
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movl	%edi, %ebx
	callq	_AAS_AreaSwim
	movq	_qfalse@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	je	LBB0_24
## %bb.1:
	movl	%r13d, %edi
	callq	_AAS_AreaSwim
	testl	%eax, %eax
	je	LBB0_24
## %bb.2:
	movq	_aasworld@GOTPCREL(%rip), %r15
	movq	16(%r15), %rax
	movslq	%r13d, %rsi
	movq	_PRESENCE_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax,%rsi,4)
	je	LBB0_24
## %bb.3:
	movq	32(%r15), %rax
	movslq	%ebx, %r10
	leaq	(%r10,%r10,2), %rdx
	movq	(%rax,%rdx,8), %rcx
	leaq	(%rsi,%rsi,2), %rsi
	movq	8(%rax,%rsi,8), %rbx
	movq	(%rbx), %rdi
	addq	$10, %rdi
	cmpq	%rdi, (%rcx)
	jg	LBB0_24
## %bb.4:
	movq	8(%rax,%rdx,8), %r8
	movq	(%rax,%rsi,8), %r9
	movq	(%r9), %rdi
	addq	$-10, %rdi
	cmpq	%rdi, (%r8)
	jl	LBB0_24
## %bb.5:
	movq	8(%rbx), %rdi
	addq	$10, %rdi
	cmpq	%rdi, 8(%rcx)
	jg	LBB0_24
## %bb.6:
	movq	8(%r9), %rdi
	addq	$-10, %rdi
	cmpq	%rdi, 8(%r8)
	jl	LBB0_24
## %bb.7:
	movq	16(%rbx), %rdi
	addq	$10, %rdi
	cmpq	%rdi, 16(%rcx)
	jg	LBB0_24
## %bb.8:
	movq	16(%r9), %rcx
	addq	$-10, %rcx
	cmpq	%rcx, 16(%r8)
	jl	LBB0_24
## %bb.9:
	movl	16(%rax,%rdx,8), %ecx
	testl	%ecx, %ecx
	jle	LBB0_24
## %bb.10:
	movq	%r10, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rdx,8), %rbx
	addq	$16, %rbx
	leaq	(%rax,%rsi,8), %r14
	addq	$16, %r14
	movl	16(%rax,%rsi,8), %eax
	xorl	%edx, %edx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %ecx
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	incl	%edx
	cmpl	%ecx, %edx
	jge	LBB0_24
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	%rdx, %rdi
	movq	(%r15), %rdx
	movslq	4(%rbx), %rsi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movslq	%edi, %rdi
	addq	%rsi, %rdi
	movl	(%rdx,%rdi,4), %esi
	movl	%esi, %edi
	negl	%edi
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	cmovsl	%esi, %edi
	testl	%eax, %eax
	jle	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ebx, %ebx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	4(%r14), %rcx
	addq	%rbx, %rcx
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, %edx
	negl	%edx
	cmovsl	%ecx, %edx
	cmpl	%edx, %edi
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	callq	_AAS_FaceCenter
	callq	_AAS_PointContents
	movq	_CONTENTS_SLIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_CONTENTS_LAVA@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_CONTENTS_WATER@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	(%r14), %eax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=2
	leal	1(%rbx), %ecx
	cmpl	%eax, %ecx
	jge	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	(%r15), %rdx
	incq	%rbx
	jmp	LBB0_13
LBB0_18:
	movq	24(%r15), %rbx
	xorl	%eax, %eax
	callq	_AAS_AllocReachability
	testq	%rax, %rax
	je	LBB0_24
## %bb.19:
	xorl	%r12d, %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	shrl	$31, %ebx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %r14d
	movl	%r13d, (%rax)
	movl	%r15d, 4(%rax)
	movq	$0, 40(%rax)
	movq	%rax, %r15
	movl	32(%rax), %esi
	callq	_VectorCopy
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	xorl	(%rax,%r14,4), %ebx
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	8(%rax), %rax
	movslq	%ebx, %rdx
	movl	28(%r15), %ecx
	movl	32(%r15), %edi
	movq	_INSIDEUNITS@GOTPCREL(%rip), %rsi
	subl	(%rsi), %r12d
	movl	(%rax,%rdx,4), %edx
	movl	%r12d, %esi
	callq	_VectorMA
	movq	_TRAVEL_SWIM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movl	$1, 8(%r15)
	movl	%r13d, %edi
	callq	_AAS_AreaVolume
	cmpl	$799, %eax                      ## imm = 0x31F
	jg	LBB0_21
## %bb.20:
	addl	$200, 8(%r15)
LBB0_21:
	movq	_areareachability@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rax,%rdx,8), %rcx
	movq	%rcx, 16(%r15)
	movq	%r15, (%rax,%rdx,8)
	movq	_reach_swim@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_qtrue@GOTPCREL(%rip), %r12
LBB0_24:
	movl	(%r12), %eax
	addq	$40, %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	_PRESENCE_NORMAL,4,2            ## @PRESENCE_NORMAL
	.comm	_CONTENTS_LAVA,4,2              ## @CONTENTS_LAVA
	.comm	_CONTENTS_SLIME,4,2             ## @CONTENTS_SLIME
	.comm	_CONTENTS_WATER,4,2             ## @CONTENTS_WATER
	.comm	_INSIDEUNITS,4,2                ## @INSIDEUNITS
	.comm	_TRAVEL_SWIM,4,2                ## @TRAVEL_SWIM
	.comm	_areareachability,8,3           ## @areareachability
	.comm	_reach_swim,4,2                 ## @reach_swim
	.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_Reachability_Swim          ; -- Begin function AAS_Reachability_Swim
	.p2align	2
_AAS_Reachability_Swim:                 ; @AAS_Reachability_Swim
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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_AreaSwim
	cbz	w0, LBB0_24
; %bb.1:
	mov	x0, x19
	bl	_AAS_AreaSwim
	cbz	w0, LBB0_24
; %bb.2:
Lloh0:
	adrp	x23, _aasworld@GOTPAGE
Lloh1:
	ldr	x23, [x23, _aasworld@GOTPAGEOFF]
	ldr	x8, [x23, #16]
	ldr	w8, [x8, w19, sxtw #2]
Lloh2:
	adrp	x9, _PRESENCE_NORMAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PRESENCE_NORMAL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.3:
	sxtw	x8, w19
	ldr	x9, [x23, #32]
	mov	w11, #24
	smull	x10, w20, w11
	ldr	x10, [x9, x10]
	madd	x11, x8, x11, x9
	ldr	x11, [x11, #8]
	ldr	x12, [x10]
	ldr	x13, [x11]
	add	x13, x13, #10
	cmp	x12, x13
	b.gt	LBB0_24
; %bb.4:
	sxtw	x22, w20
	mov	w12, #24
	mul	x13, x8, x12
	madd	x12, x22, x12, x9
	ldr	x12, [x12, #8]
	ldr	x14, [x12]
	ldr	x13, [x9, x13]
	ldr	x15, [x13]
	sub	x15, x15, #10
	cmp	x14, x15
	b.lt	LBB0_24
; %bb.5:
	ldr	x14, [x10, #8]
	ldr	x15, [x11, #8]
	add	x15, x15, #10
	cmp	x14, x15
	b.gt	LBB0_24
; %bb.6:
	ldr	x14, [x12, #8]
	ldr	x15, [x13, #8]
	sub	x15, x15, #10
	cmp	x14, x15
	b.lt	LBB0_24
; %bb.7:
	ldr	x10, [x10, #16]
	ldr	x11, [x11, #16]
	add	x11, x11, #10
	cmp	x10, x11
	b.gt	LBB0_24
; %bb.8:
	ldr	x10, [x12, #16]
	ldr	x11, [x13, #16]
	sub	x11, x11, #10
	cmp	x10, x11
	b.lt	LBB0_24
; %bb.9:
	mov	w10, #24
	madd	x11, x22, x10, x9
	ldr	w10, [x11, #16]!
	str	x11, [sp, #8]                   ; 8-byte Folded Spill
	cmp	w10, #1
	b.lt	LBB0_24
; %bb.10:
	mov	w25, #0
	mov	w11, #24
	madd	x12, x22, x11, x9
	add	x12, x12, #20
	madd	x27, x8, x11, x9
	ldr	w8, [x27, #16]!
	add	x28, x27, #4
Lloh5:
	adrp	x21, _qfalse@GOTPAGE
Lloh6:
	ldr	x21, [x21, _qfalse@GOTPAGEOFF]
	str	x12, [sp]                       ; 8-byte Folded Spill
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldp	x12, x9, [sp]                   ; 16-byte Folded Reload
	ldr	w10, [x9]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w25, w25, #1
	cmp	w25, w10
	b.ge	LBB0_25
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x9, [x23]
	ldr	w11, [x12]
	add	w11, w11, w25
	ldr	w24, [x9, w11, sxtw #2]
	cmp	w24, #0
	cneg	w20, w24, mi
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x26, #0
LBB0_15:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x10, [x28]
	add	x10, x26, x10
	ldr	w9, [x9, x10, lsl #2]
	cmp	w9, #0
	cneg	w9, w9, mi
	cmp	w20, w9
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x20
	bl	_AAS_FaceCenter
	bl	_AAS_PointContents
Lloh7:
	adrp	x8, _CONTENTS_LAVA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CONTENTS_LAVA@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _CONTENTS_SLIME@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CONTENTS_SLIME@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _CONTENTS_WATER@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CONTENTS_WATER@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w0
	b.ne	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	w8, [x27]
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=2
	add	w9, w26, #1
	cmp	w9, w8
	b.ge	LBB0_11
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x9, [x23]
	add	x26, x26, #1
	b	LBB0_15
LBB0_20:
	ldr	x25, [x23, #24]
	bl	_AAS_AllocReachability
	cbz	x0, LBB0_24
; %bb.21:
	mov	x21, x0
	stp	w19, w20, [x0]
	str	xzr, [x0, #40]
	ldr	w1, [x0, #32]
	bl	_VectorCopy
	ldr	x8, [x23, #8]
	ldr	w9, [x25, w20, uxtw #2]
	eor	w9, w9, w24, lsr #31
Lloh16:
	adrp	x10, _INSIDEUNITS@GOTPAGE
Lloh17:
	ldr	x10, [x10, _INSIDEUNITS@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	neg	w1, w10
	ldr	w2, [x8, w9, sxtw #2]
	ldp	w3, w0, [x21, #28]
	bl	_VectorMA
Lloh19:
	adrp	x8, _TRAVEL_SWIM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRAVEL_SWIM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x21, #24]
	mov	w8, #1
	str	w8, [x21, #8]
	mov	x0, x19
	bl	_AAS_AreaVolume
	cmp	w0, #799
	b.gt	LBB0_23
; %bb.22:
	ldr	w8, [x21, #8]
	add	w8, w8, #200
	str	w8, [x21, #8]
LBB0_23:
Lloh22:
	adrp	x8, _areareachability@GOTPAGE
Lloh23:
	ldr	x8, [x8, _areareachability@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	lsl	x9, x22, #3
	ldr	x10, [x8, x9]
	str	x10, [x21, #16]
	str	x21, [x8, x9]
Lloh25:
	adrp	x8, _reach_swim@GOTPAGE
Lloh26:
	ldr	x8, [x8, _reach_swim@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh27:
	adrp	x21, _qtrue@GOTPAGE
Lloh28:
	ldr	x21, [x21, _qtrue@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:
Lloh29:
	adrp	x21, _qfalse@GOTPAGE
Lloh30:
	ldr	x21, [x21, _qfalse@GOTPAGEOFF]
LBB0_25:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_aasworld,40,3                  ; @aasworld
	.comm	_PRESENCE_NORMAL,4,2            ; @PRESENCE_NORMAL
	.comm	_CONTENTS_LAVA,4,2              ; @CONTENTS_LAVA
	.comm	_CONTENTS_SLIME,4,2             ; @CONTENTS_SLIME
	.comm	_CONTENTS_WATER,4,2             ; @CONTENTS_WATER
	.comm	_INSIDEUNITS,4,2                ; @INSIDEUNITS
	.comm	_TRAVEL_SWIM,4,2                ; @TRAVEL_SWIM
	.comm	_areareachability,8,3           ; @areareachability
	.comm	_reach_swim,4,2                 ; @reach_swim
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
