	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_BrainSpit                    ## -- Begin function A_BrainSpit
	.p2align	4, 0x90
_A_BrainSpit:                           ## @A_BrainSpit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	_A_BrainSpit.easy(%rip), %eax
	xorl	$1, %eax
	movl	%eax, _A_BrainSpit.easy(%rip)
	movq	_gameskill@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_sk_easy@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_2
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_2
## %bb.6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_braintargets@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_braintargeton@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	(%rdx,%rax,8), %rbx
	incq	%rax
	movq	_numbraintargets@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_5
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_5:
	movq	%rdx, (%rcx)
	movq	_MT_SPAWNSHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_P_SpawnMissile
	movq	%rax, %rcx
	movq	%rbx, 24(%rax)
	movl	4(%rbx), %eax
	subl	4(%r14), %eax
	cltd
	idivl	8(%rcx)
	movq	16(%rcx), %rsi
	cltd
	idivl	(%rsi)
	movl	%eax, (%rcx)
	movq	_sfx_bospit@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_S_StartSound                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_A_BrainSpit.easy,4,2 ## @A_BrainSpit.easy
	.comm	_gameskill,8,3                  ## @gameskill
	.comm	_sk_easy,8,3                    ## @sk_easy
	.comm	_braintargets,8,3               ## @braintargets
	.comm	_braintargeton,8,3              ## @braintargeton
	.comm	_numbraintargets,8,3            ## @numbraintargets
	.comm	_MT_SPAWNSHOT,4,2               ## @MT_SPAWNSHOT
	.comm	_sfx_bospit,4,2                 ## @sfx_bospit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_BrainSpit                    ; -- Begin function A_BrainSpit
	.p2align	2
_A_BrainSpit:                           ; @A_BrainSpit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _A_BrainSpit.easy@PAGE
	ldr	w9, [x8, _A_BrainSpit.easy@PAGEOFF]
	eor	w9, w9, #0x1
	str	w9, [x8, _A_BrainSpit.easy@PAGEOFF]
Lloh1:
	adrp	x8, _gameskill@GOTPAGE
Lloh2:
	ldr	x8, [x8, _gameskill@GOTPAGEOFF]
Lloh3:
	ldr	x8, [x8]
Lloh4:
	adrp	x10, _sk_easy@GOTPAGE
Lloh5:
	ldr	x10, [x10, _sk_easy@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	w9, #0, #0, le
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh7:
	adrp	x8, _braintargets@GOTPAGE
Lloh8:
	ldr	x8, [x8, _braintargets@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _braintargeton@GOTPAGE
Lloh11:
	ldr	x9, [x9, _braintargeton@GOTPAGEOFF]
	ldr	x10, [x9]
	ldr	x20, [x8, x10, lsl #3]
	add	x8, x10, #1
Lloh12:
	adrp	x10, _numbraintargets@GOTPAGE
Lloh13:
	ldr	x10, [x10, _numbraintargets@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	udiv	x11, x8, x10
	msub	x8, x11, x10, x8
	str	x8, [x9]
Lloh15:
	adrp	x8, _MT_SPAWNSHOT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MT_SPAWNSHOT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_P_SpawnMissile
	str	x20, [x0, #24]
	ldr	w8, [x20, #4]
	ldr	w9, [x19, #4]
	sub	w8, w8, w9
	ldr	w9, [x0, #8]
	sdiv	w8, w8, w9
	ldr	x9, [x0, #16]
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	str	w8, [x0]
Lloh18:
	adrp	x8, _sfx_bospit@GOTPAGE
Lloh19:
	ldr	x8, [x8, _sfx_bospit@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_S_StartSound
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh1, Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh1
	.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
.zerofill __DATA,__bss,_A_BrainSpit.easy,4,2 ; @A_BrainSpit.easy
	.comm	_gameskill,8,3                  ; @gameskill
	.comm	_sk_easy,8,3                    ; @sk_easy
	.comm	_braintargets,8,3               ; @braintargets
	.comm	_braintargeton,8,3              ; @braintargeton
	.comm	_numbraintargets,8,3            ; @numbraintargets
	.comm	_MT_SPAWNSHOT,4,2               ; @MT_SPAWNSHOT
	.comm	_sfx_bospit,4,2                 ; @sfx_bospit
.subsections_via_symbols
