	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function G_LoadArenas
_G_LoadArenas:                          ## @G_LoadArenas
	.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	$1176, %rsp                     ## imm = 0x498
	.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)
	movq	_g_numArenas@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_CVAR_INIT@GOTPCREL(%rip), %rax
	movq	_CVAR_ROM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	leaq	-1208(%rbp), %rdi
	callq	_trap_Cvar_Register
	movq	-1208(%rbp), %rdi
	cmpb	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	callq	_G_LoadArenasFromFile
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	leaq	-1200(%rbp), %rbx
	movq	%rbx, %rdx
	movl	$1024, %ecx                     ## imm = 0x400
	callq	_trap_FS_GetFileList
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.5(%rip), %r15
	leaq	-176(%rbp), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r13d
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strcpy
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_strcat
	movq	%r12, %rdi
	callq	_G_LoadArenasFromFile
	movslq	%r13d, %rax
	addq	%rax, %rbx
	incq	%rbx
	decl	%r14d
	jne	LBB0_4
LBB0_5:
	movq	_g_numArenas@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.6(%rip), %rdi
	callq	_va
	movl	%eax, %edi
	callq	_trap_Print
	cmpl	$0, (%rbx)
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	movq	_g_arenaInfos@GOTPCREL(%rip), %r13
	leaq	L_.str.8(%rip), %r14
	leaq	L_.str.7(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %r12d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_va
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_Info_SetValueForKey
	incq	%rbx
	movq	_g_numArenas@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$1176, %rsp                     ## imm = 0x498
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_g_numArenas,4,2                ## @g_numArenas
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"g_arenasFile"

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

	.comm	_CVAR_INIT,4,2                  ## @CVAR_INIT
	.comm	_CVAR_ROM,4,2                   ## @CVAR_ROM
L_.str.2:                               ## @.str.2
	.asciz	"scripts/arenas.txt"

L_.str.3:                               ## @.str.3
	.asciz	"scripts"

L_.str.4:                               ## @.str.4
	.asciz	".arena"

L_.str.5:                               ## @.str.5
	.asciz	"scripts/"

L_.str.6:                               ## @.str.6
	.asciz	"%i arenas parsed\n"

	.comm	_g_arenaInfos,8,3               ## @g_arenaInfos
L_.str.7:                               ## @.str.7
	.asciz	"num"

L_.str.8:                               ## @.str.8
	.asciz	"%i"

	.no_dead_strip	_G_LoadArenas
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function G_LoadArenas
_G_LoadArenas:                          ; @G_LoadArenas
	.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, #1168
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	x23, _g_numArenas@GOTPAGE
Lloh4:
	ldr	x23, [x23, _g_numArenas@GOTPAGEOFF]
Lloh5:
	adrp	x8, _CVAR_INIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CVAR_INIT@GOTPAGEOFF]
	str	wzr, [x23]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _CVAR_ROM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CVAR_ROM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, sp
	bl	_trap_Cvar_Register
	ldr	x0, [sp]
	ldrb	w8, [x0]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_2:
	bl	_G_LoadArenasFromFile
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #8
	mov	w3, #1024
	bl	_trap_FS_GetFileList
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x19, x0
	add	x20, sp, #8
Lloh21:
	adrp	x21, l_.str.5@PAGE
Lloh22:
	add	x21, x21, l_.str.5@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_strlen
	mov	x22, x0
	sub	x0, x29, #200
	mov	x1, x21
	bl	_strcpy
	sub	x0, x29, #200
	mov	x1, x20
	bl	_strcat
	sub	x0, x29, #200
	bl	_G_LoadArenasFromFile
	add	w8, w22, #1
	add	x20, x20, w8, sxtw
	subs	w19, w19, #1
	b.ne	LBB0_4
LBB0_5:
	ldr	w1, [x23]
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_va
	bl	_trap_Print
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x19, #0
Lloh25:
	adrp	x24, _g_arenaInfos@GOTPAGE
Lloh26:
	ldr	x24, [x24, _g_arenaInfos@GOTPAGEOFF]
Lloh27:
	adrp	x20, l_.str.8@PAGE
Lloh28:
	add	x20, x20, l_.str.8@PAGEOFF
Lloh29:
	adrp	x21, l_.str.7@PAGE
Lloh30:
	add	x21, x21, l_.str.7@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w22, [x8, x19, lsl #2]
	mov	x0, x20
	mov	x1, x19
	bl	_va
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_Info_SetValueForKey
	add	x19, x19, #1
	ldrsw	x8, [x23]
	cmp	x19, x8
	b.lt	LBB0_7
LBB0_8:
	ldur	x8, [x29, #-72]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	add	sp, sp, #1168
	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_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_g_numArenas,4,2                ; @g_numArenas
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"g_arenasFile"

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

	.comm	_CVAR_INIT,4,2                  ; @CVAR_INIT
	.comm	_CVAR_ROM,4,2                   ; @CVAR_ROM
l_.str.2:                               ; @.str.2
	.asciz	"scripts/arenas.txt"

l_.str.3:                               ; @.str.3
	.asciz	"scripts"

l_.str.4:                               ; @.str.4
	.asciz	".arena"

l_.str.5:                               ; @.str.5
	.asciz	"scripts/"

l_.str.6:                               ; @.str.6
	.asciz	"%i arenas parsed\n"

	.comm	_g_arenaInfos,8,3               ; @g_arenaInfos
l_.str.7:                               ; @.str.7
	.asciz	"num"

l_.str.8:                               ; @.str.8
	.asciz	"%i"

	.no_dead_strip	_G_LoadArenas
.subsections_via_symbols
