	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wiimod_nunchuk_in_ext
_wiimod_nunchuk_in_ext:                 ## @wiimod_nunchuk_in_ext
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %edx
	movl	4(%rsi), %r12d
	movl	8(%rsi), %r9d
	movl	12(%rsi), %r8d
	movl	16(%rsi), %edi
	shll	$2, %edi
	movq	_WIIPROTO_FLAG_MP_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	20(%rsi), %ebx
	testl	%eax, 4(%r15)
	je	LBB0_2
## %bb.1:
	movl	%ebx, %eax
	shrl	$3, %eax
	andl	$2, %eax
	movl	%ebx, %esi
	shrl	$4, %esi
	andl	$2, %esi
	andl	$-8, %edi
	movl	$6, %r10d
	movl	$5, %ecx
	jmp	LBB0_3
LBB0_2:
	movl	%ebx, %eax
	shrl	$2, %eax
	andl	$3, %eax
	movl	%ebx, %esi
	shrl	$4, %esi
	andl	$3, %esi
	movl	$3, %r10d
	movl	$6, %ecx
LBB0_3:
	addl	$-128, %r12d
	addl	$-128, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %ebx
	andl	%r10d, %ebx
	orl	%edi, %ebx
	leal	(%rax,%r9,4), %r13d
	addl	$-512, %r13d                    ## imm = 0xFE00
	leal	(%rsi,%r8,4), %eax
	addl	$-512, %eax                     ## imm = 0xFE00
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addl	$-512, %ebx                     ## imm = 0xFE00
	movl	(%r15), %edi
	movq	_ABS_HAT0X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_input_report_abs
	movl	(%r15), %edi
	movq	_ABS_HAT0Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_input_report_abs
	movl	(%r15), %edi
	movq	_ABS_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edx
	callq	_input_report_abs
	movl	(%r15), %edi
	movq	_ABS_RY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_abs
	movl	(%r15), %edi
	movq	_ABS_RZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_input_report_abs
	movq	_WIIPROTO_FLAG_MP_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r15), %eax
	movl	20(%r14), %ecx
	movl	%ecx, %edx
	shrl	$2, %edx
	testl	%eax, %eax
	setne	%bl
	movl	(%r15), %edi
	movq	_wiimod_nunchuk_map@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_WIIMOD_NUNCHUK_KEY_Z@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rax,%rsi,4), %esi
	cmovel	%ecx, %edx
	notl	%edx
	andl	$1, %edx
	callq	_input_report_key
	movl	(%r15), %edi
	movq	(%r12), %rax
	movq	_WIIMOD_NUNCHUK_KEY_C@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	20(%r14), %eax
	addb	%bl, %bl
	orb	$1, %bl
	movzbl	%bl, %ecx
	xorl	%edx, %edx
	btl	%ecx, %eax
	setae	%dl
	callq	_input_report_key
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WIIPROTO_FLAG_MP_ACTIVE,4,2    ## @WIIPROTO_FLAG_MP_ACTIVE
	.comm	_ABS_HAT0X,4,2                  ## @ABS_HAT0X
	.comm	_ABS_HAT0Y,4,2                  ## @ABS_HAT0Y
	.comm	_ABS_RX,4,2                     ## @ABS_RX
	.comm	_ABS_RY,4,2                     ## @ABS_RY
	.comm	_ABS_RZ,4,2                     ## @ABS_RZ
	.comm	_wiimod_nunchuk_map,8,3         ## @wiimod_nunchuk_map
	.comm	_WIIMOD_NUNCHUK_KEY_Z,8,3       ## @WIIMOD_NUNCHUK_KEY_Z
	.comm	_WIIMOD_NUNCHUK_KEY_C,8,3       ## @WIIMOD_NUNCHUK_KEY_C
	.no_dead_strip	_wiimod_nunchuk_in_ext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wiimod_nunchuk_in_ext
