	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_SendMessageToClient         ## -- Begin function SV_SendMessageToClient
	.p2align	4, 0x90
_SV_SendMessageToClient:                ## @SV_SendMessageToClient
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %eax
	movq	40(%rsi), %rcx
	movq	56(%rsi), %rdx
	movq	_PACKET_MASK@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdi
	andq	%rcx, %rdi
	shlq	$4, %rdi
	movl	%eax, 12(%rdx,%rdi)
	movq	_svs@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, (%rdx,%rdi)
	andq	(%rsi), %rcx
	shlq	$4, %rcx
	movl	$-1, 8(%rdx,%rcx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_SV_Netchan_Transmit
	movq	48(%rbx), %rdi
	movq	_NA_LOOPBACK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_3
## %bb.1:
	movq	_sv_lanForceRate@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	callq	_Sys_IsLANAddress
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	(%r15), %rax
	decq	%rax
LBB0_8:
	movq	%rax, (%rbx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_SV_RateMsec
	movl	8(%rbx), %ecx
	cmpl	%ecx, %eax
	movq	_qtrue@GOTPCREL(%rip), %rdx
	cmovlq	_qfalse@GOTPCREL(%rip), %rdx
	cmovgl	%eax, %ecx
	movl	(%rdx), %eax
	movl	%eax, 32(%rbx)
	movq	(%r15), %rax
	movslq	%ecx, %rdx
	addq	%rax, %rdx
	movq	%rdx, (%rbx)
	movq	16(%rbx), %rdx
	movq	_CS_ACTIVE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_9
## %bb.5:
	movq	24(%rbx), %rdx
	cmpl	$0, (%rdx)
	jne	LBB0_9
## %bb.6:
	cmpl	$999, %ecx                      ## imm = 0x3E7
	jg	LBB0_9
## %bb.7:
	addq	$1000, %rax                     ## imm = 0x3E8
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET_MASK,8,3                ## @PACKET_MASK
	.comm	_svs,8,3                        ## @svs
	.comm	_NA_LOOPBACK,8,3                ## @NA_LOOPBACK
	.comm	_sv_lanForceRate,8,3            ## @sv_lanForceRate
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_CS_ACTIVE,8,3                  ## @CS_ACTIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_SendMessageToClient         ; -- Begin function SV_SendMessageToClient
	.p2align	2
_SV_SendMessageToClient:                ; @SV_SendMessageToClient
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	ldr	x9, [x1, #56]
	ldr	x10, [x1, #40]
Lloh0:
	adrp	x11, _PACKET_MASK@GOTPAGE
Lloh1:
	ldr	x11, [x11, _PACKET_MASK@GOTPAGEOFF]
	ldr	x12, [x11]
	and	x12, x12, x10
	add	x12, x9, x12, lsl #4
	str	w8, [x12, #12]
Lloh2:
	adrp	x21, _svs@GOTPAGE
Lloh3:
	ldr	x21, [x21, _svs@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [x12]
	ldr	x8, [x11]
	and	x8, x8, x10
	add	x8, x9, x8, lsl #4
	mov	w9, #-1
	str	w9, [x8, #8]
	mov	x0, x1
	mov	x1, x20
	bl	_SV_Netchan_Transmit
	ldr	x0, [x19, #48]
Lloh4:
	adrp	x8, _NA_LOOPBACK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NA_LOOPBACK@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.1:
Lloh7:
	adrp	x8, _sv_lanForceRate@GOTPAGE
Lloh8:
	ldr	x8, [x8, _sv_lanForceRate@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.2:
	bl	_Sys_IsLANAddress
	cbz	x0, LBB0_6
LBB0_3:
	ldr	x8, [x21]
	sub	x8, x8, #1
LBB0_4:
	str	x8, [x19]
LBB0_5:
	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_6:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_SV_RateMsec
	ldr	w8, [x19, #8]
Lloh10:
	adrp	x10, _qfalse@GOTPAGE
Lloh11:
	ldr	x10, [x10, _qfalse@GOTPAGEOFF]
Lloh12:
	adrp	x11, _qtrue@GOTPAGE
Lloh13:
	ldr	x11, [x11, _qtrue@GOTPAGEOFF]
	cmp	w0, w8
	csel	w9, w0, w8, gt
	csel	x8, x10, x11, lt
	ldr	w8, [x8]
	str	w8, [x19, #32]
	ldr	x8, [x21]
	add	x10, x8, w9, sxtw
	str	x10, [x19]
	ldr	x10, [x19, #16]
Lloh14:
	adrp	x11, _CS_ACTIVE@GOTPAGE
Lloh15:
	ldr	x11, [x11, _CS_ACTIVE@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	cmp	x10, x11
	b.eq	LBB0_5
; %bb.7:
	ldr	x10, [x19, #24]
	ldr	w10, [x10]
	cbnz	w10, LBB0_5
; %bb.8:
	cmp	w9, #999
	b.gt	LBB0_5
; %bb.9:
	add	x8, x8, #1000
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET_MASK,8,3                ; @PACKET_MASK
	.comm	_svs,8,3                        ; @svs
	.comm	_NA_LOOPBACK,8,3                ; @NA_LOOPBACK
	.comm	_sv_lanForceRate,8,3            ; @sv_lanForceRate
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_CS_ACTIVE,8,3                  ; @CS_ACTIVE
.subsections_via_symbols
