	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_AuthorizeIpPacket           ## -- Begin function SV_AuthorizeIpPacket
	.p2align	4, 0x90
_SV_AuthorizeIpPacket:                  ## @SV_AuthorizeIpPacket
	.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
	subq	$1040, %rsp                     ## imm = 0x410
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_svs@GOTPCREL(%rip), %r12
	movl	12(%r12), %esi
	callq	_NET_CompareBaseAdr
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movl	$1, %edi
	callq	_Cmd_Argv
	movq	%rax, %rdi
	callq	_atoi
	movq	_MAX_CHALLENGES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.12:
	movq	(%r12), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rsi)
	je	LBB0_6
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rdx
	addq	$12, %rsi
	cmpq	%rdx, %rcx
	jne	LBB0_13
	jmp	LBB0_15
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_21
## %bb.2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_5:
	xorl	%edx, %edx
LBB0_6:
	cmpl	%ecx, %edx
	jne	LBB0_7
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_21
## %bb.16:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	addq	$1040, %rsp                     ## imm = 0x410
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_7:
	movl	8(%r12), %eax
	movq	(%r12), %rcx
	movl	%edx, %edx
	leaq	(%rdx,%rdx,2), %r15
	movl	%eax, 8(%rcx,%r15,4)
	movl	$2, %edi
	callq	_Cmd_Argv
	movq	%rax, %rbx
	movl	$3, %edi
	callq	_Cmd_Argv
	movq	%rax, %r14
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.19:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_20
## %bb.22:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_23
## %bb.25:
	testq	%r14, %r14
	jne	LBB0_27
## %bb.26:
	movq	_NS_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	4(%rax,%r15,4), %esi
	leaq	L_.str.10(%rip), %rdx
	jmp	LBB0_28
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	callq	_Cvar_VariableValue
	movq	_NS_SERVER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	(%r12), %rcx
	movl	4(%rcx,%r15,4), %esi
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	movl	(%rcx,%r15,4), %ecx
	jmp	LBB0_10
LBB0_20:
	movq	_NS_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	(%rax,%r15,4), %ecx
	movl	4(%rax,%r15,4), %esi
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_21
## %bb.11:
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	addq	$1040, %rsp                     ## imm = 0x410
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NET_OutOfBandPrint             ## TAILCALL
LBB0_23:
	testq	%r14, %r14
	je	LBB0_24
LBB0_27:
	leaq	L_.str.9(%rip), %rsi
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_sprintf
	movq	_NS_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	4(%rax,%r15,4), %esi
	movq	%rbx, %rdx
LBB0_28:
	xorl	%eax, %eax
	callq	_NET_OutOfBandPrint
	shlq	$2, %r15
	addq	(%r12), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_Com_Memset
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_21
## %bb.29:
	addq	$1040, %rsp                     ## imm = 0x410
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	callq	_NET_OutOfBandPrint
	shlq	$2, %r15
	addq	(%r12), %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_21
## %bb.18:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	addq	$1040, %rsp                     ## imm = 0x410
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Memset                     ## TAILCALL
LBB0_24:
	movq	_NS_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	4(%rax,%r15,4), %esi
	leaq	L_.str.8(%rip), %rdx
	jmp	LBB0_28
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_svs,16,3                       ## @svs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SV_AuthorizeIpPacket: not from authorize server\n"

	.comm	_MAX_CHALLENGES,4,2             ## @MAX_CHALLENGES
L_.str.1:                               ## @.str.1
	.asciz	"SV_AuthorizeIpPacket: challenge not found\n"

L_.str.2:                               ## @.str.2
	.asciz	"demo"

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

	.comm	_NS_SERVER,4,2                  ## @NS_SERVER
L_.str.4:                               ## @.str.4
	.asciz	"challengeResponse %i"

L_.str.5:                               ## @.str.5
	.asciz	"print\nServer is not a demo server\n"

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

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

L_.str.8:                               ## @.str.8
	.asciz	"print\nAwaiting CD key authorization\n"

L_.str.9:                               ## @.str.9
	.asciz	"print\n%s\n"

L_.str.10:                              ## @.str.10
	.asciz	"print\nSomeone is using this CD Key\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_AuthorizeIpPacket           ; -- Begin function SV_AuthorizeIpPacket
	.p2align	2
