	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_GunShot                      ## -- Begin function P_GunShot
	.p2align	4, 0x90
_P_GunShot:                             ## @P_GunShot
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_P_Random
	movl	%eax, %r12d
	movl	(%r14), %r15d
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_P_Random
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_P_Random
	subl	%eax, %ebx
	shll	$18, %ebx
	addl	%ebx, %r15d
LBB0_2:
	movslq	%r12d, %rax
	imulq	$1431655766, %rax, %rcx         ## imm = 0x55555556
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	addl	%edx, %ecx
	leal	(%rcx,%rcx,2), %ecx
	subl	%ecx, %eax
	leal	(%rax,%rax,4), %r8d
	addl	$5, %r8d
	movq	_MISSILERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_bulletslope@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_P_LineAttack                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MISSILERANGE,4,2               ## @MISSILERANGE
	.comm	_bulletslope,4,2                ## @bulletslope
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_GunShot                      ; -- Begin function P_GunShot
	.p2align	2
_P_GunShot:                             ; @P_GunShot
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x1
	mov	x19, x0
	bl	_P_Random
	mov	x21, x0
	ldr	w20, [x19]
	cbnz	w22, LBB0_2
; %bb.1:
	bl	_P_Random
	mov	x22, x0
	bl	_P_Random
	sub	w8, w22, w0
	add	w20, w20, w8, lsl #18
LBB0_2:
	mov	w8, #21846
	movk	w8, #21845, lsl #16
	smull	x8, w21, w8
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	add	w8, w8, w8, lsl #1
	sub	w8, w21, w8
	add	w8, w8, w8, lsl #2
	add	w4, w8, #5
Lloh0:
	adrp	x8, _MISSILERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MISSILERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _bulletslope@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bulletslope@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_P_LineAttack
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MISSILERANGE,4,2               ; @MISSILERANGE
	.comm	_bulletslope,4,2                ; @bulletslope
.subsections_via_symbols