_wiimod_nunchuk_in_ext:                 ; @wiimod_nunchuk_in_ext
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldp	w8, w9, [x1]
	ldp	w10, w11, [x1, #8]
	ldp	w12, w13, [x1, #16]
	lsl	w12, w12, #2
Lloh0:
	adrp	x25, _WIIPROTO_FLAG_MP_ACTIVE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _WIIPROTO_FLAG_MP_ACTIVE@GOTPAGEOFF]
	ldr	w14, [x25]
	ldp	w0, w15, [x0]
	tst	w14, w15
	ubfx	w14, w13, #2, #2
	ubfx	w15, w13, #4, #2
	mov	w26, #3
	mov	w16, #6
	lsr	w17, w13, #3
	and	w17, w17, #0x2
	lsr	w1, w13, #4
	and	w1, w1, #0x2
	and	w2, w12, #0xfffffff8
	mov	w3, #5
	csel	w16, w16, w3, eq
	mov	w3, #6
	csel	w3, w26, w3, eq
	csel	w12, w12, w2, eq
	csel	w14, w14, w17, eq
	csel	w15, w15, w1, eq
	sub	w21, w9, #128
	sub	w2, w8, #128
	lsr	w8, w13, w16
	and	w8, w8, w3
	orr	w8, w8, w12
	bfi	w14, w10, #2, #30
	sub	w22, w14, #512
	bfi	w15, w11, #2, #30
	sub	w23, w15, #512
	sub	w24, w8, #512
Lloh2:
	adrp	x8, _ABS_HAT0X@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ABS_HAT0X@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _ABS_HAT0Y@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ABS_HAT0Y@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _ABS_RX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ABS_RX@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _ABS_RY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ABS_RY@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x23
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh14:
	adrp	x8, _ABS_RZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ABS_RZ@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, x24
	bl	_input_report_abs
	ldr	w8, [x25]
	ldp	w0, w9, [x19]
Lloh17:
	adrp	x21, _wiimod_nunchuk_map@GOTPAGE
Lloh18:
	ldr	x21, [x21, _wiimod_nunchuk_map@GOTPAGEOFF]
	ldr	x10, [x21]
Lloh19:
	adrp	x11, _WIIMOD_NUNCHUK_KEY_Z@GOTPAGE
Lloh20:
	ldr	x11, [x11, _WIIMOD_NUNCHUK_KEY_Z@GOTPAGEOFF]
Lloh21:
	ldr	x11, [x11]
	ldr	w1, [x10, x11, lsl #2]
	ldr	w10, [x20, #20]
	lsr	w11, w10, #2
	tst	w8, w9
	csel	w8, w10, w11, eq
	mvn	w8, w8
	csinc	w22, w26, wzr, ne
	and	w2, w8, #0x1
	bl	_input_report_key
	ldr	w0, [x19]
	ldr	x8, [x21]
Lloh22:
	adrp	x9, _WIIMOD_NUNCHUK_KEY_C@GOTPAGE
Lloh23:
	ldr	x9, [x9, _WIIMOD_NUNCHUK_KEY_C@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	ldr	w8, [x20, #20]
	lsr	w8, w8, w22
	mvn	w8, w8
	and	w2, w8, #0x1
	bl	_input_report_key
	ldr	w0, [x19]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WIIPROTO_FLAG_MP_ACTIVE,4,2    ; @WIIPROTO_FLAG_MP_ACTIVE
	.comm	_ABS_HAT0X,4,2                  ; @ABS_HAT0X
	.comm	_ABS_HAT0Y,4,2                  ; @ABS_HAT0Y
	.comm	_ABS_RX,4,2                     ; @ABS_RX
	.comm	_ABS_RY,4,2                     ; @ABS_RY
	.comm	_ABS_RZ,4,2                     ; @ABS_RZ
	.comm	_wiimod_nunchuk_map,8,3         ; @wiimod_nunchuk_map
	.comm	_WIIMOD_NUNCHUK_KEY_Z,8,3       ; @WIIMOD_NUNCHUK_KEY_Z
	.comm	_WIIMOD_NUNCHUK_KEY_C,8,3       ; @WIIMOD_NUNCHUK_KEY_C
	.no_dead_strip	_wiimod_nunchuk_in_ext
.subsections_via_symbols
