	.file	"extr_cg_weapons.c_CG_GrappleTrail.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	CG_GrappleTrail
	.type	CG_GrappleTrail, @function
CG_GrappleTrail:
.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
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	edx, ebp
	mov	rbx, rdi
	add	rdi, 8
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR cg[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	call	BG_EvaluateTrajectory@PLT
	mov	eax, DWORD PTR cg[rip]
	xor	esi, esi
	mov	rdi, r13
	mov	edx, 40
	mov	DWORD PTR 16[rbx], eax
	call	memset@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR cg_entities[rip]
	mov	rsi, QWORD PTR [rsp]
	mov	edi, DWORD PTR 4[rax+rdx*8]
	call	VectorCopy@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rdx, QWORD PTR [rbx]
	xor	esi, esi
	mov	ecx, r12d
	add	DWORD PTR 8[rax], 26
	mov	rax, QWORD PTR cg_entities[rip]
	mov	edi, DWORD PTR [rax+rdx*8]
	xor	edx, edx
	call	AngleVectors@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	edx, r12d
	mov	esi, -6
	mov	rcx, rdi
	call	VectorMA@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	edi, ebp
	call	VectorCopy@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR [rsp]
	call	Distance@PLT
	cmp	eax, 63
	jle	.L1
	mov	eax, DWORD PTR RT_LIGHTNING[rip]
	mov	edi, DWORD PTR 24[rsp]
	mov	DWORD PTR 32[rsp], eax
	mov	eax, DWORD PTR cgs[rip]
	mov	DWORD PTR 28[rsp], eax
	call	AxisClear@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	rdi, r13
	movabs	rdx, 1095216660735
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rdx
	call	trap_R_AddRefEntityToScene@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	CG_GrappleTrail, .-CG_GrappleTrail
	.comm	cgs,4,4
	.comm	cg_entities,8,8
	.comm	cg,4,4
	.comm	RT_LIGHTNING,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_cg_weapons.c_CG_GrappleTrail.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CG_GrappleTrail
	.syntax unified
	.arm
	.fpu softvfp
	.type	CG_GrappleTrail, %function
CG_GrappleTrail:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, #0
	mov	r5, r0
	ldr	r9, .L8
	ldr	r3, .L8+4
	ldr	r8, .L8+8
	sub	sp, sp, #36
	mov	r2, r6
	ldr	r1, [r9]
	add	r0, r0, #4
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	BG_EvaluateTrajectory
	ldr	r1, [r5]
	ldr	r2, [r8]
	ldr	r3, [r9]
	add	r2, r2, r1, lsl #3
	str	r6, [sp, #4]
	str	r6, [sp, #8]
	str	r6, [sp, #12]
	str	r6, [sp, #16]
	str	r6, [sp, #20]
	str	r6, [sp, #24]
	mov	r1, r6
	ldr	r0, [r2, #4]
	str	r3, [r5, #8]
	bl	VectorCopy
	ldr	r3, [sp, #4]
	ldr	r0, [r5]
	ldr	r2, [r3, #8]
	ldr	r1, [r8]
	add	r2, r2, #26
	str	r2, [r3, #8]
	ldr	r0, [r1, r0, lsl #3]
	mov	r2, r6
	mov	r3, r6
	mov	r1, r6
	bl	AngleVectors
	ldr	r3, [sp, #4]
	mov	r2, r6
	mov	r0, r3
	mvn	r1, #5
	bl	VectorMA
	ldr	r1, [sp, #8]
	mov	r0, r6
	bl	VectorCopy
	ldmib	sp, {r0, r1}
	bl	Distance
	cmp	r0, #63
	ble	.L1
	ldr	r2, .L8+12
	ldr	r3, .L8+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [sp, #16]
	str	r2, [sp, #24]
	str	r3, [sp, #20]
	bl	AxisClear
	mov	r2, #255
	ldr	r3, [sp, #12]
	add	r0, sp, #4
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	bl	trap_R_AddRefEntityToScene
.L1:
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	cg
	.word	.LC0
	.word	cg_entities
	.word	RT_LIGHTNING
	.word	cgs
	.size	CG_GrappleTrail, .-CG_GrappleTrail
	.comm	cgs,4,4
	.comm	cg_entities,4,4
	.comm	cg,4,4
	.comm	RT_LIGHTNING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
