	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_svs@GOTPCREL(%rip), %r15
	movl	16(%r15), %esi
	callq	_NET_CompareBaseAdr
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	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_4
## %bb.8:
	movq	8(%r15), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rsi)
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rdx
	addq	$16, %rsi
	cmpq	%rdx, %rcx
	jne	LBB0_9
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	xorl	%edx, %edx
LBB0_5:
	cmpl	%ecx, %edx
	jne	LBB0_6
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_6:
	movq	8(%r15), %r12
	movl	%edx, %ebx
	shlq	$4, %rbx
	leaq	(%r12,%rbx), %r14
	movl	(%r15), %eax
	movl	%eax, 12(%r12,%rbx)
	movl	$2, %edi
	callq	_Cmd_Argv
	movq	%rax, %r13
	movl	$3, %edi
	callq	_Cmd_Argv
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_21
## %bb.13:
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_Q_stricmp
	movq	_NS_SERVER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	4(%r12,%rbx), %esi
	testl	%eax, %eax
	je	LBB0_14
## %bb.19:
	testq	%r15, %r15
	jne	LBB0_17
## %bb.20:
	leaq	L_.str.9(%rip), %rdx
	jmp	LBB0_16
LBB0_7:
	movq	_NS_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12,%rbx), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_16:
	xorl	%eax, %eax
	callq	_NET_OutOfBandPrint
	jmp	LBB0_18
LBB0_21:
	movq	_NS_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %ecx
	movl	4(%r12,%rbx), %esi
	movl	8(%r12,%rbx), %r8d
	movq	_com_protocol@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r9d
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NET_OutOfBandPrint             ## TAILCALL
LBB0_14:
	testq	%r15, %r15
	je	LBB0_15
LBB0_17:
	leaq	L_.str.8(%rip), %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_NET_OutOfBandPrint
LBB0_18:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Memset                     ## TAILCALL
LBB0_15:
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_svs,24,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"

	.comm	_NS_SERVER,4,2                  ## @NS_SERVER
L_.str.3:                               ## @.str.3
	.asciz	"print\nServer is not a demo server\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"challengeResponse %d %d %d"

	.comm	_com_protocol,8,3               ## @com_protocol
L_.str.6:                               ## @.str.6
	.asciz	"unknown"

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

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

L_.str.9:                               ## @.str.9
	.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:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x20, _svs@GOTPAGE
Lloh1:
	ldr	x20, [x20, _svs@GOTPAGEOFF]
	ldr	w1, [x20, #16]
	bl	_NET_CompareBaseAdr
	cbz	w0, LBB0_5
; %bb.1:
	mov	w0, #1
	bl	_Cmd_Argv
	bl	_atoi
Lloh2:
	adrp	x8, _MAX_CHALLENGES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_CHALLENGES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x9, #0
	ldr	x10, [x20, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cmp	w11, w0
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	add	x10, x10, #16
	cmp	x8, x9
	b.ne	LBB0_3
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
	mov	w9, #0
LBB0_7:
	cmp	w9, w8
	b.ne	LBB0_10
LBB0_8:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_Com_Printf
LBB0_10:
	ldr	x22, [x20, #8]
	mov	w23, w9
	add	x19, x22, w9, uxtw #4
	ldr	w8, [x20]
	str	w8, [x19, #12]
	mov	w0, #2
	bl	_Cmd_Argv
	mov	x21, x0
	mov	w0, #3
	bl	_Cmd_Argv
	mov	x20, x0
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_Q_stricmp
	cbz	w0, LBB0_15
; %bb.11:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_Q_stricmp
	cbz	w0, LBB0_16
; %bb.12:
Lloh13:
	adrp	x1, l_.str.6@PAGE
Lloh14:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_Q_stricmp
	mov	x8, x0
Lloh15:
	adrp	x9, _NS_SERVER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NS_SERVER@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x9]
	add	x9, x22, x23, lsl #4
	ldr	w1, [x9, #4]
	cbz	w8, LBB0_17
; %bb.13:
	cbnz	x20, LBB0_18
; %bb.14:
Lloh18:
	adrp	x2, l_.str.9@PAGE
Lloh19:
	add	x2, x2, l_.str.9@PAGEOFF
	b	LBB0_19
LBB0_15:
Lloh20:
	adrp	x8, _NS_SERVER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NS_SERVER@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	add	x8, x22, x23, lsl #4
	ldr	w1, [x8, #4]
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_16:
Lloh25:
	adrp	x8, _NS_SERVER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NS_SERVER@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _com_protocol@GOTPAGE
Lloh29:
	ldr	x8, [x8, _com_protocol@GOTPAGEOFF]
	add	x9, x22, x23, lsl #4
Lloh30:
	ldr	x8, [x8]
	ldp	w1, w9, [x9, #4]
	ldr	w10, [x19]
	ldr	w8, [x8]
	stp	x9, x8, [sp, #8]
	str	x10, [sp]
Lloh31:
	adrp	x2, l_.str.5@PAGE
Lloh32:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_NET_OutOfBandPrint
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_17:
	cbz	x20, LBB0_20
LBB0_18:
	str	x20, [sp]
Lloh33:
	adrp	x2, l_.str.8@PAGE
Lloh34:
	add	x2, x2, l_.str.8@PAGEOFF
LBB0_19:
	bl	_NET_OutOfBandPrint
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_Com_Memset
LBB0_20:
Lloh35:
	adrp	x2, l_.str.7@PAGE
Lloh36:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_svs,24,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"

	.comm	_NS_SERVER,4,2                  ; @NS_SERVER
l_.str.3:                               ; @.str.3
	.asciz	"print\nServer is not a demo server\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"challengeResponse %d %d %d"

	.comm	_com_protocol,8,3               ; @com_protocol
l_.str.6:                               ; @.str.6
	.asciz	"unknown"

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

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

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

.subsections_via_symbols
