	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_PainShootSkull               ## -- Begin function A_PainShootSkull
	.p2align	4, 0x90
_A_PainShootSkull:                      ## @A_PainShootSkull
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_thinkercap@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rax, %rcx
	je	LBB0_7
## %bb.1:
	movq	_P_MobjThinker@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_MT_SKULL@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdi
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rcx
	xorl	%ebx, %ebx
	cmpq	%rdi, %rcx
	sete	%bl
	addl	%ebx, %esi
	cmpq	%rax, %rcx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, 8(%rcx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rcx
	cmpq	%rax, %rcx
	jne	LBB0_2
LBB0_6:
	cmpl	$20, %esi
	jle	LBB0_7
## %bb.9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ANGLETOFINESHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %r15
	movq	_FRACUNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%r14), %r12
	movq	40(%r14), %rcx
	movq	_mobjinfo@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_MT_SKULL@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rdx,%rsi,4), %edx
	addl	(%rcx), %edx
	leal	(%rdx,%rdx,2), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	leal	(%rdx,%rax,4), %r13d
	movq	_finecosine@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %esi
	movl	%r13d, %edi
	callq	_FixedMul
	addq	%rax, %r12
	movq	16(%r14), %rbx
	movq	_finesine@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %esi
	movl	%r13d, %edi
	callq	_FixedMul
	addq	%rax, %rbx
	movq	_FRACUNIT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	shlq	$3, %rdx
	addq	32(%r14), %rdx
	movq	_MT_SKULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_P_SpawnMobj
	movq	%rax, %rbx
	movq	16(%rax), %rdx
	movq	24(%rax), %rsi
	movq	%rax, %rdi
	callq	_P_TryMove
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	8(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_A_SkullAttack                  ## TAILCALL
LBB0_10:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	movl	$10000, %ecx                    ## imm = 0x2710
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_P_DamageMobj                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_thinkercap,16,3                ## @thinkercap
	.comm	_P_MobjThinker,8,3              ## @P_MobjThinker
	.comm	_MT_SKULL,8,3                   ## @MT_SKULL
	.comm	_ANGLETOFINESHIFT,8,3           ## @ANGLETOFINESHIFT
	.comm	_FRACUNIT,4,2                   ## @FRACUNIT
	.comm	_mobjinfo,8,3                   ## @mobjinfo
	.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_PainShootSkull               ; -- Begin function A_PainShootSkull
	.p2align	2
_A_PainShootSkull:                      ; @A_PainShootSkull
	.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	x19, x0
Lloh0:
	adrp	x8, _thinkercap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _thinkercap@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh2:
	adrp	x22, _MT_SKULL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MT_SKULL@GOTPAGEOFF]
	cmp	x9, x8
	b.eq	LBB0_7
; %bb.1:
	mov	w10, #0
Lloh4:
	adrp	x11, _P_MobjThinker@GOTPAGE
Lloh5:
	ldr	x11, [x11, _P_MobjThinker@GOTPAGEOFF]
Lloh6:
	ldr	x11, [x11]
	ldr	x12, [x22]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x9]
	cmp	x9, x12
	cinc	w10, w10, eq
	cmp	x9, x8
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x9, #8]
	cmp	x13, x11
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_3
LBB0_5:
	cmp	w10, #20
	b.le	LBB0_7
; %bb.6:
	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
	ret
LBB0_7:
Lloh7:
	adrp	x8, _ANGLETOFINESHIFT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ANGLETOFINESHIFT@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	lsr	x8, x1, x8
Lloh10:
	adrp	x23, _FRACUNIT@GOTPAGE
Lloh11:
	ldr	x23, [x23, _FRACUNIT@GOTPAGEOFF]
	ldr	w9, [x23]
	ldr	x10, [x19, #40]
Lloh12:
	adrp	x11, _mobjinfo@GOTPAGE
Lloh13:
	ldr	x11, [x11, _mobjinfo@GOTPAGEOFF]
	ldr	w10, [x10]
Lloh14:
	ldr	x11, [x11]
	ldr	x12, [x22]
	ldr	w11, [x11, x12, lsl #2]
	add	w10, w11, w10
	add	w10, w10, w10, lsl #1
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	add	w20, w10, w9, lsl #2
	ldr	x21, [x19, #24]
Lloh15:
	adrp	x9, _finecosine@GOTPAGE
Lloh16:
	ldr	x9, [x9, _finecosine@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	lsl	x24, x8, #2
	ldr	w1, [x9, x24]
	mov	x0, x20
	bl	_FixedMul
	add	x21, x0, x21
	ldr	x25, [x19, #16]
Lloh18:
	adrp	x8, _finesine@GOTPAGE
Lloh19:
	ldr	x8, [x8, _finesine@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	w1, [x8, x24]
	mov	x0, x20
	bl	_FixedMul
	add	x1, x0, x25
	ldr	x8, [x19, #32]
	ldrsw	x9, [x23]
	add	x2, x8, x9, lsl #3
	ldr	x3, [x22]
	mov	x0, x21
	bl	_P_SpawnMobj
	mov	x20, x0
	ldp	x2, x1, [x0, #16]
	bl	_P_TryMove
	cbz	w0, LBB0_9
; %bb.8:
	ldr	w8, [x19, #8]
	str	w8, [x20, #8]
	mov	x0, x20
	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	_A_SkullAttack
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x19
	mov	w3, #10000
	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_DamageMobj
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_thinkercap,16,3                ; @thinkercap
	.comm	_P_MobjThinker,8,3              ; @P_MobjThinker
	.comm	_MT_SKULL,8,3                   ; @MT_SKULL
	.comm	_ANGLETOFINESHIFT,8,3           ; @ANGLETOFINESHIFT
	.comm	_FRACUNIT,4,2                   ; @FRACUNIT
	.comm	_mobjinfo,8,3                   ; @mobjinfo
	.comm	_finecosine,8,3                 ; @finecosine
	.comm	_finesine,8,3                   ; @finesine
.subsections_via_symbols
