	.file	"extr_p_enemy.c_A_PainShootSkull.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	A_PainShootSkull
	.type	A_PainShootSkull, @function
A_PainShootSkull:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR thinkercap[rip]
	lea	rcx, thinkercap[rip]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r9, QWORD PTR MT_SKULL[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	rax, rcx
	je	.L2
	mov	rdi, QWORD PTR P_MobjThinker[rip]
	xor	r8d, r8d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, QWORD PTR [rax]
	cmp	QWORD PTR 8[rax], rdi
	jne	.L3
	xor	eax, eax
	cmp	rdx, r9
	sete	al
	add	r8d, eax
.L3:
	mov	rax, rdx
	cmp	rdx, rcx
	jne	.L4
	cmp	r8d, 20
	jle	.L2
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdx, QWORD PTR mobjinfo[rip]
	mov	rax, QWORD PTR 40[rbp]
	mov	rcx, QWORD PTR ANGLETOFINESHIFT[rip]
	mov	r13, QWORD PTR 24[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, DWORD PTR [rdx+r9*4]
	lea	edx, [rax+rax*2]
	shr	rsi, cl
	mov	eax, edx
	mov	r12, rsi
	shr	eax, 31
	add	eax, edx
	mov	edx, DWORD PTR FRACUNIT[rip]
	sar	eax
	lea	r14d, [rax+rdx*4]
	mov	rax, QWORD PTR finecosine[rip]
	mov	edi, r14d
	mov	esi, DWORD PTR [rax+rsi*4]
	call	FixedMul@PLT
	mov	edi, r14d
	mov	rbx, QWORD PTR 16[rbp]
	add	r13, rax
	mov	rax, QWORD PTR finesine[rip]
	mov	esi, DWORD PTR [rax+r12*4]
	call	FixedMul@PLT
	mov	ecx, DWORD PTR FRACUNIT[rip]
	mov	rdi, r13
	lea	rsi, [rbx+rax]
	lea	edx, 0[0+rcx*8]
	mov	rcx, QWORD PTR MT_SKULL[rip]
	movsx	rdx, edx
	add	rdx, QWORD PTR 32[rbp]
	call	P_SpawnMobj@PLT
	mov	rdx, QWORD PTR 16[rax]
	mov	rsi, QWORD PTR 24[rax]
	mov	rdi, rax
	mov	r12, rax
	call	P_TryMove@PLT
	test	eax, eax
	je	.L10
	mov	eax, DWORD PTR 8[rbp]
	mov	rdi, r12
	mov	DWORD PTR 8[r12], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	A_SkullAttack@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdx, rbp
	mov	rsi, rbp
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	ecx, 10000
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	P_DamageMobj@PLT
	.cfi_endproc
.LFE0:
	.size	A_PainShootSkull, .-A_PainShootSkull
	.comm	thinkercap,16,16
	.comm	mobjinfo,8,8
	.comm	finesine,8,8
	.comm	finecosine,8,8
	.comm	P_MobjThinker,8,8
	.comm	MT_SKULL,8,8
	.comm	FRACUNIT,4,4
	.comm	ANGLETOFINESHIFT,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_PainShootSkull.c"
	.text
	.align	2
	.global	A_PainShootSkull
	.syntax unified
	.arm
	.fpu softvfp
	.type	A_PainShootSkull, %function
A_PainShootSkull:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L11
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [ip]
	ldr	r5, .L11+4
	cmp	r3, ip
	mov	r4, r0
	ldr	r0, [r5]
	beq	.L2
	mov	r6, #0
	ldr	r2, .L11+8
	ldr	lr, [r2]
.L4:
	ldr	r2, [r3, #4]
	ldr	r3, [r3]
	cmp	r2, lr
	bne	.L3
	cmp	r3, r0
	addeq	r6, r6, #1
.L3:
	cmp	r3, ip
	bne	.L4
	cmp	r6, #20
	popgt	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L11+12
	ldr	r2, [r4, #20]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r3, [r3, r0, lsl #2]
	ldr	r7, .L11+16
	ldr	r0, .L11+20
	ldr	r6, [r7]
	add	r3, r3, r2
	ldr	r2, .L11+24
	ldr	r9, [r0]
	add	r3, r3, r3, lsl #1
	ldr	r2, [r2]
	add	r3, r3, r3, lsr #31
	lsl	r6, r6, #2
	add	r6, r6, r3, asr #1
	lsr	r9, r1, r9
	ldr	r1, [r2, r9, lsl #2]
	mov	r0, r6
	ldr	r8, [r4, #12]
	bl	FixedMul
	mov	r2, r0
	ldr	r3, .L11+28
	mov	r0, r6
	ldr	r3, [r3]
	add	r6, r8, r2
	ldr	r1, [r3, r9, lsl #2]
	ldr	r8, [r4, #8]
	bl	FixedMul
	mov	r1, r0
	ldr	ip, [r7]
	ldr	r2, [r4, #16]
	ldr	r3, [r5]
	add	r2, r2, ip, lsl #3
	add	r1, r8, r1
	mov	r0, r6
	bl	P_SpawnMobj
	ldr	r2, [r0, #8]
	ldr	r1, [r0, #12]
	mov	r5, r0
	bl	P_TryMove
	cmp	r0, #0
	beq	.L10
	ldr	r3, [r4, #4]
	mov	r0, r5
	str	r3, [r5, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	A_SkullAttack
.L10:
	mov	r0, r5
	mov	r2, r4
	mov	r1, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L11+32
	b	P_DamageMobj
.L12:
	.align	2
.L11:
	.word	thinkercap
	.word	MT_SKULL
	.word	P_MobjThinker
	.word	mobjinfo
	.word	FRACUNIT
	.word	ANGLETOFINESHIFT
	.word	finecosine
	.word	finesine
	.word	10000
	.size	A_PainShootSkull, .-A_PainShootSkull
	.comm	thinkercap,8,4
	.comm	mobjinfo,4,4
	.comm	finesine,4,4
	.comm	finecosine,4,4
	.comm	P_MobjThinker,4,4
	.comm	MT_SKULL,4,4
	.comm	FRACUNIT,4,4
	.comm	ANGLETOFINESHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
