	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_F_CastResponder                ## -- Begin function F_CastResponder
	.p2align	4, 0x90
_F_CastResponder:                       ## @F_CastResponder
	.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), %rax
	movq	_ev_keydown@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	_castdeath@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.2:
	movl	$1, (%rax)
	movq	_states@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_mobjinfo@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	_castorder@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r9
	movq	_castnum@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	(%r9,%rsi,8), %rdi
	shlq	$4, %rdi
	movq	(%r8,%rdi), %rdi
	leaq	(%rax,%rdi,4), %rcx
	movq	_caststate@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movl	(%rax,%rdi,4), %eax
	movq	_casttics@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_castframes@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_castattacking@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	(%r9,%rsi,8), %rax
	shlq	$4, %rax
	movq	8(%r8,%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	callq	_S_StartSound
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ev_keydown,8,3                 ## @ev_keydown
	.comm	_castdeath,4,2                  ## @castdeath
	.comm	_states,8,3                     ## @states
	.comm	_mobjinfo,8,3                   ## @mobjinfo
	.comm	_castorder,8,3                  ## @castorder
	.comm	_castnum,8,3                    ## @castnum
	.comm	_caststate,8,3                  ## @caststate
	.comm	_casttics,4,2                   ## @casttics
	.comm	_castframes,8,3                 ## @castframes
	.comm	_castattacking,4,2              ## @castattacking
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_F_CastResponder                ; -- Begin function F_CastResponder
	.p2align	2
_F_CastResponder:                       ; @F_CastResponder
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ev_keydown@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ev_keydown@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _castdeath@GOTPAGE
Lloh4:
	ldr	x8, [x8, _castdeath@GOTPAGEOFF]
	ldr	w9, [x8]
	mov	w0, #1
	cbz	w9, LBB0_4
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	str	w0, [x8]
Lloh5:
	adrp	x8, _states@GOTPAGE
Lloh6:
	ldr	x8, [x8, _states@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _mobjinfo@GOTPAGE
Lloh9:
	ldr	x9, [x9, _mobjinfo@GOTPAGEOFF]
Lloh10:
	adrp	x10, _castorder@GOTPAGE
Lloh11:
	ldr	x10, [x10, _castorder@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
Lloh13:
	adrp	x11, _castnum@GOTPAGE
Lloh14:
	ldr	x11, [x11, _castnum@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x11]
	lsl	x11, x11, #3
	ldr	x12, [x10, x11]
Lloh16:
	ldr	x9, [x9]
	lsl	x12, x12, #4
	ldr	x12, [x9, x12]
	lsl	x12, x12, #2
	add	x13, x8, x12
Lloh17:
	adrp	x14, _caststate@GOTPAGE
Lloh18:
	ldr	x14, [x14, _caststate@GOTPAGEOFF]
	ldr	w8, [x8, x12]
Lloh19:
	adrp	x12, _casttics@GOTPAGE
Lloh20:
	ldr	x12, [x12, _casttics@GOTPAGEOFF]
Lloh21:
	str	x13, [x14]
Lloh22:
	str	w8, [x12]
Lloh23:
	adrp	x8, _castframes@GOTPAGE
Lloh24:
	ldr	x8, [x8, _castframes@GOTPAGEOFF]
Lloh25:
	adrp	x12, _castattacking@GOTPAGE
Lloh26:
	ldr	x12, [x12, _castattacking@GOTPAGEOFF]
Lloh27:
	str	xzr, [x8]
Lloh28:
	str	wzr, [x12]
	ldr	x8, [x10, x11]
	add	x8, x9, x8, lsl #4
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_2
; %bb.5:
	mov	x0, #0
	bl	_S_StartSound
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh27
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh16
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ev_keydown,8,3                 ; @ev_keydown
	.comm	_castdeath,4,2                  ; @castdeath
	.comm	_states,8,3                     ; @states
	.comm	_mobjinfo,8,3                   ; @mobjinfo
	.comm	_castorder,8,3                  ; @castorder
	.comm	_castnum,8,3                    ; @castnum
	.comm	_caststate,8,3                  ; @caststate
	.comm	_casttics,4,2                   ; @casttics
	.comm	_castframes,8,3                 ; @castframes
	.comm	_castattacking,4,2              ; @castattacking
.subsections_via_symbols
