	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_SpawnPlayerMissile           ## -- Begin function P_SpawnPlayerMissile
	.p2align	4, 0x90
_P_SpawnPlayerMissile:                  ## @P_SpawnPlayerMissile
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r13
	movl	(%rdi), %r15d
	movq	_FRACUNIT@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	shll	$10, %edx
	movl	%r15d, %esi
	callq	_P_AimLineAttack
	movq	_linetarget@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	je	LBB0_2
## %bb.1:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	leal	67108864(%r15), %ebx
	movl	(%r14), %edx
	shll	$10, %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_P_AimLineAttack
	cmpl	$0, (%r12)
	je	LBB0_4
## %bb.3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r15d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_7
LBB0_4:
	addl	$-67108864, %r15d               ## imm = 0xFC000000
	movl	(%r14), %edx
	shll	$10, %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_P_AimLineAttack
	cmpl	$0, (%r12)
	jne	LBB0_6
## %bb.5:
	movl	(%r13), %r15d
	xorl	%eax, %eax
LBB0_6:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_FRACUNIT@GOTPCREL(%rip), %r14
LBB0_7:
	movq	56(%r13), %rsi
	movq	64(%r13), %rdi
	movslq	(%r14), %rdx
	shlq	$5, %rdx
	addq	48(%r13), %rdx
	movl	%ebx, %ecx
	callq	_P_SpawnMobj
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_S_StartSound
	movq	8(%rbx), %rax
LBB0_9:
	movq	%r13, 40(%rbx)
	movl	%r15d, (%rbx)
	movl	(%rax), %edi
	movq	_ANGLETOFINESHIFT@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	movl	%r15d, %eax
	sarl	%cl, %eax
	movq	_finecosine@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rsi
	callq	_FixedMul
	movq	%rax, 32(%rbx)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movb	(%r12), %cl
	sarl	%cl, %r15d
	movq	_finesine@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movq	(%rax,%rcx,8), %rsi
	callq	_FixedMul
	movq	%rax, 24(%rbx)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_FixedMul
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_P_CheckMissileSpawn            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FRACUNIT,4,2                   ## @FRACUNIT
	.comm	_linetarget,4,2                 ## @linetarget
	.comm	_finecosine,8,3                 ## @finecosine
	.comm	_ANGLETOFINESHIFT,4,2           ## @ANGLETOFINESHIFT
	.comm	_finesine,8,3                   ## @finesine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_SpawnPlayerMissile           ; -- Begin function P_SpawnPlayerMissile
	.p2align	2
_P_SpawnPlayerMissile:                  ; @P_SpawnPlayerMissile
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x21, x0
	ldr	w19, [x0]
Lloh0:
	adrp	x24, _FRACUNIT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FRACUNIT@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	w2, w8, #10
	mov	x1, x19
	bl	_P_AimLineAttack
Lloh2:
	adrp	x25, _linetarget@GOTPAGE
Lloh3:
	ldr	x25, [x25, _linetarget@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	w8, LBB0_2
LBB0_1:
	mov	x20, x0
	b	LBB0_4
LBB0_2:
	mov	w8, #67108864
	add	w23, w19, w8
	ldr	w8, [x24]
	lsl	w2, w8, #10
	mov	x0, x21
	mov	x1, x23
	bl	_P_AimLineAttack
	ldr	w8, [x25]
	cbz	w8, LBB0_7
; %bb.3:
	mov	x20, x0
	mov	x19, x23
LBB0_4:
	ldp	x1, x0, [x21, #56]
	ldr	x8, [x21, #48]
	ldrsw	x9, [x24]
	add	x2, x8, x9, lsl #5
	mov	x3, x22
	bl	_P_SpawnMobj
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_6
; %bb.5:
	mov	x0, x22
	bl	_S_StartSound
	ldr	x8, [x22, #8]
LBB0_6:
	str	x21, [x22, #40]
	str	w19, [x22]
	ldr	w0, [x8]
Lloh4:
	adrp	x8, _finecosine@GOTPAGE
Lloh5:
	ldr	x8, [x8, _finecosine@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x21, _ANGLETOFINESHIFT@GOTPAGE
Lloh8:
	ldr	x21, [x21, _ANGLETOFINESHIFT@GOTPAGEOFF]
	ldr	w9, [x21]
	asr	w9, w19, w9
	ldr	x1, [x8, w9, sxtw #3]
	bl	_FixedMul
	str	x0, [x22, #32]
	ldr	x8, [x22, #8]
Lloh9:
	adrp	x9, _finesine@GOTPAGE
Lloh10:
	ldr	x9, [x9, _finesine@GOTPAGEOFF]
	ldr	w0, [x8]
Lloh11:
	ldr	x8, [x9]
	ldr	w9, [x21]
	asr	w9, w19, w9
	ldr	x1, [x8, w9, sxtw #3]
	bl	_FixedMul
	str	x0, [x22, #24]
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FixedMul
	str	x0, [x22, #16]
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_P_CheckMissileSpawn
LBB0_7:
	mov	w8, #-67108864
	add	w19, w19, w8
	ldr	w8, [x24]
	lsl	w2, w8, #10
	mov	x0, x21
	mov	x1, x19
	bl	_P_AimLineAttack
	ldr	w8, [x25]
	cbnz	w8, LBB0_1
; %bb.8:
	mov	x20, #0
	ldr	w19, [x21]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FRACUNIT,4,2                   ; @FRACUNIT
	.comm	_linetarget,4,2                 ; @linetarget
	.comm	_finecosine,8,3                 ; @finecosine
	.comm	_ANGLETOFINESHIFT,4,2           ; @ANGLETOFINESHIFT
	.comm	_finesine,8,3                   ; @finesine
.subsections_via_symbols
