	.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), %r12
	cmpq	(%r12), %rax
	jl	LBB0_10
## %bb.1:
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	24(%rsi), %ebx
	movq	$0, 8(%rsi)
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rsi)
	movq	%rsi, %rdi
	callq	_MSG_ReadLong
	movl	%ebx, 24(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r14)
	movq	(%r12), %rax
	movq	(%r14), %r8
	cmpq	%r8, %rax
	jge	LBB0_10
## %bb.2:
	movl	4(%r15), %esi
	xorl	(%r15), %esi
	movq	16(%r14), %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, %edi
	xorl	%edi, %esi
	xorl	%esi, (%r9,%rax,4)
	incq	%rdx
	incq	%rax
	cmpq	%rax, %r8
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r13,%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	(%r13,%rdx,4), %ecx
	movl	$46, %edi
	movl	$46, %ebx
	cmpl	$37, %ecx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %ebx
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	%ebx, %edi
	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
	.comm	_qfalse,4,2                     ## @qfalse
	.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, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -72
	.cfi_offset b9, -80
	ldr	x8, [x1]
Lloh0:
	adrp	x22, _SV_ENCODE_START@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SV_ENCODE_START@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh2:
	adrp	x8, _qfalse@GOTPAGE
Lloh3:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	ldr	w23, [x1, #24]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x1, #24]
	ldr	d8, [x1, #8]
	str	xzr, [x1, #8]
	mov	x0, x1
	bl	_MSG_ReadLong
	str	w23, [x20, #24]
	str	d8, [x20, #8]
	ldr	x8, [x22]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.2:
	mov	x14, #0
	ldp	w11, w10, [x21]
	eor	w10, w10, w11
	ldr	x11, [x20, #16]
	mov	w12, #127
	mov	w13, #46
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x19, x14, lsl #2]
	cmp	w15, #0
	csel	x14, xzr, x14, eq
	ldr	w15, [x19, x14, lsl #2]
	cmp	w15, #37
	ccmp	w15, w12, #0, ne
	and	w16, w8, #0x1
	csel	w15, w13, w15, gt
	lsl	w15, w15, w16
	eor	w10, w15, w10
	lsl	x15, x8, #2
	ldr	w16, [x11, x15]
	add	x14, x14, #1
	eor	w16, w10, w16
	str	w16, [x11, x15]
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_3
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SV_ENCODE_START,8,3            ; @SV_ENCODE_START
	.comm	_qfalse,4,2                     ; @qfalse
	.no_dead_strip	_SV_Netchan_Encode
.subsections_via_symbols
