	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ArenaServers_Insert
_ArenaServers_Insert:                   ## @ArenaServers_Insert
	.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
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_ArenaServers_MaxPing
	cmpl	%r14d, %eax
	jg	LBB0_2
## %bb.1:
	movq	_g_servertype@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_AS_FAVORITES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_2:
	movq	_g_arenaservers@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movq	(%rax), %rcx
	leaq	(%rcx,%rcx,4), %rbx
	shlq	$4, %rbx
	addq	16(%rdx), %rbx
	cmpq	8(%rdx), %rcx
	jge	LBB0_3
## %bb.4:
	incq	%rcx
	movq	%rcx, (%rax)
	jmp	LBB0_5
LBB0_3:
	addq	$-80, %rbx
LBB0_5:
	movl	72(%rbx), %edi
	movq	_MAX_ADDRESSLENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_Q_strncpyz
	movl	68(%rbx), %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_Info_ValueForKey
	movq	_MAX_HOSTNAMELENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_Q_strncpyz
	movl	68(%rbx), %edi
	callq	_Q_CleanStr
	movl	68(%rbx), %edi
	callq	_Q_strupr
	movl	64(%rbx), %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_Info_ValueForKey
	movq	_MAX_MAPNAMELENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_Q_strncpyz
	movl	64(%rbx), %edi
	callq	_Q_CleanStr
	movl	64(%rbx), %edi
	callq	_Q_strupr
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_atoi
	movq	%rax, 56(%rbx)
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_atoi
	movq	%rax, 48(%rbx)
	movl	%r14d, (%rbx)
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_atoi
	movq	%rax, 40(%rbx)
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_atoi
	movq	%rax, 32(%rbx)
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_atoi
	movq	%rax, 24(%rbx)
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_atoi
	movq	%rax, 16(%rbx)
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	callq	_Info_ValueForKey
	movq	%rax, %r14
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_atoi
	cmpl	$12, %eax
	movl	$12, %ecx
	cmovll	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovgl	%ecx, %eax
	cmpb	$0, (%r14)
	movl	%eax, 4(%rbx)
	movl	8(%rbx), %edi
	je	LBB0_8
## %bb.6:
	movq	%r14, %rsi
	jmp	LBB0_7
LBB0_8:
	movq	_gamenames@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rsi
LBB0_7:
	movl	$4, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Q_strncpyz                     ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_servertype,8,3               ## @g_servertype
	.comm	_AS_FAVORITES,8,3               ## @AS_FAVORITES
	.comm	_g_arenaservers,24,3            ## @g_arenaservers
	.comm	_MAX_ADDRESSLENGTH,4,2          ## @MAX_ADDRESSLENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hostname"

	.comm	_MAX_HOSTNAMELENGTH,4,2         ## @MAX_HOSTNAMELENGTH
L_.str.1:                               ## @.str.1
	.asciz	"mapname"

	.comm	_MAX_MAPNAMELENGTH,4,2          ## @MAX_MAPNAMELENGTH
L_.str.2:                               ## @.str.2
	.asciz	"clients"

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

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

L_.str.5:                               ## @.str.5
	.asciz	"maxPing"

L_.str.6:                               ## @.str.6
	.asciz	"punkbuster"

L_.str.7:                               ## @.str.7
	.asciz	"nettype"

L_.str.8:                               ## @.str.8
	.asciz	"game"

L_.str.9:                               ## @.str.9
	.asciz	"gametype"

	.comm	_gamenames,8,3                  ## @gamenames
	.no_dead_strip	_ArenaServers_Insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ArenaServers_Insert
_ArenaServers_Insert:                   ; @ArenaServers_Insert
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_ArenaServers_MaxPing
	cmp	w0, w20
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _g_servertype@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_servertype@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _AS_FAVORITES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AS_FAVORITES@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_2:
Lloh6:
	adrp	x10, _g_arenaservers@GOTPAGE
