	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_ServerStatus_f              ## -- Begin function CL_ServerStatus_f
	.p2align	4, 0x90
_CL_ServerStatus_f:                     ## @CL_ServerStatus_f
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NA_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_Cmd_Argc
	movl	%eax, %ebx
	andl	$-2, %eax
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.1:
	leaq	-28(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_Com_Memset
	movl	$1, %edi
	callq	_Cmd_Argv
	cmpl	$2, %ebx
	je	LBB0_13
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movl	$1, %edi
	callq	_Cmd_Argv
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	leaq	L_.str.4(%rip), %rdi
	callq	_Com_Printf
	jmp	LBB0_12
LBB0_5:
	movq	_clc@GOTPCREL(%rip), %r15
	movq	_CA_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%r15), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_8
## %bb.6:
	cmpq	$0, 16(%r15)
	jne	LBB0_8
## %bb.7:
	addq	$8, %r15
	jmp	LBB0_14
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_Com_Printf
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_9:
	movq	_NA_IP@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_NA_IP6@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %r14d
LBB0_12:
	movl	$2, %edi
	callq	_Cmd_Argv
LBB0_13:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_NET_StringToAdr
	testl	%eax, %eax
	je	LBB0_15
LBB0_14:
	movq	_NS_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	leaq	L_.str.5(%rip), %rdx
	callq	_NET_OutOfBandPrint
	movl	(%r15), %edi
	callq	_CL_GetServerStatus
	movl	(%r15), %ecx
	movl	%ecx, 16(%rax)
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
	movq	%rcx, (%rax)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NA_UNSPEC,4,2                  ## @NA_UNSPEC
	.comm	_clc,24,3                       ## @clc
	.comm	_CA_ACTIVE,8,3                  ## @CA_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not connected to a server.\n"

L_.str.1:                               ## @.str.1
	.asciz	"usage: serverstatus [-4|-6] server\n"

L_.str.2:                               ## @.str.2
	.asciz	"-4"

	.comm	_NA_IP,4,2                      ## @NA_IP
L_.str.3:                               ## @.str.3
	.asciz	"-6"

	.comm	_NA_IP6,4,2                     ## @NA_IP6
L_.str.4:                               ## @.str.4
	.asciz	"warning: only -4 or -6 as address type understood.\n"

	.comm	_NS_CLIENT,4,2                  ## @NS_CLIENT
L_.str.5:                               ## @.str.5
	.asciz	"getstatus"

	.comm	_qtrue,8,3                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_ServerStatus_f              ; -- Begin function CL_ServerStatus_f
	.p2align	2
_CL_ServerStatus_f:                     ; @CL_ServerStatus_f
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _NA_UNSPEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NA_UNSPEC@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_Cmd_Argc
	and	w8, w0, #0xfffffffe
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.1:
	mov	x20, x0
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_Com_Memset
	mov	w0, #1
	bl	_Cmd_Argv
	cmp	w20, #2
	b.eq	LBB0_12
; %bb.2:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.3:
	mov	w0, #1
	bl	_Cmd_Argv
Lloh5:
	adrp	x1, l_.str.3@PAGE
Lloh6:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.4:
Lloh7:
	adrp	x0, l_.str.4@PAGE
Lloh8:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_Com_Printf
	b	LBB0_11
LBB0_5:
Lloh9:
	adrp	x8, _clc@GOTPAGE
Lloh10:
	ldr	x8, [x8, _clc@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh11:
	adrp	x10, _CA_ACTIVE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CA_ACTIVE@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	ldr	x11, [x8, #16]
	cmp	x9, x10
	ccmp	x11, #0, #0, eq
	b.eq	LBB0_7
; %bb.6:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_Com_Printf
LBB0_7:
	add	x20, x8, #8
	b	LBB0_13
LBB0_8:
Lloh18:
	adrp	x8, _NA_IP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NA_IP@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh20:
	adrp	x8, _NA_IP6@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NA_IP6@GOTPAGEOFF]
LBB0_10:
	ldr	w19, [x8]
LBB0_11:
	mov	w0, #2
	bl	_Cmd_Argv
LBB0_12:
	add	x20, sp, #12
	add	x1, sp, #12
	mov	x2, x19
	bl	_NET_StringToAdr
	cbz	w0, LBB0_14
LBB0_13:
Lloh22:
	adrp	x8, _NS_CLIENT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NS_CLIENT@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w1, [x20]
Lloh25:
	adrp	x2, l_.str.5@PAGE
Lloh26:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_NET_OutOfBandPrint
	ldr	w0, [x20]
	bl	_CL_GetServerStatus
	ldr	w8, [x20]
	str	w8, [x0, #16]
Lloh27:
	adrp	x8, _qtrue@GOTPAGE
Lloh28:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	stp	x8, x8, [x0]
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_NA_UNSPEC,4,2                  ; @NA_UNSPEC
	.comm	_clc,24,3                       ; @clc
	.comm	_CA_ACTIVE,8,3                  ; @CA_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not connected to a server.\n"

l_.str.1:                               ; @.str.1
	.asciz	"usage: serverstatus [-4|-6] server\n"

l_.str.2:                               ; @.str.2
	.asciz	"-4"

	.comm	_NA_IP,4,2                      ; @NA_IP
l_.str.3:                               ; @.str.3
	.asciz	"-6"

	.comm	_NA_IP6,4,2                     ; @NA_IP6
l_.str.4:                               ; @.str.4
	.asciz	"warning: only -4 or -6 as address type understood.\n"

	.comm	_NS_CLIENT,4,2                  ; @NS_CLIENT
l_.str.5:                               ; @.str.5
	.asciz	"getstatus"

	.comm	_qtrue,8,3                      ; @qtrue
.subsections_via_symbols
