	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FCEUD_UpdateInput              ## -- Begin function FCEUD_UpdateInput
	.p2align	4, 0x90
_FCEUD_UpdateInput:                     ## @FCEUD_UpdateInput
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_UpdatePhysicalInput
	xorl	%eax, %eax
	callq	_KeyboardCommands
	movq	_InputType@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %ecx
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_5
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:
	movl	$2, %ebx
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_UpdatePPadData
	movq	_powerpadbuf@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	(%r14), %rax
	jmp	LBB0_5
LBB0_2:
	movl	$1, %ebx
LBB0_5:
	movl	4(%rax), %ecx
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_10
## %bb.6:
	leaq	LJTI0_1(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_8:
	orl	$2, %ebx
	jmp	LBB0_10
LBB0_7:
	movl	$1, %edi
	callq	_UpdatePPadData
	movq	_powerpadbuf@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movq	(%r14), %rax
	jmp	LBB0_10
LBB0_9:
	orl	$1, %ebx
LBB0_10:
	movl	$-133, %ecx
	addl	8(%rax), %ecx
	cmpl	$9, %ecx
	ja	LBB0_20
## %bb.11:
	leaq	LJTI0_2(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_19:
	orl	$2, %ebx
	jmp	LBB0_20
LBB0_17:
	xorl	%eax, %eax
	callq	_UpdateFTrainer
	jmp	LBB0_20
LBB0_18:
	xorl	%eax, %eax
	callq	_UpdateTopRider
	jmp	LBB0_20
LBB0_16:
	xorl	%eax, %eax
	callq	_UpdateQuizKing
	jmp	LBB0_20
LBB0_15:
	xorl	%eax, %eax
	callq	_UpdateMahjong
	jmp	LBB0_20
LBB0_14:
	xorl	%eax, %eax
	callq	_UpdateHyperShot
	jmp	LBB0_20
LBB0_12:
	movq	_cidisabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_20
## %bb.13:
	xorl	%eax, %eax
	callq	_UpdateFKB
LBB0_20:
	testb	$1, %bl
	je	LBB0_22
## %bb.21:
	xorl	%eax, %eax
	callq	_UpdateGamepad
LBB0_22:
	testb	$2, %bl
	jne	LBB0_24
## %bb.23:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_24:
	movq	_MouseData@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_GetMouseData                   ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_3
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_7, LBB0_7-LJTI0_1
.set L0_1_set_9, LBB0_9-LJTI0_1
LJTI0_1:
	.long	L0_1_set_8
	.long	L0_1_set_7
	.long	L0_1_set_7
	.long	L0_1_set_9
	.long	L0_1_set_8
.set L0_2_set_18, LBB0_18-LJTI0_2
.set L0_2_set_19, LBB0_19-LJTI0_2
.set L0_2_set_16, LBB0_16-LJTI0_2
.set L0_2_set_15, LBB0_15-LJTI0_2
.set L0_2_set_14, LBB0_14-LJTI0_2
.set L0_2_set_17, LBB0_17-LJTI0_2
.set L0_2_set_12, LBB0_12-LJTI0_2
LJTI0_2:
	.long	L0_2_set_18
	.long	L0_2_set_19
	.long	L0_2_set_16
	.long	L0_2_set_19
	.long	L0_2_set_15
	.long	L0_2_set_14
	.long	L0_2_set_17
	.long	L0_2_set_17
	.long	L0_2_set_12
	.long	L0_2_set_19
	.end_data_region
                                        ## -- End function
	.comm	_InputType,8,3                  ## @InputType
	.comm	_powerpadbuf,8,3                ## @powerpadbuf
	.comm	_cidisabled,4,2                 ## @cidisabled
	.comm	_MouseData,4,2                  ## @MouseData
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FCEUD_UpdateInput              ; -- Begin function FCEUD_UpdateInput
	.p2align	2
_FCEUD_UpdateInput:                     ; @FCEUD_UpdateInput
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_UpdatePhysicalInput
	bl	_KeyboardCommands
Lloh0:
	adrp	x20, _InputType@GOTPAGE
Lloh1:
	ldr	x20, [x20, _InputType@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w9, [x8]
	sub	w9, w9, #128
	cmp	w9, #4
	b.hi	LBB0_4
; %bb.1:
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	w19, #2
	b	LBB0_6
LBB0_3:
	mov	w0, #0
	bl	_UpdatePPadData
	mov	w19, #0
Lloh4:
	adrp	x8, _powerpadbuf@GOTPAGE
Lloh5:
	ldr	x8, [x8, _powerpadbuf@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	w0, [x8]
	ldr	x8, [x20]
	b	LBB0_6
LBB0_4:
	mov	w19, #0
	b	LBB0_6
LBB0_5:
	mov	w19, #1
LBB0_6:
	ldr	w9, [x8, #4]
	sub	w9, w9, #128
	cmp	w9, #4
	b.hi	LBB0_11
; %bb.7:
Lloh7:
	adrp	x10, lJTI0_1@PAGE
Lloh8:
	add	x10, x10, lJTI0_1@PAGEOFF
	adr	x11, LBB0_8
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_8:
	orr	w19, w19, #0x2
	b	LBB0_11
LBB0_9:
	mov	w0, #1
	bl	_UpdatePPadData
Lloh9:
	adrp	x8, _powerpadbuf@GOTPAGE
Lloh10:
	ldr	x8, [x8, _powerpadbuf@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	w0, [x8, #4]
	ldr	x8, [x20]
	b	LBB0_11
LBB0_10:
	orr	w19, w19, #0x1
LBB0_11:
	ldr	w8, [x8, #8]
	sub	w8, w8, #133
	cmp	w8, #9
	b.hi	LBB0_21
; %bb.12:
Lloh12:
	adrp	x9, lJTI0_2@PAGE
Lloh13:
	add	x9, x9, lJTI0_2@PAGEOFF
	adr	x10, LBB0_13
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_13:
	orr	w19, w19, #0x2
	b	LBB0_21
LBB0_14:
	bl	_UpdateFTrainer
	b	LBB0_21
LBB0_15:
	bl	_UpdateTopRider
	b	LBB0_21
LBB0_16:
	bl	_UpdateQuizKing
	b	LBB0_21
LBB0_17:
	bl	_UpdateMahjong
	b	LBB0_21
LBB0_18:
	bl	_UpdateHyperShot
	b	LBB0_21
LBB0_19:
Lloh14:
	adrp	x8, _cidisabled@GOTPAGE
Lloh15:
	ldr	x8, [x8, _cidisabled@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cbz	w8, LBB0_21
; %bb.20:
	bl	_UpdateFKB
LBB0_21:
	tbz	w19, #0, LBB0_23
; %bb.22:
	bl	_UpdateGamepad
LBB0_23:
	tbnz	w19, #1, LBB0_25
; %bb.24:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_25:
Lloh17:
	adrp	x8, _MouseData@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MouseData@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_GetMouseData
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_9-LBB0_8)>>2
	.byte	(LBB0_9-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
lJTI0_2:
	.byte	(LBB0_15-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_16-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_17-LBB0_13)>>2
	.byte	(LBB0_18-LBB0_13)>>2
	.byte	(LBB0_14-LBB0_13)>>2
	.byte	(LBB0_14-LBB0_13)>>2
	.byte	(LBB0_19-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
                                        ; -- End function
	.comm	_InputType,8,3                  ; @InputType
	.comm	_powerpadbuf,8,3                ; @powerpadbuf
	.comm	_cidisabled,4,2                 ; @cidisabled
	.comm	_MouseData,4,2                  ; @MouseData
.subsections_via_symbols
