	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SVC_RemoteCommand              ## -- Begin function SVC_RemoteCommand
	.p2align	4, 0x90
_SVC_RemoteCommand:                     ## @SVC_RemoteCommand
	.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	$2040, %rsp                     ## imm = 0x7F8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_Com_Milliseconds
	movl	$500, %ecx                      ## imm = 0x1F4
	addl	_SVC_RemoteCommand.lasttime(%rip), %ecx
	cmpl	%ecx, %eax
	jb	LBB0_18
## %bb.1:
	movl	%eax, _SVC_RemoteCommand.lasttime(%rip)
	movq	_sv_rconPassword@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	$1, %edi
	callq	_Cmd_Argv
	movq	(%r12), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_strcmp
	testq	%rax, %rax
	movq	_qfalse@GOTPCREL(%rip), %rax
	cmoveq	_qtrue@GOTPCREL(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str(%rip), %rbx
	cmoveq	%rcx, %rbx
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rbx
	movq	_qfalse@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r13d
	movl	%r14d, %edi
	callq	_NET_AdrToString
	movl	%eax, %r15d
	movl	$2, %edi
	callq	_Cmd_Argv
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_Com_Printf
	movq	_svs@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	movq	_SV_FlushRedirect@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-2080(%rbp), %rdi
	movl	$1008, %esi                     ## imm = 0x3F0
	callq	_Com_BeginRedirect
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.9:
	movb	$0, -1072(%rbp)
	xorl	%eax, %eax
	callq	_Cmd_Cmd
	addq	$3, %rax
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzbl	1(%rax), %ecx
	incq	%rax
	cmpb	$32, %cl
	je	LBB0_10
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movzbl	1(%rax), %ecx
	incq	%rax
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	testb	%cl, %cl
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$32, %cl
	jne	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leaq	1(%rax), %rdx
	cmpb	$32, 1(%rax)
	movq	%rdx, %rax
	je	LBB0_14
	jmp	LBB0_16
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
LBB0_6:
	xorl	%eax, %eax
	callq	_Com_Printf
	jmp	LBB0_17
LBB0_15:
	movq	%rax, %rdx
LBB0_16:
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_Q_strcat
	movq	%rbx, %rdi
	callq	_Cmd_ExecuteString
LBB0_17:
	xorl	%eax, %eax
	callq	_Com_EndRedirect
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	addq	$2040, %rsp                     ## imm = 0x7F8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_SVC_RemoteCommand.lasttime,4,2 ## @SVC_RemoteCommand.lasttime
	.comm	_sv_rconPassword,8,3            ## @sv_rconPassword
	.comm	_qfalse,4,2                     ## @qfalse
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad rcon from %s:\n%s\n"

	.comm	_qtrue,4,2                      ## @qtrue
L_.str.1:                               ## @.str.1
	.asciz	"Rcon from %s:\n%s\n"

	.comm	_svs,4,2                        ## @svs
	.comm	_SV_FlushRedirect,4,2           ## @SV_FlushRedirect
L_.str.2:                               ## @.str.2
	.asciz	"No rconpassword set on the server.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Bad rconpassword.\n"

	.comm	_SV_OUTPUTBUF_LENGTH,4,2        ## @SV_OUTPUTBUF_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SVC_RemoteCommand              ; -- Begin function SVC_RemoteCommand
	.p2align	2
_SVC_RemoteCommand:                     ; @SVC_RemoteCommand
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #2064
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_Com_Milliseconds
	adrp	x8, _SVC_RemoteCommand.lasttime@PAGE
	ldr	w9, [x8, _SVC_RemoteCommand.lasttime@PAGEOFF]
	add	w9, w9, #500
	cmp	w0, w9
	b.lo	LBB0_16
; %bb.1:
	str	w0, [x8, _SVC_RemoteCommand.lasttime@PAGEOFF]
Lloh3:
	adrp	x22, _sv_rconPassword@GOTPAGE
Lloh4:
	ldr	x22, [x22, _sv_rconPassword@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_strlen
Lloh5:
	adrp	x20, l_.str@PAGE
Lloh6:
	add	x20, x20, l_.str@PAGEOFF
Lloh7:
	adrp	x21, _qfalse@GOTPAGE
Lloh8:
	ldr	x21, [x21, _qfalse@GOTPAGEOFF]
	cbz	w0, LBB0_3
; %bb.2:
	mov	w0, #1
	bl	_Cmd_Argv
	ldr	x8, [x22]
	ldr	w1, [x8]
	bl	_strcmp
Lloh9:
	adrp	x8, _qtrue@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	cmp	x0, #0
	csel	x21, x8, x21, eq
Lloh11:
	adrp	x8, l_.str.1@PAGE
Lloh12:
	add	x8, x8, l_.str.1@PAGEOFF
	csel	x20, x8, x20, eq
LBB0_3:
	ldr	w23, [x21]
	mov	x0, x19
	bl	_NET_AdrToString
	mov	x21, x0
	mov	w0, #2
	bl	_Cmd_Argv
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
	mov	x0, x20
	bl	_Com_Printf
Lloh13:
	adrp	x8, _svs@GOTPAGE
Lloh14:
	ldr	x8, [x8, _svs@GOTPAGEOFF]
Lloh15:
	str	w19, [x8]
Lloh16:
	adrp	x8, _SV_FlushRedirect@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SV_FlushRedirect@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	add	x0, sp, #24
	mov	w1, #1008
	bl	_Com_BeginRedirect
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_strlen
	cbz	w0, LBB0_12
; %bb.4:
	cbz	w23, LBB0_13
; %bb.5:
	strb	wzr, [sp, #1032]
	bl	_Cmd_Cmd
	add	x2, x0, #3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x2, #1]!
	cmp	w8, #32
	b.eq	LBB0_6
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x2, #1]!
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, #32
	b.ne	LBB0_7
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x2, #1]!
	cmp	w8, #32
	b.eq	LBB0_10
LBB0_11:
	add	x0, sp, #1032
	mov	w1, #1024
	bl	_Q_strcat
	add	x0, sp, #1032
	bl	_Cmd_ExecuteString
	b	LBB0_15
LBB0_12:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_14:
	bl	_Com_Printf
LBB0_15:
	bl	_Com_EndRedirect
LBB0_16:
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	add	sp, sp, #2064
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_SVC_RemoteCommand.lasttime,4,2 ; @SVC_RemoteCommand.lasttime
	.comm	_sv_rconPassword,8,3            ; @sv_rconPassword
	.comm	_qfalse,4,2                     ; @qfalse
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad rcon from %s:\n%s\n"

	.comm	_qtrue,4,2                      ; @qtrue
l_.str.1:                               ; @.str.1
	.asciz	"Rcon from %s:\n%s\n"

	.comm	_svs,4,2                        ; @svs
	.comm	_SV_FlushRedirect,4,2           ; @SV_FlushRedirect
l_.str.2:                               ; @.str.2
	.asciz	"No rconpassword set on the server.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Bad rconpassword.\n"

	.comm	_SV_OUTPUTBUF_LENGTH,4,2        ; @SV_OUTPUTBUF_LENGTH
.subsections_via_symbols
