	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_BrainExplode                 ## -- Begin function A_BrainExplode
	.p2align	4, 0x90
_A_BrainExplode:                        ## @A_BrainExplode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %r15d
	xorl	%eax, %eax
	callq	_P_Random
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_P_Random
	subl	%eax, %ebx
	shll	$11, %ebx
	addl	%r15d, %ebx
	movl	4(%r14), %r14d
	xorl	%eax, %eax
	callq	_P_Random
                                        ## kill: def $eax killed $eax def $rax
	movq	_FRACUNIT@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	leal	(%rax,%rax), %edx
	addl	$128, %edx
	movq	_MT_ROCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_P_SpawnMobj
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_P_Random
	shll	$9, %eax
	movl	%eax, 8(%rbx)
	movq	_S_BRAINEXPLODE1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_P_SetMobjState
	xorl	%eax, %eax
	callq	_P_Random
	andl	$7, %eax
	movl	12(%rbx), %ecx
	subl	%eax, %ecx
	cmpl	$2, %ecx
	movl	$1, %eax
	cmovgel	%ecx, %eax
	movl	%eax, 12(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FRACUNIT,4,2                   ## @FRACUNIT
	.comm	_MT_ROCKET,4,2                  ## @MT_ROCKET
	.comm	_S_BRAINEXPLODE1,4,2            ## @S_BRAINEXPLODE1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_BrainExplode                 ; -- Begin function A_BrainExplode
	.p2align	2
_A_BrainExplode:                        ; @A_BrainExplode
	.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
	mov	x19, x0
	ldr	w21, [x0]
	bl	_P_Random
	mov	x20, x0
	bl	_P_Random
	sub	w8, w20, w0
	add	w20, w21, w8, lsl #11
	ldr	w19, [x19, #4]
	bl	_P_Random
Lloh0:
	adrp	x8, _FRACUNIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FRACUNIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w8, w0, w8
	lsl	w8, w8, #1
	add	w2, w8, #128
Lloh3:
	adrp	x8, _MT_ROCKET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_ROCKET@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_P_SpawnMobj
	mov	x19, x0
	bl	_P_Random
	lsl	w8, w0, #9
	str	w8, [x19, #8]
Lloh6:
	adrp	x8, _S_BRAINEXPLODE1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_BRAINEXPLODE1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_P_SetMobjState
	bl	_P_Random
	and	w8, w0, #0x7
	ldr	w9, [x19, #12]
	sub	w8, w9, w8
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	str	w8, [x19, #12]
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FRACUNIT,4,2                   ; @FRACUNIT
	.comm	_MT_ROCKET,4,2                  ; @MT_ROCKET
	.comm	_S_BRAINEXPLODE1,4,2            ; @S_BRAINEXPLODE1
.subsections_via_symbols
