	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netplay_core_reset
_netplay_core_reset:                    ## @netplay_core_reset
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netplay_force_future
	movq	_NETPLAY_CMD_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movl	%eax, -60(%rbp)
	movl	$4, %edi
	callq	_htonl
	movl	%eax, -56(%rbp)
	movl	(%r15), %edi
	callq	_htonl
	movl	%eax, -52(%rbp)
	cmpq	$0, 8(%r15)
	je	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	movq	_NETPLAY_CONNECTION_CONNECTED@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	addq	$24, %rbx
	cmpq	8(%r15), %r14
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %r12
	cmpl	$0, 16(%r12,%rbx)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12,%rbx), %rax
	cmpq	(%r13), %rax
	jl	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r12,%rbx), %rdi
	addq	$12, %rdi
	movl	8(%r12,%rbx), %esi
	leaq	-60(%rbp), %rdx
	movl	$12, %ecx
	callq	_netplay_send
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rbx, %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_netplay_hangup
	jmp	LBB0_6
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NETPLAY_CMD_RESET,4,2          ## @NETPLAY_CMD_RESET
	.comm	_NETPLAY_CONNECTION_CONNECTED,8,3 ## @NETPLAY_CONNECTION_CONNECTED
	.no_dead_strip	_netplay_core_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netplay_core_reset
_netplay_core_reset:                    ; @netplay_core_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	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, #24]
	bl	_netplay_force_future
Lloh3:
	adrp	x8, _NETPLAY_CMD_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETPLAY_CMD_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htonl
	str	w0, [sp, #12]
	mov	w0, #4
	bl	_htonl
	str	w0, [sp, #16]
	ldr	w0, [x19]
	bl	_htonl
	str	w0, [sp, #20]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x21, #0
	mov	x22, #0
Lloh6:
	adrp	x23, _NETPLAY_CONNECTION_CONNECTED@GOTPAGE
Lloh7:
	ldr	x23, [x23, _NETPLAY_CONNECTION_CONNECTED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldr	x8, [x19, #8]
	add	x21, x21, #24
	cmp	x22, x8
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x20, x8, x21
	ldr	w9, [x20, #16]
	cbz	w9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x8, x21]
	ldr	x10, [x23]
	cmp	x9, x10
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x21
	add	x0, x8, #12
	ldr	w1, [x8, #8]
	add	x2, sp, #12
	mov	w3, #12
	bl	_netplay_send
	cbnz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_netplay_hangup
	b	LBB0_2
LBB0_7:
	ldr	x8, [sp, #24]
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_9
; %bb.8:
	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
	add	sp, sp, #96
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NETPLAY_CMD_RESET,4,2          ; @NETPLAY_CMD_RESET
	.comm	_NETPLAY_CONNECTION_CONNECTED,8,3 ; @NETPLAY_CONNECTION_CONNECTED
	.no_dead_strip	_netplay_core_reset
.subsections_via_symbols
