	.file	"extr_hid-wiimote-core.c_wiiproto_req_rmem.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Invalid length %d rmem request\n"
	.text
	.p2align 4
	.globl	wiiproto_req_rmem
	.type	wiiproto_req_rmem, @function
wiiproto_req_rmem:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	ecx, ecx
	je	.L8
	mov	eax, DWORD PTR WIIPROTO_REQ_RMEM[rip]
	mov	r12, rsp
	mov	DWORD PTR [rsp], eax
	mov	eax, edx
	sar	eax, 16
	and	eax, 255
	mov	DWORD PTR 8[rsp], eax
	movzx	eax, dh
	and	edx, 255
	mov	DWORD PTR 12[rsp], eax
	movzx	eax, ch
	and	ecx, 255
	mov	DWORD PTR 20[rsp], eax
	xor	eax, eax
	test	esi, esi
	lea	rsi, 4[rsp]
	sete	al
	mov	DWORD PTR 16[rsp], edx
	sal	eax, 2
	mov	DWORD PTR 24[rsp], ecx
	mov	DWORD PTR 4[rsp], eax
	call	wiiproto_keep_rumble@PLT
	mov	edx, 28
	mov	rsi, r12
	mov	rdi, rbp
	call	wiimote_queue@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR [rdi]
	xor	edx, edx
	lea	rsi, .LC0[rip]
	call	hid_warn@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wiiproto_req_rmem, .-wiiproto_req_rmem
	.comm	WIIPROTO_REQ_RMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_hid-wiimote-core.c_wiiproto_req_rmem.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid length %d rmem request\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wiiproto_req_rmem
	.syntax unified
	.arm
	.fpu softvfp
	.type	wiiproto_req_rmem, %function
wiiproto_req_rmem:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, .L10
	sub	sp, sp, #32
	cmp	r3, #0
	ldr	r0, [r0]
	str	r0, [sp, #28]
	mov	r0,#0
	beq	.L8
	mov	lr, #0
	ldr	r0, .L10+4
	cmp	r1, lr
	ldr	r1, [r0]
	asr	r0, r2, #16
	and	r0, r0, #255
	str	r1, [sp]
	asr	ip, r2, #8
	and	r1, r2, #255
	str	r0, [sp, #8]
	and	r2, r3, #255
	asr	r0, r3, #8
	moveq	r3, #4
	and	r0, r0, #255
	and	ip, ip, #255
	str	r1, [sp, #16]
	str	r0, [sp, #20]
	add	r1, sp, #4
	mov	r0, r4
	str	r2, [sp, #24]
	str	lr, [sp, #4]
	str	ip, [sp, #12]
	streq	r3, [sp, #4]
	bl	wiiproto_keep_rumble
	mov	r0, r4
	mov	r1, sp
	mov	r2, #28
	bl	wiimote_queue
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #32
	@ sp needed
	pop	{r4, pc}
.L8:
	mov	r2, r3
	ldr	r0, [r4]
	ldr	r1, .L10+8
	bl	hid_warn
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	WIIPROTO_REQ_RMEM
	.word	.LC0
	.size	wiiproto_req_rmem, .-wiiproto_req_rmem
	.comm	WIIPROTO_REQ_RMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
