	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_RunMissile                   ## -- Begin function G_RunMissile
	.p2align	4, 0x90
_G_RunMissile:                          ## @G_RunMissile
	.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	$40, %rdi
	movq	_level@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BG_EvaluateTrajectory
	movq	56(%rbx), %rax
	leaq	4(%rbx), %rcx
	testq	%rax, %rax
	cmovneq	%rax, %rcx
	movl	(%rcx), %r14d
	movl	16(%rbx), %edx
	movl	8(%rbx), %esi
	movl	12(%rbx), %ecx
	movl	20(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	-56(%rbp), %rdi
	movl	%r14d, %r9d
	callq	_trap_Trace
	movq	-40(%rbp), %rax
	orq	-24(%rbp), %rax
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %edx
	movl	8(%rbx), %esi
	movl	12(%rbx), %ecx
	movl	20(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	-56(%rbp), %rdi
	movl	%esi, %r8d
	movl	%r14d, %r9d
	callq	_trap_Trace
	movl	$0, -56(%rbp)
	jmp	LBB0_3
LBB0_2:
	movl	-32(%rbp), %edi
	movl	8(%rbx), %esi
	callq	_VectorCopy
LBB0_3:
	movq	%rbx, %rdi
	callq	_trap_LinkEntity
	cmpl	$1, -56(%rbp)
	jne	LBB0_4
LBB0_11:
	movq	%rbx, %rdi
	callq	_G_RunThink
	jmp	LBB0_12
LBB0_4:
	movq	_SURF_NOIMPACT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -52(%rbp)
	je	LBB0_10
## %bb.5:
	movq	48(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	cmpq	%rbx, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	$0, (%rax)
LBB0_9:
	movq	%rbx, %rdi
	callq	_G_FreeEntity
	jmp	LBB0_12
LBB0_10:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_G_MissileImpact
	movq	32(%rbx), %rax
	movq	_ET_MISSILE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
LBB0_12:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_level,4,2                      ## @level
	.comm	_SURF_NOIMPACT,4,2              ## @SURF_NOIMPACT
	.comm	_ET_MISSILE,8,3                 ## @ET_MISSILE
	.comm	_ENTITYNUM_NONE,4,2             ## @ENTITYNUM_NONE
	.comm	_WP_PROX_LAUNCHER,8,3           ## @WP_PROX_LAUNCHER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_RunMissile                   ; -- Begin function G_RunMissile
	.p2align	2
_G_RunMissile:                          ; @G_RunMissile
	.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, #40
Lloh0:
	adrp	x8, _level@GOTPAGE
Lloh1:
	ldr	x8, [x8, _level@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_BG_EvaluateTrajectory
	ldr	x8, [x19, #56]
	add	x9, x19, #4
	cmp	x8, #0
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
	ldp	w1, w3, [x19, #8]
	ldp	w2, w6, [x19, #16]
	add	x0, sp, #8
	mov	x5, x20
	bl	_trap_Trace
	ldr	x8, [sp, #24]
	ldr	x9, [sp, #40]
	orr	x8, x8, x9
	cbz	x8, LBB0_2
; %bb.1:
	ldp	w1, w3, [x19, #8]
	ldp	w2, w6, [x19, #16]
	add	x0, sp, #8
	mov	x4, x1
	mov	x5, x20
	bl	_trap_Trace
	str	wzr, [sp, #8]
	b	LBB0_3
LBB0_2:
	ldr	w0, [sp, #32]
	ldr	w1, [x19, #8]
	bl	_VectorCopy
LBB0_3:
	mov	x0, x19
	bl	_trap_LinkEntity
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.ne	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_G_RunThink
	b	LBB0_12
LBB0_5:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _SURF_NOIMPACT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SURF_NOIMPACT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.6:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	x9, [x8]
	cmp	x9, x19
	b.ne	LBB0_10
; %bb.9:
	str	xzr, [x8]
LBB0_10:
	mov	x0, x19
	bl	_G_FreeEntity
	b	LBB0_12
LBB0_11:
	add	x1, sp, #8
	mov	x0, x19
	bl	_G_MissileImpact
	ldr	x8, [x19, #32]
Lloh6:
	adrp	x9, _ET_MISSILE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ET_MISSILE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_level,4,2                      ; @level
	.comm	_SURF_NOIMPACT,4,2              ; @SURF_NOIMPACT
	.comm	_ET_MISSILE,8,3                 ; @ET_MISSILE
	.comm	_ENTITYNUM_NONE,4,2             ; @ENTITYNUM_NONE
	.comm	_WP_PROX_LAUNCHER,8,3           ; @WP_PROX_LAUNCHER
.subsections_via_symbols
