	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wiiuse_motion_sensing          ## -- Begin function wiiuse_motion_sensing
	.p2align	4, 0x90
_wiiuse_motion_sensing:                 ## @wiiuse_motion_sensing
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_WIIMOTE_STATE_ACC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_WIIMOTE_IS_SET
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_WIIMOTE_ENABLE_STATE
	jmp	LBB0_5
LBB0_3:
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_WIIMOTE_DISABLE_STATE
LBB0_5:
	movq	_WIIMOTE_STATE_HANDSHAKE_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_WIIMOTE_IS_SET
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wiiuse_status                  ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIIMOTE_STATE_ACC,4,2          ## @WIIMOTE_STATE_ACC
	.comm	_WIIMOTE_STATE_HANDSHAKE_COMPLETE,4,2 ## @WIIMOTE_STATE_HANDSHAKE_COMPLETE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wiiuse_motion_sensing          ; -- Begin function wiiuse_motion_sensing
	.p2align	2
_wiiuse_motion_sensing:                 ; @wiiuse_motion_sensing
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _WIIMOTE_STATE_ACC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WIIMOTE_STATE_ACC@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_WIIMOTE_IS_SET
	cbz	w20, LBB0_3
; %bb.1:
	cbnz	x0, LBB0_7
; %bb.2:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_WIIMOTE_ENABLE_STATE
	b	LBB0_5
LBB0_3:
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_WIIMOTE_DISABLE_STATE
LBB0_5:
Lloh2:
	adrp	x8, _WIIMOTE_STATE_HANDSHAKE_COMPLETE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WIIMOTE_STATE_HANDSHAKE_COMPLETE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_WIIMOTE_IS_SET
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wiiuse_status
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WIIMOTE_STATE_ACC,4,2          ; @WIIMOTE_STATE_ACC
	.comm	_WIIMOTE_STATE_HANDSHAKE_COMPLETE,4,2 ; @WIIMOTE_STATE_HANDSHAKE_COMPLETE
.subsections_via_symbols
