	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckIntermissionExit          ## -- Begin function CheckIntermissionExit
	.p2align	4, 0x90
_CheckIntermissionExit:                 ## @CheckIntermissionExit
	.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	_g_gametype@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GT_SINGLE_PLAYER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_24
## %bb.1:
	movq	_g_maxclients@GOTPCREL(%rip), %r11
	movl	(%r11), %edx
	testl	%edx, %edx
	jle	LBB0_23
## %bb.2:
	movq	_level@GOTPCREL(%rip), %r8
	movq	32(%r8), %rsi
	movq	_CON_CONNECTED@GOTPCREL(%rip), %r9
	movq	(%r9), %rcx
	movq	_g_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_SVF_BOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	xorl	%r10d, %r10d
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r10d
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	addq	$32, %rsi
	cmpq	%rax, %rdx
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, -8(%rsi)
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-24(%rsi), %rbx
	testl	%edi, (%r12,%rbx,4)
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%rsi)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	cmpq	$15, %rax
	ja	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	btsl	%eax, %r15d
	jmp	LBB0_9
LBB0_10:
	movq	32(%r8), %rax
	movq	(%r9), %rcx
	movq	_STAT_CLIENTS_READY@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	addq	$16, %rax
	xorl	%edi, %edi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rdi
	movslq	%edx, %rbx
	addq	$32, %rax
	cmpq	%rbx, %rdi
	jge	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rax)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-8(%rax), %rdx
	movl	%r15d, (%rdx,%rsi,4)
	movl	(%r11), %edx
	jmp	LBB0_13
LBB0_14:
	movq	(%r8), %rax
	movl	$5000, %ecx                     ## imm = 0x1388
	addq	8(%r8), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_24
## %bb.15:
	testl	%r14d, %r14d
	je	LBB0_16
## %bb.17:
	testl	%r10d, %r10d
	je	LBB0_22
## %bb.18:
	cmpq	$0, 24(%r8)
	je	LBB0_20
## %bb.19:
	movq	16(%r8), %rcx
	jmp	LBB0_21
LBB0_23:
	movq	_level@GOTPCREL(%rip), %rax
	movl	$5000, %ecx                     ## imm = 0x1388
	addq	8(%rax), %rcx
	cmpq	%rcx, (%rax)
	jl	LBB0_24
LBB0_16:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_level@GOTPCREL(%rip), %rcx
	movq	%rax, 24(%rcx)
LBB0_24:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%r8)
	movq	%rax, 16(%r8)
	movq	%rax, %rcx
LBB0_21:
	addq	$10000, %rcx                    ## imm = 0x2710
	cmpq	%rcx, %rax
	jl	LBB0_24
LBB0_22:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ExitLevel                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_g_gametype,8,3                 ## @g_gametype
	.comm	_GT_SINGLE_PLAYER,8,3           ## @GT_SINGLE_PLAYER
	.comm	_g_maxclients,4,2               ## @g_maxclients
	.comm	_level,40,3                     ## @level
	.comm	_CON_CONNECTED,8,3              ## @CON_CONNECTED
	.comm	_g_entities,8,3                 ## @g_entities
	.comm	_SVF_BOT,4,2                    ## @SVF_BOT
	.comm	_STAT_CLIENTS_READY,8,3         ## @STAT_CLIENTS_READY
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_qtrue,8,3                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckIntermissionExit          ; -- Begin function CheckIntermissionExit
	.p2align	2
_CheckIntermissionExit:                 ; @CheckIntermissionExit
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _g_gametype@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_gametype@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _GT_SINGLE_PLAYER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GT_SINGLE_PLAYER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.1:
Lloh6:
	adrp	x11, _g_maxclients@GOTPAGE
Lloh7:
	ldr	x11, [x11, _g_maxclients@GOTPAGEOFF]
	ldr	w12, [x11]
	cmp	w12, #1
	b.lt	LBB0_16
; %bb.2:
	mov	x14, #0
	mov	w13, #0
	mov	w9, #0
	mov	w10, #0
Lloh8:
	adrp	x8, _level@GOTPAGE
