	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_send_savestate         ## -- Begin function netplay_send_savestate
	.p2align	4, 0x90
_netplay_send_savestate:                ## @netplay_send_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rcx), %rax
	movl	(%rcx), %edi
	movq	(%rsi), %rdx
	movq	8(%rsi), %rsi
	callq	*16(%rax)
	movq	8(%r12), %rax
	movl	(%r12), %edi
	movq	(%r13), %rsi
	movslq	32(%r13), %rdx
	callq	*8(%rax)
	movq	8(%r12), %rax
	movl	(%r12), %edi
	leaq	-104(%rbp), %rdx
	leaq	-88(%rbp), %rcx
	movl	$1, %esi
	xorl	%r8d, %r8d
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movq	_NETPLAY_CMD_LOAD_SAVESTATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_htonl
	movq	%rax, -80(%rbp)
	movq	-88(%rbp), %rdi
	addq	$16, %rdi
	callq	_htonl
	movq	%rax, -72(%rbp)
	movq	16(%r13), %rdi
	callq	_htonl
	movq	%rax, -64(%rbp)
	movq	(%r15), %rdi
	callq	_htonl
	movq	%rax, -56(%rbp)
	cmpq	$0, 8(%r13)
	je	LBB0_13
## %bb.5:
	movl	$20, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%r14,%rbx), %rsi
	addq	$-20, %rsi
	movq	%r13, %rdi
	callq	_netplay_hangup
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	addq	$32, %rbx
	cmpq	8(%r13), %r15
	jae	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %r14
	cmpl	$0, 4(%r14,%rbx)
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-20(%r14,%rbx), %rax
	movq	_NETPLAY_CONNECTION_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -12(%r14,%rbx)
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%r14,%rbx), %r12
	movl	-4(%r14,%rbx), %esi
	movl	$32, %ecx
	movq	%r12, %rdi
	leaq	-80(%rbp), %rdx
	callq	_netplay_send
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-4(%r14,%rbx), %esi
	movq	(%r13), %rdx
	movq	-88(%rbp), %rcx
	movq	%r12, %rdi
	callq	_netplay_send
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_11
LBB0_1:
	cmpq	$0, 8(%r13)
	je	LBB0_13
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rsi
	addq	%r14, %rsi
	movq	%r13, %rdi
	callq	_netplay_hangup
	incq	%rbx
	addq	$32, %r14
	cmpq	8(%r13), %rbx
	jb	LBB0_3
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NETPLAY_CMD_LOAD_SAVESTATE,8,3 ## @NETPLAY_CMD_LOAD_SAVESTATE
	.comm	_NETPLAY_CONNECTION_CONNECTED,8,3 ## @NETPLAY_CONNECTION_CONNECTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_send_savestate         ; -- Begin function netplay_send_savestate
	.p2align	2
_netplay_send_savestate:                ; @netplay_send_savestate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x8, [x3, #8]
	ldr	x8, [x8, #16]
	ldr	w0, [x3]
	ldr	x1, [x1, #8]
	ldr	x2, [x21]
	blr	x8
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x22]
	ldr	x1, [x19]
	ldrsw	x2, [x19, #32]
	blr	x8
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	w0, [x22]
	add	x2, sp, #16
	add	x3, sp, #8
	mov	w1, #1
	mov	x4, #0
	blr	x8
	cbz	w0, LBB0_10
; %bb.1:
Lloh3:
	adrp	x8, _NETPLAY_CMD_LOAD_SAVESTATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETPLAY_CMD_LOAD_SAVESTATE@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	bl	_htonl
	str	x0, [sp, #24]
	ldr	x8, [sp, #8]
	add	x0, x8, #16
	bl	_htonl
	str	x0, [sp, #32]
	ldr	x0, [x19, #16]
	bl	_htonl
	str	x0, [sp, #40]
	ldr	x0, [x21]
	bl	_htonl
	str	x0, [sp, #48]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.2:
	mov	x23, #0
	mov	x24, #0
Lloh6:
	adrp	x25, _NETPLAY_CONNECTION_CONNECTED@GOTPAGE
Lloh7:
	ldr	x25, [x25, _NETPLAY_CONNECTION_CONNECTED@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_netplay_hangup
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldr	x8, [x19, #8]
	add	x23, x23, #32
	cmp	x24, x8
	b.hs	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x21, x8, x23
	ldr	w9, [x21, #24]
	cbz	w9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x8, x23]
	ldr	x10, [x25]
	cmp	x9, x10
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x8, x23
	ldr	x8, [x26, #8]
	cmp	x8, x20
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x26, #20
	ldr	w1, [x26, #16]
	add	x2, sp, #24
	mov	x0, x22
	mov	w3, #32
	bl	_netplay_send
	cbz	w0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x26, #16]
	ldr	x2, [x19]
	ldr	x3, [sp, #8]
	mov	x0, x22
	bl	_netplay_send
	cbnz	w0, LBB0_4
	b	LBB0_3
LBB0_10:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.11:
	mov	x20, #0
	mov	x21, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x1, x8, x20
	mov	x0, x19
	bl	_netplay_hangup
	add	x21, x21, #1
	ldr	x8, [x19, #8]
	add	x20, x20, #32
	cmp	x21, x8
	b.lo	LBB0_12
LBB0_13:
	ldr	x8, [sp, #56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NETPLAY_CMD_LOAD_SAVESTATE,8,3 ; @NETPLAY_CMD_LOAD_SAVESTATE
	.comm	_NETPLAY_CONNECTION_CONNECTED,8,3 ; @NETPLAY_CONNECTION_CONNECTED
.subsections_via_symbols
