	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_reset                    ## -- Begin function input_reset
	.p2align	4, 0x90
_input_reset:                           ## @input_reset
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MAX_DEVICES@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_13
## %bb.1:
	movq	_input@GOTPCREL(%rip), %r15
	leaq	LJTI0_0(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_gamepad_reset
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %eax
	addl	$-128, %eax
	cmpl	$9, %eax
	ja	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r12,%rax,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_xe_a1p_reset
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_terebi_oekaki_reset
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_sportspad_reset
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_paddle_reset
	jmp	LBB0_12
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_mouse_reset
	jmp	LBB0_12
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_lightgun_reset
	jmp	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	shrl	$2, %edi
	callq	_activator_reset
	jmp	LBB0_12
LBB0_13:
	movq	_input@GOTPCREL(%rip), %r14
	movq	8(%r14), %rax
	movq	_SYSTEM_TEAMPLAYER@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	cmpq	%rcx, (%rax)
	jne	LBB0_15
## %bb.14:
	xorl	%edi, %edi
	callq	_teamplayer_reset
	movq	8(%r14), %rax
	movq	(%rbx), %rcx
LBB0_15:
	cmpq	%rcx, 8(%rax)
	jne	LBB0_16
## %bb.17:
	movl	$1, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_teamplayer_reset               ## TAILCALL
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_MAX_DEVICES,4,2                ## @MAX_DEVICES
	.comm	_input,16,3                     ## @input
	.comm	_SYSTEM_TEAMPLAYER,8,3          ## @SYSTEM_TEAMPLAYER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_reset                    ; -- Begin function input_reset
	.p2align	2
_input_reset:                           ; @input_reset
	.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
Lloh0:
	adrp	x21, _MAX_DEVICES@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAX_DEVICES@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x20, _input@GOTPAGE
Lloh3:
	ldr	x20, [x20, _input@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, #0
Lloh4:
	adrp	x22, lJTI0_0@PAGE
Lloh5:
	add	x22, x22, lJTI0_0@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_gamepad_reset
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #1
	ldrsw	x8, [x21]
	cmp	x19, x8
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w8, [x8, x19, lsl #2]
	sub	w8, w8, #128
	cmp	w8, #9
	b.hi	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x22, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_xe_a1p_reset
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_terebi_oekaki_reset
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_sportspad_reset
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_paddle_reset
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_mouse_reset
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_lightgun_reset
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ubfx	x0, x19, #2, #30
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_activator_reset
	b	LBB0_3
LBB0_13:
	ldr	x8, [x20, #8]
	ldr	x10, [x8]
Lloh6:
	adrp	x19, _SYSTEM_TEAMPLAYER@GOTPAGE
Lloh7:
	ldr	x19, [x19, _SYSTEM_TEAMPLAYER@GOTPAGEOFF]
	ldr	x9, [x19]
	cmp	x10, x9
	b.ne	LBB0_15
; %bb.14:
	mov	w0, #0
	bl	_teamplayer_reset
	ldr	x8, [x20, #8]
	ldr	x9, [x19]
LBB0_15:
	ldr	x8, [x8, #8]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
	mov	w0, #1
	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
	b	_teamplayer_reset
LBB0_17:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-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
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_MAX_DEVICES,4,2                ; @MAX_DEVICES
	.comm	_input,16,3                     ; @input
	.comm	_SYSTEM_TEAMPLAYER,8,3          ; @SYSTEM_TEAMPLAYER
.subsections_via_symbols
