	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_SkullAttack                  ## -- Begin function A_SkullAttack
	.p2align	4, 0x90
_A_SkullAttack:                         ## @A_SkullAttack
	.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
	movq	72(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_MF_SKULLFLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 64(%rdi)
	movq	56(%rdi), %rax
	movl	(%rax), %esi
	callq	_S_StartSound
	movq	%rbx, %rdi
	callq	_A_FaceTarget
	movq	(%rbx), %r12
	movq	_ANGLETOFINESHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %r12
	movq	_SKULLSPEED@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_finecosine@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %esi
	callq	_FixedMul
	movq	%rax, 48(%rbx)
	movl	(%r15), %edi
	movq	_finesine@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %esi
	callq	_FixedMul
	movq	%rax, 40(%rbx)
	movq	24(%r14), %rsi
	movq	32(%r14), %rdi
	subq	32(%rbx), %rdi
	subq	24(%rbx), %rsi
	callq	_P_AproxDistance
	cltd
	idivl	(%r15)
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	movl	16(%r14), %eax
	sarl	%eax
	addl	12(%r14), %eax
	subl	12(%rbx), %eax
	cltd
	idivl	%ecx
	movl	%eax, 8(%rbx)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MF_SKULLFLY,4,2                ## @MF_SKULLFLY
	.comm	_ANGLETOFINESHIFT,8,3           ## @ANGLETOFINESHIFT
	.comm	_SKULLSPEED,4,2                 ## @SKULLSPEED
	.comm	_finecosine,8,3                 ## @finecosine
	.comm	_finesine,8,3                   ## @finesine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_SkullAttack                  ; -- Begin function A_SkullAttack
	.p2align	2
_A_SkullAttack:                         ; @A_SkullAttack
	.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
	ldr	x20, [x0, #72]
	cbz	x20, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _MF_SKULLFLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MF_SKULLFLY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #64]
	orr	w8, w9, w8
	str	w8, [x0, #64]
	ldr	x8, [x0, #56]
	ldr	w1, [x8]
	bl	_S_StartSound
	mov	x0, x19
	bl	_A_FaceTarget
Lloh3:
	adrp	x8, _ANGLETOFINESHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ANGLETOFINESHIFT@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh5:
	ldr	x8, [x8]
	lsr	x8, x9, x8
Lloh6:
	adrp	x21, _SKULLSPEED@GOTPAGE
Lloh7:
	ldr	x21, [x21, _SKULLSPEED@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh8:
	adrp	x9, _finecosine@GOTPAGE
Lloh9:
	ldr	x9, [x9, _finecosine@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	lsl	x22, x8, #2
	ldr	w1, [x9, x22]
	bl	_FixedMul
	str	x0, [x19, #48]
	ldr	w0, [x21]
Lloh11:
	adrp	x8, _finesine@GOTPAGE
Lloh12:
	ldr	x8, [x8, _finesine@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w1, [x8, x22]
	bl	_FixedMul
	str	x0, [x19, #40]
	ldp	x9, x8, [x20, #24]
	ldp	x11, x10, [x19, #24]
	sub	x0, x8, x10
	sub	x1, x9, x11
	bl	_P_AproxDistance
	ldr	w8, [x21]
	sdiv	w8, w0, w8
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	ldp	w9, w10, [x20, #12]
	add	w9, w9, w10, asr #1
	ldr	w10, [x19, #12]
	sub	w9, w9, w10
	sdiv	w8, w9, w8
	str	w8, [x19, #8]
LBB0_2:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MF_SKULLFLY,4,2                ; @MF_SKULLFLY
	.comm	_ANGLETOFINESHIFT,8,3           ; @ANGLETOFINESHIFT
	.comm	_SKULLSPEED,4,2                 ; @SKULLSPEED
	.comm	_finecosine,8,3                 ; @finecosine
	.comm	_finesine,8,3                   ; @finesine
.subsections_via_symbols
