	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wiimod_drums_in_ext
_wiimod_drums_in_ext:                   ## @wiimod_drums_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	20(%rsi), %eax
	movl	16(%rsi), %ecx
	movq	_WIIPROTO_FLAG_MP_ACTIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%edi, %edi
	andl	8(%rbx), %edx
	sete	%dil
	orl	$62, %edi
	movl	4(%rsi), %edx
	andl	%edi, %edx
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	andl	(%rsi), %edi
	movl	%edi, -64(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	testb	$4, %cl
	sete	%dl
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	testb	$16, %cl
	sete	%dl
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	xorl	%ecx, %ecx
	testb	$4, %al
	sete	%cl
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	xorl	%ecx, %ecx
	testb	$8, %al
	sete	%cl
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	xorl	%ecx, %ecx
	testb	$16, %al
	sete	%cl
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	xorl	%ecx, %ecx
	testb	$32, %al
	sete	%cl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	testb	$64, %al
	sete	%r13b
	xorl	%r8d, %r8d
	testb	$-128, %al
	movl	12(%rsi), %eax
	sete	%r8b
	sarl	$5, %eax
	movl	$7, %r15d
	subl	%eax, %r15d
	movl	8(%rsi), %r14d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, %r12d
	shrl	$6, %r12d
	andl	$1, %r12d
	shrl	%r14d
	andl	$31, %r14d
	movq	_ABS_HAT2Y@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbx), %r9
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	pushq	$14
	pushq	%rax
	callq	_wiimod_drums_report_pressure
	addq	$16, %rsp
	movq	16(%rbx), %r9
	addq	$4, %r9
	movq	_ABS_HAT0X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%r13d, %r8d
	pushq	$25
	pushq	%rax
	callq	_wiimod_drums_report_pressure
	addq	$16, %rsp
	movq	16(%rbx), %r9
	addq	$8, %r9
	movq	_ABS_HAT2X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	pushq	$17
	pushq	%rax
	callq	_wiimod_drums_report_pressure
	addq	$16, %rsp
	movq	16(%rbx), %r9
	addq	$12, %r9
	movq	_ABS_HAT1X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	pushq	$18
	pushq	%rax
	callq	_wiimod_drums_report_pressure
	addq	$16, %rsp
	movq	16(%rbx), %r9
	addq	$16, %r9
	movq	_ABS_HAT0Y@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	pushq	$15
	pushq	%rax
	callq	_wiimod_drums_report_pressure
	addq	$16, %rsp
	movq	16(%rbx), %r9
	addq	$20, %r9
	movq	_ABS_HAT3X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testb	$-128, -48(%rbp)                ## 1-byte Folded Reload
	movl	$255, %ecx
	movl	%r14d, %edx
	cmovel	%ecx, %edx
	cmovnel	%ecx, %r14d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %ecx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	pushq	$27
	pushq	%rax
	callq	_wiimod_drums_report_pressure
	addq	$16, %rsp
	movq	16(%rbx), %r9
	addq	$24, %r9
	movq	_ABS_HAT3Y@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	pushq	$14
	pushq	%rax
	callq	_wiimod_drums_report_pressure
	addq	$16, %rsp
	movl	(%rbx), %edi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	addl	$-32, %edx
	callq	_input_report_abs
	movl	(%rbx), %edi
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	addl	$-32, %edx
	callq	_input_report_abs
	movl	(%rbx), %edi
	movq	_BTN_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	_BTN_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_input_report_key
	movl	(%rbx), %edi
	addq	$40, %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_HAT2Y,4,2                  ## @ABS_HAT2Y
	.comm	_ABS_HAT0X,4,2                  ## @ABS_HAT0X
	.comm	_ABS_HAT2X,4,2                  ## @ABS_HAT2X
	.comm	_ABS_HAT1X,4,2                  ## @ABS_HAT1X
	.comm	_ABS_HAT0Y,4,2                  ## @ABS_HAT0Y
	.comm	_ABS_HAT3X,4,2                  ## @ABS_HAT3X
	.comm	_ABS_HAT3Y,4,2                  ## @ABS_HAT3Y
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_BTN_START,4,2                  ## @BTN_START
	.comm	_BTN_SELECT,4,2                 ## @BTN_SELECT
	.no_dead_strip	_wiimod_drums_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_drums_in_ext
