	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExitLevel                      ## -- Begin function ExitLevel
	.p2align	4, 0x90
_ExitLevel:                             ## @ExitLevel
	.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
	xorl	%eax, %eax
	callq	_BotInterbreedEndMatch
	movq	_g_gametype@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GT_TOURNAMENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_level@GOTPCREL(%rip), %rbx
	cmpq	$0, 32(%rbx)
	jne	LBB0_27
## %bb.2:
	xorl	%eax, %eax
	callq	_RemoveTournamentLoser
	movq	_EXEC_APPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_trap_SendConsoleCommand
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	jmp	LBB0_27
LBB0_3:
	movq	_EXEC_APPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_trap_SendConsoleCommand
	xorps	%xmm0, %xmm0
	movq	_level@GOTPCREL(%rip), %r15
	movups	%xmm0, 16(%r15)
	movq	8(%r15), %rax
	movq	_TEAM_RED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	_g_maxclients@GOTPCREL(%rip), %r14
	movl	(%r14), %r9d
	testl	%r9d, %r9d
	jle	LBB0_15
## %bb.4:
	movq	(%r15), %r8
	cmpl	$1, %r9d
	jne	LBB0_6
## %bb.5:
	xorl	%edx, %edx
LBB0_12:
	testb	$1, %r9b
	je	LBB0_15
## %bb.13:
	shlq	$4, %rdx
	movq	(%r8,%rdx), %rax
	movq	_CON_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movq	8(%r8,%rdx), %rax
	movq	_PERS_SCORE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
LBB0_15:
	xorl	%eax, %eax
	callq	_G_WriteSessionData
	movl	(%r14), %r9d
	testl	%r9d, %r9d
	jle	LBB0_27
## %bb.16:
	movq	(%r15), %r8
	cmpl	$1, %r9d
	jne	LBB0_18
## %bb.17:
	xorl	%edx, %edx
LBB0_24:
	testb	$1, %r9b
	je	LBB0_27
## %bb.25:
	shlq	$4, %rdx
	movq	(%r8,%rdx), %rax
	movq	_CON_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.26:
	addq	%rdx, %r8
	movq	_CON_CONNECTING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r8)
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%r9d, %esi
	andl	$-2, %esi
	leaq	24(%r8), %rdi
	xorl	%edx, %edx
	movq	_CON_CONNECTED@GOTPCREL(%rip), %rax
	movq	_PERS_SCORE@GOTPCREL(%rip), %r10
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$2, %rdx
	addq	$32, %rdi
	cmpq	%rdx, %rsi
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-24(%rdi), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-16(%rdi), %rcx
	movq	(%r10), %rbx
	movq	$0, (%rcx,%rbx,8)
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-8(%rdi), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rdi), %rcx
	movq	(%r10), %rbx
	movq	$0, (%rcx,%rbx,8)
	jmp	LBB0_11
LBB0_18:
	movl	%r9d, %esi
	andl	$-2, %esi
	leaq	16(%r8), %rdi
	xorl	%edx, %edx
	movq	_CON_CONNECTED@GOTPCREL(%rip), %rbx
	movq	_CON_CONNECTING@GOTPCREL(%rip), %rax
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	addq	$2, %rdx
	addq	$32, %rdi
	cmpq	%rdx, %rsi
	je	LBB0_24
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	-16(%rdi), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%rax), %rcx
	movq	%rcx, -16(%rdi)
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	(%rdi), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%rax), %rcx
	movq	%rcx, (%rdi)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_g_gametype,8,3                 ## @g_gametype
	.comm	_GT_TOURNAMENT,8,3              ## @GT_TOURNAMENT
	.comm	_level,40,3                     ## @level
	.comm	_EXEC_APPEND,4,2                ## @EXEC_APPEND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"map_restart 0\n"

	.comm	_qtrue,8,3                      ## @qtrue
L_.str.1:                               ## @.str.1
	.asciz	"vstr nextmap\n"

	.comm	_TEAM_RED,8,3                   ## @TEAM_RED
	.comm	_TEAM_BLUE,8,3                  ## @TEAM_BLUE
	.comm	_g_maxclients,4,2               ## @g_maxclients
	.comm	_CON_CONNECTED,8,3              ## @CON_CONNECTED
	.comm	_PERS_SCORE,8,3                 ## @PERS_SCORE
	.comm	_CON_CONNECTING,8,3             ## @CON_CONNECTING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExitLevel                      ; -- Begin function ExitLevel
	.p2align	2
_ExitLevel:                             ; @ExitLevel
	.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
	bl	_BotInterbreedEndMatch
Lloh0:
	adrp	x8, _g_gametype@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_gametype@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _GT_TOURNAMENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GT_TOURNAMENT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh6:
	adrp	x19, _level@GOTPAGE
Lloh7:
	ldr	x19, [x19, _level@GOTPAGEOFF]
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_35
; %bb.2:
	bl	_RemoveTournamentLoser
Lloh8:
	adrp	x8, _EXEC_APPEND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXEC_APPEND@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_trap_SendConsoleCommand
Lloh13:
	adrp	x8, _qtrue@GOTPAGE
