	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_LocalServers_f              ## -- Begin function CL_LocalServers_f
	.p2align	4, 0x90
_CL_LocalServers_f:                     ## @CL_LocalServers_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_Com_Printf
	movq	_cls@GOTPCREL(%rip), %r14
	movq	$0, 16(%r14)
	movq	_AS_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_MAX_OTHER_SERVERS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	movq	(%r14), %rdi
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rdi,%rbx), %r13d
	addq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_Com_Memset
	movq	(%r14), %rdi
	movl	%r13d, 8(%rdi,%rbx)
	incq	%r12
	movslq	(%r15), %rax
	addq	$12, %rbx
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_3:
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_Com_Memset
	movq	_NUM_SERVER_PORTS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.4:
	xorl	%r13d, %r13d
	movq	_PORT_SERVER@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %eax
	addl	%r13d, %eax
	movswl	%ax, %edi
	movq	%rdx, %r15
	callq	_BigShort
	movl	%eax, -52(%rbp)
	movq	_NA_BROADCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_NS_CLIENT@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	leaq	L_.str.1(%rip), %r12
	movq	%r12, %rdi
	callq	_strlen
	movq	-56(%rbp), %rcx
	movl	-48(%rbp), %r8d
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_NET_SendPacket
	movq	_NA_BROADCAST_IPX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	(%r14), %ebx
	movq	%r12, %rdi
	callq	_strlen
	movq	-56(%rbp), %rcx
	movl	-48(%rbp), %r8d
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_NET_SendPacket
	movq	%r15, %rdx
	movq	_NUM_SERVER_PORTS@GOTPCREL(%rip), %rax
	incq	%r13
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jl	LBB0_5
## %bb.6:
	testl	%eax, %eax
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	leaq	L_.str.1(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %eax
	addl	%ebx, %eax
	movswl	%ax, %edi
	callq	_BigShort
	movl	%eax, -52(%rbp)
	movq	_NA_BROADCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_NS_CLIENT@GOTPCREL(%rip), %r14
	movl	(%r14), %r13d
	movq	%r12, %rdi
	callq	_strlen
	movq	-56(%rbp), %rcx
	movl	-48(%rbp), %r8d
	movl	%r13d, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_NET_SendPacket
	movq	_NA_BROADCAST_IPX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	(%r14), %r13d
	movq	%r12, %rdi
	callq	_strlen
	movq	-56(%rbp), %rcx
	movl	-48(%rbp), %r8d
	movl	%r13d, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_NET_SendPacket
	movq	%r15, %rdx
	incq	%rbx
	movq	_NUM_SERVER_PORTS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Scanning for servers on the local network...\n"

	.comm	_cls,24,3                       ## @cls
	.comm	_AS_LOCAL,4,2                   ## @AS_LOCAL
	.comm	_MAX_OTHER_SERVERS,4,2          ## @MAX_OTHER_SERVERS
L_.str.1:                               ## @.str.1
	.asciz	"\377\377\377\377getinfo xxx"

	.comm	_NUM_SERVER_PORTS,4,2           ## @NUM_SERVER_PORTS
	.comm	_PORT_SERVER,8,3                ## @PORT_SERVER
	.comm	_NA_BROADCAST,4,2               ## @NA_BROADCAST
	.comm	_NS_CLIENT,4,2                  ## @NS_CLIENT
	.comm	_NA_BROADCAST_IPX,4,2           ## @NA_BROADCAST_IPX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_LocalServers_f              ; -- Begin function CL_LocalServers_f
	.p2align	2
_CL_LocalServers_f:                     ; @CL_LocalServers_f
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
Lloh2:
	adrp	x19, _cls@GOTPAGE
Lloh3:
	ldr	x19, [x19, _cls@GOTPAGEOFF]
	str	xzr, [x19, #16]
Lloh4:
	adrp	x8, _AS_LOCAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AS_LOCAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh7:
	adrp	x20, _MAX_OTHER_SERVERS@GOTPAGE
Lloh8:
	ldr	x20, [x20, _MAX_OTHER_SERVERS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	ldr	x8, [x19]
	mov	w22, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x8, x22
	ldr	w23, [x0], #-8
	mov	w1, #0
	mov	w2, #12
	bl	_Com_Memset
	ldr	x8, [x19]
	str	w23, [x8, x22]
	add	x21, x21, #1
	ldrsw	x9, [x20]
	add	x22, x22, #12
	cmp	x21, x9
	b.lt	LBB0_2
LBB0_3:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_Com_Memset
Lloh9:
	adrp	x23, _NUM_SERVER_PORTS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _NUM_SERVER_PORTS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x28, #0
Lloh11:
	adrp	x24, _PORT_SERVER@GOTPAGE
Lloh12:
	ldr	x24, [x24, _PORT_SERVER@GOTPAGEOFF]
Lloh13:
	adrp	x25, _NA_BROADCAST@GOTPAGE
Lloh14:
	ldr	x25, [x25, _NA_BROADCAST@GOTPAGEOFF]
Lloh15:
	adrp	x26, _NS_CLIENT@GOTPAGE
Lloh16:
	ldr	x26, [x26, _NS_CLIENT@GOTPAGEOFF]
Lloh17:
	adrp	x21, l_.str.1@PAGE
Lloh18:
	add	x21, x21, l_.str.1@PAGEOFF
                                        ; implicit-def: $x19
                                        ; implicit-def: $x20
Lloh19:
	adrp	x27, _NA_BROADCAST_IPX@GOTPAGE
Lloh20:
	ldr	x27, [x27, _NA_BROADCAST_IPX@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	add	w8, w28, w8
	sxth	w0, w8
	bl	_BigShort
	ldr	w8, [x25]
	stp	w8, w0, [sp]
	ldr	w22, [x26]
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	ldr	x3, [sp]
	ldr	w8, [sp, #8]
	and	x9, x20, #0xffffffff00000000
	orr	x20, x9, x8
	mov	x0, x22
	mov	x2, x21
	mov	x4, x20
	bl	_NET_SendPacket
	ldr	w8, [x27]
	str	w8, [sp]
	ldr	w22, [x26]
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	ldr	x3, [sp]
	ldr	w8, [sp, #8]
	and	x9, x19, #0xffffffff00000000
	orr	x19, x9, x8
	mov	x0, x22
	mov	x2, x21
	mov	x4, x19
	bl	_NET_SendPacket
	add	x28, x28, #1
	ldrsw	x8, [x23]
	cmp	x28, x8
	b.lt	LBB0_5
; %bb.6:
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x28, #0
Lloh21:
	adrp	x21, l_.str.1@PAGE
Lloh22:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	add	w8, w28, w8
	sxth	w0, w8
	bl	_BigShort
	ldr	w8, [x25]
	stp	w8, w0, [sp]
	ldr	w22, [x26]
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	ldr	x3, [sp]
	ldr	w8, [sp, #8]
	and	x9, x20, #0xffffffff00000000
	orr	x20, x9, x8
	mov	x0, x22
	mov	x2, x21
	mov	x4, x20
	bl	_NET_SendPacket
	ldr	w8, [x27]
	str	w8, [sp]
	ldr	w22, [x26]
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	ldr	x3, [sp]
	ldr	w8, [sp, #8]
	and	x9, x19, #0xffffffff00000000
	orr	x19, x9, x8
	mov	x0, x22
	mov	x2, x21
	mov	x4, x19
	bl	_NET_SendPacket
	add	x28, x28, #1
	ldrsw	x8, [x23]
	cmp	x28, x8
	b.lt	LBB0_8
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Scanning for servers on the local network...\n"

	.comm	_cls,24,3                       ; @cls
	.comm	_AS_LOCAL,4,2                   ; @AS_LOCAL
	.comm	_MAX_OTHER_SERVERS,4,2          ; @MAX_OTHER_SERVERS
l_.str.1:                               ; @.str.1
	.asciz	"\377\377\377\377getinfo xxx"

	.comm	_NUM_SERVER_PORTS,4,2           ; @NUM_SERVER_PORTS
	.comm	_PORT_SERVER,8,3                ; @PORT_SERVER
	.comm	_NA_BROADCAST,4,2               ; @NA_BROADCAST
	.comm	_NS_CLIENT,4,2                  ; @NS_CLIENT
	.comm	_NA_BROADCAST_IPX,4,2           ; @NA_BROADCAST_IPX
.subsections_via_symbols
