	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_self_input_state
_get_self_input_state:                  ## @get_self_input_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	96(%rdi), %r14
	movq	(%rdi), %rax
	leaq	(%rax,%rax,2), %r15
	leaq	(%r14,%r15,8), %rbx
	movl	64(%rdi), %edx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_netplay_delta_frame_ready
	testl	%eax, %eax
	je	LBB0_41
## %bb.1:
	movl	$1, %eax
	cmpl	$0, (%rbx)
	jne	LBB0_53
## %bb.2:
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	_MAX_INPUT_DEVICES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jle	LBB0_42
## %bb.3:
	movl	8(%rdi), %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rcx,%rdx,8), %rcx
	addq	$16, %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	leaq	32(%rdi), %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movq	_MAX_INPUT_DEVICES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jge	LBB0_42
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_34 Depth 2
                                        ##     Child Loop BB0_30 Depth 2
                                        ##     Child Loop BB0_38 Depth 2
	movl	$1, %esi
	movl	%r13d, %ecx
	shll	%cl, %esi
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	btl	%r13d, %ecx
	jae	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rdi), %rcx
	movl	(%rcx,%r13,4), %r8d
	movq	_RETRO_DEVICE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=2
	incq	%rbx
	cmpq	%rbx, %rax
	je	LBB0_12
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	btl	%ebx, %r12d
	jb	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	(%rcx,%rbx,4), %edx
	xorl	%r8d, %edx
	testl	%r9d, %edx
	jne	LBB0_9
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%eax, %ebx
	movl	$0, %eax
	cmovel	%eax, %ebx
	leaq	(,%r13,4), %r14
	movq	-128(%rbp), %rax                ## 8-byte Reload
	addq	(%rax), %r14
	movq	24(%rdi), %rcx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	_NETPLAY_CONNECTION_SLAVE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %rax
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	btsl	%ebx, %r12d
	movq	(%rax), %r15
	callq	_netplay_expected_input_size
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_netplay_input_state_for
	testq	%rax, %rax
	je	LBB0_4
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_input_driver_is_libretro_input_blocked
	testl	%eax, %eax
	jne	LBB0_4
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpl	$0, 64(%rdi)
	jle	LBB0_5
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rdi), %rax
	movq	_RETRO_DEVICE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	andl	(%rax,%r13,4), %r15d
	leal	-128(%r15), %eax
	cmpl	$4, %eax
	ja	LBB0_5
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	88(%rdi), %r8
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	jmpq	*%rax
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r8, %r14
	callq	*%r8
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	*%r14
	shll	$16, %eax
	orl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movq	_RETRO_DEVICE_ID_LIGHTGUN_START@GOTPCREL(%rip), %rax
	cmpl	$128, %r15d
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELDOWN@GOTPCREL(%rip), %rax
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$2, (%rax)
	jb	LBB0_4
## %bb.36:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$2, %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_38 Depth=2
	cmpl	(%rax), %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	ja	LBB0_4
LBB0_38:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	*%rax
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	testl	%eax, %eax
	cmovel	%eax, %edx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	orl	%edx, (%rax)
	incl	%r14d
	movq	_RETRO_DEVICE_ID_LIGHTGUN_START@GOTPCREL(%rip), %rax
	cmpl	$128, %r15d
	jne	LBB0_37
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=2
	movq	_RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELDOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_26:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_NETPLAY_KEY_LAST@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jb	LBB0_5
## %bb.27:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %r14d
	movl	$1, %r15d
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_30 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_29:                                ##   in Loop: Header=BB0_30 Depth=2
	incl	%r15d
	movq	_NETPLAY_KEY_LAST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jae	LBB0_5
