	.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_25
## %bb.1:
	movq	_g_maxclients@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_24
## %bb.2:
	movq	_level@GOTPCREL(%rip), %r8
	movq	32(%r8), %rdi
	movq	_CON_CONNECTED@GOTPCREL(%rip), %r10
	movq	(%r10), %rbx
	movq	_g_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_SVF_BOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rdi
	xorl	%esi, %esi
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	xorl	%r9d, %r9d
	xorl	%r11d, %r11d
	jmp	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r9d
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	addq	$24, %rdi
	cmpq	%rsi, %rdx
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, -8(%rdi)
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, (%rcx,%rsi,4)
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	cmpq	$0, (%rdi)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r11d
	cmpq	$15, %rsi
	ja	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	btsl	%esi, %r12d
	jmp	LBB0_9
LBB0_10:
	movq	32(%r8), %rax
	movq	(%r10), %rcx
	movq	_STAT_CLIENTS_READY@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	addq	$8, %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	$24, %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	%r12d, (%rdx,%rsi,4)
	movl	(%r14), %edx
	jmp	LBB0_13
LBB0_14:
	movq	(%r8), %rax
	movl	$5000, %ecx                     ## imm = 0x1388
	addq	8(%r8), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_25
## %bb.15:
	testl	%r15d, %r15d
	jle	LBB0_19
## %bb.16:
	testl	%r11d, %r11d
	je	LBB0_17
## %bb.18:
	testl	%r9d, %r9d
	jne	LBB0_19
	jmp	LBB0_23
LBB0_24:
	movq	_level@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movl	$5000, %edx                     ## imm = 0x1388
	addq	8(%rcx), %rdx
	cmpq	%rdx, %rax
	jl	LBB0_25
LBB0_19:
	movq	_level@GOTPCREL(%rip), %rcx
	cmpq	$0, 24(%rcx)
	je	LBB0_21
## %bb.20:
	movq	16(%rcx), %rcx
	jmp	LBB0_22
LBB0_21:
	movq	_qtrue@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 24(%rcx)
	movq	%rax, 16(%rcx)
	movq	%rax, %rcx
LBB0_22:
	addq	$10000, %rcx                    ## imm = 0x2710
	cmpq	%rcx, %rax
	jl	LBB0_25
LBB0_23:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ExitLevel                      ## TAILCALL
LBB0_17:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r8)
LBB0_25:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_22
; %bb.1:
Lloh6:
	adrp	x12, _g_maxclients@GOTPAGE
Lloh7:
	ldr	x12, [x12, _g_maxclients@GOTPAGEOFF]
	ldr	w13, [x12]
	cmp	w13, #1
	b.lt	LBB0_15
; %bb.2:
	mov	x15, #0
	mov	w14, #0
	mov	w11, #0
	mov	w8, #0
	mov	w10, #0
	mov	w17, #1
Lloh8:
	adrp	x9, _level@GOTPAGE
Lloh9:
	ldr	x9, [x9, _level@GOTPAGEOFF]
	ldr	x3, [x9, #32]
Lloh10:
	adrp	x16, _CON_CONNECTED@GOTPAGE
Lloh11:
	ldr	x16, [x16, _CON_CONNECTED@GOTPAGEOFF]
Lloh12:
	adrp	x1, _g_entities@GOTPAGE
Lloh13:
	ldr	x1, [x1, _g_entities@GOTPAGEOFF]
	ldr	x0, [x16]
Lloh14:
	ldr	x1, [x1]
Lloh15:
	adrp	x2, _SVF_BOT@GOTPAGE
Lloh16:
	ldr	x2, [x2, _SVF_BOT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x2]
	add	x3, x3, #16
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x15, x15, #1
	add	x3, x3, #24
	cmp	x13, x15
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x4, [x3, #-8]
	cmp	x4, x0
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w4, [x1, x15, lsl #2]
	tst	w2, w4
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w11, w11, #1
	ldr	x4, [x3]
	cmp	x15, #15
	lsl	w5, w17, w15
	orr	w5, w14, w5
	csel	w5, w14, w5, hi
	cmp	x4, #0
	cinc	w10, w10, ne
	cinc	w8, w8, eq
	csel	w14, w14, w5, eq
	b	LBB0_3
LBB0_7:
	mov	x15, #0
	ldr	x0, [x9, #32]
	ldr	x16, [x16]
Lloh18:
	adrp	x17, _STAT_CLIENTS_READY@GOTPAGE
Lloh19:
	ldr	x17, [x17, _STAT_CLIENTS_READY@GOTPAGEOFF]
Lloh20:
	ldr	x17, [x17]
	add	x0, x0, #8
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x15, x15, #1
	add	x0, x0, #24
	cmp	x15, w13, sxtw
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x0]
	cmp	x1, x16
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldur	x13, [x0, #-8]
	str	w14, [x13, x17, lsl #2]
	ldr	w13, [x12]
	b	LBB0_8
LBB0_11:
	ldp	x12, x13, [x9]
	mov	w14, #5000
	add	x13, x13, x14
	cmp	x12, x13
	b.lt	LBB0_22
; %bb.12:
	cmp	w11, #1
	b.lt	LBB0_16
; %bb.13:
	cbz	w10, LBB0_21
; %bb.14:
	cbnz	w8, LBB0_16
	b	LBB0_20
LBB0_15:
Lloh21:
	adrp	x8, _level@GOTPAGE
Lloh22:
	ldr	x8, [x8, _level@GOTPAGEOFF]
	ldp	x12, x8, [x8]
	mov	w9, #5000
	add	x8, x8, x9
	cmp	x12, x8
	b.lt	LBB0_22
LBB0_16:
Lloh23:
	adrp	x8, _level@GOTPAGE
Lloh24:
	ldr	x8, [x8, _level@GOTPAGEOFF]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_18
; %bb.17:
	ldr	x8, [x8, #16]
	b	LBB0_19
LBB0_18:
Lloh25:
	adrp	x9, _qtrue@GOTPAGE
Lloh26:
	ldr	x9, [x9, _qtrue@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	stp	x12, x9, [x8, #16]
	mov	x8, x12
LBB0_19:
	mov	w9, #10000
	add	x8, x8, x9
	cmp	x12, x8
	b.lt	LBB0_22
LBB0_20:
	b	_ExitLevel
LBB0_21:
Lloh28:
	adrp	x8, _qfalse@GOTPAGE
Lloh29:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	str	x8, [x9, #24]
LBB0_22:
	ret
	.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 AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.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
