	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_sync_post_frame        ## -- Begin function netplay_sync_post_frame
	.p2align	4, 0x90
_netplay_sync_post_frame:               ## @netplay_sync_post_frame
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r13
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	16(%r13), %rax
	movq	_NETPLAY_STALL_INPUT_LATENCY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	8(%r13), %rax
	jmp	LBB0_4
LBB0_1:
	movq	(%r13), %rdi
	callq	_NEXT_PTR
	movq	%rax, (%r13)
	movq	8(%r13), %rax
	incq	%rax
	movq	%rax, 8(%r13)
LBB0_4:
	addq	32(%r13), %rax
	cmpq	%rax, 24(%r13)
	jge	LBB0_6
## %bb.5:
	movq	40(%r13), %rdi
	callq	_NEXT_PTR
	movq	%rax, 40(%r13)
	incq	24(%r13)
LBB0_6:
	cmpq	$0, 208(%r13)
	je	LBB0_8
## %bb.7:
	cmpl	$2, 48(%r13)
	jl	LBB0_10
LBB0_8:
	movq	56(%r13), %rax
	movq	_NETPLAY_CONNECTION_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_10
## %bb.9:
	cmpq	$0, 248(%r13)
	je	LBB0_12
LBB0_10:
	movq	24(%r13), %rax
	movq	40(%r13), %rcx
	movq	%rax, 64(%r13)
	movq	%rcx, 72(%r13)
	cmpl	$0, 80(%r13)
	je	LBB0_76
## %bb.11:
	movl	$0, 80(%r13)
	xorl	%eax, %eax
	callq	_input_driver_unset_nonblock_state
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_driver_set_nonblock_state      ## TAILCALL
LBB0_12:
	cmpl	$0, 84(%r13)
	je	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	callq	_core_reset
	movl	$0, 84(%r13)
LBB0_14:
	movq	64(%r13), %rax
	movq	72(%r13), %r15
	movq	%r15, 88(%r13)
	movq	%rax, 96(%r13)
	cmpl	$0, 104(%r13)
	jne	LBB0_21
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_15 Depth=1
	shlq	$5, %r15
	addq	%r15, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_netplay_handle_frame_hash
	movq	72(%r13), %rdi
	callq	_NEXT_PTR
	movq	%rax, %r15
	movq	%rax, 72(%r13)
	movq	64(%r13), %rax
	incq	%rax
	movq	%rax, 64(%r13)
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	112(%r13), %rax
	jge	LBB0_30
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	8(%r13), %rax
	jge	LBB0_30
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	224(%r13), %rbx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_netplay_resolve_input
	testq	%rax, %rax
	je	LBB0_29
## %bb.18:
	movdqu	64(%r13), %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqu	%xmm0, 88(%r13)
LBB0_19:
	cmpl	$0, 104(%r13)
	jne	LBB0_21
## %bb.20:
	movq	96(%r13), %rax
	cmpq	8(%r13), %rax
	jge	LBB0_40
LBB0_21:
	movl	$1, 120(%r13)
	cmpq	$0, 240(%r13)
	je	LBB0_23
## %bb.22:
	movq	88(%r13), %rdi
	callq	_PREV_PTR
	movq	%rax, 88(%r13)
	decq	96(%r13)
	xorl	%eax, %eax
	callq	_core_run
	movq	88(%r13), %rdi
	callq	_NEXT_PTR
	movq	%rax, 88(%r13)
	incq	96(%r13)
LBB0_23:
	movq	_NETPLAY_QUIRK_INITIALIZATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 124(%r13)
	je	LBB0_25
## %bb.24:
	movq	%r13, %rdi
	callq	_netplay_wait_and_init_serialization
LBB0_25:
	movq	$0, -64(%rbp)
	movq	88(%r13), %rax
	movq	224(%r13), %rcx
	shlq	$5, %rax
	movq	16(%rcx,%rax), %rax
	movq	%rax, -56(%rbp)
	movl	232(%r13), %eax
	movl	%eax, -72(%rbp)
	leaq	-72(%rbp), %rdi
	callq	_core_unserialize
	testl	%eax, %eax
	jne	LBB0_27
