	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_SendClientSnapshot          ## -- Begin function SV_SendClientSnapshot
	.p2align	4, 0x90
_SV_SendClientSnapshot:                 ## @SV_SendClientSnapshot
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_MAX_MSGLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r14, %rdi
	callq	_SV_BuildClientSnapshot
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SVF_BOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_5
LBB0_2:
	shll	$2, %ebx
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_MSG_Init
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	4(%r14), %esi
	movq	%r12, %rdi
	callq	_MSG_WriteLong
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_SV_UpdateServerCommandsToClient
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_SV_WriteSnapshotToClient
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_SV_WriteDownloadToClient
	cmpq	$0, -56(%rbp)
	je	LBB0_4
## %bb.3:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_Com_Printf
	leaq	-56(%rbp), %rdi
	callq	_MSG_Clear
LBB0_4:
	leaq	-56(%rbp), %rdi
	movq	%r14, %rsi
	callq	_SV_SendMessageToClient
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MSGLEN,4,2                 ## @MAX_MSGLEN
	.comm	_SVF_BOT,4,2                    ## @SVF_BOT
	.comm	_qtrue,4,2                      ## @qtrue
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: msg overflowed for %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_SendClientSnapshot          ; -- Begin function SV_SendClientSnapshot
	.p2align	2
_SV_SendClientSnapshot:                 ; @SV_SendClientSnapshot
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #32
	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, #-40]
Lloh3:
	adrp	x8, _MAX_MSGLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_MSGLEN@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	lsl	x8, x21, #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
	bl	_SV_BuildClientSnapshot
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _SVF_BOT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SVF_BOT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
LBB0_2:
	lsl	w2, w21, #2
	sub	x0, x29, #56
	mov	x1, x20
	bl	_MSG_Init
Lloh11:
	adrp	x8, _qtrue@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stur	w8, [x29, #-48]
	ldr	w1, [x19, #4]
	sub	x0, x29, #56
	bl	_MSG_WriteLong
	sub	x1, x29, #56
	mov	x0, x19
	bl	_SV_UpdateServerCommandsToClient
	sub	x1, x29, #56
	mov	x0, x19
	bl	_SV_WriteSnapshotToClient
	sub	x1, x29, #56
	mov	x0, x19
	bl	_SV_WriteDownloadToClient
	ldur	x8, [x29, #-56]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x19]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
	sub	x0, x29, #56
	bl	_MSG_Clear
LBB0_4:
	sub	x0, x29, #56
	mov	x1, x19
	bl	_SV_SendMessageToClient
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MSGLEN,4,2                 ; @MAX_MSGLEN
	.comm	_SVF_BOT,4,2                    ; @SVF_BOT
	.comm	_qtrue,4,2                      ; @qtrue
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: msg overflowed for %s\n"

.subsections_via_symbols
