	.file	"extr_be_aas_reach.c_AAS_InitReachability.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"forcereachability"
.LC1:
	.string	"grapplereach"
	.text
	.p2align 4
	.globl	AAS_InitReachability
	.type	AAS_InitReachability, @function
AAS_InitReachability:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR aasworld[rip+24]
	test	eax, eax
	je	.L5
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	cmp	QWORD PTR aasworld[rip+16], 0
	je	.L3
	lea	rdi, .LC0[rip]
	call	LibVarGetValue@PLT
	test	eax, eax
	je	.L9
.L3:
	lea	rdi, .LC1[rip]
	call	LibVarGetValue@PLT
	mov	DWORD PTR aasworld[rip], 1
	mov	QWORD PTR calcgrapplereach[rip], rax
	mov	eax, DWORD PTR qtrue[rip]
	mov	DWORD PTR aasworld[rip+8], eax
	xor	eax, eax
	call	AAS_SetupReachabilityHeap@PLT
	mov	eax, DWORD PTR aasworld[rip+4]
	lea	edi, 0[0+rax*8]
	call	GetClearedMemory@PLT
	mov	QWORD PTR areareachability[rip], rax
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	AAS_SetWeaponJumpAreaFlags@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR aasworld[rip+4]
	add	eax, 2
	mov	DWORD PTR aasworld[rip], eax
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	ret
	.cfi_endproc
.LFE0:
	.size	AAS_InitReachability, .-AAS_InitReachability
	.comm	qtrue,4,4
	.comm	calcgrapplereach,8,8
	.comm	areareachability,8,8
	.comm	aasworld,32,32
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_be_aas_reach.c_AAS_InitReachability.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"forcereachability\000"
	.align	2
.LC1:
	.ascii	"grapplereach\000"
	.text
	.align	2
	.global	AAS_InitReachability
	.syntax unified
	.arm
	.fpu softvfp
	.type	AAS_InitReachability, %function
AAS_InitReachability:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L13
	ldr	r3, [r4, #16]
	cmp	r3, #0
	popeq	{r4, pc}
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L13+4
	bl	LibVarGetValue
	cmp	r0, #0
	beq	.L12
.L3:
	ldr	r0, .L13+8
	bl	LibVarGetValue
	mov	r3, #1
	ldr	r2, .L13+12
	ldr	r1, .L13+16
	ldr	r2, [r2]
	str	r3, [r4]
	str	r2, [r4, #8]
	str	r0, [r1]
	bl	AAS_SetupReachabilityHeap
	ldr	r0, [r4, #4]
	lsl	r0, r0, #2
	bl	GetClearedMemory
	pop	{r4, lr}
	ldr	r3, .L13+20
	str	r0, [r3]
	b	AAS_SetWeaponJumpAreaFlags
.L12:
	ldr	r3, [r4, #4]
	add	r3, r3, #2
	str	r3, [r4]
	pop	{r4, pc}
.L14:
	.align	2
.L13:
	.word	aasworld
	.word	.LC0
	.word	.LC1
	.word	qtrue
	.word	calcgrapplereach
	.word	areareachability
	.size	AAS_InitReachability, .-AAS_InitReachability
	.comm	qtrue,4,4
	.comm	calcgrapplereach,4,4
	.comm	areareachability,4,4
	.comm	aasworld,20,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
