	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_PacketEvent                 ## -- Begin function CL_PacketEvent
	.p2align	4, 0x90
_CL_PacketEvent:                        ## @CL_PacketEvent
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	_cls@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_clc@GOTPCREL(%rip), %r15
	movl	%eax, 24(%r15)
	movl	(%rsi), %eax
	cmpl	$4, %eax
	jl	LBB0_2
## %bb.1:
	movq	8(%rbx), %rcx
	cmpl	$-1, (%rcx)
	je	LBB0_9
LBB0_2:
	movq	(%r15), %rcx
	movq	_CA_CONNECTED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_3
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$3, %eax
	jg	LBB0_4
## %bb.10:
	movl	%r14d, %edi
	callq	_NET_AdrToStringwPort
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_4:
	movl	32(%r15), %esi
	movl	%r14d, %edi
	callq	_NET_CompareAdr
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	leaq	32(%r15), %rdi
	movq	%rbx, %rsi
	callq	_CL_Netchan_Process
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	4(%rbx), %r14d
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_LittleLong
	movl	%eax, 28(%r15)
	movl	(%r12), %eax
	movl	%eax, 24(%r15)
	movq	%rbx, %rdi
	callq	_CL_ParseServerMessage
	cmpq	$0, 16(%r15)
	je	LBB0_8
## %bb.7:
	cmpl	$0, 8(%r15)
	jne	LBB0_8
## %bb.12:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CL_WriteDemoMessage            ## TAILCALL
LBB0_9:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CL_ConnectionlessPacket        ## TAILCALL
LBB0_11:
	movl	%r14d, %edi
	callq	_NET_AdrToStringwPort
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_DPrintf                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cls,4,2                        ## @cls
	.comm	_clc,40,3                       ## @clc
	.comm	_CA_CONNECTED,8,3               ## @CA_CONNECTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Runt packet\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s:sequenced packet without connection\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_PacketEvent                 ; -- Begin function CL_PacketEvent
	.p2align	2
_CL_PacketEvent:                        ; @CL_PacketEvent
	.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
Lloh0:
	adrp	x22, _cls@GOTPAGE
Lloh1:
	ldr	x22, [x22, _cls@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x21, _clc@GOTPAGE
Lloh3:
	ldr	x21, [x21, _clc@GOTPAGEOFF]
	str	w8, [x21, #24]
	ldr	w8, [x1]
	cmp	w8, #4
	b.lt	LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
	cmn	w9, #1
	b.eq	LBB0_11
LBB0_2:
	ldr	x9, [x21]
Lloh4:
	adrp	x10, _CA_CONNECTED@GOTPAGE
Lloh5:
	ldr	x10, [x10, _CA_CONNECTED@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_4
LBB0_3:
	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_4:
	cmp	w8, #3
	b.gt	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_NET_AdrToStringwPort
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_Com_Printf
LBB0_6:
	ldr	w1, [x21, #32]
	mov	x0, x20
	bl	_NET_CompareAdr
	cbz	w0, LBB0_12
; %bb.7:
	add	x0, x21, #32
	mov	x1, x19
	bl	_CL_Netchan_Process
	cbz	w0, LBB0_3
; %bb.8:
	ldr	w20, [x19, #4]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_LittleLong
	ldr	w8, [x22]
	stp	w8, w0, [x21, #24]
	mov	x0, x19
	bl	_CL_ParseServerMessage
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_3
; %bb.9:
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_3
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	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
	b	_CL_WriteDemoMessage
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	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
	b	_CL_ConnectionlessPacket
LBB0_12:
	mov	x0, x20
	bl	_NET_AdrToStringwPort
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	b	_Com_DPrintf
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cls,4,2                        ; @cls
	.comm	_clc,40,3                       ; @clc
	.comm	_CA_CONNECTED,8,3               ; @CA_CONNECTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Runt packet\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s:sequenced packet without connection\n"

.subsections_via_symbols
