	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function wiiproto_req_rmem
LCPI0_0:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_wiiproto_req_rmem
	.p2align	4, 0x90
_wiiproto_req_rmem:                     ## @wiiproto_req_rmem
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.3:
	movq	_WIIPROTO_REQ_RMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-60(%rbp), %r8
	movl	$0, -60(%rbp)
	movl	%edx, %edi
	shrl	$16, %edi
	movl	%edx, %eax
	shrl	$8, %eax
	movl	%ecx, %ebx
	shrl	$8, %ebx
	movd	%edi, %xmm0
	pinsrd	$1, %eax, %xmm0
	pinsrd	$2, %edx, %xmm0
	pinsrd	$3, %ebx, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, -56(%rbp)
	movzbl	%cl, %eax
	movl	%eax, -40(%rbp)
	testl	%esi, %esi
	jne	LBB0_5
## %bb.4:
	movl	$4, -60(%rbp)
LBB0_5:
	movq	%r14, %rdi
	movq	%r8, %rsi
	callq	_wiiproto_keep_rumble
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$28, %edx
	callq	_wiimote_queue
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	(%r14), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_7
## %bb.2:
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hid_warn                       ## TAILCALL
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid length %d rmem request\n"

	.comm	_WIIPROTO_REQ_RMEM,4,2          ## @WIIPROTO_REQ_RMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function wiiproto_req_rmem
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_wiiproto_req_rmem
	.p2align	2
_wiiproto_req_rmem:                     ; @wiiproto_req_rmem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	cbz	w3, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _WIIPROTO_REQ_RMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WIIPROTO_REQ_RMEM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	add	x8, sp, #12
	add	x8, x8, #4
	stp	w9, wzr, [sp, #12]
	dup.2s	v0, w2
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [sp, #20]
	and	w9, w2, #0xff
	ubfx	w10, w3, #8, #8
	stp	w9, w10, [sp, #28]
	and	w9, w3, #0xff
	str	w9, [sp, #36]
	cbnz	w1, LBB0_3
; %bb.2:
	mov	w9, #4
	str	w9, [sp, #16]
LBB0_3:
	mov	x0, x19
	mov	x1, x8
	bl	_wiiproto_keep_rumble
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #28
	bl	_wiimote_queue
	ldur	x8, [x29, #-24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	ldr	w0, [x19]
	ldur	x8, [x29, #-24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_hid_warn
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid length %d rmem request\n"

	.comm	_WIIPROTO_REQ_RMEM,4,2          ; @WIIPROTO_REQ_RMEM
.subsections_via_symbols
