	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_multi_trigger                  ## -- Begin function multi_trigger
	.p2align	4, 0x90
_multi_trigger:                         ## @multi_trigger
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, 32(%rdi)
	cmpq	$0, 16(%rdi)
	jne	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	40(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	(%rbx), %ecx
	testb	$1, %cl
	je	LBB0_4
## %bb.3:
	movq	(%rax), %rdx
	movq	_TEAM_RED@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	jne	LBB0_9
LBB0_4:
	testb	$2, %cl
	je	LBB0_6
## %bb.5:
	movq	(%rax), %rax
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	callq	_G_UseTargets
	movl	4(%rbx), %r14d
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.7:
	movq	_multi_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_level@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	8(%rbx), %r12d
	xorl	%eax, %eax
	callq	_crandom
	imull	%r12d, %eax
	addl	%r14d, %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	cltq
	addq	%r15, %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_9
LBB0_8:
	movq	$0, 24(%rbx)
	movq	_level@GOTPCREL(%rip), %rax
	movq	_FRAMETIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movq	_G_FreeEntity@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEAM_RED,8,3                   ## @TEAM_RED
	.comm	_TEAM_BLUE,8,3                  ## @TEAM_BLUE
	.comm	_multi_wait,4,2                 ## @multi_wait
	.comm	_level,8,3                      ## @level
	.comm	_FRAMETIME,8,3                  ## @FRAMETIME
	.comm	_G_FreeEntity,4,2               ## @G_FreeEntity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_multi_trigger                  ; -- Begin function multi_trigger
	.p2align	2
_multi_trigger:                         ; @multi_trigger
	.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
	str	x1, [x0, #32]
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x8, [x1, #40]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	w9, [x19]
	tbz	w9, #0, LBB0_4
; %bb.3:
	ldr	x10, [x8]
Lloh0:
	adrp	x11, _TEAM_RED@GOTPAGE
Lloh1:
	ldr	x11, [x11, _TEAM_RED@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_9
LBB0_4:
	tbz	w9, #1, LBB0_6
; %bb.5:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _TEAM_BLUE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TEAM_BLUE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_6:
	mov	x0, x19
	bl	_G_UseTargets
	ldr	w20, [x19, #4]
	cmp	w20, #1
	b.lt	LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _multi_wait@GOTPAGE
Lloh7:
	ldr	x8, [x8, _multi_wait@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh9:
	adrp	x8, _level@GOTPAGE
Lloh10:
	ldr	x8, [x8, _level@GOTPAGEOFF]
Lloh11:
	ldr	x21, [x8]
	ldr	w22, [x19, #8]
	bl	_crandom
	madd	w8, w0, w22, w20
	mov	w9, #1000
	mul	w8, w8, w9
	add	x8, x21, w8, sxtw
	str	x8, [x19, #16]
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _level@GOTPAGE
Lloh13:
	ldr	x8, [x8, _level@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _FRAMETIME@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FRAMETIME@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x8, x9, x8
	stp	x8, xzr, [x19, #16]
Lloh18:
	adrp	x8, _G_FreeEntity@GOTPAGE
Lloh19:
	ldr	x8, [x8, _G_FreeEntity@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TEAM_RED,8,3                   ; @TEAM_RED
	.comm	_TEAM_BLUE,8,3                  ; @TEAM_BLUE
	.comm	_multi_wait,4,2                 ; @multi_wait
	.comm	_level,8,3                      ; @level
	.comm	_FRAMETIME,8,3                  ; @FRAMETIME
	.comm	_G_FreeEntity,4,2               ; @G_FreeEntity
.subsections_via_symbols