Lloh7:
	ldr	x10, [x10, _g_arenaservers@GOTPAGEOFF]
	ldp	x8, x11, [x10]
	ldr	x9, [x8]
	ldr	x10, [x10, #16]
	mov	w12, #80
	madd	x22, x9, x12, x10
	cmp	x9, x11
	b.ge	LBB0_4
; %bb.3:
	add	x9, x9, #1
	str	x9, [x8]
	b	LBB0_5
LBB0_4:
	sub	x22, x22, #80
LBB0_5:
	ldr	w0, [x22, #72]
Lloh8:
	adrp	x8, _MAX_ADDRESSLENGTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_ADDRESSLENGTH@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_Q_strncpyz
	ldr	w21, [x22, #68]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_Info_ValueForKey
	mov	x1, x0
Lloh13:
	adrp	x8, _MAX_HOSTNAMELENGTH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAX_HOSTNAMELENGTH@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_Q_strncpyz
	ldr	w0, [x22, #68]
	bl	_Q_CleanStr
	ldr	w0, [x22, #68]
	bl	_Q_strupr
	ldr	w21, [x22, #64]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_Info_ValueForKey
	mov	x1, x0
Lloh18:
	adrp	x8, _MAX_MAPNAMELENGTH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX_MAPNAMELENGTH@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_Q_strncpyz
	ldr	w0, [x22, #64]
	bl	_Q_CleanStr
	ldr	w0, [x22, #64]
	bl	_Q_strupr
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_Info_ValueForKey
	bl	_atoi
	str	x0, [x22, #56]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_Info_ValueForKey
	bl	_atoi
	str	x0, [x22, #48]
	str	w20, [x22]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_Info_ValueForKey
	bl	_atoi
	str	x0, [x22, #40]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_Info_ValueForKey
	bl	_atoi
	str	x0, [x22, #32]
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_Info_ValueForKey
	bl	_atoi
	str	x0, [x22, #24]
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_Info_ValueForKey
	bl	_atoi
	str	x0, [x22, #16]
Lloh33:
	adrp	x1, l_.str.8@PAGE
Lloh34:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_Info_ValueForKey
	mov	x20, x0
Lloh35:
	adrp	x1, l_.str.9@PAGE
Lloh36:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_Info_ValueForKey
	bl	_atoi
	mov	w8, #12
	cmp	w0, #12
	csel	w8, w0, w8, lt
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	ldrb	w9, [x20]
	str	w8, [x22, #4]
	ldr	w0, [x22, #8]
	cbz	w9, LBB0_7
; %bb.6:
	mov	x1, x20
	b	LBB0_8
LBB0_7:
Lloh37:
	adrp	x9, _gamenames@GOTPAGE
Lloh38:
	ldr	x9, [x9, _gamenames@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	ldr	x1, [x9, w8, uxtw #3]
LBB0_8:
	mov	w2, #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_Q_strncpyz
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_g_servertype,8,3               ; @g_servertype
	.comm	_AS_FAVORITES,8,3               ; @AS_FAVORITES
	.comm	_g_arenaservers,24,3            ; @g_arenaservers
	.comm	_MAX_ADDRESSLENGTH,4,2          ; @MAX_ADDRESSLENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hostname"

	.comm	_MAX_HOSTNAMELENGTH,4,2         ; @MAX_HOSTNAMELENGTH
l_.str.1:                               ; @.str.1
	.asciz	"mapname"

	.comm	_MAX_MAPNAMELENGTH,4,2          ; @MAX_MAPNAMELENGTH
l_.str.2:                               ; @.str.2
	.asciz	"clients"

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

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

l_.str.5:                               ; @.str.5
	.asciz	"maxPing"

l_.str.6:                               ; @.str.6
	.asciz	"punkbuster"

l_.str.7:                               ; @.str.7
	.asciz	"nettype"

l_.str.8:                               ; @.str.8
	.asciz	"game"

l_.str.9:                               ; @.str.9
	.asciz	"gametype"

	.comm	_gamenames,8,3                  ; @gamenames
	.no_dead_strip	_ArenaServers_Insert
.subsections_via_symbols