Lloh9:
	ldr	x8, [x8, _level@GOTPAGEOFF]
	ldr	x1, [x8, #32]
Lloh10:
	adrp	x15, _CON_CONNECTED@GOTPAGE
Lloh11:
	ldr	x15, [x15, _CON_CONNECTED@GOTPAGEOFF]
	ldr	x16, [x15]
Lloh12:
	adrp	x17, _g_entities@GOTPAGE
Lloh13:
	ldr	x17, [x17, _g_entities@GOTPAGEOFF]
Lloh14:
	ldr	x17, [x17]
Lloh15:
	adrp	x0, _SVF_BOT@GOTPAGE
Lloh16:
	ldr	x0, [x0, _SVF_BOT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x0]
	add	x1, x1, #16
	mov	w2, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x14, x14, #1
	add	x1, x1, #32
	cmp	x12, x14
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x3, [x1]
	cmp	x3, x16
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x3, [x1, #-16]
	ldr	w3, [x17, x3, lsl #2]
	tst	w0, w3
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x3, [x1, #8]
	cmp	x14, #15
	lsl	w4, w2, w14
	orr	w4, w13, w4
	csel	w4, w13, w4, hi
	cmp	x3, #0
	cinc	w10, w10, ne
	cinc	w9, w9, eq
	csel	w13, w13, w4, eq
	b	LBB0_3
LBB0_7:
	mov	x14, #0
	ldr	x17, [x8, #32]
	ldr	x15, [x15]
Lloh18:
	adrp	x16, _STAT_CLIENTS_READY@GOTPAGE
Lloh19:
	ldr	x16, [x16, _STAT_CLIENTS_READY@GOTPAGEOFF]
Lloh20:
	ldr	x16, [x16]
	add	x17, x17, #16
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x14, x14, #1
	add	x17, x17, #32
	cmp	x14, w12, sxtw
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x17]
	cmp	x0, x15
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldur	x12, [x17, #-8]
	str	w13, [x12, x16, lsl #2]
	ldr	w12, [x11]
	b	LBB0_8
LBB0_11:
	ldp	x11, x12, [x8]
	mov	w13, #5000
	add	x12, x12, x13
	cmp	x11, x12
	b.lt	LBB0_20
; %bb.12:
	cbz	w10, LBB0_17
; %bb.13:
	cbz	w9, LBB0_21
; %bb.14:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_18
; %bb.15:
	ldr	x8, [x8, #16]
	b	LBB0_19
LBB0_16:
Lloh21:
	adrp	x8, _level@GOTPAGE
Lloh22:
	ldr	x8, [x8, _level@GOTPAGEOFF]
	ldp	x9, x8, [x8]
	mov	w10, #5000
	add	x8, x8, x10
	cmp	x9, x8
	b.lt	LBB0_20
LBB0_17:
Lloh23:
	adrp	x8, _qfalse@GOTPAGE
Lloh24:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	adrp	x9, _level@GOTPAGE
Lloh27:
	ldr	x9, [x9, _level@GOTPAGEOFF]
Lloh28:
	str	x8, [x9, #24]
	ret
LBB0_18:
Lloh29:
	adrp	x9, _qtrue@GOTPAGE
Lloh30:
	ldr	x9, [x9, _qtrue@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	stp	x11, x9, [x8, #16]
	mov	x8, x11
LBB0_19:
	mov	w9, #10000
	add	x8, x8, x9
	cmp	x11, x8
	b.ge	LBB0_21
LBB0_20:
	ret
LBB0_21:
	b	_ExitLevel
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_g_gametype,8,3                 ; @g_gametype
	.comm	_GT_SINGLE_PLAYER,8,3           ; @GT_SINGLE_PLAYER
	.comm	_g_maxclients,4,2               ; @g_maxclients
	.comm	_level,40,3                     ; @level
	.comm	_CON_CONNECTED,8,3              ; @CON_CONNECTED
	.comm	_g_entities,8,3                 ; @g_entities
	.comm	_SVF_BOT,4,2                    ; @SVF_BOT
	.comm	_STAT_CLIENTS_READY,8,3         ; @STAT_CLIENTS_READY
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_qtrue,8,3                      ; @qtrue
.subsections_via_symbols
