	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Use_Shooter                    ## -- Begin function Use_Shooter
	.p2align	4, 0x90
_Use_Shooter:                           ## @Use_Shooter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_VectorSubtract
	callq	_VectorNormalize
	jmp	LBB0_3
LBB0_2:
	movl	12(%rbx), %edi
	callq	_VectorCopy
LBB0_3:
	callq	_PerpendicularVector
	callq	_CrossProduct
	xorl	%eax, %eax
	callq	_crandom
	mulss	(%rbx), %xmm0
	callq	_VectorMA
	xorl	%eax, %eax
	callq	_crandom
	mulss	(%rbx), %xmm0
	callq	_VectorMA
	callq	_VectorNormalize
	movl	4(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$129, %eax
	je	LBB0_8
## %bb.5:
	cmpl	$130, %eax
	jne	LBB0_9
## %bb.6:
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_fire_grenade
	jmp	LBB0_9
LBB0_7:
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_fire_rocket
	jmp	LBB0_9
LBB0_8:
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_fire_plasma
LBB0_9:
	movq	_EV_FIRE_WEAPON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_G_AddEvent                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_FIRE_WEAPON,4,2             ## @EV_FIRE_WEAPON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Use_Shooter                    ; -- Begin function Use_Shooter
	.p2align	2
_Use_Shooter:                           ; @Use_Shooter
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	bl	_VectorSubtract
	bl	_VectorNormalize
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #12]
	bl	_VectorCopy
LBB0_3:
	bl	_PerpendicularVector
	bl	_CrossProduct
	bl	_crandom
	ldr	s1, [x19]
	fmul	s0, s0, s1
	bl	_VectorMA
	bl	_crandom
	ldr	s1, [x19]
	fmul	s0, s0, s1
	bl	_VectorMA
	bl	_VectorNormalize
	ldr	w8, [x19, #4]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.6:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_fire_grenade
	b	LBB0_9
LBB0_7:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_fire_rocket
	b	LBB0_9
LBB0_8:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_fire_plasma
LBB0_9:
Lloh0:
	adrp	x8, _EV_FIRE_WEAPON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_FIRE_WEAPON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_G_AddEvent
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_FIRE_WEAPON,4,2             ; @EV_FIRE_WEAPON
.subsections_via_symbols
