	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_load_savestate         ## -- Begin function netplay_load_savestate
	.p2align	4, 0x90
_netplay_load_savestate:                ## @netplay_load_savestate
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_netplay_force_future
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	testl	%ebx, %ebx
	jne	LBB0_2
LBB0_8:
	cmpq	$0, 40(%r15)
	jne	LBB0_14
## %bb.9:
	movq	_NETPLAY_QUIRK_NO_SAVESTATES@GOTPCREL(%rip), %rax
	movq	_NETPLAY_QUIRK_NO_TRANSMISSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, 16(%r15)
	jne	LBB0_14
## %bb.10:
	cmpq	$0, 32(%r15)
	je	LBB0_12
## %bb.11:
	leaq	32(%r15), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_netplay_send_savestate
LBB0_12:
	cmpq	$0, 24(%r15)
	je	LBB0_14
## %bb.13:
	leaq	24(%r15), %rcx
	movq	_NETPLAY_COMPRESSION_ZLIB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_netplay_send_savestate
	jmp	LBB0_14
LBB0_2:
	movq	(%r15), %rsi
	shlq	$2, %rsi
	addq	48(%r15), %rsi
	movl	56(%r15), %edx
	movq	%r15, %rdi
	callq	_netplay_delta_frame_ready
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	testq	%r14, %r14
	je	LBB0_4
## %bb.6:
	movq	(%r14), %rdx
	cmpq	8(%r15), %rdx
	jg	LBB0_8
## %bb.7:
	movq	(%r15), %rax
	movq	48(%r15), %rcx
	movl	(%rcx,%rax,4), %edi
	movl	8(%r14), %esi
	callq	_memcpy
	jmp	LBB0_8
LBB0_4:
	movq	8(%r15), %rax
	movq	%rax, -40(%rbp)
	movq	(%r15), %rax
	movq	48(%r15), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, -28(%rbp)
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	callq	_core_serialize
	testl	%eax, %eax
	je	LBB0_14
## %bb.5:
	movl	-28(%rbp), %eax
	movl	%eax, -32(%rbp)
	jmp	LBB0_8
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETPLAY_QUIRK_NO_SAVESTATES,4,2 ## @NETPLAY_QUIRK_NO_SAVESTATES
	.comm	_NETPLAY_QUIRK_NO_TRANSMISSION,4,2 ## @NETPLAY_QUIRK_NO_TRANSMISSION
	.comm	_NETPLAY_COMPRESSION_ZLIB,4,2   ## @NETPLAY_COMPRESSION_ZLIB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_load_savestate         ; -- Begin function netplay_load_savestate
	.p2align	2
_netplay_load_savestate:                ; @netplay_load_savestate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_netplay_force_future
	cbz	x20, LBB0_8
; %bb.1:
	cbnz	w21, LBB0_8
LBB0_2:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_14
; %bb.3:
	ldr	w8, [x19, #16]
Lloh0:
	adrp	x9, _NETPLAY_QUIRK_NO_SAVESTATES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETPLAY_QUIRK_NO_SAVESTATES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _NETPLAY_QUIRK_NO_TRANSMISSION@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NETPLAY_QUIRK_NO_TRANSMISSION@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_14
; %bb.4:
	mov	x3, x19
	ldr	x8, [x3, #32]!
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_netplay_send_savestate
LBB0_6:
	mov	x3, x19
	ldr	x8, [x3, #24]!
	cbz	x8, LBB0_14
; %bb.7:
Lloh6:
	adrp	x8, _NETPLAY_COMPRESSION_ZLIB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETPLAY_COMPRESSION_ZLIB@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_netplay_send_savestate
	b	LBB0_14
LBB0_8:
	ldr	x8, [x19, #48]
	ldr	x9, [x19]
	add	x1, x8, x9, lsl #2
	ldr	w2, [x19, #56]
	mov	x0, x19
	bl	_netplay_delta_frame_ready
	cbz	x0, LBB0_14
; %bb.9:
	cbz	x20, LBB0_12
; %bb.10:
	ldr	x2, [x20]
	ldr	x8, [x19, #8]
	cmp	x2, x8
	b.gt	LBB0_2
; %bb.11:
	ldr	x8, [x19, #48]
	ldr	x9, [x19]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x20, #8]
	bl	_memcpy
	b	LBB0_2
LBB0_12:
	ldp	x9, x8, [x19]
	str	x8, [sp]
	ldr	x8, [x19, #48]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [sp, #12]
	mov	x0, sp
	bl	_core_serialize
	cbz	w0, LBB0_14
; %bb.13:
	ldr	w8, [sp, #12]
	str	w8, [sp, #8]
	mov	x20, sp
	b	LBB0_2
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NETPLAY_QUIRK_NO_SAVESTATES,4,2 ; @NETPLAY_QUIRK_NO_SAVESTATES
	.comm	_NETPLAY_QUIRK_NO_TRANSMISSION,4,2 ; @NETPLAY_QUIRK_NO_TRANSMISSION
	.comm	_NETPLAY_COMPRESSION_ZLIB,4,2   ; @NETPLAY_COMPRESSION_ZLIB
.subsections_via_symbols