LBB0_30:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %edi
	callq	_netplay_key_ntoh
	movl	%ebx, %edi
	movl	$130, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	testl	%eax, %eax
	cmovel	%eax, %edx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	orl	%edx, (%rcx,%rax,4)
	incl	%r14d
	cmpl	$32, %r14d
	jb	LBB0_28
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=2
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	xorl	%r14d, %r14d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	cmpl	8(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jb	LBB0_29
	jmp	LBB0_5
LBB0_32:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	movl	$132, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	movl	%eax, %r14d
	movl	%ebx, %edi
	movl	$132, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	shll	$16, %eax
	orl	%r14d, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movl	%ebx, %edi
	movl	$132, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	movl	%eax, %r14d
	movl	%ebx, %edi
	movl	$132, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	shll	$16, %eax
	orl	%r14d, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx)
LBB0_33:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r14d, %r14d
	movq	_RETRO_DEVICE_ID_JOYPAD_R3@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	movl	$131, %esi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	testl	%eax, %eax
	cmovel	%eax, %edx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	orl	%edx, (%rax)
	incl	%r14d
	cmpl	(%r15), %r14d
	jbe	LBB0_34
	jmp	LBB0_4
LBB0_41:
	xorl	%eax, %eax
	jmp	LBB0_53
LBB0_42:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	movq	24(%rdi), %rax
	movq	_NETPLAY_CONNECTION_PLAYING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_44
## %bb.43:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rax,%rcx,8), %rax
	movq	32(%rdi), %rcx
	movl	$1, (%rax,%rcx,4)
	movq	(%rdi), %rdi
	callq	_NEXT_PTR
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	32(%rdi), %rcx
	movq	80(%rdi), %rdx
	movl	%eax, (%rdx,%rcx,4)
	movslq	64(%rdi), %rax
	incq	%rax
	movq	72(%rdi), %rdx
	movq	%rax, (%rdx,%rcx,8)
LBB0_44:
	movl	40(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_50
## %bb.45:
	xorl	%ebx, %ebx
	movq	_NETPLAY_CONNECTION_CONNECTED@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_46:                                ##   in Loop: Header=BB0_47 Depth=1
	incq	%r15
	movl	%eax, %ecx
	addq	$16, %rbx
	cmpq	%rcx, %r15
	jae	LBB0_50
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%rdi), %rsi
	cmpq	$0, 8(%rsi,%rbx)
	je	LBB0_46
## %bb.48:                              ##   in Loop: Header=BB0_47 Depth=1
	movq	(%rsi,%rbx), %rcx
	cmpq	(%r14), %rcx
	jl	LBB0_46
## %bb.49:                              ##   in Loop: Header=BB0_47 Depth=1
	addq	%rbx, %rsi
	callq	_netplay_send_cur_input
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	40(%rdi), %eax
	jmp	LBB0_46
LBB0_50:
	cmpq	$0, 48(%rdi)
	je	LBB0_52
## %bb.51:
	callq	_netplay_delayed_state_change
LBB0_52:
	movl	$1, %eax
LBB0_53:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
LJTI0_0:
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_26
	.long	L0_0_set_33
	.long	L0_0_set_32
	.end_data_region
                                        ## -- End function
	.comm	_MAX_INPUT_DEVICES,4,2          ## @MAX_INPUT_DEVICES
	.comm	_RETRO_DEVICE_MASK,4,2          ## @RETRO_DEVICE_MASK
	.comm	_NETPLAY_CONNECTION_SLAVE,8,3   ## @NETPLAY_CONNECTION_SLAVE
	.comm	_MAX_CLIENTS,8,3                ## @MAX_CLIENTS
	.comm	_RETRO_DEVICE_ID_JOYPAD_R3,4,2  ## @RETRO_DEVICE_ID_JOYPAD_R3
	.comm	_RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELDOWN,4,2 ## @RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELDOWN
	.comm	_RETRO_DEVICE_ID_LIGHTGUN_START,4,2 ## @RETRO_DEVICE_ID_LIGHTGUN_START
	.comm	_NETPLAY_KEY_LAST,4,2           ## @NETPLAY_KEY_LAST
	.comm	_NETPLAY_CONNECTION_PLAYING,8,3 ## @NETPLAY_CONNECTION_PLAYING
	.comm	_NETPLAY_CONNECTION_CONNECTED,8,3 ## @NETPLAY_CONNECTION_CONNECTED
	.no_dead_strip	_get_self_input_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_self_input_state