_SV_AuthorizeIpPacket:                  ; @SV_AuthorizeIpPacket
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x21, _svs@GOTPAGE
Lloh4:
	ldr	x21, [x21, _svs@GOTPAGEOFF]
	ldr	w1, [x21, #12]
	bl	_NET_CompareBaseAdr
	cbz	w0, LBB0_5
; %bb.1:
	mov	w0, #1
	bl	_Cmd_Argv
	bl	_atoi
Lloh5:
	adrp	x8, _MAX_CHALLENGES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_CHALLENGES@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x8, #0
	ldr	x10, [x21]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cmp	w11, w0
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	add	x10, x10, #12
	cmp	x9, x8
	b.ne	LBB0_3
	b	LBB0_9
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.6:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_7:
	mov	w8, #0
LBB0_8:
	cmp	w8, w9
	b.ne	LBB0_12
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.10:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	b	_Com_Printf
LBB0_12:
	ldr	w9, [x21, #8]
	ldr	x10, [x21]
	mov	w22, w8
	mov	w11, #12
	umaddl	x8, w8, w11, x10
	str	w9, [x8, #8]
	mov	w0, #2
	bl	_Cmd_Argv
	mov	x20, x0
	mov	w0, #3
	bl	_Cmd_Argv
	mov	x19, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_Q_stricmp
	cbz	w0, LBB0_17
; %bb.13:
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_Q_stricmp
	cbz	w0, LBB0_19
; %bb.14:
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_Q_stricmp
	cbz	w0, LBB0_21
; %bb.15:
	cbnz	x19, LBB0_22
; %bb.16:
Lloh24:
	adrp	x8, _NS_SERVER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NS_SERVER@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	x8, [x21]
	mov	w9, #12
	madd	x8, x22, x9, x8
	ldr	w1, [x8, #4]
Lloh27:
	adrp	x2, l_.str.10@PAGE
Lloh28:
	add	x2, x2, l_.str.10@PAGEOFF
	b	LBB0_23
LBB0_17:
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_Cvar_VariableValue
	mov	x8, x0
Lloh31:
	adrp	x9, _NS_SERVER@GOTPAGE
Lloh32:
	ldr	x9, [x9, _NS_SERVER@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x9]
	ldr	x9, [x21]
	mov	w10, #12
	madd	x10, x22, x10, x9
	ldr	w1, [x10, #4]
	cbz	x8, LBB0_26
; %bb.18:
	mov	w8, #12
	mul	x8, x22, x8
	ldr	w8, [x9, x8]
	b	LBB0_20
LBB0_19:
Lloh34:
	adrp	x8, _NS_SERVER@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NS_SERVER@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldr	x8, [x21]
	mov	w9, #12
	madd	x8, x22, x9, x8
	ldp	w8, w1, [x8]
LBB0_20:
	str	x8, [sp]
Lloh37:
	adrp	x2, l_.str.4@PAGE
Lloh38:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_NET_OutOfBandPrint
	b	LBB0_24
LBB0_21:
	cbz	x19, LBB0_28
LBB0_22:
Lloh39:
	adrp	x1, l_.str.9@PAGE
Lloh40:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x0, sp, #8
	mov	x2, x19
	bl	_sprintf
Lloh41:
	adrp	x8, _NS_SERVER@GOTPAGE
Lloh42:
	ldr	x8, [x8, _NS_SERVER@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	ldr	x8, [x21]
	mov	w9, #12
	madd	x8, x22, x9, x8
	ldr	w1, [x8, #4]
	add	x2, sp, #8
LBB0_23:
	bl	_NET_OutOfBandPrint
	ldr	x8, [x21]
	mov	w9, #12
	madd	x0, x22, x9, x8
	mov	w1, #0
	mov	w2, #12
	bl	_Com_Memset
LBB0_24:
	ldur	x8, [x29, #-56]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.25:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_26:
Lloh47:
	adrp	x2, l_.str.5@PAGE
Lloh48:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_NET_OutOfBandPrint
	ldr	x8, [x21]
	ldur	x9, [x29, #-56]
Lloh49:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh50:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh51:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_29
; %bb.27:
	mov	w9, #12
	madd	x0, x22, x9, x8
	mov	w1, #0
	mov	w2, #12
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	b	_Com_Memset
LBB0_28:
Lloh52:
	adrp	x8, _NS_SERVER@GOTPAGE
Lloh53:
	ldr	x8, [x8, _NS_SERVER@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	ldr	x8, [x21]
	mov	w9, #12
	madd	x8, x22, x9, x8
	ldr	w1, [x8, #4]
Lloh55:
	adrp	x2, l_.str.8@PAGE
Lloh56:
	add	x2, x2, l_.str.8@PAGEOFF
	b	LBB0_23
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_svs,16,3                       ; @svs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SV_AuthorizeIpPacket: not from authorize server\n"

	.comm	_MAX_CHALLENGES,4,2             ; @MAX_CHALLENGES
l_.str.1:                               ; @.str.1
	.asciz	"SV_AuthorizeIpPacket: challenge not found\n"

l_.str.2:                               ; @.str.2
	.asciz	"demo"

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

	.comm	_NS_SERVER,4,2                  ; @NS_SERVER
l_.str.4:                               ; @.str.4
	.asciz	"challengeResponse %i"

l_.str.5:                               ; @.str.5
	.asciz	"print\nServer is not a demo server\n"

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

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

l_.str.8:                               ; @.str.8
	.asciz	"print\nAwaiting CD key authorization\n"

l_.str.9:                               ; @.str.9
	.asciz	"print\n%s\n"

l_.str.10:                              ; @.str.10
	.asciz	"print\nSomeone is using this CD Key\n"

.subsections_via_symbols
