	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CL_Netchan_Encode
_CL_Netchan_Encode:                     ## @CL_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
	movl	(%rdi), %eax
	movq	_CL_ENCODE_START@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jle	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	movq	4(%rdi), %r13
	movl	12(%rdi), %r15d
	movq	$0, 4(%rdi)
	movl	$0, 12(%rdi)
	callq	_MSG_ReadLong
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_MSG_ReadLong
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_MSG_ReadLong
	movl	%r15d, 12(%r14)
	movq	%r13, 4(%r14)
	movslq	(%r12), %rdx
	cmpl	(%r14), %edx
	jge	LBB0_8
## %bb.2:
	movq	_clc@GOTPCREL(%rip), %rcx
	movq	8(%rcx), %rsi
	movq	_MAX_RELIABLE_COMMANDS@GOTPCREL(%rip), %rdi
	movslq	(%rdi), %rdi
	decq	%rdi
	cltq
	andq	%rdi, %rax
	movq	(%rsi,%rax,8), %r9
	xorl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	xorl	(%rcx), %ebx
	movq	16(%r14), %r8
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %ecx
	andb	$1, %cl
	shll	%cl, %esi
	xorl	%esi, %ebx
	xorl	%ebx, (%r8,%rdx,4)
	incl	%edi
	incq	%rdx
	movslq	(%r14), %rax
	cmpq	%rax, %rdx
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%edi, %rdi
	movl	(%r9,%rdi,4), %eax
	testl	%eax, %eax
	cmovel	%eax, %edi
	movslq	%edi, %rax
	movl	(%r9,%rax,4), %ecx
	movl	$46, %esi
	movl	$46, %eax
	cmpl	$37, %ecx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$127, %ecx
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %esi
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CL_ENCODE_START,4,2            ## @CL_ENCODE_START
	.comm	_clc,16,3                       ## @clc
	.comm	_MAX_RELIABLE_COMMANDS,4,2      ## @MAX_RELIABLE_COMMANDS
	.no_dead_strip	_CL_Netchan_Encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CL_Netchan_Encode
_CL_Netchan_Encode:                     ; @CL_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	w8, [x0]
Lloh0:
	adrp	x22, _CL_ENCODE_START@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CL_ENCODE_START@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	b.le	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w23, [x0, #12]
	ldur	d8, [x0, #4]
	str	wzr, [x0, #4]
	str	xzr, [x0, #8]
	bl	_MSG_ReadLong
	mov	x20, x0
	mov	x0, x19
	bl	_MSG_ReadLong
	mov	x21, x0
	mov	x0, x19
	bl	_MSG_ReadLong
	str	w23, [x19, #12]
	stur	d8, [x19, #4]
	ldrsw	x8, [x22]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.2:
	mov	w10, #0
Lloh2:
	adrp	x11, _clc@GOTPAGE
Lloh3:
	ldr	x11, [x11, _clc@GOTPAGEOFF]
Lloh4:
	adrp	x9, _MAX_RELIABLE_COMMANDS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MAX_RELIABLE_COMMANDS@GOTPAGEOFF]
	ldr	x12, [x11, #8]
Lloh6:
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w9, w9, w0
	ldr	x9, [x12, w9, sxtw #3]
	eor	w12, w21, w20
	ldr	w11, [x11]
	eor	w11, w12, w11
	ldr	x12, [x19, #16]
	mov	w13, #127
	mov	w14, #46
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x9, w10, sxtw #2]
	cmp	w15, #0
	csel	w10, wzr, w10, eq
	ldr	w15, [x9, w10, sxtw #2]
	cmp	w15, #37
	ccmp	w15, w13, #0, ne
	and	w16, w8, #0x1
	csel	w15, w14, w15, gt
	lsl	w15, w15, w16
	eor	w11, w15, w11
	add	w10, w10, #1
	lsl	x15, x8, #2
	ldr	w16, [x12, x15]
	eor	w16, w11, w16
	str	w16, [x12, x15]
	add	x8, x8, #1
	ldrsw	x15, [x19]
	cmp	x8, x15
	b.lt	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CL_ENCODE_START,4,2            ; @CL_ENCODE_START
	.comm	_clc,16,3                       ; @clc
	.comm	_MAX_RELIABLE_COMMANDS,4,2      ; @MAX_RELIABLE_COMMANDS
	.no_dead_strip	_CL_Netchan_Encode
.subsections_via_symbols
