	.file	"extr_wiiuse.c___wiiuse_push_command.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__wiiuse_push_command, @function
__wiiuse_push_command:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L6
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rsi, rsi
	je	.L1
	mov	eax, DWORD PTR CMD_READY[rip]
	mov	QWORD PTR [rsi], 0
	mov	rbp, rdi
	xor	edi, edi
	mov	DWORD PTR 8[rsi], eax
	call	_CPU_ISR_Disable@PLT
	cmp	QWORD PTR 8[rbp], 0
	je	.L10
	mov	rax, QWORD PTR 0[rbp]
	mov	QWORD PTR [rax], rbx
	mov	QWORD PTR 0[rbp], rbx
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	edi, edi
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	_CPU_ISR_Restore@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore 3
	.cfi_restore 6
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	mov	QWORD PTR 0[rbp], rbx
	mov	rdi, rbp
	mov	QWORD PTR 8[rbp], rbx
	call	wiiuse_send_next_command@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	__wiiuse_push_command, .-__wiiuse_push_command
	.comm	CMD_READY,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_wiiuse.c___wiiuse_push_command.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__wiiuse_push_command, %function
__wiiuse_push_command:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r1
	cmp	r0, #0
	lsr	r3, r3, #5
	moveq	r3, #1
	cmp	r3, #0
	bxne	lr
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r2, .L10
	str	r3, [r1]
	ldr	r3, [r2]
	mov	r0, #0
	str	r3, [r1, #4]
	mov	r4, r1
	bl	_CPU_ISR_Disable
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [r5]
	str	r4, [r3]
	str	r4, [r5]
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, lr}
	b	_CPU_ISR_Restore
.L9:
	mov	r0, r5
	str	r4, [r5]
	str	r4, [r5, #4]
	bl	wiiuse_send_next_command
	b	.L4
.L11:
	.align	2
.L10:
	.word	CMD_READY
	.size	__wiiuse_push_command, .-__wiiuse_push_command
	.comm	CMD_READY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
