	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function StartServer_GametypeEvent
_StartServer_GametypeEvent:             ## @StartServer_GametypeEvent
	.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
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_12
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_UI_GetNumArenas
	movq	_GT_SINGLE_PLAYER@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %r13d
	shll	%cl, %r13d
	movq	_s_startserver@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	movq	_gametype_remap@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	40(%r12), %rdx
	movl	(%rcx,%rdx,4), %ecx
	movq	_GT_FFA@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	cmovnel	%ebx, %r13d
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	movl	%eax, %r14d
	btsl	%ecx, %r13d
	leaq	L_.str(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	%ebx, %r14d
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_UI_GetArenaInfoByNumber
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_Info_ValueForKey
	movl	%eax, %edi
	callq	_GametypeBits
	testl	%r13d, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movl	%ebx, (%rcx,%rax,4)
	incq	%rax
	movq	%rax, (%r12)
	jmp	LBB0_6
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r12), %rax
	decq	%rax
	jmp	LBB0_8
LBB0_2:
	movq	$-1, %rax
LBB0_8:
	movq	_MAX_MAPSPERPAGE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rcx, %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_9
## %bb.10:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_11
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_11:
	movl	%eax, 16(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r12)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_StartServer_Update             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_ACTIVATED,4,2               ## @QM_ACTIVATED
	.comm	_s_startserver,48,3             ## @s_startserver
	.comm	_gametype_remap,8,3             ## @gametype_remap
	.comm	_GT_FFA,4,2                     ## @GT_FFA
	.comm	_GT_SINGLE_PLAYER,4,2           ## @GT_SINGLE_PLAYER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"type"

	.comm	_MAX_MAPSPERPAGE,4,2            ## @MAX_MAPSPERPAGE
	.no_dead_strip	_StartServer_GametypeEvent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function StartServer_GametypeEvent
_StartServer_GametypeEvent:             ; @StartServer_GametypeEvent
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _QM_ACTIVATED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QM_ACTIVATED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_6
; %bb.1:
	bl	_UI_GetNumArenas
Lloh3:
	adrp	x22, _s_startserver@GOTPAGE
Lloh4:
	ldr	x22, [x22, _s_startserver@GOTPAGEOFF]
Lloh5:
	adrp	x8, _gametype_remap@GOTPAGE
Lloh6:
	ldr	x8, [x8, _gametype_remap@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x22, #40]
	ldr	w8, [x8, x9, lsl #2]
	str	xzr, [x22]
	mov	w9, #1
Lloh8:
	adrp	x10, _GT_FFA@GOTPAGE
Lloh9:
	ldr	x10, [x10, _GT_FFA@GOTPAGEOFF]
Lloh10:
	adrp	x11, _GT_SINGLE_PLAYER@GOTPAGE
Lloh11:
	ldr	x11, [x11, _GT_SINGLE_PLAYER@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
Lloh13:
	ldr	w11, [x11]
	lsl	w11, w9, w11
	cmp	w8, w10
	csel	w10, w11, wzr, eq
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x19, x0
	mov	w20, #0
	lsl	w8, w9, w8
	orr	w23, w10, w8
Lloh14:
	adrp	x21, l_.str@PAGE
Lloh15:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	cmp	w19, w20
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_UI_GetArenaInfoByNumber
	mov	x1, x21
	bl	_Info_ValueForKey
	bl	_GametypeBits
	tst	w0, w23
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x8, [x22]
	str	w20, [x8, x9, lsl #2]
	add	x8, x9, #1
	str	x8, [x22]
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x22]
	sub	x8, x8, #1
	b	LBB0_9
LBB0_8:
	mov	x8, #-1
LBB0_9:
Lloh16:
	adrp	x9, _MAX_MAPSPERPAGE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MAX_MAPSPERPAGE@GOTPAGEOFF]
Lloh18:
	ldrsw	x9, [x9]
	add	x8, x8, x9
	udiv	x8, x8, x9
	str	w8, [x22, #16]
	stp	xzr, xzr, [x22, #24]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_StartServer_Update
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_ACTIVATED,4,2               ; @QM_ACTIVATED
	.comm	_s_startserver,48,3             ; @s_startserver
	.comm	_gametype_remap,8,3             ; @gametype_remap
	.comm	_GT_FFA,4,2                     ; @GT_FFA
	.comm	_GT_SINGLE_PLAYER,4,2           ; @GT_SINGLE_PLAYER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"type"

	.comm	_MAX_MAPSPERPAGE,4,2            ; @MAX_MAPSPERPAGE
	.no_dead_strip	_StartServer_GametypeEvent
.subsections_via_symbols
