	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_PacketEvent                 ## -- Begin function SV_PacketEvent
	.p2align	4, 0x90
_SV_PacketEvent:                        ## @SV_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	cmpl	$4, (%rsi)
	jl	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	cmpl	$-1, (%rax)
	je	LBB0_14
LBB0_2:
	movq	%rbx, %rdi
	callq	_MSG_BeginReadingOOB
	movq	%rbx, %rdi
	callq	_MSG_ReadLong
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_MSG_ReadShort
	movq	_sv_maxclients@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_13
## %bb.3:
	movzwl	%ax, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_svs@GOTPCREL(%rip), %rax
	movq	8(%rax), %rbx
	xorl	%r14d, %r14d
	movq	_CS_FREE@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
	addq	$32, %rbx
	movq	(%r13), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%rbx), %rsi
	movq	%r15, %rdi
	callq	_NET_CompareBaseAdr
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 16(%rbx)
	jne	LBB0_12
## %bb.7:
	cmpq	%r15, 24(%rbx)
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	_Com_Printf
	movq	%r15, 24(%rbx)
LBB0_9:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_SV_Netchan_Process
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	(%rbx), %rax
	movq	_CS_ZOMBIE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SV_ConnectionlessPacket        ## TAILCALL
LBB0_11:
	movq	_svs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SV_ExecuteClientMessage        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_svs,16,3                       ## @svs
	.comm	_sv_maxclients,8,3              ## @sv_maxclients
	.comm	_CS_FREE,8,3                    ## @CS_FREE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SV_PacketEvent: fixing up a translated port\n"

	.comm	_CS_ZOMBIE,8,3                  ## @CS_ZOMBIE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_PacketEvent                 ; -- Begin function SV_PacketEvent
	.p2align	2
_SV_PacketEvent:                        ; @SV_PacketEvent
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	cmp	w8, #4
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_13
LBB0_2:
	mov	x0, x19
	bl	_MSG_BeginReadingOOB
	mov	x0, x19
	bl	_MSG_ReadLong
	mov	x0, x19
	bl	_MSG_ReadShort
Lloh0:
	adrp	x23, _sv_maxclients@GOTPAGE
Lloh1:
	ldr	x23, [x23, _sv_maxclients@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.3:
	mov	w24, #0
	and	w25, w0, #0xffff
Lloh2:
	adrp	x22, _svs@GOTPAGE
Lloh3:
	ldr	x22, [x22, _svs@GOTPAGEOFF]
	ldr	x21, [x22, #8]
Lloh4:
	adrp	x26, _CS_FREE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _CS_FREE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, #1
	add	x21, x21, #32
	ldr	x8, [x23]
	ldr	w8, [x8]
	cmp	w24, w8
	b.ge	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x21, #24]
	mov	x0, x20
	bl	_NET_CompareBaseAdr
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21, #16]
	cmp	w8, w25
	b.ne	LBB0_4
; %bb.8:
	ldr	x8, [x21, #24]
	cmp	x8, x20
	b.eq	LBB0_10
; %bb.9:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
	str	x20, [x21, #24]
LBB0_10:
	mov	x0, x21
	mov	x1, x19
	bl	_SV_Netchan_Process
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _CS_ZOMBIE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CS_ZOMBIE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
LBB0_12:
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_SV_ConnectionlessPacket
LBB0_14:
	ldr	w8, [x22]
	str	w8, [x21, #8]
	mov	x0, x21
	mov	x1, x19
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_SV_ExecuteClientMessage
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_svs,16,3                       ; @svs
	.comm	_sv_maxclients,8,3              ; @sv_maxclients
	.comm	_CS_FREE,8,3                    ; @CS_FREE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SV_PacketEvent: fixing up a translated port\n"

	.comm	_CS_ZOMBIE,8,3                  ; @CS_ZOMBIE
.subsections_via_symbols
