	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function NET_Event
LCPI0_0:
	.long	0x42c80000                      ## float 100
LCPI0_2:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x4059000000000000              ## double 100
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_NET_Event
	.p2align	4, 0x90
_NET_Event:                             ## @NET_Event
	.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	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_MSGLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	1(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	$0, -56(%rbp)
	leal	4(,%rbx,4), %r12d
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_MSG_Init
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_NET_GetPacket
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	leaq	-60(%rbp), %rbx
	leaq	-56(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %edi
	movq	%rbx, %rsi
	callq	_CL_PacketEvent
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_MSG_Init
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_NET_GetPacket
	testq	%rax, %rax
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_net_dropsim@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	ucomiss	LCPI0_2(%rip), %xmm0
	jbe	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_rand
	movq	_RAND_MAX@GOTPCREL(%rip), %rcx
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%rcx), %xmm0
	divsd	LCPI0_1(%rip), %xmm0
	movq	_net_dropsim@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movss	(%rcx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	cvtss2sd	%xmm1, %xmm1
	mulsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %ecx
	cmpl	%ecx, %eax
	jl	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_com_sv_running@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_Com_RunAndTimeServerPacket
	jmp	LBB0_8
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MSGLEN,4,2                 ## @MAX_MSGLEN
	.comm	_net_dropsim,8,3                ## @net_dropsim
	.comm	_RAND_MAX,8,3                   ## @RAND_MAX
	.comm	_com_sv_running,8,3             ## @com_sv_running
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NET_Event                      ; -- Begin function NET_Event
	.p2align	2
_NET_Event:                             ; @NET_Event
	.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
	sub	sp, sp, #32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAX_MSGLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_MSGLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w12, w8, #1
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	stur	wzr, [x29, #-80]
	lsl	w21, w12, #2
	sub	x0, x29, #84
	mov	x1, x20
	mov	x2, x21
	bl	_MSG_Init
	sub	x0, x29, #80
	sub	x1, x29, #84
	mov	x2, x19
	bl	_NET_GetPacket
	cbz	x0, LBB0_8
; %bb.1:
Lloh8:
	adrp	x22, _net_dropsim@GOTPAGE
Lloh9:
	ldr	x22, [x22, _net_dropsim@GOTPAGEOFF]
	mov	w23, #1120403456
Lloh10:
	adrp	x24, _com_sv_running@GOTPAGE
Lloh11:
	ldr	x24, [x24, _com_sv_running@GOTPAGEOFF]
	mov	x25, #4636737291354636288
Lloh12:
	adrp	x26, _RAND_MAX@GOTPAGE
Lloh13:
	ldr	x26, [x26, _RAND_MAX@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldur	w0, [x29, #-80]
	sub	x1, x29, #84
	bl	_CL_PacketEvent
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x0, x29, #84
	mov	x1, x20
	mov	x2, x21
	bl	_MSG_Init
	sub	x0, x29, #80
	sub	x1, x29, #84
	mov	x2, x19
	bl	_NET_GetPacket
	cbz	x0, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	s0, [x8]
	fcmp	s0, #0.0
	fmov	s1, w23
	fccmp	s0, s1, #2, gt
	b.hi	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_rand
	ldr	d0, [x26]
	scvtf	d0, d0
	fmov	d1, x25
	fdiv	d0, d0, d1
	ldr	x8, [x22]
	ldr	s1, [x8]
	fcvt	d1, s1
	fmul	d0, d0, d1
	fcvtzs	w8, d0
	cmp	w0, w8
	b.lt	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x0, x29, #80
	sub	x1, x29, #84
	bl	_Com_RunAndTimeServerPacket
	b	LBB0_3
LBB0_8:
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #64
	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_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MSGLEN,4,2                 ; @MAX_MSGLEN
	.comm	_net_dropsim,8,3                ; @net_dropsim
	.comm	_RAND_MAX,8,3                   ; @RAND_MAX
	.comm	_com_sv_running,8,3             ; @com_sv_running
.subsections_via_symbols
