	.file	"extr_be_aas_debug.c_AAS_FloodAreas_r.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	AAS_FloodAreas_r
	.type	AAS_FloodAreas_r, @function
AAS_FloodAreas_r:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	mov	esi, 1
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR qtrue[rip]
	call	AAS_ShowAreaPolygons@PLT
	mov	rdx, QWORD PTR aasworld[rip+32]
	movsx	rax, r14d
	lea	r13, [rdx+rax*8]
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR aasworld[rip]
	mov	r10d, DWORD PTR 0[r13]
	lea	r12, [rax+rdx*4]
	test	r10d, r10d
	jle	.L2
	xor	ebp, ebp
.L7:
	mov	eax, DWORD PTR 4[r13]
	mov	rcx, QWORD PTR aasworld[rip+24]
	add	eax, ebp
	cdqe
	mov	edx, DWORD PTR [rcx+rax*4]
	mov	esi, DWORD PTR [rcx+rax*4]
	sar	edx, 31
	xor	esi, edx
	mov	eax, esi
	sub	eax, edx
	mov	rdx, QWORD PTR aasworld[rip+16]
	cdqe
	lea	rax, [rdx+rax*8]
	mov	edi, DWORD PTR [rax]
	cmp	edi, r14d
	jne	.L3
	mov	edi, DWORD PTR 4[rax]
.L3:
	test	edi, edi
	je	.L5
	movsx	rax, edi
	lea	rdx, [r15+rax*4]
	mov	r9d, DWORD PTR [rdx]
	test	r9d, r9d
	jne	.L5
	mov	r8, QWORD PTR aasworld[rip]
	mov	ecx, DWORD PTR qtrue[rip]
	lea	rax, [rax+rax*2]
	lea	rax, [r8+rax*4]
	mov	DWORD PTR [rdx], ecx
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR AREACONTENTS_VIEWPORTAL[rip], eax
	jne	.L5
	mov	DWORD PTR 12[rsp], edi
	call	AAS_AreaCluster@PLT
	mov	edi, DWORD PTR 12[rsp]
	cmp	eax, ebx
	jne	.L5
	mov	rdx, r15
	mov	esi, ebx
	call	AAS_FloodAreas_r
	.p2align 4,,10
	.p2align 3
.L5:
	add	ebp, 1
	cmp	DWORD PTR 0[r13], ebp
	jg	.L7
.L2:
	mov	esi, DWORD PTR 4[r12]
	test	esi, esi
	jle	.L1
	xor	ebp, ebp
	lea	r14, aasworld[rip]
.L12:
	mov	eax, DWORD PTR 8[r12]
	mov	rdx, QWORD PTR aasworld[rip+8]
	add	eax, ebp
	cdqe
	mov	r13d, DWORD PTR [rdx+rax*4]
	test	r13d, r13d
	je	.L10
	movsx	rax, r13d
	lea	rdx, [r15+rax*4]
	mov	ecx, DWORD PTR [rdx]
	test	ecx, ecx
	jne	.L10
	mov	ecx, DWORD PTR qtrue[rip]
	lea	rax, [rax+rax*2]
	mov	DWORD PTR [rdx], ecx
	mov	rdx, QWORD PTR [r14]
	lea	rax, [rdx+rax*4]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR AREACONTENTS_VIEWPORTAL[rip], eax
	jne	.L10
	mov	edi, r13d
	call	AAS_AreaCluster@PLT
	cmp	eax, ebx
	jne	.L10
	mov	rdx, r15
	mov	esi, ebx
	mov	edi, r13d
	call	AAS_FloodAreas_r
	.p2align 4,,10
	.p2align 3
.L10:
	add	ebp, 1
	cmp	DWORD PTR 4[r12], ebp
	jg	.L12
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	AAS_FloodAreas_r, .-AAS_FloodAreas_r
	.comm	qtrue,4,4
	.comm	aasworld,40,32
	.comm	AREACONTENTS_VIEWPORTAL,4,4
	.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_debug.c_AAS_FloodAreas_r.c"
	.text
	.align	2
	.global	AAS_FloodAreas_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	AAS_FloodAreas_r, %function
AAS_FloodAreas_r:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	ldr	r10, .L22
	ldr	r4, .L22+4
	mov	fp, r1
	mov	r6, r2
	mov	r1, #1
	ldr	r2, [r10]
	sub	sp, sp, #12
	bl	AAS_ShowAreaPolygons
	ldr	r7, [r4, #16]
	ldr	r9, [r4]
	ldr	r2, [r7, r8, lsl #3]
	add	r3, r8, r8, lsl #1
	cmp	r2, #0
	add	r7, r7, r8, lsl #3
	add	r9, r9, r3, lsl #2
	ble	.L2
	mov	r5, #0
	ldr	r3, .L22+8
.L7:
	ldr	r2, [r7, #4]
	ldr	r1, [r4, #12]
	add	r2, r5, r2
	ldr	r1, [r1, r2, lsl #2]
	ldr	r0, [r4, #8]
	cmp	r1, #0
	rsblt	r1, r1, #0
	ldr	r2, [r0, r1, lsl #3]
	add	r1, r0, r1, lsl #3
	cmp	r2, r8
	ldreq	r2, [r1, #4]
	add	r5, r5, #1
	cmp	r2, #0
	add	r1, r2, r2, lsl #1
	beq	.L5
	ldr	r0, [r6, r2, lsl #2]
	cmp	r0, #0
	bne	.L5
	ldr	ip, [r10]
	ldr	r0, [r4]
	str	ip, [r6, r2, lsl #2]
	ldr	r0, [r0, r1, lsl #2]
	ldr	r1, [r3]
	tst	r0, r1
	bne	.L5
	mov	r0, r2
	str	r2, [sp, #4]
	bl	AAS_AreaCluster
	cmp	r0, fp
	ldr	r2, [sp, #4]
	ldr	r3, .L22+8
	bne	.L5
	mov	r0, r2
	mov	r1, fp
	mov	r2, r6
	bl	AAS_FloodAreas_r
	ldr	r3, .L22+8
.L5:
	ldr	r2, [r7]
	cmp	r2, r5
	bgt	.L7
.L2:
	ldr	r2, [r9, #4]
	cmp	r2, #0
	ble	.L1
	mov	r7, #0
	ldr	r8, .L22+8
.L12:
	ldr	r3, [r9, #8]
	ldr	r1, [r4, #4]
	add	r3, r7, r3
	ldr	r5, [r1, r3, lsl #2]
	cmp	r5, #0
	add	r3, r5, r5, lsl #1
	beq	.L10
	ldr	r1, [r6, r5, lsl #2]
	cmp	r1, #0
	bne	.L10
	ldr	r1, [r10]
	ldr	r2, [r4]
	str	r1, [r6, r5, lsl #2]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [r8]
	tst	r2, r3
	bne	.L20
	mov	r0, r5
	bl	AAS_AreaCluster
	cmp	r0, fp
	bne	.L20
	mov	r0, r5
	mov	r2, r6
	mov	r1, fp
	bl	AAS_FloodAreas_r
.L20:
	ldr	r2, [r9, #4]
.L10:
	add	r7, r7, #1
	cmp	r2, r7
	bgt	.L12
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	.align	2
.L22:
	.word	qtrue
	.word	aasworld
	.word	AREACONTENTS_VIEWPORTAL
	.size	AAS_FloodAreas_r, .-AAS_FloodAreas_r
	.comm	qtrue,4,4
	.comm	aasworld,20,4
	.comm	AREACONTENTS_VIEWPORTAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
