	.file	"extr_p_enemy.c_A_BrainExplode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	A_BrainExplode
	.type	A_BrainExplode, @function
A_BrainExplode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebp, DWORD PTR [rdi]
	call	P_Random@PLT
	mov	ebx, eax
	xor	eax, eax
	call	P_Random@PLT
	mov	r12d, DWORD PTR 4[r12]
	sub	ebx, eax
	xor	eax, eax
	call	P_Random@PLT
	imul	eax, DWORD PTR FRACUNIT[rip]
	sal	ebx, 11
	mov	esi, r12d
	mov	ecx, DWORD PTR MT_ROCKET[rip]
	add	ebp, ebx
	mov	edi, ebp
	lea	edx, 128[rax+rax]
	call	P_SpawnMobj@PLT
	mov	rbx, rax
	xor	eax, eax
	call	P_Random@PLT
	mov	esi, DWORD PTR S_BRAINEXPLODE1[rip]
	mov	rdi, rbx
	sal	eax, 9
	mov	DWORD PTR 8[rbx], eax
	call	P_SetMobjState@PLT
	xor	eax, eax
	call	P_Random@PLT
	mov	ecx, DWORD PTR 12[rbx]
	mov	edx, 1
	and	eax, 7
	sub	ecx, eax
	mov	eax, ecx
	test	ecx, ecx
	cmovle	eax, edx
	mov	DWORD PTR 12[rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	A_BrainExplode, .-A_BrainExplode
	.comm	S_BRAINEXPLODE1,4,4
	.comm	MT_ROCKET,4,4
	.comm	FRACUNIT,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_p_enemy.c_A_BrainExplode.c"
	.text
	.align	2
	.global	A_BrainExplode
	.syntax unified
	.arm
	.fpu softvfp
	.type	A_BrainExplode, %function
A_BrainExplode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r6, [r0]
	bl	P_Random
	mov	r4, r0
	bl	P_Random
	ldr	r5, [r5, #4]
	sub	r4, r4, r0
	bl	P_Random
	ldr	r2, .L6
	ldr	r3, .L6+4
	ldr	r2, [r2]
	add	r4, r6, r4, lsl #11
	mul	r2, r0, r2
	add	r2, r2, #64
	lsl	r2, r2, #1
	mov	r1, r5
	ldr	r3, [r3]
	mov	r0, r4
	bl	P_SpawnMobj
	mov	r4, r0
	bl	P_Random
	ldr	r3, .L6+8
	lsl	r0, r0, #9
	ldr	r1, [r3]
	str	r0, [r4, #8]
	mov	r0, r4
	bl	P_SetMobjState
	bl	P_Random
	ldr	r3, [r4, #12]
	and	r0, r0, #7
	sub	r0, r3, r0
	cmp	r0, #0
	movle	r3, #1
	strgt	r0, [r4, #12]
	strle	r3, [r4, #12]
	pop	{r4, r5, r6, pc}
.L7:
	.align	2
.L6:
	.word	FRACUNIT
	.word	MT_ROCKET
	.word	S_BRAINEXPLODE1
	.size	A_BrainExplode, .-A_BrainExplode
	.comm	S_BRAINEXPLODE1,4,4
	.comm	MT_ROCKET,4,4
	.comm	FRACUNIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
