	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_TeamArenaExists
_UI_TeamArenaExists:                    ## @UI_TeamArenaExists
	.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
	subq	$2056, %rsp                     ## imm = 0x808
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-2096(%rbp), %rbx
	movq	%rbx, %rdx
	movl	$2048, %ecx                     ## imm = 0x800
	callq	_trap_FS_GetFileList
	movq	_qfalse@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movl	%eax, %r14d
	movq	_BASETA@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r15d
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %r15
	leaq	(%r15,%rbx), %rdi
	incq	%rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%r15d, %eax
	addl	$2, %eax
	cltq
	addq	%rax, %rbx
	decl	%r14d
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movq	_qtrue@GOTPCREL(%rip), %r12
LBB0_5:
	movl	(%r12), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$2056, %rsp                     ## imm = 0x808
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"$modlist"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_BASETA,4,2                     ## @BASETA
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_qfalse,4,2                     ## @qfalse
	.no_dead_strip	_UI_TeamArenaExists
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_TeamArenaExists
_UI_TeamArenaExists:                    ; @UI_TeamArenaExists
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #2064
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	w3, #2048
	bl	_trap_FS_GetFileList
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	add	x20, sp, #8
Lloh7:
	adrp	x24, _BASETA@GOTPAGE
Lloh8:
	ldr	x24, [x24, _BASETA@GOTPAGEOFF]
Lloh9:
	adrp	x22, _qtrue@GOTPAGE
Lloh10:
	ldr	x22, [x22, _qtrue@GOTPAGEOFF]
Lloh11:
	adrp	x23, _qfalse@GOTPAGE
Lloh12:
	ldr	x23, [x23, _qfalse@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
	ldr	w1, [x24]
	mov	x0, x20
	bl	_Q_stricmp
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w21, #1
	add	x0, x20, w8, sxtw
	bl	_strlen
	add	w8, w21, w0
	add	w8, w8, #2
	add	x20, x20, w8, sxtw
	subs	w19, w19, #1
	b.ne	LBB0_2
; %bb.4:
	mov	x22, x23
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x22, _qfalse@GOTPAGE
Lloh14:
	ldr	x22, [x22, _qfalse@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x22]
	ldur	x8, [x29, #-72]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	add	sp, sp, #2064
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"$modlist"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_BASETA,4,2                     ; @BASETA
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_qfalse,4,2                     ; @qfalse
	.no_dead_strip	_UI_TeamArenaExists
.subsections_via_symbols
