	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_expected_input_size    ## -- Begin function netplay_expected_input_size
	.p2align	4, 0x90
_netplay_expected_input_size:           ## @netplay_expected_input_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAX_INPUT_DEVICES@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	testl	%r10d, %r10d
	jle	LBB0_12
## %bb.1:
	movq	_RETRO_DEVICE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edx, %edx
	leaq	LJTI0_0(%rip), %r9
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	$3, %eax
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	cmpq	%rdx, %r10
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	btl	%edx, %esi
	jae	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rdi), %rcx
	movl	(%rcx,%rdx,4), %ecx
	andl	%r8d, %ecx
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%r9,%rcx,4), %rcx
	addq	%r9, %rcx
	jmpq	*%rcx
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	$2, %eax
	jmp	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	$5, %eax
	jmp	LBB0_3
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%eax
	jmp	LBB0_3
LBB0_11:
	popq	%rbp
	retq
LBB0_12:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_MAX_INPUT_DEVICES,4,2          ## @MAX_INPUT_DEVICES
	.comm	_RETRO_DEVICE_MASK,4,2          ## @RETRO_DEVICE_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_expected_input_size    ; -- Begin function netplay_expected_input_size
	.p2align	2
_netplay_expected_input_size:           ; @netplay_expected_input_size
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAX_INPUT_DEVICES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_INPUT_DEVICES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x10, #0
	mov	w8, #0
Lloh3:
	adrp	x11, _RETRO_DEVICE_MASK@GOTPAGE
Lloh4:
	ldr	x11, [x11, _RETRO_DEVICE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
Lloh6:
	adrp	x12, lJTI0_0@PAGE
Lloh7:
	add	x12, x12, lJTI0_0@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #3
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w13, w1, w10
	tbz	w13, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [x0]
	ldr	w13, [x13, x10, lsl #2]
	and	w13, w11, w13
	sub	w13, w13, #128
	cmp	w13, #4
	b.hi	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x14, LBB0_2
	ldrb	w15, [x12, x13]
	add	x14, x14, x15, lsl #2
	br	x14
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #2
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #5
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	b	LBB0_3
LBB0_10:
	mov	x0, x8
	ret
LBB0_11:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_MAX_INPUT_DEVICES,4,2          ; @MAX_INPUT_DEVICES
	.comm	_RETRO_DEVICE_MASK,4,2          ; @RETRO_DEVICE_MASK
.subsections_via_symbols