_get_self_input_state:                  ; @get_self_input_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #96]
	ldr	x24, [x0]
	mov	w8, #24
	madd	x21, x24, x8, x20
	ldr	w2, [x0, #64]
	mov	x1, x21
	bl	_netplay_delta_frame_ready
	cbz	w0, LBB0_46
; %bb.1:
	ldr	w8, [x21]
	cbnz	w8, LBB0_45
; %bb.2:
	stp	x21, x20, [sp, #8]              ; 16-byte Folded Spill
Lloh0:
	adrp	x25, _MAX_INPUT_DEVICES@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MAX_INPUT_DEVICES@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.3:
	mov	x27, #0
	mov	w28, #0
	ldr	w26, [x19, #8]
	mov	w9, #24
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	madd	x9, x24, x9, x10
	add	x10, x9, #16
	add	x9, x19, #32
	stp	x9, x10, [sp, #32]              ; 16-byte Folded Spill
	mov	w23, #1
Lloh2:
	adrp	x20, _RETRO_DEVICE_MASK@GOTPAGE
Lloh3:
	ldr	x20, [x20, _RETRO_DEVICE_MASK@GOTPAGEOFF]
	str	x24, [sp]                       ; 8-byte Folded Spill
	str	w26, [sp, #28]                  ; 4-byte Folded Spill
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh4:
	adrp	x25, _MAX_INPUT_DEVICES@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MAX_INPUT_DEVICES@GOTPAGEOFF]
	ldr	w26, [sp, #28]                  ; 4-byte Folded Reload
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w23, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x25]
	cmp	x27, x8
	b.ge	LBB0_35
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_31 Depth 2
                                        ;     Child Loop BB0_26 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
	lsl	w1, w23, w27
	tst	w1, w26
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, w8
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x9, #0
	ldr	x10, [x19, #16]
	ldr	w11, [x10, x27, lsl #2]
	ldr	w12, [x20]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_13
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsr	w13, w28, w9
	tbnz	w13, #0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w13, [x10, x9, lsl #2]
	eor	w13, w13, w11
	tst	w13, w12
	b.ne	LBB0_10
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x9, x8
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #0
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, w8
	csel	w21, wzr, w9, eq
	lsl	w8, w23, w21
	orr	w28, w8, w28
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	add	x22, x8, x27, lsl #2
	ldr	x8, [x19, #24]
Lloh6:
	adrp	x9, _NETPLAY_CONNECTION_SLAVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NETPLAY_CONNECTION_SLAVE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
Lloh9:
	adrp	x9, _MAX_CLIENTS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAX_CLIENTS@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	x23, [x8]
	mov	x0, x19
	bl	_netplay_expected_input_size
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	mov	w3, #1
	mov	w4, #0
	bl	_netplay_input_state_for
	cbz	x0, LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x0
	bl	_input_driver_is_libretro_input_blocked
	mov	w23, #1
	cbnz	w0, LBB0_6
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #64]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x27, lsl #2]
	ldr	w9, [x20]
	and	w23, w9, w8
	sub	w8, w23, #128
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x25, [x22]
	ldr	x26, [x19, #88]
Lloh11:
	adrp	x11, lJTI0_0@PAGE
Lloh12:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_20
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	x1, x23
	mov	w2, #0
	mov	w3, #0
	blr	x26
	mov	x22, x0
	mov	x0, x21
	mov	x1, x23
	mov	w2, #0
	mov	w3, #1
	blr	x26
	orr	w8, w22, w0, lsl #16
	str	w8, [x25, #4]
	cmp	w23, #128
Lloh13:
	adrp	x8, _RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELDOWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELDOWN@GOTPAGEOFF]
Lloh15:
	adrp	x9, _RETRO_DEVICE_ID_LIGHTGUN_START@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RETRO_DEVICE_ID_LIGHTGUN_START@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w22, #2
	mov	w20, #1
LBB0_22:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x23
	mov	w2, #0
	mov	x3, x22
	blr	x26
	lsl	w8, w20, w22
	cmp	w0, #0
	csel	w8, wzr, w8, eq
	ldr	w9, [x25]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELDOWN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELDOWN@GOTPAGEOFF]
	str	w8, [x25]
	add	w22, w22, #1
	cmp	w23, #128
Lloh19:
	adrp	x8, _RETRO_DEVICE_ID_LIGHTGUN_START@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RETRO_DEVICE_ID_LIGHTGUN_START@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	cmp	w22, w8
	b.ls	LBB0_22
	b	LBB0_34
LBB0_23:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh21:
	adrp	x8, _NETPLAY_KEY_LAST@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NETPLAY_KEY_LAST@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.24:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w24, #0
	mov	w20, #1
	mov	w23, #1
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=2
	add	w23, w23, #1
Lloh24:
	adrp	x8, _NETPLAY_KEY_LAST@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NETPLAY_KEY_LAST@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w23, w8
	b.hs	LBB0_33
LBB0_26:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_netplay_key_ntoh
	mov	x3, x0
	mov	x0, x21
	mov	w1, #130
	mov	w2, #0
	blr	x26
	mov	w8, #1
	lsl	w8, w8, w20
	mov	w9, w24
	lsl	x9, x9, #2
	ldr	w10, [x25, x9]
	cmp	w0, #0
	csel	w8, wzr, w8, eq
	orr	w8, w8, w10
	str	w8, [x25, x9]
	add	w20, w20, #1
	cmp	w20, #32
	b.lo	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	add	w24, w24, #1
	ldr	w8, [x22, #8]
	cmp	w24, w8
	b.hs	LBB0_33
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=2
	mov	w20, #0
	b	LBB0_25
LBB0_29:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	w1, #132
	mov	w2, #0
	mov	w3, #0
	blr	x26
	mov	x22, x0
	mov	x0, x21
	mov	w1, #132
	mov	w2, #0
	mov	w3, #1
	blr	x26
	orr	w8, w22, w0, lsl #16
	str	w8, [x25, #4]
	mov	x0, x21
	mov	w1, #132
	mov	w2, #1
	mov	w3, #0
	blr	x26
	mov	x22, x0
	mov	x0, x21
	mov	w1, #132
	mov	w2, #1
	mov	w3, #1
	blr	x26
	orr	w8, w22, w0, lsl #16
	str	w8, [x25, #8]
LBB0_30:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w22, #0
	mov	w23, #1
Lloh27:
	adrp	x24, _RETRO_DEVICE_ID_JOYPAD_R3@GOTPAGE
Lloh28:
	ldr	x24, [x24, _RETRO_DEVICE_ID_JOYPAD_R3@GOTPAGEOFF]
LBB0_31:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	w1, #131
	mov	w2, #0
	mov	x3, x22
	blr	x26
	lsl	w8, w23, w22
	cmp	w0, #0
	csel	w8, wzr, w8, eq
	ldr	w9, [x25]
	orr	w8, w8, w9
	str	w8, [x25]
	add	w22, w22, #1
	ldr	w8, [x24]
	cmp	w22, w8
	b.ls	LBB0_31
; %bb.32:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh29:
	adrp	x25, _MAX_INPUT_DEVICES@GOTPAGE
Lloh30:
	ldr	x25, [x25, _MAX_INPUT_DEVICES@GOTPAGEOFF]
	ldr	w26, [sp, #28]                  ; 4-byte Folded Reload
	ldr	x24, [sp]                       ; 8-byte Folded Reload
	b	LBB0_6
LBB0_33:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x24, [sp]                       ; 8-byte Folded Reload
LBB0_34:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh31:
	adrp	x25, _MAX_INPUT_DEVICES@GOTPAGE
Lloh32:
	ldr	x25, [x25, _MAX_INPUT_DEVICES@GOTPAGEOFF]
	ldr	w26, [sp, #28]                  ; 4-byte Folded Reload
	mov	w23, #1
Lloh33:
	adrp	x20, _RETRO_DEVICE_MASK@GOTPAGE
Lloh34:
	ldr	x20, [x20, _RETRO_DEVICE_MASK@GOTPAGEOFF]
	b	LBB0_6
LBB0_35:
	mov	w8, #1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	x9, [x19, #24]
Lloh35:
	adrp	x10, _NETPLAY_CONNECTION_PLAYING@GOTPAGE
Lloh36:
	ldr	x10, [x10, _NETPLAY_CONNECTION_PLAYING@GOTPAGEOFF]
Lloh37:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_37
; %bb.36:
	mov	w9, #24
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	madd	x9, x24, x9, x10
	ldr	x9, [x9, #8]
	ldr	x10, [x19, #32]
	str	w8, [x9, x10, lsl #2]
	ldr	x0, [x19]
	bl	_NEXT_PTR
	ldr	x8, [x19, #32]
	ldp	x10, x9, [x19, #72]
	str	w0, [x9, x8, lsl #2]
	ldrsw	x9, [x19, #64]
	add	x9, x9, #1
	str	x9, [x10, x8, lsl #3]
LBB0_37:
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_43
; %bb.38:
	mov	x20, #0
	mov	x21, #0
Lloh38:
	adrp	x22, _NETPLAY_CONNECTION_CONNECTED@GOTPAGE
Lloh39:
	ldr	x22, [x22, _NETPLAY_CONNECTION_CONNECTED@GOTPAGEOFF]
	b	LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_40 Depth=1
	add	x21, x21, #1
	add	x20, x20, #16
	cmp	x21, w8, uxtw
	b.hs	LBB0_43
LBB0_40:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #56]
	add	x1, x9, x20
	ldr	x10, [x1, #8]
	cbz	x10, LBB0_39
; %bb.41:                               ;   in Loop: Header=BB0_40 Depth=1
	ldr	x9, [x9, x20]
	ldr	x10, [x22]
	cmp	x9, x10
	b.lt	LBB0_39
; %bb.42:                               ;   in Loop: Header=BB0_40 Depth=1
	mov	x0, x19
	bl	_netplay_send_cur_input
	ldr	w8, [x19, #40]
	b	LBB0_39
LBB0_43:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_45
; %bb.44:
	mov	x0, x19
	bl	_netplay_delayed_state_change
LBB0_45:
	mov	w0, #1
LBB0_46:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_23-LBB0_20)>>2
	.byte	(LBB0_30-LBB0_20)>>2
	.byte	(LBB0_29-LBB0_20)>>2
                                        ; -- End function
	.comm	_MAX_INPUT_DEVICES,4,2          ; @MAX_INPUT_DEVICES
	.comm	_RETRO_DEVICE_MASK,4,2          ; @RETRO_DEVICE_MASK
	.comm	_NETPLAY_CONNECTION_SLAVE,8,3   ; @NETPLAY_CONNECTION_SLAVE
	.comm	_MAX_CLIENTS,8,3                ; @MAX_CLIENTS
	.comm	_RETRO_DEVICE_ID_JOYPAD_R3,4,2  ; @RETRO_DEVICE_ID_JOYPAD_R3
	.comm	_RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELDOWN,4,2 ; @RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELDOWN
	.comm	_RETRO_DEVICE_ID_LIGHTGUN_START,4,2 ; @RETRO_DEVICE_ID_LIGHTGUN_START
	.comm	_NETPLAY_KEY_LAST,4,2           ; @NETPLAY_KEY_LAST
	.comm	_NETPLAY_CONNECTION_PLAYING,8,3 ; @NETPLAY_CONNECTION_PLAYING
	.comm	_NETPLAY_CONNECTION_CONNECTED,8,3 ; @NETPLAY_CONNECTION_CONNECTED
	.no_dead_strip	_get_self_input_state
.subsections_via_symbols