_wiimod_drums_in_ext:                   ; @wiimod_drums_in_ext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.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
	mov	x19, x0
	ldp	w21, w8, [x1, #8]
	ldp	w9, w10, [x1]
	ldp	w12, w11, [x1, #16]
	ldr	w13, [x0, #8]
	mov	w14, #1
	bic	w15, w14, w12, lsr #2
	str	w15, [sp, #8]                   ; 4-byte Folded Spill
Lloh0:
	adrp	x15, _WIIPROTO_FLAG_MP_ACTIVE@GOTPAGE
Lloh1:
	ldr	x15, [x15, _WIIPROTO_FLAG_MP_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w15, [x15]
	tst	w15, w13
	mov	w13, #62
	cinc	w13, w13, eq
	and	w10, w13, w10
	and	w9, w13, w9
	stp	w9, w10, [sp]                   ; 8-byte Folded Spill
	bic	w9, w14, w12, lsr #4
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	bic	w24, w14, w11, lsr #2
	bic	w26, w14, w11, lsr #3
	bic	w27, w14, w11, lsr #4
	bic	w28, w14, w11, lsr #5
	bic	w20, w14, w11, lsr #6
	bic	w4, w14, w11, lsr #7
	ubfx	w22, w21, #6, #1
	ubfx	w25, w21, #1, #5
	mov	w9, #7
	sub	w23, w9, w8, asr #5
	ldr	x5, [x0, #16]
Lloh3:
	adrp	x8, _ABS_HAT2Y@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_HAT2Y@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
	mov	x1, x22
	mov	x2, x25
	mov	x3, x23
	mov	w7, #14
	bl	_wiimod_drums_report_pressure
	ldr	x8, [x19, #16]
	add	x5, x8, #4
Lloh6:
	adrp	x8, _ABS_HAT0X@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABS_HAT0X@GOTPAGEOFF]
Lloh8:
	ldr	w6, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x25
	mov	x3, x23
	mov	x4, x20
	mov	w7, #25
	bl	_wiimod_drums_report_pressure
	ldr	x8, [x19, #16]
	add	x5, x8, #8
Lloh9:
	adrp	x8, _ABS_HAT2X@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ABS_HAT2X@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x25
	mov	x3, x23
	mov	x4, x28
	mov	w7, #17
	bl	_wiimod_drums_report_pressure
	ldr	x8, [x19, #16]
	add	x5, x8, #12
Lloh12:
	adrp	x8, _ABS_HAT1X@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ABS_HAT1X@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x25
	mov	x3, x23
	mov	x4, x27
	mov	w7, #18
	bl	_wiimod_drums_report_pressure
	ldr	x8, [x19, #16]
	add	x5, x8, #16
Lloh15:
	adrp	x8, _ABS_HAT0Y@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ABS_HAT0Y@GOTPAGEOFF]
Lloh17:
	ldr	w6, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x25
	mov	x3, x23
	mov	x4, x26
	mov	w7, #15
	bl	_wiimod_drums_report_pressure
	tst	w21, #0x80
	mov	w8, #255
	csel	w2, w8, w25, eq
	ldr	x9, [x19, #16]
	add	x5, x9, #20
Lloh18:
	adrp	x9, _ABS_HAT3X@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ABS_HAT3X@GOTPAGEOFF]
Lloh20:
	ldr	w6, [x9]
	csel	w20, w25, w8, eq
	mov	x0, x19
	mov	x1, x22
	mov	x3, x23
	mov	x4, x24
	mov	w7, #27
	bl	_wiimod_drums_report_pressure
	ldr	x8, [x19, #16]
	add	x5, x8, #24
Lloh21:
	adrp	x8, _ABS_HAT3Y@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ABS_HAT3Y@GOTPAGEOFF]
Lloh23:
	ldr	w6, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x23
	mov	w4, #0
	mov	w7, #14
	bl	_wiimod_drums_report_pressure
	ldr	w0, [x19]
Lloh24:
	adrp	x8, _ABS_X@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	sub	w2, w8, #32
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh27:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	sub	w2, w8, #32
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh30:
	adrp	x8, _BTN_START@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BTN_START@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	bl	_input_report_key
	ldr	w0, [x19]
Lloh33:
	adrp	x8, _BTN_SELECT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BTN_SELECT@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_input_report_key
	ldr	w0, [x19]
	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
	add	sp, sp, #112
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WIIPROTO_FLAG_MP_ACTIVE,4,2    ; @WIIPROTO_FLAG_MP_ACTIVE
	.comm	_ABS_HAT2Y,4,2                  ; @ABS_HAT2Y
	.comm	_ABS_HAT0X,4,2                  ; @ABS_HAT0X
	.comm	_ABS_HAT2X,4,2                  ; @ABS_HAT2X
	.comm	_ABS_HAT1X,4,2                  ; @ABS_HAT1X
	.comm	_ABS_HAT0Y,4,2                  ; @ABS_HAT0Y
	.comm	_ABS_HAT3X,4,2                  ; @ABS_HAT3X
	.comm	_ABS_HAT3Y,4,2                  ; @ABS_HAT3Y
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_BTN_START,4,2                  ; @BTN_START
	.comm	_BTN_SELECT,4,2                 ; @BTN_SELECT
	.no_dead_strip	_wiimod_drums_in_ext
.subsections_via_symbols
