	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_device_client_state    ## -- Begin function netplay_device_client_state
	.p2align	4, 0x90
_netplay_device_client_state:           ## @netplay_device_client_state
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	$1, %esi
	movl	%ebx, %ecx
	shll	%cl, %esi
	callq	_netplay_expected_input_size
	movl	%eax, %r15d
	movslq	%ebx, %rbx
	shlq	$2, %rbx
	movq	16(%r12), %rdi
	addq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_netplay_input_state_for
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	(%r13), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rax
	cmpq	(%r12), %rax
	jle	LBB0_4
## %bb.2:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	addq	8(%r12), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netplay_input_state_for        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_device_client_state    ; -- Begin function netplay_device_client_state
	.p2align	2
_netplay_device_client_state:           ; @netplay_device_client_state
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
	mov	w8, #1
	lsl	w1, w8, w2
	bl	_netplay_expected_input_size
	mov	x22, x0
	ldr	x8, [x20, #16]
	add	x0, x8, w21, sxtw #2
	mov	x1, x19
	mov	x2, x22
	mov	w3, #0
	mov	w4, #1
	bl	_netplay_input_state_for
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x23]
	ldr	x8, [x8, w19, sxtw #3]
	ldr	x9, [x20]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.2:
	mov	x0, #0
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	sxtw	x8, w21
	ldr	x9, [x20, #8]
	add	x0, x9, x8, lsl #2
	mov	x1, x19
	mov	x2, x22
	mov	w3, #0
	mov	w4, #1
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_netplay_input_state_for
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
