	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NetUpdate                      ## -- Begin function NetUpdate
	.p2align	4, 0x90
_NetUpdate:                             ## @NetUpdate
	.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
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_I_GetTime
	movq	_ticdup@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cltd
	idivl	%ecx
	movq	_gametime@GOTPCREL(%rip), %rsi
	movl	%eax, %edx
	subl	(%rsi), %edx
	movl	%eax, (%rsi)
	jle	LBB0_19
## %bb.1:
	movq	_skiptics@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %ebx
	subl	%edx, %ebx
	negl	%ebx
	subl	%edx, %esi
	cmovlel	%r14d, %esi
	cmovgl	%r14d, %ebx
	movl	%esi, (%rax)
	movq	_consoleplayer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_netbuffer@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, 24(%rdx)
	movq	_gametic@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%ecx
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.2:
	movl	%eax, %r14d
	movq	_maketic@GOTPCREL(%rip), %r15
	movq	_BACKUPTICS@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_I_StartTic
	xorl	%eax, %eax
	callq	_D_ProcessEvents
	movl	(%r15), %eax
	movl	%eax, %edx
	subl	%r14d, %edx
	movl	(%r12), %ecx
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	decl	%esi
	cmpl	%esi, %edx
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cltd
	idivl	%ecx
	movslq	%edx, %rdi
	shlq	$2, %rdi
	movq	_localcmds@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_G_BuildTiccmd
	incl	(%r15)
	incl	%r13d
	cmpl	%ebx, %r13d
	jl	LBB0_3
LBB0_5:
	movq	_singletics@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_doomcom@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpl	$0, (%rax)
	jle	LBB0_19
## %bb.7:
	xorl	%r13d, %r13d
	movq	_BACKUPTICS@GOTPCREL(%rip), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	$0, 8(%rcx)
	xorl	%esi, %esi
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %edi
	callq	_HSendPacket
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movq	(%r12), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %r13
	jge	LBB0_19
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	_nodeingame@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rcx,%r13,8)
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_resendto@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	(%rdx,%r13,4), %r15d
	movq	_netbuffer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r15d, (%rcx)
	movq	_maketic@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, %edi
	subl	%r15d, %edi
	movl	%edi, 4(%rcx)
	cmpl	(%r14), %edi
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_I_Error
	movq	_maketic@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rax
	movq	_resendto@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_netbuffer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	subl	4(%rax), %esi
	movl	%esi, (%rdx,%r13,4)
	cmpl	$0, 4(%rcx)
	jle	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_localcmds@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	16(%rcx), %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r15,%rbx), %eax
	cltd
	idivl	(%r14)
	movslq	%edx, %rax
	movl	(%rsi,%rax,4), %eax
	movl	%eax, (%rdi,%rbx,4)
	incq	%rbx
	movslq	4(%rcx), %rax
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_remoteresend@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax,%r13,8)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_nettics@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movq	%rax, 8(%rcx)
	movq	_NCMD_RETRANSMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_17
LBB0_19:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GetPackets                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ticdup,4,2                     ## @ticdup
	.comm	_gametime,4,2                   ## @gametime
	.comm	_skiptics,4,2                   ## @skiptics
	.comm	_consoleplayer,4,2              ## @consoleplayer
	.comm	_netbuffer,8,3                  ## @netbuffer
	.comm	_gametic,4,2                    ## @gametic
	.comm	_maketic,4,2                    ## @maketic
	.comm	_BACKUPTICS,4,2                 ## @BACKUPTICS
	.comm	_localcmds,8,3                  ## @localcmds
	.comm	_singletics,8,3                 ## @singletics
	.comm	_doomcom,8,3                    ## @doomcom
	.comm	_nodeingame,8,3                 ## @nodeingame
	.comm	_resendto,8,3                   ## @resendto
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NetUpdate: netbuffer->numtics > BACKUPTICS"

	.comm	_remoteresend,8,3               ## @remoteresend
	.comm	_nettics,8,3                    ## @nettics
	.comm	_NCMD_RETRANSMIT,4,2            ## @NCMD_RETRANSMIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NetUpdate                      ; -- Begin function NetUpdate
	.p2align	2
_NetUpdate:                             ; @NetUpdate
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	bl	_I_GetTime
Lloh0:
	adrp	x8, _ticdup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ticdup@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w10, w0, w8
Lloh3:
	adrp	x11, _gametime@GOTPAGE
Lloh4:
	ldr	x11, [x11, _gametime@GOTPAGEOFF]
	ldr	w9, [x11]
	sub	w9, w10, w9
	str	w10, [x11]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.1:
Lloh5:
	adrp	x10, _skiptics@GOTPAGE
Lloh6:
	ldr	x10, [x10, _skiptics@GOTPAGEOFF]
	ldr	w11, [x10]
	sub	w12, w9, w11
	subs	w9, w11, w9
	csel	w9, w9, wzr, gt
	csel	w19, wzr, w12, gt
	str	w9, [x10]
Lloh7:
	adrp	x9, _consoleplayer@GOTPAGE
