	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_SendDownloadMessages        ## -- Begin function SV_SendDownloadMessages
	.p2align	4, 0x90
_SV_SendDownloadMessages:               ## @SV_SendDownloadMessages
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_MSGLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_sv_maxclients@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	shll	$2, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	_svs@GOTPCREL(%rip), %rdx
	leaq	-84(%rbp), %r13
	xorl	%r12d, %r12d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_sv_maxclients@GOTPCREL(%rip), %rcx
	movq	_svs@GOTPCREL(%rip), %rdx
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	(%rcx), %rax
	movslq	(%rax), %rax
	addq	$24, %r15
	cmpq	%rax, %r12
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rbx
	cmpq	$0, 16(%rbx,%r15)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx,%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rbx,%r15), %r14
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_MSG_Init
	movl	(%rbx,%r15), %esi
	movq	%r14, %rbx
	movq	%r13, %rdi
	callq	_MSG_WriteLong
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_SV_WriteDownloadToClient
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r14d
	movq	_svc_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_MSG_WriteByte
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_SV_Netchan_Transmit
	addl	%r14d, -52(%rbp)                ## 4-byte Folded Spill
	jmp	LBB0_7
LBB0_1:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_9:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MSGLEN,4,2                 ## @MAX_MSGLEN
	.comm	_sv_maxclients,8,3              ## @sv_maxclients
	.comm	_svs,8,3                        ## @svs
	.comm	_svc_EOF,4,2                    ## @svc_EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_SendDownloadMessages        ; -- Begin function SV_SendDownloadMessages
	.p2align	2
_SV_SendDownloadMessages:               ; @SV_SendDownloadMessages
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x8, sp
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_MSGLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_MSGLEN@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x25, _sv_maxclients@GOTPAGE
Lloh9:
	ldr	x25, [x25, _sv_maxclients@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x26, #0
	mov	x27, #0
	mov	w19, #0
	lsl	w21, w12, #2
Lloh10:
	adrp	x28, _svs@GOTPAGE
Lloh11:
	ldr	x28, [x28, _svs@GOTPAGEOFF]
Lloh12:
	adrp	x24, _svc_EOF@GOTPAGE
Lloh13:
	ldr	x24, [x24, _svc_EOF@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x27, #1
	ldr	x8, [x25]
	ldrsw	x8, [x8]
	add	x26, x26, #24
	cmp	x27, x8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x28]
	add	x22, x23, x26
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x0, x29, #92
	mov	x1, x20
	mov	x2, x21
	bl	_MSG_Init
	ldr	w1, [x23, x26]
	sub	x0, x29, #92
	bl	_MSG_WriteLong
	sub	x1, x29, #92
	mov	x0, x22
	bl	_SV_WriteDownloadToClient
	cbz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	ldr	w1, [x24]
	sub	x0, x29, #92
	bl	_MSG_WriteByte
	sub	x1, x29, #92
	mov	x0, x22
	bl	_SV_Netchan_Transmit
	add	w19, w23, w19
	b	LBB0_2
LBB0_7:
	mov	w19, #0
LBB0_8:
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MSGLEN,4,2                 ; @MAX_MSGLEN
	.comm	_sv_maxclients,8,3              ; @sv_maxclients
	.comm	_svs,8,3                        ; @svs
	.comm	_svc_EOF,4,2                    ; @svc_EOF
.subsections_via_symbols