Lloh14:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	stp	xzr, x8, [x19, #24]
	str	xzr, [x19, #16]
	b	LBB0_35
LBB0_3:
Lloh16:
	adrp	x8, _EXEC_APPEND@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXEC_APPEND@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_trap_SendConsoleCommand
Lloh21:
	adrp	x20, _level@GOTPAGE
Lloh22:
	ldr	x20, [x20, _level@GOTPAGEOFF]
	stp	xzr, xzr, [x20, #16]
	ldr	x8, [x20, #8]
Lloh23:
	adrp	x9, _TEAM_RED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TEAM_RED@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	str	xzr, [x8, x9, lsl #3]
Lloh26:
	adrp	x9, _TEAM_BLUE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _TEAM_BLUE@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	str	xzr, [x8, x9, lsl #3]
Lloh29:
	adrp	x21, _g_maxclients@GOTPAGE
Lloh30:
	ldr	x21, [x21, _g_maxclients@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh31:
	adrp	x19, _CON_CONNECTED@GOTPAGE
Lloh32:
	ldr	x19, [x19, _CON_CONNECTED@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	ldr	x9, [x20]
	add	x9, x9, #8
Lloh33:
	adrp	x10, _PERS_SCORE@GOTPAGE
Lloh34:
	ldr	x10, [x10, _PERS_SCORE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #16
	subs	x8, x8, #1
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-8]
	ldr	x12, [x19]
	cmp	x11, x12
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x11, [x9]
	ldr	x12, [x10]
	str	xzr, [x11, x12, lsl #3]
	b	LBB0_5
LBB0_8:
	bl	_G_WriteSessionData
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_35
; %bb.9:
	ldr	x10, [x20]
Lloh35:
	adrp	x8, _CON_CONNECTING@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CON_CONNECTING@GOTPAGEOFF]
	cmp	w9, #9
	b.hs	LBB0_11
; %bb.10:
	mov	x11, #0
	b	LBB0_31
LBB0_11:
	mov	x11, #0
	add	x12, x10, x9, lsl #4
	sub	x13, x12, #8
	add	x14, x19, #8
	add	x12, x8, #8
	cmp	x10, x12
	ccmp	x13, x8, #0, lo
	cset	w12, hi
	cmp	x13, x19
	ccmp	x10, x14, #2, hi
	b.lo	LBB0_31
; %bb.12:
	tbnz	w12, #0, LBB0_31
; %bb.13:
	ands	x11, x9, #0x7
	mov	w12, #8
	csel	x11, x12, x11, eq
	sub	x11, x9, x11
	ld1r.2d	{ v0 }, [x19]
	ldr	x12, [x8]
	add	x13, x10, #64
	mov	x14, x11
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x13, x13, #128
	subs	x14, x14, #8
	b.eq	LBB0_31
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	sub	x15, x13, #64
	ld2.2d	{ v2, v3 }, [x15]
	sub	x15, x13, #32
	ld2.2d	{ v6, v7 }, [x15]
	mov	x15, x13
	ld2.2d	{ v4, v5 }, [x15], #32
	ldr	d1, [x19]
	cmeq.2d	v2, v2, v0
	xtn.2s	v2, v2
	fmov	w16, s2
	tbz	w16, #0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	stur	x12, [x13, #-64]
LBB0_17:                                ;   in Loop: Header=BB0_15 Depth=1
	mov.s	w16, v2[1]
	ld2.2d	{ v2, v3 }, [x15]
	tbz	w16, #0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	stur	x12, [x13, #-48]
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	cmeq.2d	v6, v6, v0
	xtn.2s	v6, v6
	fmov	w15, s6
	tbz	w15, #0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	stur	x12, [x13, #-32]
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	mov.s	w15, v6[1]
	tbz	w15, #0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=1
	stur	x12, [x13, #-16]
LBB0_23:                                ;   in Loop: Header=BB0_15 Depth=1
	cmeq.2d	v4, v4, v0
	xtn.2s	v4, v4
	fmov	w15, s4
	tbz	w15, #0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_15 Depth=1
	str	x12, [x13]
LBB0_25:                                ;   in Loop: Header=BB0_15 Depth=1
	mov.s	w15, v4[1]
	tbz	w15, #0, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_15 Depth=1
	str	x12, [x13, #16]
LBB0_27:                                ;   in Loop: Header=BB0_15 Depth=1
	dup.2d	v1, v1[0]
	cmeq.2d	v1, v2, v1
	xtn.2s	v1, v1
	fmov	w15, s1
	tbz	w15, #0, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_15 Depth=1
	str	x12, [x13, #32]
LBB0_29:                                ;   in Loop: Header=BB0_15 Depth=1
	mov.s	w15, v1[1]
	tbz	w15, #0, LBB0_14
; %bb.30:                               ;   in Loop: Header=BB0_15 Depth=1
	str	x12, [x13, #48]
	b	LBB0_14
LBB0_31:
	add	x10, x10, x11, lsl #4
	sub	x9, x9, x11
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=1
	add	x10, x10, #16
	subs	x9, x9, #1
	b.eq	LBB0_35
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	ldr	x12, [x19]
	cmp	x11, x12
	b.ne	LBB0_32
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	x11, [x8]
	str	x11, [x10]
	b	LBB0_32
LBB0_35:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_g_gametype,8,3                 ; @g_gametype
	.comm	_GT_TOURNAMENT,8,3              ; @GT_TOURNAMENT
	.comm	_level,40,3                     ; @level
	.comm	_EXEC_APPEND,4,2                ; @EXEC_APPEND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"map_restart 0\n"

	.comm	_qtrue,8,3                      ; @qtrue
l_.str.1:                               ; @.str.1
	.asciz	"vstr nextmap\n"

	.comm	_TEAM_RED,8,3                   ; @TEAM_RED
	.comm	_TEAM_BLUE,8,3                  ; @TEAM_BLUE
	.comm	_g_maxclients,4,2               ; @g_maxclients
	.comm	_CON_CONNECTED,8,3              ; @CON_CONNECTED
	.comm	_PERS_SCORE,8,3                 ; @PERS_SCORE
	.comm	_CON_CONNECTING,8,3             ; @CON_CONNECTING
.subsections_via_symbols
