// File: /workspace/github_c_makefile_star2_O0/QwazyWabbitWOS[P]lmctf60/p_weapon.c
// Function: Blaster_Fire
void Blaster_Fire (edict_t *ent, vec3_t g_offset, int damage, qboolean hyper, int effect)
{
	vec3_t	forward, right;
	vec3_t	start;
	vec3_t	offset;

	if (is_quad)
		damage *= 4;
	AngleVectors (ent->client->v_angle, forward, right, NULL);
	VectorSet(offset, 24, 8, ent->viewheight-8);
	VectorAdd (offset, g_offset, offset);
	P_ProjectSource (ent->client, ent->s.origin, offset, forward, right, start);

	VectorScale (forward, -2, ent->client->kick_origin);
	ent->client->kick_angles[0] = -1;

	fire_blaster (ent, start, forward, damage, 1000, effect, hyper);

	// send muzzle flash
	gi.WriteByte (svc_muzzleflash);
	gi.WriteShort (ent-g_edicts);
	if (hyper)
		gi.WriteByte (MZ_HYPERBLASTER | is_silenced);
	else
		gi.WriteByte (MZ_BLASTER | is_silenced);
	gi.multicast (ent->s.origin, MULTICAST_PVS);

	PlayerNoise(ent, start, PNOISE_WEAPON);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl %r8d, -0x1c(%rbp)
cmpl $0x0, 0x4b293(%rip)     # 0xb3264
je 0x67fdc
movl -0x14(%rbp), %eax
shll $0x2, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rdi
addq $0xebc, %rdi            # imm = 0xEBC
leaq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x183e0
movss 0x8488(%rip), %xmm0     # 0x7048c
movss %xmm0, -0x4c(%rbp)
movss 0x7eeb(%rip), %xmm0     # 0x6fefc
movss %xmm0, -0x48(%rbp)
movq -0x8(%rbp), %rax
movl 0x278(%rax), %eax
subl $0x8, %eax
cvtsi2ss %eax, %xmm0
movss %xmm0, -0x44(%rbp)
movss -0x4c(%rbp), %xmm0
movq -0x10(%rbp), %rax
addss (%rax), %xmm0
movss %xmm0, -0x4c(%rbp)
movss -0x48(%rbp), %xmm0
movq -0x10(%rbp), %rax
addss 0x4(%rax), %xmm0
movss %xmm0, -0x48(%rbp)
movss -0x44(%rbp), %xmm0
movq -0x10(%rbp), %rax
addss 0x8(%rax), %xmm0
movss %xmm0, -0x44(%rbp)
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rdi
movq -0x8(%rbp), %rsi
addq $0x4, %rsi
leaq -0x4c(%rbp), %rdx
leaq -0x28(%rbp), %rcx
leaq -0x34(%rbp), %r8
leaq -0x40(%rbp), %r9
callq 0x67590
leaq -0x28(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rsi
addq $0xe88, %rsi            # imm = 0xE88
movss 0x9370(%rip), %xmm0     # 0x71414
callq 0x18a80
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movss 0xaacf(%rip), %xmm0     # 0x72b88
movss %xmm0, 0xe7c(%rax)
movq -0x8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
leaq -0x28(%rbp), %rdx
movl -0x14(%rbp), %ecx
movl -0x1c(%rbp), %r9d
movl -0x18(%rbp), %eax
movl $0x3e8, %r8d            # imm = 0x3E8
movl %eax, (%rsp)
callq 0x18a50
movl $0x1, %edi
movq 0x1a50f(%rip), %rax     # 0x82600
callq *0xc8(%rax)
movq 0x1a502(%rip), %rax     # 0x82600
movq 0xd0(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rax
movq 0x1a444(%rip), %rcx     # 0x82558
movq (%rcx), %rcx
subq %rcx, %rax
movl $0x4a8, %ecx            # imm = 0x4A8
cqto
idivq %rcx
movq %rax, %rcx
movq -0x58(%rbp), %rax
movl %ecx, %edi
callq *%rax
cmpl $0x0, -0x18(%rbp)
je 0x68151
movq 0x1a4c4(%rip), %rax     # 0x82600
movq 0xc8(%rax), %rax
movzbl 0x4b11e(%rip), %edi     # 0xb3268
orl $0xe, %edi
callq *%rax
jmp 0x6816b
movq 0x1a4a8(%rip), %rax     # 0x82600
movq 0xc8(%rax), %rax
movzbl 0x4b102(%rip), %edi     # 0xb3268
orl $0x0, %edi
callq *%rax
movq 0x1a48e(%rip), %rax     # 0x82600
movq 0xb0(%rax), %rax
movq -0x8(%rbp), %rdi
addq $0x4, %rdi
movl $0x2, %esi
callq *%rax
movq -0x8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
movl $0x1, %edx
callq 0x19080
addq $0x60, %rsp
popq %rbp
retq