## %bb.26:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_ERR
LBB0_27:
	movq	8(%r13), %rcx
	cmpq	%rcx, 96(%r13)
	jge	LBB0_28
## %bb.34:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_NETPLAY_FRAME_RUN_TIME_WINDOW@GOTPCREL(%rip), %r14
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_35 Depth=1
	movq	88(%r13), %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_netplay_resolve_input
	xorl	%eax, %eax
	callq	_core_run
	movq	88(%r13), %rdi
	callq	_NEXT_PTR
	movq	%rax, 88(%r13)
	incq	96(%r13)
	xorl	%eax, %eax
	callq	_cpu_features_get_time_usec
	subq	%r12, %rax
	movq	216(%r13), %rcx
	movq	136(%r13), %rdx
	movl	128(%r13), %esi
	subl	(%rcx,%rdx,8), %esi
	movq	%rax, (%rcx,%rdx,8)
	addl	%esi, %eax
	movl	%eax, 128(%r13)
	movq	136(%r13), %rcx
	incq	%rcx
	movslq	(%r14), %rsi
	cmpq	%rsi, %rcx
	movl	$0, %edx
	cmovaeq	%rdx, %rcx
	movq	%rcx, 136(%r13)
	movq	8(%r13), %rcx
	cmpq	%rcx, 96(%r13)
	jge	LBB0_38
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	88(%r13), %r15
	movq	224(%r13), %rbx
	shlq	$5, %r15
	movq	16(%rbx,%r15), %rax
	movq	%rax, -64(%rbp)
	movl	232(%r13), %eax
	movl	%eax, -72(%rbp)
	movq	$0, -56(%rbp)
	xorl	%eax, %eax
	callq	_cpu_features_get_time_usec
	movq	%rax, %r12
	movq	-64(%rbp), %rdi
	movl	-72(%rbp), %edx
	xorl	%esi, %esi
	callq	_memset
	leaq	-72(%rbp), %rdi
	callq	_core_serialize
	movq	96(%r13), %rax
	cmpq	112(%r13), %rax
	jge	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	addq	%r15, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_netplay_handle_frame_hash
	jmp	LBB0_37
LBB0_28:
	movl	128(%r13), %eax
	movq	_NETPLAY_FRAME_RUN_TIME_WINDOW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	jmp	LBB0_39
LBB0_38:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_39:
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%esi
	movl	%eax, 144(%r13)
	leaq	112(%r13), %rax
	leaq	152(%r13), %rdx
	leaq	8(%r13), %rsi
	cmpq	%rcx, 112(%r13)
	cmovgeq	%r13, %rdx
	movq	(%rdx), %rcx
	movq	%rcx, 72(%r13)
	cmovlq	%rax, %rsi
	movq	(%rsi), %rax
	movq	%rax, 64(%r13)
	movl	$0, 120(%r13)
	movl	$0, 104(%r13)
LBB0_40:
	cmpq	$0, 208(%r13)
	je	LBB0_77
## %bb.41:
	movl	112(%r13), %r14d
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_42
## %bb.43:
	movl	48(%r13), %edx
	cmpl	$1, %r8d
	jne	LBB0_45
## %bb.44:
	xorl	%ebx, %ebx
	movl	%r14d, %eax
	jmp	LBB0_52
LBB0_77:
	movl	168(%r13), %eax
	movl	%eax, %r14d
	jmp	LBB0_55
LBB0_30:
	movq	%r15, 88(%r13)
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, 96(%r13)
	cmpq	8(%r13), %rax
	jge	LBB0_19
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_netplay_resolve_input
	testq	%rax, %rax
	jne	LBB0_19
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=1
	movq	88(%r13), %rdi
	callq	_NEXT_PTR
	movq	%rax, %r15
	movq	%rax, 88(%r13)
	movq	96(%r13), %rax
	incq	%rax
	jmp	LBB0_31
LBB0_42:
	movl	%r14d, %eax
	jmp	LBB0_55
