	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_delta_frame_ready      ## -- Begin function netplay_delta_frame_ready
	.p2align	4, 0x90
_netplay_delta_frame_ready:             ## @netplay_delta_frame_ready
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	cmpl	$0, (%rsi)
	je	LBB0_3
## %bb.1:
	movq	8(%r15), %rax
	movl	$1, %r14d
	cmpq	%rdx, %rax
	je	LBB0_8
## %bb.2:
	xorl	%r14d, %r14d
	cmpq	%rax, (%rdi)
	jle	LBB0_8
LBB0_3:
	movl	$1, (%r15)
	movq	%rdx, 8(%r15)
	movq	$0, 56(%r15)
	movq	_MAX_INPUT_DEVICES@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_clear_input
	movq	40(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_clear_input
	movq	32(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_clear_input
	incq	%rbx
	cmpq	(%r14), %rbx
	jb	LBB0_5
LBB0_6:
	movl	$0, 16(%r15)
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$1, %r14d
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	24(%r15), %rdi
	shlq	$2, %rsi
	callq	___bzero
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_INPUT_DEVICES,8,3          ## @MAX_INPUT_DEVICES
	.comm	_MAX_CLIENTS,8,3                ## @MAX_CLIENTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_delta_frame_ready      ; -- Begin function netplay_delta_frame_ready
	.p2align	2
_netplay_delta_frame_ready:             ; @netplay_delta_frame_ready
	.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, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x8, x2
	b.eq	LBB0_8
; %bb.2:
	ldr	x9, [x0]
	cmp	x9, x8
	b.le	LBB0_10
LBB0_3:
	mov	w8, #1
	str	w8, [x19]
	str	x2, [x19, #8]
	str	xzr, [x19, #56]
Lloh0:
	adrp	x20, _MAX_INPUT_DEVICES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MAX_INPUT_DEVICES@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	lsl	x22, x21, #2
	ldr	w0, [x8, x22]
	bl	_clear_input
	ldr	x8, [x19, #40]
	ldr	w0, [x8, x22]
	bl	_clear_input
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x22]
	bl	_clear_input
	add	x21, x21, #1
	ldr	x8, [x20]
	cmp	x21, x8
	b.lo	LBB0_5
LBB0_6:
	str	wzr, [x19, #16]
Lloh2:
	adrp	x8, _MAX_CLIENTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_CLIENTS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x0, [x19, #24]
	lsl	x1, x8, #2
	bl	_bzero
LBB0_8:
	mov	w0, #1
LBB0_9:
	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_10:
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_INPUT_DEVICES,8,3          ; @MAX_INPUT_DEVICES
	.comm	_MAX_CLIENTS,8,3                ; @MAX_CLIENTS
.subsections_via_symbols
