	.file	"extr_be_aas_cluster.c_AAS_CountForcedClusterPortals.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"area %d is a forced portal area\r\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%6d forced portal areas\n"
	.text
	.p2align 4
	.globl	AAS_CountForcedClusterPortals
	.type	AAS_CountForcedClusterPortals, @function
AAS_CountForcedClusterPortals:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	DWORD PTR aasworld[rip], 1
	jle	.L5
	xor	eax, eax
	xor	r13d, r13d
	mov	esi, 1
	lea	r12, aasworld[rip]
	lea	rbp, .LC0[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, rbx
	lea	esi, 1[rbx]
	cmp	DWORD PTR [r12], esi
	jle	.L2
.L4:
	lea	rbx, 1[rax]
	mov	rax, QWORD PTR aasworld[rip+8]
	mov	eax, DWORD PTR [rax+rbx*4]
	test	DWORD PTR AREACONTENTS_CLUSTERPORTAL[rip], eax
	je	.L3
	mov	rdi, rbp
	add	r13d, 1
	call	Log_Write@PLT
	mov	rax, rbx
	lea	esi, 1[rbx]
	cmp	DWORD PTR [r12], esi
	jg	.L4
.L2:
	mov	edi, DWORD PTR PRT_MESSAGE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r13d
	lea	rsi, .LC1[rip]
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	[QWORD PTR botimport[rip]]
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	r13d, r13d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	AAS_CountForcedClusterPortals, .-AAS_CountForcedClusterPortals
	.comm	botimport,8,8
	.comm	aasworld,16,16
	.comm	PRT_MESSAGE,4,4
	.comm	AREACONTENTS_CLUSTERPORTAL,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_cluster.c_AAS_CountForcedClusterPortals.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"area %d is a forced portal area\015\012\000"
	.align	2
.LC1:
	.ascii	"%6d forced portal areas\012\000"
	.text
	.align	2
	.global	AAS_CountForcedClusterPortals
	.syntax unified
	.arm
	.fpu softvfp
	.type	AAS_CountForcedClusterPortals, %function
AAS_CountForcedClusterPortals:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L12
	ldr	r3, [r5]
	cmp	r3, #1
	ble	.L5
	mov	r4, #1
	mov	r7, #0
	ldr	r6, .L12+4
	ldr	r8, .L12+8
	b	.L4
.L3:
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L2
.L4:
	ldr	r1, [r5, #4]
	ldr	r3, [r6]
	ldr	r1, [r1, r4, lsl #2]
	tst	r1, r3
	beq	.L3
	mov	r1, r4
	mov	r0, r8
	bl	Log_Write
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	add	r7, r7, #1
	bgt	.L4
.L2:
	ldr	r1, .L12+12
	ldr	r3, .L12+16
	mov	r2, r7
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r1, .L12+20
	bx	r3
.L5:
	mov	r7, #0
	b	.L2
.L13:
	.align	2
.L12:
	.word	aasworld
	.word	AREACONTENTS_CLUSTERPORTAL
	.word	.LC0
	.word	PRT_MESSAGE
	.word	botimport
	.word	.LC1
	.size	AAS_CountForcedClusterPortals, .-AAS_CountForcedClusterPortals
	.comm	botimport,4,4
	.comm	aasworld,8,4
	.comm	PRT_MESSAGE,4,4
	.comm	AREACONTENTS_CLUSTERPORTAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
