	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function CG_GrappleTrail
LCPI0_0:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_GrappleTrail
	.p2align	4, 0x90
_CG_GrappleTrail:                       ## @CG_GrappleTrail
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$8, %rdi
	movq	_cg@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_BG_EvaluateTrajectory
	movl	(%r14), %eax
	movl	%eax, 16(%rbx)
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_cg_entities@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movl	4(%rax,%rcx,8), %edi
	movq	-56(%rbp), %rsi
	callq	_VectorCopy
	movq	-56(%rbp), %rax
	addl	$26, 8(%rax)
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,8), %edi
	xorl	%edx, %edx
	callq	_AngleVectors
	movq	-56(%rbp), %rcx
	movq	%rcx, %rdi
	movl	$-6, %esi
	callq	_VectorMA
	movq	-48(%rbp), %rsi
	callq	_VectorCopy
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	callq	_Distance
	cmpl	$64, %eax
	jl	LBB0_2
## %bb.1:
	movq	_RT_LIGHTNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_cgs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	-32(%rbp), %edi
	callq	_AxisClear
	movq	-40(%rbp), %rax
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [255,255,255,255]
	movups	%xmm0, (%rax)
	leaq	-56(%rbp), %rdi
	callq	_trap_R_AddRefEntityToScene
LBB0_2:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,4,2                         ## @cg
	.comm	_cg_entities,8,3                ## @cg_entities
	.comm	_RT_LIGHTNING,4,2               ## @RT_LIGHTNING
	.comm	_cgs,4,2                        ## @cgs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_GrappleTrail                ; -- Begin function CG_GrappleTrail
	.p2align	2
_CG_GrappleTrail:                       ; @CG_GrappleTrail
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #8
Lloh0:
	adrp	x20, _cg@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cg@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_BG_EvaluateTrajectory
	ldr	w8, [x20]
	str	w8, [x19, #16]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh2:
	adrp	x20, _cg_entities@GOTPAGE
Lloh3:
	ldr	x20, [x20, _cg_entities@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #3
	ldr	w0, [x8, #4]
	ldr	x1, [sp, #8]
	bl	_VectorCopy
	ldr	x8, [sp, #8]
	ldr	w9, [x8, #8]
	add	w9, w9, #26
	str	w9, [x8, #8]
	ldr	x8, [x20]
	ldr	x9, [x19]
	lsl	x9, x9, #3
	ldr	w0, [x8, x9]
	mov	x2, #0
	bl	_AngleVectors
	ldr	x0, [sp, #8]
	mov	w1, #-6
	mov	x3, x0
	bl	_VectorMA
	ldr	x1, [sp, #16]
	bl	_VectorCopy
	ldp	x0, x1, [sp, #8]
	bl	_Distance
	cmp	w0, #64
	b.lt	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _RT_LIGHTNING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RT_LIGHTNING@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _cgs@GOTPAGE
Lloh8:
	ldr	x9, [x9, _cgs@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #36]
	ldr	w0, [sp, #32]
	bl	_AxisClear
	ldr	x8, [sp, #24]
	movi.2d	v0, #0x0000ff000000ff
	str	q0, [x8]
	add	x0, sp, #8
	bl	_trap_R_AddRefEntityToScene
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,4,2                         ; @cg
	.comm	_cg_entities,8,3                ; @cg_entities
	.comm	_RT_LIGHTNING,4,2               ; @RT_LIGHTNING
	.comm	_cgs,4,2                        ; @cgs
.subsections_via_symbols
