	.file	"extr_hid-wiimote-core.c_handler_return.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Remote error %hhu on req %hhu\n"
	.text
	.p2align 4
	.type	handler_return, @function
handler_return:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	r13, QWORD PTR 16[rsi]
	mov	rbp, rdi
	mov	r12, QWORD PTR 24[rsi]
	call	handler_keys@PLT
	xor	edx, edx
	mov	rsi, r13
	mov	rdi, rbp
	call	wiimote_cmd_pending@PLT
	test	rax, rax
	jne	.L6
	test	r12, r12
	jne	.L7
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	mov	rcx, r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	hid_warn@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	QWORD PTR 8[rbp], r12
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	wiimote_cmd_complete@PLT
	.cfi_endproc
.LFE0:
	.size	handler_return, .-handler_return
	.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_handler_return.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Remote error %hhu on req %hhu\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handler_return, %function
handler_return:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r6, [r1, #8]
	ldr	r5, [r1, #12]
	bl	handler_keys
	mov	r1, r6
	mov	r0, r4
	mov	r2, #0
	bl	wiimote_cmd_pending
	cmp	r0, #0
	bne	.L6
	cmp	r5, #0
	popeq	{r4, r5, r6, pc}
	mov	r3, r6
	mov	r2, r5
	ldr	r0, [r4]
	ldr	r1, .L7
	pop	{r4, r5, r6, lr}
	b	hid_warn
.L6:
	mov	r0, r4
	str	r5, [r4, #4]
	pop	{r4, r5, r6, lr}
	b	wiimote_cmd_complete
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	handler_return, .-handler_return
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
