	.file	"extr_netplay_sync.c_netplay_device_client_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	netplay_device_client_state
	.type	netplay_device_client_state, @function
netplay_device_client_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	mov	esi, 1
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movsx	rbx, edx
	mov	ecx, ebx
	sal	rbx, 2
	sal	esi, cl
	call	netplay_expected_input_size@PLT
	mov	rdi, QWORD PTR 16[rbp]
	xor	ecx, ecx
	mov	esi, r12d
	mov	r8d, 1
	mov	edx, eax
	mov	r14d, eax
	add	rdi, rbx
	call	netplay_input_state_for@PLT
	test	rax, rax
	je	.L5
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rcx, QWORD PTR 0[r13]
	movsx	rdx, r12d
	mov	rsi, QWORD PTR 0[rbp]
	cmp	QWORD PTR [rcx+rdx*8], rsi
	jg	.L1
	add	rbx, QWORD PTR 8[rbp]
	mov	edx, r14d
	mov	esi, r12d
	mov	r8d, 1
	mov	rdi, rbx
	xor	ecx, ecx
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	netplay_input_state_for@PLT
	.cfi_endproc
.LFE0:
	.size	netplay_device_client_state, .-netplay_device_client_state
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_netplay_sync.c_netplay_device_client_state.c"
	.text
	.align	2
	.global	netplay_device_client_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	netplay_device_client_state, %function
netplay_device_client_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r8, #1
	sub	sp, sp, #12
	mov	r6, r1
	lsl	r1, r8, r2
	mov	r4, r2
	mov	r5, r3
	mov	r7, r0
	bl	netplay_expected_input_size
	mov	r9, r0
	ldr	r0, [r6, #8]
	mov	r3, #0
	mov	r2, r9
	mov	r1, r5
	str	r8, [sp]
	add	r0, r0, r4, lsl #2
	bl	netplay_input_state_for
	subs	r3, r0, #0
	beq	.L5
.L1:
	mov	r0, r3
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	ldr	r1, [r7]
	ldr	r2, [r6]
	ldr	r1, [r1, r5, lsl #2]
	cmp	r1, r2
	bgt	.L1
	ldr	r0, [r6, #4]
	lsl	r4, r4, #2
	mov	r2, r9
	mov	r1, r5
	str	r8, [sp]
	add	r0, r0, r4
	bl	netplay_input_state_for
	mov	r3, r0
	mov	r0, r3
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
	.size	netplay_device_client_state, .-netplay_device_client_state
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