Lloh8:
	ldr	x9, [x9, _consoleplayer@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x21, _netbuffer@GOTPAGE
Lloh11:
	ldr	x21, [x21, _netbuffer@GOTPAGEOFF]
	ldr	x10, [x21]
	str	w9, [x10, #24]
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w20, #0
Lloh12:
	adrp	x9, _gametic@GOTPAGE
Lloh13:
	ldr	x9, [x9, _gametic@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	sdiv	w22, w9, w8
Lloh15:
	adrp	x23, _maketic@GOTPAGE
Lloh16:
	ldr	x23, [x23, _maketic@GOTPAGEOFF]
Lloh17:
	adrp	x24, _BACKUPTICS@GOTPAGE
Lloh18:
	ldr	x24, [x24, _BACKUPTICS@GOTPAGEOFF]
Lloh19:
	adrp	x25, _localcmds@GOTPAGE
Lloh20:
	ldr	x25, [x25, _localcmds@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_I_StartTic
	bl	_D_ProcessEvents
	ldr	w8, [x23]
	ldr	w9, [x24]
	cmp	w9, #0
	cinc	w10, w9, lt
	asr	w10, w10, #1
	sub	w10, w10, #1
	sub	w11, w8, w22
	cmp	w11, w10
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x25]
	sdiv	w11, w8, w9
	msub	w8, w11, w9, w8
	add	x0, x10, w8, sxtw #2
	bl	_G_BuildTiccmd
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	add	w20, w20, #1
	cmp	w20, w19
	b.lt	LBB0_3
LBB0_5:
Lloh21:
	adrp	x8, _singletics@GOTPAGE
Lloh22:
	ldr	x8, [x8, _singletics@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh24:
	adrp	x22, _doomcom@GOTPAGE
Lloh25:
	ldr	x22, [x22, _doomcom@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.8:
	mov	x19, #0
Lloh26:
	adrp	x23, _nodeingame@GOTPAGE
Lloh27:
	ldr	x23, [x23, _nodeingame@GOTPAGEOFF]
Lloh28:
	adrp	x24, _resendto@GOTPAGE
Lloh29:
	ldr	x24, [x24, _resendto@GOTPAGEOFF]
Lloh30:
	adrp	x25, _maketic@GOTPAGE
Lloh31:
	ldr	x25, [x25, _maketic@GOTPAGEOFF]
Lloh32:
	adrp	x26, _BACKUPTICS@GOTPAGE
Lloh33:
	ldr	x26, [x26, _BACKUPTICS@GOTPAGEOFF]
Lloh34:
	adrp	x28, _remoteresend@GOTPAGE
Lloh35:
	ldr	x28, [x28, _remoteresend@GOTPAGEOFF]
Lloh36:
	adrp	x27, _NCMD_RETRANSMIT@GOTPAGE
Lloh37:
	ldr	x27, [x27, _NCMD_RETRANSMIT@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=1
	mov	w1, #0
	str	xzr, [x9, #8]
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_HSendPacket
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x19, x19, #1
	ldr	x8, [x22]
	ldrsw	x9, [x8]
	cmp	x19, x9
	b.ge	LBB0_20
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	ldr	x9, [x23]
	ldr	x9, [x9, x19, lsl #3]
	cbz	x9, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x10, [x24]
	ldr	w20, [x10, x19, lsl #2]
	ldr	x9, [x21]
	str	w20, [x9]
	ldr	w11, [x25]
	ldr	w12, [x26]
	sub	w13, w11, w20
	cmp	w13, w12
	str	w13, [x9, #4]
	b.le	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh38:
	adrp	x0, l_.str@PAGE
Lloh39:
	add	x0, x0, l_.str@PAGEOFF
	bl	_I_Error
	ldr	w11, [x25]
	ldr	x8, [x22]
	ldr	x10, [x24]
	ldr	x9, [x21]
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x8, #4]
	sub	w8, w11, w8
	str	w8, [x10, x19, lsl #2]
	ldr	w8, [x9, #4]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x8, #0
Lloh40:
	adrp	x10, _localcmds@GOTPAGE
Lloh41:
	ldr	x10, [x10, _localcmds@GOTPAGEOFF]
Lloh42:
	ldr	x10, [x10]
	ldr	x11, [x9, #16]
LBB0_17:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x26]
	add	w13, w20, w8
	sdiv	w14, w13, w12
	msub	w12, w14, w12, w13
	ldr	w12, [x10, w12, sxtw #2]
	str	w12, [x11, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x12, [x9, #4]
	cmp	x8, x12
	b.lt	LBB0_17
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x28]
	ldr	x8, [x8, x19, lsl #3]
	cbz	x8, LBB0_9
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh43:
	adrp	x8, _nettics@GOTPAGE
Lloh44:
	ldr	x8, [x8, _nettics@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	ldr	x8, [x8, x19, lsl #3]
	str	x8, [x9, #8]
	ldr	w1, [x27]
	b	LBB0_10
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_GetPackets
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_ticdup,4,2                     ; @ticdup
	.comm	_gametime,4,2                   ; @gametime
	.comm	_skiptics,4,2                   ; @skiptics
	.comm	_consoleplayer,4,2              ; @consoleplayer
	.comm	_netbuffer,8,3                  ; @netbuffer
	.comm	_gametic,4,2                    ; @gametic
	.comm	_maketic,4,2                    ; @maketic
	.comm	_BACKUPTICS,4,2                 ; @BACKUPTICS
	.comm	_localcmds,8,3                  ; @localcmds
	.comm	_singletics,8,3                 ; @singletics
	.comm	_doomcom,8,3                    ; @doomcom
	.comm	_nodeingame,8,3                 ; @nodeingame
	.comm	_resendto,8,3                   ; @resendto
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NetUpdate: netbuffer->numtics > BACKUPTICS"

	.comm	_remoteresend,8,3               ; @remoteresend
	.comm	_nettics,8,3                    ; @nettics
	.comm	_NCMD_RETRANSMIT,4,2            ; @NCMD_RETRANSMIT
.subsections_via_symbols
