	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wiiuse_disable_expansion       ## -- Begin function wiiuse_disable_expansion
	.p2align	4, 0x90
_wiiuse_disable_expansion:              ## @wiiuse_disable_expansion
	.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
	movq	%rdi, %rbx
	movq	_WIIMOTE_STATE_EXP@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_WIIMOTE_IS_SET
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movl	(%rbx), %eax
	cmpl	$130, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.4:
	leaq	12(%rbx), %rdi
	callq	_nunchuk_disconnected
	movq	_WIIUSE_NUNCHUK_REMOVED@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	8(%rbx), %rdi
	callq	_classic_ctrl_disconnected
	movq	_WIIUSE_CLASSIC_CTRL_REMOVED@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	leaq	4(%rbx), %rdi
	callq	_motion_plus_disconnected
	movq	_WIIUSE_MOTION_PLUS_REMOVED@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_8:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_WIIMOTE_DISABLE_STATE
	movq	_EXP_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_wiiuse_set_ir_mode
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wiiuse_status                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WIIMOTE_STATE_EXP,4,2          ## @WIIMOTE_STATE_EXP
	.comm	_WIIUSE_NUNCHUK_REMOVED,4,2     ## @WIIUSE_NUNCHUK_REMOVED
	.comm	_WIIUSE_CLASSIC_CTRL_REMOVED,4,2 ## @WIIUSE_CLASSIC_CTRL_REMOVED
	.comm	_WIIUSE_MOTION_PLUS_REMOVED,4,2 ## @WIIUSE_MOTION_PLUS_REMOVED
	.comm	_EXP_NONE,4,2                   ## @EXP_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wiiuse_disable_expansion       ; -- Begin function wiiuse_disable_expansion
	.p2align	2
_wiiuse_disable_expansion:              ; @wiiuse_disable_expansion
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _WIIMOTE_STATE_EXP@GOTPAGE
Lloh1:
	ldr	x20, [x20, _WIIMOTE_STATE_EXP@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_WIIMOTE_IS_SET
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.4:
	add	x0, x19, #12
	bl	_nunchuk_disconnected
Lloh2:
	adrp	x8, _WIIUSE_NUNCHUK_REMOVED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WIIUSE_NUNCHUK_REMOVED@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	add	x0, x19, #8
	bl	_classic_ctrl_disconnected
Lloh4:
	adrp	x8, _WIIUSE_CLASSIC_CTRL_REMOVED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WIIUSE_CLASSIC_CTRL_REMOVED@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	add	x0, x19, #4
	bl	_motion_plus_disconnected
Lloh6:
	adrp	x8, _WIIUSE_MOTION_PLUS_REMOVED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WIIUSE_MOTION_PLUS_REMOVED@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_9:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_WIIMOTE_DISABLE_STATE
Lloh8:
	adrp	x8, _EXP_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXP_NONE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	_wiiuse_set_ir_mode
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wiiuse_status
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WIIMOTE_STATE_EXP,4,2          ; @WIIMOTE_STATE_EXP
	.comm	_WIIUSE_NUNCHUK_REMOVED,4,2     ; @WIIUSE_NUNCHUK_REMOVED
	.comm	_WIIUSE_CLASSIC_CTRL_REMOVED,4,2 ; @WIIUSE_CLASSIC_CTRL_REMOVED
	.comm	_WIIUSE_MOTION_PLUS_REMOVED,4,2 ; @WIIUSE_MOTION_PLUS_REMOVED
	.comm	_EXP_NONE,4,2                   ; @EXP_NONE
.subsections_via_symbols