LBB0_45:
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	movl	%r14d, %eax
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_50:                                ##   in Loop: Header=BB0_46 Depth=1
	incq	%rsi
	cmpq	%rdi, %rsi
	je	LBB0_51
LBB0_46:                                ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %rbx
	btl	%ebx, %edx
	jae	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	160(%r13), %rsi
	movl	(%rsi,%rbx,4), %esi
	cmpl	%eax, %esi
	cmovgl	%esi, %eax
LBB0_48:                                ##   in Loop: Header=BB0_46 Depth=1
	leaq	1(%rbx), %rsi
	btl	%esi, %edx
	jae	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	160(%r13), %rcx
	movl	4(%rcx,%rbx,4), %ecx
	cmpl	%eax, %ecx
	cmovgl	%ecx, %eax
	jmp	LBB0_50
LBB0_51:
	addq	$2, %rbx
LBB0_52:
	testb	$1, %r8b
	je	LBB0_55
## %bb.53:
	btl	%ebx, %edx
	jae	LBB0_55
## %bb.54:
	movq	160(%r13), %rcx
	movl	(%rcx,%rbx,4), %ecx
	cmpl	%eax, %ecx
	cmovgl	%ecx, %eax
LBB0_55:
	cmpl	$0, 80(%r13)
	je	LBB0_59
## %bb.56:
	movq	24(%r13), %rax
	incq	%rax
	movslq	%r14d, %rcx
	cmpq	%rcx, %rax
	jl	LBB0_76
## %bb.57:
	movl	$0, 80(%r13)
	xorl	%eax, %eax
	callq	_input_driver_unset_nonblock_state
LBB0_58:
	xorl	%eax, %eax
	callq	_driver_set_nonblock_state
	jmp	LBB0_76
LBB0_59:
	testl	%r12d, %r12d
	je	LBB0_60
## %bb.75:
	movq	$0, 176(%r13)
LBB0_76:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_60:
	movq	24(%r13), %rcx
	addq	$3, %rcx
	movslq	%r14d, %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_66
