	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ArenaServers_SetType           ## -- Begin function ArenaServers_SetType
	.p2align	4, 0x90
_ArenaServers_SetType:                  ## @ArenaServers_SetType
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_ArenaServers_StopRefresh
	movq	_g_servertype@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	leal	-129(%r14), %eax
	cmpl	$6, %eax
	jae	LBB0_1
## %bb.3:
	movq	_QMF_INACTIVE@GOTPCREL(%rip), %rax
	movq	_QMF_HIDDEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_g_arenaservers@GOTPCREL(%rip), %rax
	orl	%ecx, 40(%rax)
	movq	_g_globalserverlist@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r14d, %rdx
	movl	-536(%rcx,%rdx,4), %ecx
	movl	%ecx, 36(%rax)
	movq	_g_numglobalservers@GOTPCREL(%rip), %rcx
	leaq	-1072(,%rdx,8), %rax
	addq	(%rcx), %rax
	movq	_MAX_GLOBALSERVERS@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	_g_arenaservers@GOTPCREL(%rip), %rbx
	movq	%rax, 8(%rbx)
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rbx)
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:
	movq	%rcx, 24(%rbx)
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	callq	_ArenaServers_UpdateMenu
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
	callq	_ArenaServers_StartRefresh
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_QMF_INACTIVE@GOTPCREL(%rip), %rax
	movq	_QMF_HIDDEN@GOTPCREL(%rip), %rcx
	cmpl	$135, %r14d
	jne	LBB0_2
## %bb.4:
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	movq	_g_arenaservers@GOTPCREL(%rip), %rax
	andl	%ecx, 40(%rax)
	movq	_g_favoriteserverlist@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rax)
	movq	_MAX_FAVORITESERVERS@GOTPCREL(%rip), %rcx
	movq	_g_numfavoriteservers@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_g_arenaservers@GOTPCREL(%rip), %rax
	orl	%ecx, 40(%rax)
	movq	_g_localserverlist@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rax)
	movq	_MAX_LOCALSERVERS@GOTPCREL(%rip), %rcx
	movq	_g_numlocalservers@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_g_servertype,4,2               ## @g_servertype
	.comm	_UIAS_NUM_SOURCES,4,2           ## @UIAS_NUM_SOURCES
	.comm	_QMF_INACTIVE,4,2               ## @QMF_INACTIVE
	.comm	_QMF_HIDDEN,4,2                 ## @QMF_HIDDEN
	.comm	_g_arenaservers,48,3            ## @g_arenaservers
	.comm	_g_localserverlist,4,2          ## @g_localserverlist
	.comm	_g_numlocalservers,8,3          ## @g_numlocalservers
	.comm	_MAX_LOCALSERVERS,4,2           ## @MAX_LOCALSERVERS
	.comm	_g_globalserverlist,8,3         ## @g_globalserverlist
	.comm	_g_numglobalservers,8,3         ## @g_numglobalservers
	.comm	_MAX_GLOBALSERVERS,4,2          ## @MAX_GLOBALSERVERS
	.comm	_g_favoriteserverlist,4,2       ## @g_favoriteserverlist
	.comm	_g_numfavoriteservers,8,3       ## @g_numfavoriteservers
	.comm	_MAX_FAVORITESERVERS,4,2        ## @MAX_FAVORITESERVERS
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"hit refresh to update"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ArenaServers_SetType           ; -- Begin function ArenaServers_SetType
	.p2align	2
_ArenaServers_SetType:                  ; @ArenaServers_SetType
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_ArenaServers_StopRefresh
Lloh0:
	adrp	x8, _g_servertype@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_servertype@GOTPAGEOFF]
Lloh2:
	str	w19, [x8]
	sub	w8, w19, #129
Lloh3:
	adrp	x20, _g_arenaservers@GOTPAGE
Lloh4:
	ldr	x20, [x20, _g_arenaservers@GOTPAGEOFF]
	cmp	w8, #6
	b.hs	LBB0_6
