	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SV_Netchan_Encode
_SV_Netchan_Encode:                     ## @SV_Netchan_Encode
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	_SV_ENCODE_START@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jl	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %r12
	movl	16(%rsi), %r13d
	movq	$0, 8(%rsi)
	movl	$0, 16(%rsi)
	movq	%rsi, %rdi
	callq	_MSG_ReadLong
	movl	%r13d, 16(%rbx)
	movq	%r12, 8(%rbx)
	movq	(%r15), %rax
	movq	(%rbx), %r8
	cmpq	%r8, %rax
	jge	LBB0_10
## %bb.2:
	movq	8(%r14), %r10
	movl	4(%r14), %edi
	xorl	(%r14), %edi
	movq	24(%rbx), %r9
	xorl	%edx, %edx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	andb	$1, %cl
	shll	%cl, %ebx
	xorl	%ebx, %edi
	xorl	%edi, (%r9,%rax,4)
	incq	%rdx
	incq	%rax
	cmpq	%rax, %r8
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r10,%rdx,4)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r10,%rdx,4), %ecx
	movl	$46, %ebx
	movl	$46, %esi
	cmpl	$37, %ecx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %esi
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$127, %ecx
	jg	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %ebx
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SV_ENCODE_START,8,3            ## @SV_ENCODE_START
	.no_dead_strip	_SV_Netchan_Encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SV_Netchan_Encode
_SV_Netchan_Encode:                     ; @SV_Netchan_Encode
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	ldr	x8, [x1]
Lloh0:
	adrp	x21, _SV_ENCODE_START@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SV_ENCODE_START@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w22, [x1, #16]
	str	wzr, [x1, #16]
	ldr	d8, [x1, #8]
	str	xzr, [x1, #8]
	mov	x0, x1
	bl	_MSG_ReadLong
	str	w22, [x19, #16]
	str	d8, [x19, #8]
	ldr	x8, [x21]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.2:
	mov	x15, #0
	ldr	x10, [x20, #8]
	ldp	w12, w11, [x20]
	eor	w11, w11, w12
	ldr	x12, [x19, #24]
	mov	w13, #127
	mov	w14, #46
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w16, [x10, x15, lsl #2]
	cmp	w16, #0
	csel	x15, xzr, x15, eq
	ldr	w16, [x10, x15, lsl #2]
	cmp	w16, #37
	ccmp	w16, w13, #0, ne
	and	w17, w8, #0x1
	csel	w16, w14, w16, gt
	lsl	w16, w16, w17
	eor	w11, w16, w11
	lsl	x16, x8, #2
	ldr	w17, [x12, x16]
	add	x15, x15, #1
	eor	w17, w11, w17
	str	w17, [x12, x16]
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_3
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SV_ENCODE_START,8,3            ; @SV_ENCODE_START
	.no_dead_strip	_SV_Netchan_Encode
.subsections_via_symbols
