	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function wiiu_input_state
LCPI0_0:
	.long	0x38000000                      ## float 3.05175781E-5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_wiiu_input_state:                      ## @wiiu_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_30
## %bb.1:
	movq	%rcx, %r13
	testq	%rcx, %rcx
	je	LBB0_30
## %bb.2:
	movq	_DEFAULT_MAX_PADS@GOTPCREL(%rip), %rax
	cmpl	%r8d, (%rax)
	jbe	LBB0_30
## %bb.3:
	movl	%r8d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%r13,%rax,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_30
## %bb.4:
	addl	$-128, %r9d
	cmpl	$4, %r9d
	ja	LBB0_26
## %bb.5:
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	24(%rbp), %eax
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%r9,4), %rsi
	addq	%rdi, %rsi
	jmpq	*%rsi
LBB0_33:
	movq	%r12, %rdi
	movl	%eax, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wiiu_pointer_device_state      ## TAILCALL
LBB0_27:
	movq	_RETROK_LAST@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jbe	LBB0_26
## %bb.28:
	movq	_keyboardState@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	cmpl	$0, (%rcx,%rax,4)
	je	LBB0_26
## %bb.29:
	movq	_keyboardChannel@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpl	$0, (%rax)
	jg	LBB0_30
	jmp	LBB0_26
LBB0_32:
	movl	16(%rbp), %ebx
	movq	(%r12), %rdi
	movq	%rcx, (%rsp)
	movq	%r14, %rsi
	movl	%r8d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	callq	_input_joypad_analog
	jmp	LBB0_31
LBB0_6:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	shrq	$32, %r14
	movq	_RETRO_DEVICE_ID_JOYPAD_MASK@GOTPCREL(%rip), %rsi
	cmpl	%eax, (%rsi)
	jne	LBB0_19
## %bb.7:
	movq	_RARCH_FIRST_CUSTOM_BIND@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	$0, %ebx
	je	LBB0_30
## %bb.8:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rcx,%r14,8), %esi
	movq	_NO_BTN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %esi
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	4(%rdx,%r14,8), %esi
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rcx,%r14,8), %r15d
	movq	_AXIS_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rdx,%r14,8), %r15d
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%eax, %esi
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r12), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	*8(%rax)
	testl	%eax, %eax
	jne	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r12), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r15d, %esi
	callq	*(%rax)
	movl	%eax, %edi
	callq	_abs
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	ucomiss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	jbe	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	btsl	%r14d, %ebx
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r14
	movq	_RARCH_FIRST_CUSTOM_BIND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r14
	jae	LBB0_30
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%r13,%rax,8), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_19:
	movl	%eax, %eax
	movl	4(%rcx,%rax,8), %esi
	movq	_NO_BTN@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmpl	%edi, %esi
	jne	LBB0_21
## %bb.20:
	movl	4(%rdx,%rax,8), %esi
LBB0_21:
	movl	(%rcx,%rax,8), %r13d
	movq	_AXIS_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r13d
	jne	LBB0_23
## %bb.22:
	movl	(%rdx,%rax,8), %r13d
LBB0_23:
	cmpl	%edi, %esi
	je	LBB0_25
## %bb.24:
	movq	(%r12), %rax
	movl	%r14d, %edi
	callq	*8(%rax)
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_30
LBB0_25:
	movq	(%r12), %rax
	movl	%r14d, %edi
	movl	%r13d, %esi
	callq	*(%rax)
	movl	%eax, %edi
	callq	_abs
	cvtsi2ss	%rax, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	movl	$1, %ebx
	ucomiss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	ja	LBB0_30
LBB0_26:
	xorl	%ebx, %ebx
LBB0_30:
	movl	%ebx, %eax
LBB0_31:
	addq	$40, %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_33, LBB0_33-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
LJTI0_0:
	.long	L0_0_set_33
	.long	L0_0_set_27
	.long	L0_0_set_6
	.long	L0_0_set_32
	.long	L0_0_set_33
	.end_data_region
                                        ## -- End function
	.comm	_DEFAULT_MAX_PADS,4,2           ## @DEFAULT_MAX_PADS
	.comm	_RETRO_DEVICE_ID_JOYPAD_MASK,4,2 ## @RETRO_DEVICE_ID_JOYPAD_MASK
	.comm	_RARCH_FIRST_CUSTOM_BIND,4,2    ## @RARCH_FIRST_CUSTOM_BIND
	.comm	_NO_BTN,4,2                     ## @NO_BTN
	.comm	_AXIS_NONE,4,2                  ## @AXIS_NONE
	.comm	_RETROK_LAST,4,2                ## @RETROK_LAST
	.comm	_keyboardState,8,3              ## @keyboardState
	.comm	_keyboardChannel,4,2            ## @keyboardChannel
	.no_dead_strip	_wiiu_input_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wiiu_input_state
_wiiu_input_state:                      ; @wiiu_input_state
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	cbz	x0, LBB0_30
; %bb.1:
	mov	x22, x3
	mov	w23, #0
	cbz	x3, LBB0_31