; %bb.1:
Lloh5:
	adrp	x8, _QMF_INACTIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QMF_INACTIVE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _QMF_HIDDEN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _QMF_HIDDEN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20, #40]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _g_globalserverlist@GOTPAGE
Lloh12:
	ldr	x9, [x9, _g_globalserverlist@GOTPAGEOFF]
	str	w8, [x20, #40]
Lloh13:
	ldr	x8, [x9]
	sub	w9, w19, #134
	ldr	w8, [x8, w9, sxtw #2]
	str	w8, [x20, #36]
Lloh14:
	adrp	x8, _g_numglobalservers@GOTPAGE
Lloh15:
	ldr	x8, [x8, _g_numglobalservers@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x8, x8, w9, sxtw #3
Lloh17:
	adrp	x9, _MAX_GLOBALSERVERS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MAX_GLOBALSERVERS@GOTPAGEOFF]
LBB0_2:
	str	x8, [x20, #8]
	ldr	w9, [x9]
	str	w9, [x20, #32]
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.3:
	str	x9, [x20, #24]
	ldr	x8, [x8]
	str	x8, [x20, #16]
	bl	_ArenaServers_UpdateMenu
	ldr	w0, [x20]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcpy
	b	LBB0_5
LBB0_4:
	bl	_ArenaServers_StartRefresh
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh21:
	adrp	x8, _QMF_INACTIVE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _QMF_INACTIVE@GOTPAGEOFF]
	cmp	w19, #135
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _QMF_HIDDEN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _QMF_HIDDEN@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20, #40]
	bic	w8, w9, w8
Lloh26:
	adrp	x9, _g_favoriteserverlist@GOTPAGE
Lloh27:
	ldr	x9, [x9, _g_favoriteserverlist@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #36]
Lloh29:
	adrp	x9, _MAX_FAVORITESERVERS@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MAX_FAVORITESERVERS@GOTPAGEOFF]
Lloh31:
	adrp	x8, _g_numfavoriteservers@GOTPAGE
Lloh32:
	ldr	x8, [x8, _g_numfavoriteservers@GOTPAGEOFF]
	b	LBB0_2
LBB0_8:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _QMF_HIDDEN@GOTPAGE
Lloh34:
	ldr	x9, [x9, _QMF_HIDDEN@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20, #40]
	orr	w8, w8, w9
Lloh36:
	adrp	x9, _g_localserverlist@GOTPAGE
Lloh37:
	ldr	x9, [x9, _g_localserverlist@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #36]
Lloh39:
	adrp	x9, _MAX_LOCALSERVERS@GOTPAGE
Lloh40:
	ldr	x9, [x9, _MAX_LOCALSERVERS@GOTPAGEOFF]
Lloh41:
	adrp	x8, _g_numlocalservers@GOTPAGE
Lloh42:
	ldr	x8, [x8, _g_numlocalservers@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_g_servertype,4,2               ; @g_servertype
	.comm	_UIAS_NUM_SOURCES,4,2           ; @UIAS_NUM_SOURCES
	.comm	_QMF_INACTIVE,4,2               ; @QMF_INACTIVE
	.comm	_QMF_HIDDEN,4,2                 ; @QMF_HIDDEN
	.comm	_g_arenaservers,48,3            ; @g_arenaservers
	.comm	_g_localserverlist,4,2          ; @g_localserverlist
	.comm	_g_numlocalservers,8,3          ; @g_numlocalservers
	.comm	_MAX_LOCALSERVERS,4,2           ; @MAX_LOCALSERVERS
	.comm	_g_globalserverlist,8,3         ; @g_globalserverlist
	.comm	_g_numglobalservers,8,3         ; @g_numglobalservers
	.comm	_MAX_GLOBALSERVERS,4,2          ; @MAX_GLOBALSERVERS
	.comm	_g_favoriteserverlist,4,2       ; @g_favoriteserverlist
	.comm	_g_numfavoriteservers,8,3       ; @g_numfavoriteservers
	.comm	_MAX_FAVORITESERVERS,4,2        ; @MAX_FAVORITESERVERS
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"hit refresh to update"

.subsections_via_symbols
