	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_SpawnStrobeFlash             ## -- Begin function P_SpawnStrobeFlash
	.p2align	4, 0x90
_P_SpawnStrobeFlash:                    ## @P_SpawnStrobeFlash
	.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
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_PU_LEVSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	movl	$56, %edi
	xorl	%edx, %edx
	callq	_Z_Malloc
	movq	%rax, %rbx
	leaq	32(%rax), %rdi
	callq	_P_AddThinker
	movq	%r15, 48(%rbx)
	movl	%r12d, (%rbx)
	movq	_STROBEBRIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_T_StrobeFlash@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	(%r15), %rsi
	movq	%rsi, 8(%rbx)
	movq	%r15, %rdi
	callq	_P_FindMinSurroundingLight
	cmpq	8(%rbx), %rax
	cmovneq	%rax, %r13
	movq	%r13, 16(%rbx)
	movq	$0, 8(%r15)
	movl	$1, %eax
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_P_Random
	andl	$7, %eax
	incl	%eax
LBB0_2:
	movl	%eax, 24(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PU_LEVSPEC,4,2                 ## @PU_LEVSPEC
	.comm	_STROBEBRIGHT,4,2               ## @STROBEBRIGHT
	.comm	_T_StrobeFlash,8,3              ## @T_StrobeFlash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_SpawnStrobeFlash             ; -- Begin function P_SpawnStrobeFlash
	.p2align	2
_P_SpawnStrobeFlash:                    ; @P_SpawnStrobeFlash
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _PU_LEVSPEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PU_LEVSPEC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	mov	w2, #0
	bl	_Z_Malloc
	mov	x19, x0
	add	x0, x0, #32
	bl	_P_AddThinker
	str	x22, [x19, #48]
	str	w21, [x19]
Lloh3:
	adrp	x8, _STROBEBRIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STROBEBRIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #40]
Lloh6:
	adrp	x8, _T_StrobeFlash@GOTPAGE
Lloh7:
	ldr	x8, [x8, _T_StrobeFlash@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #32]
	ldr	x1, [x22]
	str	x1, [x19, #8]
	mov	x0, x22
	bl	_P_FindMinSurroundingLight
	ldr	x8, [x19, #8]
	cmp	x0, x8
	csel	x8, xzr, x0, eq
	str	x8, [x19, #16]
	str	xzr, [x22, #8]
	cbz	w20, LBB0_2
; %bb.1:
	mov	w8, #1
	b	LBB0_3
LBB0_2:
	bl	_P_Random
	and	w8, w0, #0x7
	add	w8, w8, #1
LBB0_3:
	str	w8, [x19, #24]
	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	_PU_LEVSPEC,4,2                 ; @PU_LEVSPEC
	.comm	_STROBEBRIGHT,4,2               ; @STROBEBRIGHT
	.comm	_T_StrobeFlash,8,3              ; @T_StrobeFlash
.subsections_via_symbols
