	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netplay_poll
_netplay_poll:                          ## @netplay_poll
	.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
	movq	%rdi, %r14
	movl	$0, (%rdi)
	callq	_get_self_input_state
	testl	%eax, %eax
	je	LBB0_84
## %bb.1:
	movq	8(%r14), %rax
	movq	_NETPLAY_CONNECTION_NONE@GOTPCREL(%rip), %rcx
	movl	$1, %r13d
	cmpq	(%rcx), %rax
	je	LBB0_88
## %bb.2:
	movq	%r14, %rdi
	callq	_netplay_update_unread_ptr
	cmpq	$0, 112(%r14)
	je	LBB0_5
## %bb.3:
	cmpl	$2, 16(%r14)
	jl	LBB0_5
## %bb.4:
	movq	24(%r14), %rax
	movl	$1, %esi
	cmpq	32(%r14), %rax
	jle	LBB0_6
LBB0_5:
	xorl	%esi, %esi
LBB0_6:
	movq	%r14, %rdi
	callq	_netplay_poll_net_input
	cmpl	$-1, %eax
	je	LBB0_84
## %bb.7:
	movl	128(%r14), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_netplay_resolve_input
	cmpq	$0, 96(%r14)
	je	LBB0_10
## %bb.8:
	cmpq	$0, 120(%r14)
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_netplay_handle_slaves
LBB0_10:
	movq	%r14, %rdi
	callq	_netplay_update_unread_ptr
	movl	40(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.11:
	movl	$16666, %eax                    ## imm = 0x411A
	xorl	%edx, %edx
	idivl	%ecx
	movl	%eax, %r15d
	jmp	LBB0_13
LBB0_12:
	xorl	%r15d, %r15d
	cmpq	$0, 112(%r14)
	je	LBB0_30
LBB0_13:
	movq	24(%r14), %rax
	movq	32(%r14), %rcx
	movl	%ecx, %r12d
	subl	%eax, %r12d
	xorl	%r13d, %r13d
	cmpq	%rax, %rcx
	cmovlel	%r13d, %r12d
	xorl	%eax, %eax
	callq	_config_get_ptr
	movl	(%rax), %ecx
	cmpq	$0, 16(%rax)
	movl	$0, %edx
	je	LBB0_15
## %bb.14:
	movl	4(%rax), %edx
LBB0_15:
	subl	%edx, %ecx
	movl	8(%rax), %esi
	addl	%ecx, %esi
	subl	$2, %r15d
	cmovbl	%r13d, %r15d
	cmpq	$0, 112(%r14)
	movl	44(%r14), %eax
	movl	$1, %edx
	je	LBB0_18
## %bb.16:
	cmpl	%ecx, %eax
	jl	LBB0_17
## %bb.20:
	movq	24(%r14), %r8
	movq	32(%r14), %rbx
	leaq	1(%rbx), %rdi
	cmpq	%rdi, %r8
	movl	$1, %r13d
	jne	LBB0_22
## %bb.21:
	cmpl	%esi, %eax
	jl	LBB0_29
LBB0_22:
	movl	$-1, %edx
	cmpl	%esi, %eax
	jg	LBB0_29
## %bb.23:
	addq	$2, %rbx
	cmpq	%rbx, %r8
	jg	LBB0_28
	jmp	LBB0_30
LBB0_18:
	cmpl	%ecx, %eax
	jge	LBB0_24
LBB0_17:
	movl	$1, %r13d
LBB0_29:
	addl	%edx, %eax
	movl	%eax, 44(%r14)
LBB0_30:
	movl	48(%r14), %eax
	leal	-128(%rax), %ecx
	cmpl	$4, %ecx
	ja	LBB0_36
## %bb.31:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_32:
	movq	8(%r14), %rax
	movq	_NETPLAY_CONNECTION_PLAYING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_34
## %bb.33:
	movq	24(%r14), %rax
	cmpq	56(%r14), %rax
	jle	LBB0_66
LBB0_34:
	movq	_NETPLAY_STALL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_35:
	movl	%eax, 48(%r14)
LBB0_36:
	testl	%eax, %eax
	jne	LBB0_66
## %bb.37:
	movq	8(%r14), %rax
	movq	_NETPLAY_CONNECTION_PLAYING@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_41
## %bb.38:
	cmpl	$0, 16(%r14)
	je	LBB0_41
## %bb.39:
	movslq	44(%r14), %rax
	addq	32(%r14), %rax
	cmpq	56(%r14), %rax
	jle	LBB0_41
## %bb.40:
	movl	$132, 48(%r14)
	movq	$0, 72(%r14)
LBB0_41:
	movq	_NETPLAY_MAX_STALL_FRAMES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	24(%r14), %rax
	cmpq	56(%r14), %rax
	jle	LBB0_53
## %bb.42:
	cmpq	$0, 96(%r14)
	jne	LBB0_66
	jmp	LBB0_62
LBB0_43:
	movq	88(%r14), %rcx
	movl	32(%rcx), %eax
	testl	%eax, %eax
	je	LBB0_72
## %bb.44:
	decl	%eax
	movl	%eax, 32(%rcx)
	jmp	LBB0_66
LBB0_45:
	movq	24(%r14), %rax
	movq	_NETPLAY_MAX_STALL_FRAMES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rcx, %rax
	addq	$-2, %rax
	cmpq	56(%r14), %rax
	jle	LBB0_66
## %bb.46:
	movq	_NETPLAY_STALL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	64(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_36
## %bb.47:
	movq	88(%r14), %r8
	cmpq	$1, %rdx
	jne	LBB0_91
## %bb.48:
	xorl	%esi, %esi
LBB0_49:
	testb	$1, %dl
	je	LBB0_36
## %bb.50:
	leaq	(%rsi,%rsi,4), %rcx
	cmpq	$0, 24(%r8,%rcx,8)
	je	LBB0_36
## %bb.51:
	cmpl	$0, (%r8,%rcx,8)
	je	LBB0_36
## %bb.52:
	leaq	(%r8,%rcx,8), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_36
LBB0_24:
	cmpl	%r12d, %r15d
	movl	$1, %r13d
	jae	LBB0_26
## %bb.25:
	cmpl	%esi, %eax
	jl	LBB0_29
LBB0_26:
	movl	$-1, %edx
	cmpl	%esi, %eax
	jg	LBB0_29
## %bb.27:
	addl	$2, %r12d
	cmpl	%r12d, %r15d
	jbe	LBB0_30
LBB0_28:
	cmpl	%ecx, %eax
	jg	LBB0_29
	jmp	LBB0_30
LBB0_53:
	movl	$130, 48(%r14)
	xorl	%eax, %eax
	callq	_cpu_features_get_time_usec
	movq	%rax, 72(%r14)
	cmpq	$0, 96(%r14)
	je	LBB0_62
## %bb.54:
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	cmpl	$2, %edx
	jl	LBB0_66
## %bb.55:
	movl	16(%r14), %r9d
	movl	$1, %edi
	movl	$3, %ecx
	jmp	LBB0_57
	.p2align	4, 0x90
LBB0_56:                                ##   in Loop: Header=BB0_57 Depth=1
	incq	%rdi
	movslq	%edx, %rsi
	addq	$5, %rcx
	cmpq	%rsi, %rdi
	jge	LBB0_66
LBB0_57:                                ## =>This Inner Loop Header: Depth=1
	btl	%edi, %r9d
	jae	LBB0_56
## %bb.58:                              ##   in Loop: Header=BB0_57 Depth=1
	movq	80(%r14), %rbx
	movq	(%rbx,%rdi,8), %rbx
	cmpq	24(%r14), %rbx
	jg	LBB0_56
## %bb.59:                              ##   in Loop: Header=BB0_57 Depth=1
	movq	88(%r14), %rbx
	cmpq	$0, (%rbx,%rcx,8)
	je	LBB0_56
## %bb.60:                              ##   in Loop: Header=BB0_57 Depth=1
	movq	-16(%rbx,%rcx,8), %rsi
	cmpq	(%r15), %rsi
	jne	LBB0_56
## %bb.61:                              ##   in Loop: Header=BB0_57 Depth=1
	movl	$130, -24(%rbx,%rcx,8)
	movq	%rax, -8(%rbx,%rcx,8)
	movl	(%r8), %edx
	jmp	LBB0_56
LBB0_62:
	movq	8(%r14), %rax
	movq	_NETPLAY_CONNECTION_SPECTATING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_64
## %bb.63:
	movq	_NETPLAY_CONNECTION_SLAVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_66
LBB0_64:
	movq	24(%r14), %rax
	cmpq	56(%r14), %rax
	jg	LBB0_66
## %bb.65:
	movl	$128, 48(%r14)
	xorl	%eax, %eax
	callq	_cpu_features_get_time_usec
	movq	%rax, 72(%r14)
LBB0_66:
	cmpl	$0, 48(%r14)
	je	LBB0_88
## %bb.67:
	cmpq	$0, 72(%r14)
	je	LBB0_88
## %bb.68:
	xorl	%eax, %eax
	callq	_cpu_features_get_time_usec
	cmpq	$0, 104(%r14)
	je	LBB0_70
## %bb.69:
	movq	%rax, 72(%r14)
	jmp	LBB0_88
LBB0_70:
	subq	72(%r14), %rax
	cmpq	$0, 96(%r14)
	jne	LBB0_73
## %bb.71:
	movq	_MAX_CLIENT_STALL_TIME_USEC@GOTPCREL(%rip), %rcx
	jmp	LBB0_74
LBB0_72:
	movq	_NETPLAY_STALL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_35
LBB0_73:
	movq	_MAX_SERVER_STALL_TIME_USEC@GOTPCREL(%rip), %rcx
LBB0_74:
	movq	(%rcx), %rcx
	je	LBB0_83
## %bb.75:
	cmpq	%rcx, %rax
	jl	LBB0_83
## %bb.76:
	movq	64(%r14), %rax
	testq	%rax, %rax
	je	LBB0_87
## %bb.77:
	xorl	%r15d, %r15d
	movq	_NETPLAY_CONNECTION_PLAYING@GOTPCREL(%rip), %r12
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	jmp	LBB0_79
	.p2align	4, 0x90
LBB0_78:                                ##   in Loop: Header=BB0_79 Depth=1
	incq	%r13
	addq	$40, %r15
	cmpq	%rax, %r13
	jae	LBB0_89
LBB0_79:                                ## =>This Inner Loop Header: Depth=1
	movq	88(%r14), %rsi
	cmpq	$0, 24(%rsi,%r15)
	je	LBB0_78
## %bb.80:                              ##   in Loop: Header=BB0_79 Depth=1
	movq	8(%rsi,%r15), %rdx
	cmpq	(%r12), %rdx
	jne	LBB0_78
## %bb.81:                              ##   in Loop: Header=BB0_79 Depth=1
	cmpl	$0, (%rsi,%r15)
	je	LBB0_78
## %bb.82:                              ##   in Loop: Header=BB0_79 Depth=1
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_netplay_hangup
	movq	64(%r14), %rax
	movl	$1, %ecx
	jmp	LBB0_78
LBB0_83:
	cmpq	%rcx, %rax
	jl	LBB0_88
LBB0_84:
	cmpq	$0, 64(%r14)
	je	LBB0_87
## %bb.85:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_86:                                ## =>This Inner Loop Header: Depth=1
	movq	88(%r14), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_netplay_hangup
	incq	%rbx
	addq	$40, %r15
	cmpq	64(%r14), %rbx
	jb	LBB0_86
	jmp	LBB0_88
LBB0_89:
	testl	%ecx, %ecx
	je	LBB0_87
## %bb.90:
	movq	_NETPLAY_STALL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movl	$1, %r13d
	jmp	LBB0_88
LBB0_87:
	xorl	%r13d, %r13d
LBB0_88:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_91:
	movq	%rdx, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	movq	%r8, %rcx
	jmp	LBB0_93
LBB0_92:                                ##   in Loop: Header=BB0_93 Depth=1
	addq	$2, %rsi
	addq	$80, %rcx
	cmpq	%rsi, %rdi
	je	LBB0_49
LBB0_93:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%rcx)
	je	LBB0_96
## %bb.94:                              ##   in Loop: Header=BB0_93 Depth=1
	cmpl	$0, (%rcx)
	je	LBB0_96
## %bb.95:                              ##   in Loop: Header=BB0_93 Depth=1
	movl	%eax, (%rcx)
LBB0_96:                                ##   in Loop: Header=BB0_93 Depth=1
	cmpq	$0, 64(%rcx)
	je	LBB0_92
## %bb.97:                              ##   in Loop: Header=BB0_93 Depth=1
	cmpl	$0, 40(%rcx)
	je	LBB0_92
## %bb.98:                              ##   in Loop: Header=BB0_93 Depth=1
	movl	%eax, 40(%rcx)
	jmp	LBB0_92
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_43, LBB0_43-LJTI0_0
.set L0_0_set_45, LBB0_45-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
LJTI0_0:
	.long	L0_0_set_32
	.long	L0_0_set_43
	.long	L0_0_set_45
	.long	L0_0_set_36
	.long	L0_0_set_34
	.end_data_region
                                        ## -- End function
	.comm	_NETPLAY_CONNECTION_NONE,8,3    ## @NETPLAY_CONNECTION_NONE
	.comm	_NETPLAY_MAX_STALL_FRAMES,8,3   ## @NETPLAY_MAX_STALL_FRAMES
	.comm	_NETPLAY_STALL_NONE,8,3         ## @NETPLAY_STALL_NONE
	.comm	_NETPLAY_CONNECTION_PLAYING,8,3 ## @NETPLAY_CONNECTION_PLAYING
	.comm	_MAX_CLIENTS,4,2                ## @MAX_CLIENTS
	.comm	_NETPLAY_CONNECTION_SPECTATING,8,3 ## @NETPLAY_CONNECTION_SPECTATING
	.comm	_NETPLAY_CONNECTION_SLAVE,8,3   ## @NETPLAY_CONNECTION_SLAVE
	.comm	_MAX_SERVER_STALL_TIME_USEC,8,3 ## @MAX_SERVER_STALL_TIME_USEC
	.comm	_MAX_CLIENT_STALL_TIME_USEC,8,3 ## @MAX_CLIENT_STALL_TIME_USEC
	.no_dead_strip	_netplay_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netplay_poll
_netplay_poll:                          ; @netplay_poll
	.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, x0
	str	wzr, [x0]
	bl	_get_self_input_state
	cbz	w0, LBB0_81
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _NETPLAY_CONNECTION_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETPLAY_CONNECTION_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #1
	b	LBB0_85
LBB0_3:
	mov	x0, x19
	bl	_netplay_update_unread_ptr
	ldr	x8, [x19, #112]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w8, [x19, #16]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.5:
	ldp	x8, x9, [x19, #24]
	cmp	x8, x9
	b.le	LBB0_44
LBB0_6:
	mov	w1, #0
LBB0_7:
	mov	x0, x19
	bl	_netplay_poll_net_input
	cmn	w0, #1
	b.eq	LBB0_81
; %bb.8:
	ldr	w1, [x19, #128]
	mov	x0, x19
	mov	w2, #0
	bl	_netplay_resolve_input
	ldr	x8, [x19, #96]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	x8, [x19, #120]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_netplay_handle_slaves
LBB0_11:
	mov	x0, x19
	bl	_netplay_update_unread_ptr
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_13
; %bb.12:
	mov	w9, #16666
	sdiv	w21, w9, w8
	b	LBB0_15
LBB0_13:
	ldr	x8, [x19, #112]
	cbz	x8, LBB0_31
; %bb.14:
	mov	w21, #0
LBB0_15:
	ldp	x9, x8, [x19, #24]
	sub	w10, w8, w9
	cmp	x8, x9
	csel	w20, w10, wzr, gt
	bl	_config_get_ptr
	ldr	w8, [x0]
	ldr	x9, [x0, #16]
	cbz	x9, LBB0_17
; %bb.16:
	ldr	w9, [x0, #4]
LBB0_17:
	ldr	w10, [x0, #8]
	sub	w9, w8, w9
	add	w10, w9, w10
	subs	w8, w21, #2
	csel	w11, wzr, w8, lo
	ldr	x12, [x19, #112]
	ldr	w8, [x19, #44]
	cmp	w8, w9
	cbz	x12, LBB0_24
; %bb.18:
	b.lt	LBB0_29
; %bb.19:
	ldp	x11, x12, [x19, #24]
	add	x13, x12, #1
	cmp	x11, x13
	b.ne	LBB0_21
; %bb.20:
	cmp	w8, w10
	b.lt	LBB0_29
LBB0_21:
	cmp	w8, w10
	b.gt	LBB0_28
; %bb.22:
	add	x10, x12, #2
	cmp	x11, x10
	b.le	LBB0_31
; %bb.23:
	cmp	w8, w9
	b.gt	LBB0_28
	b	LBB0_31
LBB0_24:
	b.lt	LBB0_29
; %bb.25:
	cmp	w11, w20
	ccmp	w8, w10, #0, lo
	b.lt	LBB0_29
; %bb.26:
	cmp	w8, w10
	b.gt	LBB0_28
; %bb.27:
	add	w10, w20, #2
	cmp	w11, w10
	ccmp	w8, w9, #4, hi
	b.le	LBB0_31
LBB0_28:
	mov	w9, #-1
	b	LBB0_30
LBB0_29:
	mov	w9, #1
LBB0_30:
	add	w8, w8, w9
	str	w8, [x19, #44]
LBB0_31:
	ldr	w8, [x19, #48]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hi	LBB0_37
; %bb.32:
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_33
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_33:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _NETPLAY_CONNECTION_PLAYING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NETPLAY_CONNECTION_PLAYING@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_35
; %bb.34:
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #56]
	cmp	x8, x9
	b.le	LBB0_66
LBB0_35:
Lloh8:
	adrp	x8, _NETPLAY_STALL_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETPLAY_STALL_NONE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
LBB0_36:
	str	w8, [x19, #48]
LBB0_37:
	cbnz	w8, LBB0_66
; %bb.38:
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x20, _NETPLAY_CONNECTION_PLAYING@GOTPAGE
Lloh12:
	ldr	x20, [x20, _NETPLAY_CONNECTION_PLAYING@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_42
; %bb.39:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_42
; %bb.40:
	ldr	x8, [x19, #32]
	ldrsw	x9, [x19, #44]
	ldr	x10, [x19, #56]
	add	x8, x8, x9
	cmp	x8, x10
	b.le	LBB0_42
; %bb.41:
	mov	w8, #132
	str	w8, [x19, #48]
	str	xzr, [x19, #72]
LBB0_42:
	ldr	x8, [x19, #24]
Lloh13:
	adrp	x9, _NETPLAY_MAX_STALL_FRAMES@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NETPLAY_MAX_STALL_FRAMES@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	x10, [x19, #56]
	add	x8, x9, x8
	cmp	x8, x10
	b.le	LBB0_54
; %bb.43:
	ldr	x8, [x19, #96]
	cbnz	x8, LBB0_66
	b	LBB0_63
LBB0_44:
	mov	w1, #1
	b	LBB0_7
LBB0_45:
	ldr	x9, [x19, #88]
	ldr	w8, [x9, #32]
	cbz	w8, LBB0_79
; %bb.46:
	sub	w8, w8, #1
	str	w8, [x9, #32]
	b	LBB0_66
LBB0_47:
Lloh16:
	adrp	x8, _NETPLAY_MAX_STALL_FRAMES@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NETPLAY_MAX_STALL_FRAMES@GOTPAGEOFF]
	ldr	x9, [x19, #24]
Lloh18:
	ldr	x8, [x8]
	add	x8, x9, x8
	sub	x8, x8, #2
	ldr	x9, [x19, #56]
	cmp	x8, x9
	b.le	LBB0_66
; %bb.48:
Lloh19:
	adrp	x8, _NETPLAY_STALL_NONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NETPLAY_STALL_NONE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	ldr	x9, [x19, #64]
	cbz	x9, LBB0_37
; %bb.49:
	ldr	x10, [x19, #88]
	b	LBB0_51
LBB0_50:                                ;   in Loop: Header=BB0_51 Depth=1
	add	x10, x10, #40
	subs	x9, x9, #1
	b.eq	LBB0_37
LBB0_51:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, #24]
	cbz	x11, LBB0_50
; %bb.52:                               ;   in Loop: Header=BB0_51 Depth=1
	ldr	w11, [x10]
	cbz	w11, LBB0_50
; %bb.53:                               ;   in Loop: Header=BB0_51 Depth=1
	str	w8, [x10]
	b	LBB0_50
LBB0_54:
	mov	w8, #130
	str	w8, [x19, #48]
	bl	_cpu_features_get_time_usec
	str	x0, [x19, #72]
	ldr	x8, [x19, #96]
	cbz	x8, LBB0_63
; %bb.55:
Lloh22:
	adrp	x8, _MAX_CLIENTS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MAX_CLIENTS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #2
	b.lt	LBB0_66
; %bb.56:
	mov	x10, #0
	ldr	w11, [x19, #16]
	mov	w12, #1
	mov	w13, #130
	b	LBB0_58
LBB0_57:                                ;   in Loop: Header=BB0_58 Depth=1
	add	x12, x12, #1
	add	x10, x10, #40
	cmp	x12, w9, sxtw
	b.ge	LBB0_66
LBB0_58:                                ; =>This Inner Loop Header: Depth=1
	lsr	w14, w11, w12
	tbz	w14, #0, LBB0_57
; %bb.59:                               ;   in Loop: Header=BB0_58 Depth=1
	ldr	x14, [x19, #80]
	ldr	x14, [x14, x12, lsl #3]
	ldr	x15, [x19, #24]
	cmp	x14, x15
	b.gt	LBB0_57
; %bb.60:                               ;   in Loop: Header=BB0_58 Depth=1
	ldr	x14, [x19, #88]
	add	x15, x14, x10
	ldr	x16, [x15, #24]
	cbz	x16, LBB0_57
; %bb.61:                               ;   in Loop: Header=BB0_58 Depth=1
	ldr	x15, [x15, #8]
	ldr	x16, [x20]
	cmp	x15, x16
	b.ne	LBB0_57
; %bb.62:                               ;   in Loop: Header=BB0_58 Depth=1
	add	x9, x14, x10
	str	w13, [x9]
	str	x0, [x9, #16]
	ldr	w9, [x8]
	b	LBB0_57
LBB0_63:
	ldr	x8, [x19, #8]
Lloh24:
	adrp	x9, _NETPLAY_CONNECTION_SPECTATING@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NETPLAY_CONNECTION_SPECTATING@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
Lloh27:
	adrp	x10, _NETPLAY_CONNECTION_SLAVE@GOTPAGE
Lloh28:
	ldr	x10, [x10, _NETPLAY_CONNECTION_SLAVE@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_66
; %bb.64:
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #56]
	cmp	x8, x9
	b.gt	LBB0_66
; %bb.65:
	mov	w8, #128
	str	w8, [x19, #48]
	bl	_cpu_features_get_time_usec
	str	x0, [x19, #72]
LBB0_66:
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_2
; %bb.67:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_2
; %bb.68:
	bl	_cpu_features_get_time_usec
	ldr	x8, [x19, #104]
	cbz	x8, LBB0_70
; %bb.69:
	str	x0, [x19, #72]
	mov	w0, #1
	b	LBB0_85
LBB0_70:
	ldr	x8, [x19, #72]
	sub	x8, x0, x8
Lloh30:
	adrp	x9, _MAX_SERVER_STALL_TIME_USEC@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MAX_SERVER_STALL_TIME_USEC@GOTPAGEOFF]
	ldr	x10, [x19, #96]
Lloh32:
	adrp	x11, _MAX_CLIENT_STALL_TIME_USEC@GOTPAGE
Lloh33:
	ldr	x11, [x11, _MAX_CLIENT_STALL_TIME_USEC@GOTPAGEOFF]
	cmp	x10, #0
	csel	x9, x11, x9, eq
	ldr	x9, [x9]
	cbz	x10, LBB0_80
; %bb.71:
	cmp	x8, x9
	b.lt	LBB0_80
; %bb.72:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_84
; %bb.73:
	mov	x20, #0
	mov	w9, #0
	mov	x21, #0
Lloh34:
	adrp	x22, _NETPLAY_CONNECTION_PLAYING@GOTPAGE
Lloh35:
	ldr	x22, [x22, _NETPLAY_CONNECTION_PLAYING@GOTPAGEOFF]
	b	LBB0_75
LBB0_74:                                ;   in Loop: Header=BB0_75 Depth=1
	add	x21, x21, #1
	add	x20, x20, #40
	cmp	x21, x8
	b.hs	LBB0_86
LBB0_75:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #88]
	add	x1, x10, x20
	ldr	x11, [x1, #24]
	cbz	x11, LBB0_74
; %bb.76:                               ;   in Loop: Header=BB0_75 Depth=1
	ldr	x11, [x1, #8]
	ldr	x12, [x22]
	cmp	x11, x12
	b.ne	LBB0_74
; %bb.77:                               ;   in Loop: Header=BB0_75 Depth=1
	ldr	w10, [x10, x20]
	cbz	w10, LBB0_74
; %bb.78:                               ;   in Loop: Header=BB0_75 Depth=1
	mov	x0, x19
	bl	_netplay_hangup
	ldr	x8, [x19, #64]
	mov	w9, #1
	b	LBB0_74
LBB0_79:
Lloh36:
	adrp	x8, _NETPLAY_STALL_NONE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _NETPLAY_STALL_NONE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x9]
	b	LBB0_36
LBB0_80:
	cmp	x8, x9
	b.lt	LBB0_2
LBB0_81:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_84
; %bb.82:
	mov	x20, #0
	mov	x21, #0
LBB0_83:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #88]
	add	x1, x8, x20
	mov	x0, x19
	bl	_netplay_hangup
	add	x21, x21, #1
	ldr	x8, [x19, #64]
	add	x20, x20, #40
	cmp	x21, x8
	b.lo	LBB0_83
LBB0_84:
	mov	w0, #0
LBB0_85:
	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_86:
	cbz	w9, LBB0_84
; %bb.87:
Lloh39:
	adrp	x8, _NETPLAY_STALL_NONE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _NETPLAY_STALL_NONE@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	str	w8, [x19, #48]
	mov	w0, #1
	b	LBB0_85
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_33-LBB0_33)>>2
	.byte	(LBB0_45-LBB0_33)>>2
	.byte	(LBB0_47-LBB0_33)>>2
	.byte	(LBB0_37-LBB0_33)>>2
	.byte	(LBB0_35-LBB0_33)>>2
                                        ; -- End function
	.comm	_NETPLAY_CONNECTION_NONE,8,3    ; @NETPLAY_CONNECTION_NONE
	.comm	_NETPLAY_MAX_STALL_FRAMES,8,3   ; @NETPLAY_MAX_STALL_FRAMES
	.comm	_NETPLAY_STALL_NONE,8,3         ; @NETPLAY_STALL_NONE
	.comm	_NETPLAY_CONNECTION_PLAYING,8,3 ; @NETPLAY_CONNECTION_PLAYING
	.comm	_MAX_CLIENTS,4,2                ; @MAX_CLIENTS
	.comm	_NETPLAY_CONNECTION_SPECTATING,8,3 ; @NETPLAY_CONNECTION_SPECTATING
	.comm	_NETPLAY_CONNECTION_SLAVE,8,3   ; @NETPLAY_CONNECTION_SLAVE
	.comm	_MAX_SERVER_STALL_TIME_USEC,8,3 ; @MAX_SERVER_STALL_TIME_USEC
	.comm	_MAX_CLIENT_STALL_TIME_USEC,8,3 ; @MAX_CLIENT_STALL_TIME_USEC
	.no_dead_strip	_netplay_poll
.subsections_via_symbols
