	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wiimote_cmd_read_mp
_wiimote_cmd_read_mp:                   ## @wiimote_cmd_read_mp
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	$10879226, %esi                 ## imm = 0xA600FA
	movq	%rbx, %rdx
	movl	$6, %ecx
	callq	_wiimote_cmd_read
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$6, %ecx
	jne	LBB0_3
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_hid_dbg
	movl	$1, %eax
	cmpl	$5, 20(%rbx)
	je	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_hid_info
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"motion plus ID: %6phC\n"

L_.str.1:                               ## @.str.1
	.asciz	"unknown motion plus ID: %6phC\n"

	.no_dead_strip	_wiimote_cmd_read_mp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wiimote_cmd_read_mp
_wiimote_cmd_read_mp:                   ; @wiimote_cmd_read_mp
	.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, x1
	mov	x20, x0
	mov	w1, #250
	movk	w1, #166, lsl #16
	mov	x2, x19
	mov	w3, #6
	bl	_wiimote_cmd_read
	cmp	w0, #6
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_hid_dbg
	ldr	w8, [x19, #20]
	cmp	w8, #5
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #1
	b	LBB0_5
LBB0_3:
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_hid_info
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"motion plus ID: %6phC\n"

l_.str.1:                               ; @.str.1
	.asciz	"unknown motion plus ID: %6phC\n"

	.no_dead_strip	_wiimote_cmd_read_mp
.subsections_via_symbols
