	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kpad_poll_one_channel
_kpad_poll_one_channel:                 ## @kpad_poll_one_channel
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movl	(%rsi), %esi
	callq	_kpad_register
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movl	4(%rbx), %eax
	movq	_wiimotes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r14d, %edx
	movl	%eax, (%rcx,%rdx,8)
	movq	_pad_functions@GOTPCREL(%rip), %rax
	movl	4(%rcx,%rdx,8), %edi
	movl	$0, (%rsp)
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	*(%rax)
	jmp	LBB0_7
LBB0_2:
	movq	_WIIU_PRO_BUTTON_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movl	4(%rbx), %eax
	movq	_wiimotes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r14d, %edx
	movl	%eax, (%rcx,%rdx,8)
	movq	_pad_functions@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	4(%rcx,%rdx,8), %r14d
	movl	12(%rbx), %edi
	callq	_WIIU_READ_STICK
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	callq	_WIIU_READ_STICK
	movl	$0, (%rsp)
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	*%r12
	jmp	LBB0_7
LBB0_4:
	movq	_CLASSIC_BUTTON_MASK@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	notl	%eax
	andl	16(%rbx), %eax
	movq	_wiimotes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r14d, %edx
	movl	%eax, (%rcx,%rdx,8)
	movq	_pad_functions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rcx,%rdx,8), %r14d
	movl	32(%rbx), %edi
	callq	_WIIU_READ_STICK
	movl	%eax, %r15d
	movl	28(%rbx), %edi
	callq	_WIIU_READ_STICK
	movl	%eax, %r12d
	movl	24(%rbx), %edi
	callq	_WIIU_READ_STICK
	movl	%eax, %r13d
	movl	20(%rbx), %edi
	callq	_WIIU_READ_STICK
	movl	$0, (%rsp)
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
LBB0_7:
	addq	$24, %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_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_WIIU_PRO_BUTTON_MASK,4,2       ## @WIIU_PRO_BUTTON_MASK
	.comm	_wiimotes,8,3                   ## @wiimotes
	.comm	_pad_functions,8,3              ## @pad_functions
	.comm	_CLASSIC_BUTTON_MASK,4,2        ## @CLASSIC_BUTTON_MASK
	.no_dead_strip	_kpad_poll_one_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kpad_poll_one_channel
_kpad_poll_one_channel:                 ; @kpad_poll_one_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x1]
	bl	_kpad_register
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x19, #4]
Lloh2:
	adrp	x9, _wiimotes@GOTPAGE
Lloh3:
	ldr	x9, [x9, _wiimotes@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x9, x9, w20, uxtw #3
	str	w8, [x9]
Lloh5:
	adrp	x8, _pad_functions@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pad_functions@GOTPAGEOFF]
Lloh7:
	ldr	x7, [x8]
	ldr	w0, [x9, #4]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	b	LBB0_9
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	ldr	w8, [x19, #16]
Lloh8:
	adrp	x9, _WIIU_PRO_BUTTON_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WIIU_PRO_BUTTON_MASK@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w8, [x19, #4]
Lloh10:
	adrp	x9, _wiimotes@GOTPAGE
Lloh11:
	ldr	x9, [x9, _wiimotes@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x9, x9, w20, uxtw #3
	str	w8, [x9]
Lloh13:
	adrp	x8, _pad_functions@GOTPAGE
Lloh14:
	ldr	x8, [x8, _pad_functions@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w20, [x9, #4]
	ldr	w0, [x19, #12]
	bl	_WIIU_READ_STICK
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_WIIU_READ_STICK
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	w4, #0
	b	LBB0_8
LBB0_6:
	ldr	w8, [x19, #16]
Lloh16:
	adrp	x9, _CLASSIC_BUTTON_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CLASSIC_BUTTON_MASK@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh18:
	adrp	x9, _wiimotes@GOTPAGE
Lloh19:
	ldr	x9, [x9, _wiimotes@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x9, x9, w20, uxtw #3
	str	w8, [x9]
Lloh21:
	adrp	x8, _pad_functions@GOTPAGE
Lloh22:
	ldr	x8, [x8, _pad_functions@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w20, [x9, #4]
	ldr	w0, [x19, #32]
	bl	_WIIU_READ_STICK
	mov	x21, x0
	ldr	w0, [x19, #28]
	bl	_WIIU_READ_STICK
	mov	x22, x0
	ldr	w0, [x19, #24]
	bl	_WIIU_READ_STICK
	mov	x23, x0
	ldr	w0, [x19, #20]
	bl	_WIIU_READ_STICK
	mov	x4, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
LBB0_8:
	mov	w5, #0
	mov	w6, #0
	ldr	x7, [sp, #8]                    ; 8-byte Folded Reload
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	br	x7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_WIIU_PRO_BUTTON_MASK,4,2       ; @WIIU_PRO_BUTTON_MASK
	.comm	_wiimotes,8,3                   ; @wiimotes
	.comm	_pad_functions,8,3              ; @pad_functions
	.comm	_CLASSIC_BUTTON_MASK,4,2        ; @CLASSIC_BUTTON_MASK
	.no_dead_strip	_kpad_poll_one_channel
.subsections_via_symbols
