	.file	"extr_p_enemy.c_A_BrainAwake.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	A_BrainAwake
	.type	A_BrainAwake, @function
A_BrainAwake:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR thinkercap[rip+8]
	lea	rdx, thinkercap[rip]
	mov	QWORD PTR numbraintargets[rip], 0
	mov	QWORD PTR braintargeton[rip], 0
	cmp	rax, rdx
	je	.L5
	mov	rcx, QWORD PTR P_MobjThinker[rip]
	mov	rdi, QWORD PTR MT_BOSSTARGET[rip]
	mov	r8, QWORD PTR braintargets[rip]
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	QWORD PTR [rax], rcx
	jne	.L3
	cmp	rdi, QWORD PTR [rax]
	jne	.L3
	mov	rsi, QWORD PTR numbraintargets[rip]
	mov	QWORD PTR [r8+rsi*8], rax
	add	rsi, 1
	mov	QWORD PTR numbraintargets[rip], rsi
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, rdx
	jne	.L4
.L5:
	mov	esi, DWORD PTR sfx_bossit[rip]
	xor	edi, edi
	jmp	S_StartSound@PLT
	.cfi_endproc
.LFE0:
	.size	A_BrainAwake, .-A_BrainAwake
	.comm	thinkercap,16,16
	.comm	sfx_bossit,4,4
	.comm	numbraintargets,8,8
	.comm	braintargets,8,8
	.comm	braintargeton,8,8
	.comm	P_MobjThinker,8,8
	.comm	MT_BOSSTARGET,8,8
	.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_p_enemy.c_A_BrainAwake.c"
	.text
	.align	2
	.global	A_BrainAwake
	.syntax unified
	.arm
	.fpu softvfp
	.type	A_BrainAwake, %function
A_BrainAwake:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	ldr	r0, .L9
	push	{r4, r5, lr}
	ldr	r3, [r0, #4]
	ldr	r1, .L9+4
	ldr	lr, .L9+8
	cmp	r3, r0
	str	r2, [r1]
	str	r2, [lr]
	beq	.L5
	ldr	r1, .L9+12
	ldr	ip, .L9+16
	ldr	r2, .L9+20
	ldr	r1, [r1]
	ldr	ip, [ip]
	ldr	r5, [r2]
.L4:
	ldr	r2, [r3]
	cmp	r2, r1
	bne	.L3
	cmp	ip, r1
	ldreq	r2, [lr]
	addeq	r4, r2, #1
	streq	r3, [r5, r2, lsl #2]
	streq	r4, [lr]
.L3:
	ldr	r3, [r3, #4]
	cmp	r3, r0
	bne	.L4
.L5:
	pop	{r4, r5, lr}
	ldr	r3, .L9+24
	mov	r0, #0
	ldr	r1, [r3]
	b	S_StartSound
.L10:
	.align	2
.L9:
	.word	thinkercap
	.word	braintargeton
	.word	numbraintargets
	.word	P_MobjThinker
	.word	MT_BOSSTARGET
	.word	braintargets
	.word	sfx_bossit
	.size	A_BrainAwake, .-A_BrainAwake
	.comm	thinkercap,8,4
	.comm	sfx_bossit,4,4
	.comm	numbraintargets,4,4
	.comm	braintargets,4,4
	.comm	braintargeton,4,4
	.comm	P_MobjThinker,4,4
	.comm	MT_BOSSTARGET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