; %bb.2:
Lloh0:
	adrp	x9, _DEFAULT_MAX_PADS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEFAULT_MAX_PADS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w4
	b.ls	LBB0_31
; %bb.3:
	mov	x8, x6
	ldr	x6, [x22, w4, uxtw #3]
	cbz	x6, LBB0_30
; %bb.4:
	sub	w9, w5, #128
	cmp	w9, #4
	b.hi	LBB0_30
; %bb.5:
	mov	x20, x2
	mov	x19, x0
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_6
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_6:
	mov	x0, x19
	mov	x1, x7
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	b	_wiiu_pointer_device_state
LBB0_7:
Lloh5:
	adrp	x8, _RETROK_LAST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RETROK_LAST@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w7
	b.ls	LBB0_30
; %bb.8:
Lloh8:
	adrp	x8, _keyboardState@GOTPAGE
Lloh9:
	ldr	x8, [x8, _keyboardState@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w8, [x8, w7, uxtw #2]
Lloh11:
	adrp	x9, _keyboardChannel@GOTPAGE
Lloh12:
	ldr	x9, [x9, _keyboardChannel@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.gt	LBB0_32
	b	LBB0_30
LBB0_9:
	fmov	s8, w1
	lsr	x21, x1, #32
Lloh14:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, w7
	b.ne	LBB0_23
; %bb.10:
Lloh17:
	adrp	x8, _RARCH_FIRST_CUSTOM_BIND@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RARCH_FIRST_CUSTOM_BIND@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cbz	w8, LBB0_30
; %bb.11:
	mov	x26, #0
	mov	x27, #0
	mov	w23, #0
Lloh20:
	adrp	x25, _AXIS_NONE@GOTPAGE
Lloh21:
	ldr	x25, [x25, _AXIS_NONE@GOTPAGEOFF]
	movi.2s	v9, #56, lsl #24
	mov	w28, w4
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x6, x26
	ldr	w1, [x8, #4]
Lloh22:
	adrp	x8, _NO_BTN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NO_BTN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x20, x26
	ldr	w1, [x9, #4]
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w24, [x6, x26]
	ldr	w9, [x25]
	cmp	w24, w9
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w24, [x20, x26]
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	w1, w8
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	x0, x21
	blr	x8
	cbnz	w0, LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x24
	blr	x8
	bl	_abs
	scvtf	s0, x0
	fmul	s0, s0, s9
	fcmp	s0, s8
	b.le	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w8, #1
	lsl	w8, w8, w27
	orr	w23, w8, w23
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x27, x27, #1
Lloh25:
	adrp	x8, _RARCH_FIRST_CUSTOM_BIND@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RARCH_FIRST_CUSTOM_BIND@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	x27, x8
	b.hs	LBB0_31
; %bb.21:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x6, [x22, x28, lsl #3]
	add	x26, x26, #8
	b	LBB0_12
LBB0_22:
	ldr	x0, [x19]
	mov	x2, x20
	mov	x3, x4
	mov	x4, x8
	mov	x5, x7
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	b	_input_joypad_analog
LBB0_23:
	mov	w9, w7
	add	x8, x6, w7, uxtw #3
	ldr	w1, [x8, #4]
Lloh28:
	adrp	x8, _NO_BTN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _NO_BTN@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_25
; %bb.24:
	add	x10, x20, x9, lsl #3
	ldr	w1, [x10, #4]
LBB0_25:
	lsl	x9, x9, #3
	ldr	w22, [x6, x9]
Lloh31:
	adrp	x10, _AXIS_NONE@GOTPAGE
Lloh32:
	ldr	x10, [x10, _AXIS_NONE@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	cmp	w22, w10
	b.ne	LBB0_27
; %bb.26:
	ldr	w22, [x20, x9]
LBB0_27:
	cmp	w1, w8
	b.eq	LBB0_29
; %bb.28:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	x0, x21
	blr	x8
	cbnz	w0, LBB0_32
LBB0_29:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x22
	blr	x8
	bl	_abs
	scvtf	s0, x0
	movi.2s	v1, #56, lsl #24
	fmul	s0, s0, s1
	fcmp	s0, s8
	b.gt	LBB0_32
LBB0_30:
	mov	w23, #0
LBB0_31:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_32:
	mov	w23, #1
	b	LBB0_31
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_22-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
                                        ; -- End function
	.comm	_DEFAULT_MAX_PADS,4,2           ; @DEFAULT_MAX_PADS
	.comm	_RETRO_DEVICE_ID_JOYPAD_MASK,4,2 ; @RETRO_DEVICE_ID_JOYPAD_MASK
	.comm	_RARCH_FIRST_CUSTOM_BIND,4,2    ; @RARCH_FIRST_CUSTOM_BIND
	.comm	_NO_BTN,4,2                     ; @NO_BTN
	.comm	_AXIS_NONE,4,2                  ; @AXIS_NONE
	.comm	_RETROK_LAST,4,2                ; @RETROK_LAST
	.comm	_keyboardState,8,3              ; @keyboardState
	.comm	_keyboardChannel,4,2            ; @keyboardChannel
	.no_dead_strip	_wiiu_input_state
.subsections_via_symbols