## %bb.61:
	xorl	%eax, %eax
	callq	_cpu_features_get_time_usec
	subl	24(%r13), %r14d
	movq	176(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_62
## %bb.63:
	movq	%rax, %rdx
	subq	%rcx, %rdx
	movq	_CATCH_UP_CHECK_TIME_USEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jle	LBB0_76
## %bb.64:
	cmpl	%r14d, 184(%r13)
	jle	LBB0_65
LBB0_62:
	movq	%rax, 176(%r13)
	movl	%r14d, 184(%r13)
	jmp	LBB0_76
LBB0_66:
	cltq
	movq	$0, 176(%r13)
	cmpq	%rax, %rcx
	jge	LBB0_76
## %bb.67:
	movq	192(%r13), %r8
	testq	%r8, %r8
	je	LBB0_76
## %bb.68:
	movabsq	$4294967296, %r12               ## imm = 0x100000000
	xorl	%ebx, %ebx
	movq	_NETPLAY_CONNECTION_PLAYING@GOTPCREL(%rip), %r9
	movq	_NETPLAY_MAX_REQ_STALL_FREQUENCY@GOTPCREL(%rip), %r11
	movq	%r12, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_69
LBB0_74:                                ##   in Loop: Header=BB0_69 Depth=1
	incq	%r15
	addq	%r12, %r14
	addq	$24, %rbx
	cmpq	%r8, %r15
	jae	LBB0_76
LBB0_69:                                ## =>This Inner Loop Header: Depth=1
	movq	200(%r13), %rsi
	cmpl	$0, 16(%rsi,%rbx)
	je	LBB0_74
## %bb.70:                              ##   in Loop: Header=BB0_69 Depth=1
	movq	(%rsi,%rbx), %rcx
	cmpq	(%r9), %rcx
	jne	LBB0_74
## %bb.71:                              ##   in Loop: Header=BB0_69 Depth=1
	movq	24(%r13), %rcx
	movq	160(%r13), %rdx
	leaq	3(%rcx), %rdi
	movq	%r14, %rax
	sarq	$30, %rax
	movslq	(%rdx,%rax), %rdx
	cmpq	%rdx, %rdi
	jge	LBB0_74
## %bb.72:                              ##   in Loop: Header=BB0_69 Depth=1
	movq	(%r11), %rax
	addq	8(%rsi,%rbx), %rax
	cmpq	%rcx, %rax
	jge	LBB0_74
## %bb.73:                              ##   in Loop: Header=BB0_69 Depth=1
	movq	%rcx, 8(%rsi,%rbx)
	addq	%rbx, %rsi
	subq	%rcx, %rdx
	incq	%rdx
	movq	%r13, %rdi
	callq	_netplay_cmd_stall
	movq	_NETPLAY_MAX_REQ_STALL_FREQUENCY@GOTPCREL(%rip), %r11
	movq	_NETPLAY_CONNECTION_PLAYING@GOTPCREL(%rip), %r9
	movq	192(%r13), %r8
	jmp	LBB0_74
LBB0_65:
	movl	$1, 80(%r13)
	movq	$0, 176(%r13)
	xorl	%eax, %eax
	callq	_input_driver_set_nonblock_state
	jmp	LBB0_58
	.cfi_endproc
                                        ## -- End function
	.comm	_NETPLAY_STALL_INPUT_LATENCY,8,3 ## @NETPLAY_STALL_INPUT_LATENCY
	.comm	_NETPLAY_CONNECTION_CONNECTED,8,3 ## @NETPLAY_CONNECTION_CONNECTED
	.comm	_NETPLAY_QUIRK_INITIALIZATION,4,2 ## @NETPLAY_QUIRK_INITIALIZATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Netplay savestate loading failed: Prepare for desync!\n"

	.comm	_NETPLAY_FRAME_RUN_TIME_WINDOW,4,2 ## @NETPLAY_FRAME_RUN_TIME_WINDOW
	.comm	_MAX_CLIENTS,4,2                ## @MAX_CLIENTS
	.comm	_CATCH_UP_CHECK_TIME_USEC,8,3   ## @CATCH_UP_CHECK_TIME_USEC
	.comm	_NETPLAY_CONNECTION_PLAYING,8,3 ## @NETPLAY_CONNECTION_PLAYING
	.comm	_NETPLAY_MAX_REQ_STALL_FREQUENCY,8,3 ## @NETPLAY_MAX_REQ_STALL_FREQUENCY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_sync_post_frame        ; -- Begin function netplay_sync_post_frame
	.p2align	2
_netplay_sync_post_frame:               ; @netplay_sync_post_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
	cbz	w1, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _NETPLAY_STALL_INPUT_LATENCY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETPLAY_STALL_INPUT_LATENCY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x19, #8]
	b	LBB0_4
LBB0_3:
	ldr	x0, [x19]
	bl	_NEXT_PTR
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	stp	x0, x8, [x19]
LBB0_4:
	ldp	x9, x10, [x19, #24]
	add	x8, x10, x8
	cmp	x9, x8
	b.ge	LBB0_6
; %bb.5:
	ldr	x0, [x19, #40]
	bl	_NEXT_PTR
	str	x0, [x19, #40]
	ldr	x8, [x19, #24]
	add	x8, x8, #1
	str	x8, [x19, #24]
LBB0_6:
	ldr	x8, [x19, #208]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w8, [x19, #48]
	cmp	w8, #2
	b.lt	LBB0_10
LBB0_8:
	ldr	x8, [x19, #56]
Lloh3:
	adrp	x9, _NETPLAY_CONNECTION_CONNECTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETPLAY_CONNECTION_CONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_10
; %bb.9:
	ldr	x8, [x19, #248]
	cbz	x8, LBB0_12
LBB0_10:
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #40]
	stp	x8, x9, [x19, #64]
	ldr	w8, [x19, #80]
	cbz	w8, LBB0_51
; %bb.11:
	str	wzr, [x19, #80]
	bl	_input_driver_unset_nonblock_state
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_driver_set_nonblock_state
LBB0_12:
	ldr	w8, [x19, #84]
	cbz	w8, LBB0_14
; %bb.13:
	bl	_core_reset
	str	wzr, [x19, #84]
LBB0_14:
	ldp	x8, x21, [x19, #64]
	stp	x21, x8, [x19, #88]
	ldr	w9, [x19, #104]
	cbnz	w9, LBB0_22
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x1, x22, x21, lsl #5
	mov	x0, x19
	bl	_netplay_handle_frame_hash
	ldr	x0, [x19, #72]
	bl	_NEXT_PTR
	mov	x21, x0
	ldr	x8, [x19, #64]
	add	x8, x8, #1
	stp	x8, x0, [x19, #64]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #112]
	cmp	x8, x9
	b.ge	LBB0_44
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ge	LBB0_44
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x22, [x19, #224]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_netplay_resolve_input
	cbz	x0, LBB0_15
; %bb.19:
	ldr	q0, [x19, #64]
	ext.16b	v0, v0, v0, #8
	stur	q0, [x19, #88]
LBB0_20:
	ldr	w8, [x19, #104]
	cbnz	w8, LBB0_22
; %bb.21:
	ldr	x8, [x19, #96]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ge	LBB0_31
LBB0_22:
	mov	w8, #1
	str	w8, [x19, #120]
	ldr	x8, [x19, #240]
	cbz	x8, LBB0_24
; %bb.23:
	ldr	x0, [x19, #88]
	bl	_PREV_PTR
	ldr	x8, [x19, #96]
	sub	x8, x8, #1
	stp	x0, x8, [x19, #88]
	bl	_core_run
	ldr	x0, [x19, #88]
	bl	_NEXT_PTR
	ldr	x8, [x19, #96]
	add	x8, x8, #1
	stp	x0, x8, [x19, #88]
LBB0_24:
	ldr	w8, [x19, #124]
Lloh6:
	adrp	x9, _NETPLAY_QUIRK_INITIALIZATION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NETPLAY_QUIRK_INITIALIZATION@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.25:
	mov	x0, x19
	bl	_netplay_wait_and_init_serialization
LBB0_26:
	str	xzr, [sp, #16]
	ldr	x8, [x19, #224]
	ldr	x9, [x19, #88]
	add	x8, x8, x9, lsl #5
	ldr	x8, [x8, #16]
	str	x8, [sp, #24]
	ldr	w8, [x19, #232]
	str	w8, [sp, #8]
	add	x0, sp, #8
	bl	_core_unserialize
	cbnz	w0, LBB0_28
; %bb.27:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_ERR
LBB0_28:
	ldr	x9, [x19, #96]
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x23, _NETPLAY_FRAME_RUN_TIME_WINDOW@GOTPAGE
Lloh12:
	ldr	x23, [x23, _NETPLAY_FRAME_RUN_TIME_WINDOW@GOTPAGEOFF]
	cmp	x9, x8
	b.lt	LBB0_35
; %bb.29:
	ldr	w9, [x19, #128]
	ldr	w10, [x23]
LBB0_30:
	sdiv	w9, w9, w10
	str	w9, [x19, #144]
	ldr	x9, [x19, #112]
	mov	w10, #152
	cmp	x9, x8
	csel	x8, x10, xzr, lt
	mov	w9, #8
	mov	w10, #112
	csel	x9, x10, x9, lt
	ldr	x8, [x19, x8]
	str	x8, [x19, #72]
	ldr	x8, [x19, x9]
	str	x8, [x19, #64]
	str	wzr, [x19, #120]
	str	wzr, [x19, #104]
LBB0_31:
	ldr	x8, [x19, #208]
	cbz	x8, LBB0_40
; %bb.32:
	ldr	w21, [x19, #112]
Lloh13:
	adrp	x8, _MAX_CLIENTS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAX_CLIENTS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_48
; %bb.33:
	mov	x10, #0
	ldr	w11, [x19, #48]
	mov	x8, x21
	b	LBB0_38
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=1
	ldr	x1, [x19, #88]
	mov	x0, x19
	mov	w2, #1
	bl	_netplay_resolve_input
	bl	_core_run
	ldr	x0, [x19, #88]
	bl	_NEXT_PTR
	ldr	x8, [x19, #96]
	add	x8, x8, #1
	stp	x0, x8, [x19, #88]
	bl	_cpu_features_get_time_usec
	sub	x8, x0, x21
	ldr	x9, [x19, #216]
	ldr	x10, [x19, #136]
	lsl	x10, x10, #3
	ldr	x11, [x9, x10]
	ldr	w12, [x19, #128]
	str	x8, [x9, x10]
	sub	w9, w12, w11
	add	w9, w9, w8
	str	w9, [x19, #128]
	ldr	x8, [x19, #136]
	add	x11, x8, #1
	ldrsw	x10, [x23]
	cmp	x11, x10
	csinc	x8, xzr, x8, hs
	str	x8, [x19, #136]
	ldr	x11, [x19, #96]
	ldr	x8, [x19, #8]
	cmp	x11, x8
	b.ge	LBB0_30
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #224]
	ldr	x9, [x19, #88]
	add	x22, x8, x9, lsl #5
	ldr	x8, [x22, #16]
	ldr	w9, [x19, #232]
	str	w9, [sp, #8]
	stp	x8, xzr, [sp, #16]
	bl	_cpu_features_get_time_usec
	mov	x21, x0
	ldr	x0, [sp, #16]
	ldr	w2, [sp, #8]
	mov	w1, #0
	bl	_memset
	add	x0, sp, #8
	bl	_core_serialize
	ldr	x8, [x19, #96]
	ldr	x9, [x19, #112]
	cmp	x8, x9
	b.ge	LBB0_34
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_netplay_handle_frame_hash
	b	LBB0_34
LBB0_37:                                ;   in Loop: Header=BB0_38 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.eq	LBB0_41
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	lsr	w12, w11, w10
	tbz	w12, #0, LBB0_37
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=1
	ldr	x12, [x19, #160]
	ldr	w12, [x12, x10, lsl #2]
	cmp	w12, w8
	csel	w8, w12, w8, gt
	b	LBB0_37
LBB0_40:
	ldr	w8, [x19, #168]
	mov	x21, x8
LBB0_41:
	ldr	w9, [x19, #80]
	cbz	w9, LBB0_49
LBB0_42:
	ldr	x8, [x19, #24]
	add	x8, x8, #1
	cmp	x8, w21, sxtw
	b.lt	LBB0_51
; %bb.43:
	str	wzr, [x19, #80]
	bl	_input_driver_unset_nonblock_state
	bl	_driver_set_nonblock_state
	b	LBB0_51
LBB0_44:
	str	x21, [x19, #88]
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	str	x8, [x19, #96]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ge	LBB0_20
; %bb.46:                               ;   in Loop: Header=BB0_45 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_netplay_resolve_input
	cbnz	x0, LBB0_20
; %bb.47:                               ;   in Loop: Header=BB0_45 Depth=1
	ldr	x0, [x19, #88]
	bl	_NEXT_PTR
	mov	x21, x0
	ldr	x8, [x19, #96]
	add	x8, x8, #1
	str	x0, [x19, #88]
	b	LBB0_45
LBB0_48:
	mov	x8, x21
	ldr	w9, [x19, #80]
	cbnz	w9, LBB0_42
LBB0_49:
	cbz	w20, LBB0_52
; %bb.50:
	str	xzr, [x19, #176]
LBB0_51:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_52:
	ldr	x9, [x19, #24]
	add	x9, x9, #3
	cmp	x9, w21, sxtw
	b.ge	LBB0_57
; %bb.53:
	bl	_cpu_features_get_time_usec
	ldr	w8, [x19, #24]
	sub	w8, w21, w8
	ldr	x9, [x19, #176]
	cbz	x9, LBB0_56
; %bb.54:
Lloh16:
	adrp	x10, _CATCH_UP_CHECK_TIME_USEC@GOTPAGE
Lloh17:
	ldr	x10, [x10, _CATCH_UP_CHECK_TIME_USEC@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	sub	x9, x0, x9
	cmp	x9, x10
	b.le	LBB0_51
; %bb.55:
	ldr	w9, [x19, #184]
	cmp	w9, w8
	b.le	LBB0_66
LBB0_56:
	str	x0, [x19, #176]
	str	w8, [x19, #184]
	b	LBB0_51
LBB0_57:
	str	xzr, [x19, #176]
	cmp	x9, w8, sxtw
	b.ge	LBB0_51
; %bb.58:
	ldr	x8, [x19, #192]
	cbz	x8, LBB0_51
; %bb.59:
	mov	x20, #0
	mov	x21, #0
	mov	x22, #4294967296
Lloh19:
	adrp	x23, _NETPLAY_CONNECTION_PLAYING@GOTPAGE
Lloh20:
	ldr	x23, [x23, _NETPLAY_CONNECTION_PLAYING@GOTPAGEOFF]
Lloh21:
	adrp	x24, _NETPLAY_MAX_REQ_STALL_FREQUENCY@GOTPAGE
Lloh22:
	ldr	x24, [x24, _NETPLAY_MAX_REQ_STALL_FREQUENCY@GOTPAGEOFF]
	mov	x25, #4294967296
	b	LBB0_61
LBB0_60:                                ;   in Loop: Header=BB0_61 Depth=1
	add	x21, x21, #1
	add	x25, x25, x22
	add	x20, x20, #24
	cmp	x21, x8
	b.hs	LBB0_51
LBB0_61:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #200]
	add	x1, x10, x20
	ldr	w9, [x1, #16]
	cbz	w9, LBB0_60
; %bb.62:                               ;   in Loop: Header=BB0_61 Depth=1
	ldr	x9, [x10, x20]
	ldr	x11, [x23]
	cmp	x9, x11
	b.ne	LBB0_60
; %bb.63:                               ;   in Loop: Header=BB0_61 Depth=1
	ldr	x9, [x19, #24]
	add	x12, x9, #3
	ldr	x11, [x19, #160]
	asr	x13, x25, #30
	ldrsw	x11, [x11, x13]
	cmp	x12, x11
	b.ge	LBB0_60
; %bb.64:                               ;   in Loop: Header=BB0_61 Depth=1
	add	x10, x10, x20
	ldr	x12, [x10, #8]
	ldr	x13, [x24]
	add	x12, x13, x12
	cmp	x12, x9
	b.ge	LBB0_60
; %bb.65:                               ;   in Loop: Header=BB0_61 Depth=1
	str	x9, [x10, #8]
	sub	x8, x11, x9
	add	x2, x8, #1
	mov	x0, x19
	bl	_netplay_cmd_stall
	ldr	x8, [x19, #192]
	b	LBB0_60
LBB0_66:
	mov	w8, #1
	str	w8, [x19, #80]
	str	xzr, [x19, #176]
	bl	_input_driver_set_nonblock_state
	bl	_driver_set_nonblock_state
	b	LBB0_51
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NETPLAY_STALL_INPUT_LATENCY,8,3 ; @NETPLAY_STALL_INPUT_LATENCY
	.comm	_NETPLAY_CONNECTION_CONNECTED,8,3 ; @NETPLAY_CONNECTION_CONNECTED
	.comm	_NETPLAY_QUIRK_INITIALIZATION,4,2 ; @NETPLAY_QUIRK_INITIALIZATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Netplay savestate loading failed: Prepare for desync!\n"

	.comm	_NETPLAY_FRAME_RUN_TIME_WINDOW,4,2 ; @NETPLAY_FRAME_RUN_TIME_WINDOW
	.comm	_MAX_CLIENTS,4,2                ; @MAX_CLIENTS
	.comm	_CATCH_UP_CHECK_TIME_USEC,8,3   ; @CATCH_UP_CHECK_TIME_USEC
	.comm	_NETPLAY_CONNECTION_PLAYING,8,3 ; @NETPLAY_CONNECTION_PLAYING
	.comm	_NETPLAY_MAX_REQ_STALL_FREQUENCY,8,3 ; @NETPLAY_MAX_REQ_STALL_FREQUENCY
.subsections_via_symbols
