	.file	"extr_riocmd.c_RIOFoadRta.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"FOAD RTA\n"
.LC1:
	.string	"FOAD RTA: GetCmdBlk failed\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"FOAD RTA: Failed to queue foad command\n"
	.text
	.p2align 4
	.globl	RIOFoadRta
	.type	RIOFoadRta, @function
RIOFoadRta:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	lea	rsi, .LC0[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR RIO_DEBUG_CMD[rip]
	call	rio_dprintk@PLT
	xor	eax, eax
	call	RIOGetCmdBlk@PLT
	test	rax, rax
	je	.L7
	mov	rsi, QWORD PTR [rbx]
	mov	rdx, rax
	mov	ecx, DWORD PTR IFOAD[rip]
	mov	QWORD PTR 40[rax], rsi
	mov	rax, QWORD PTR BOOT_RUP[rip]
	sub	rsi, 1
	mov	QWORD PTR 24[rdx], 0
	mov	QWORD PTR 32[rdx], rax
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR 8[rdx]
	mov	DWORD PTR [rdx], 132
	mov	DWORD PTR [rax], ecx
	mov	ecx, DWORD PTR IFOAD_MAGIC[rip]
	mov	DWORD PTR 4[rax], 0
	movzx	edi, cl
	movzx	ecx, ch
	mov	DWORD PTR 8[rax], edi
	mov	rdi, rbp
	mov	DWORD PTR 12[rax], ecx
	call	RIOQueueCmdBlk@PLT
	mov	r8, rax
	xor	eax, eax
	cmp	r8, QWORD PTR RIO_FAIL[rip]
	je	.L8
.L1:
	add	rsp, 8
	.cfi_remember_state
	.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
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR RIO_DEBUG_CMD[rip]
	lea	rsi, .LC1[rip]
	call	rio_dprintk@PLT
	mov	eax, DWORD PTR ENXIO[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR RIO_DEBUG_CMD[rip]
	lea	rsi, .LC2[rip]
	call	rio_dprintk@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	RIOFoadRta, .-RIOFoadRta
	.comm	RIO_FAIL,8,8
	.comm	RIO_DEBUG_CMD,4,4
	.comm	IFOAD_MAGIC,4,4
	.comm	IFOAD,4,4
	.comm	ENXIO,4,4
	.comm	EIO,4,4
	.comm	BOOT_RUP,8,8
	.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_riocmd.c_RIOFoadRta.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"FOAD RTA\012\000"
	.align	2
.LC1:
	.ascii	"FOAD RTA: GetCmdBlk failed\012\000"
	.align	2
.LC2:
	.ascii	"FOAD RTA: Failed to queue foad command\012\000"
	.text
	.align	2
	.global	RIOFoadRta
	.syntax unified
	.arm
	.fpu softvfp
	.type	RIOFoadRta, %function
RIOFoadRta:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, .L9
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [r4]
	ldr	r1, .L9+4
	bl	rio_dprintk
	bl	RIOGetCmdBlk
	subs	r2, r0, #0
	beq	.L7
	mov	r5, #0
	mov	lr, #132
	ldr	r0, .L9+8
	ldr	r3, .L9+12
	ldr	r0, [r0]
	ldr	r1, [r7]
	ldr	ip, [r3]
	ldr	r3, [r2, #4]
	str	r0, [r2, #16]
	str	r0, [r2, #8]
	ldr	r0, .L9+16
	str	r1, [r2, #20]
	str	lr, [r2]
	str	r5, [r2, #12]
	str	ip, [r3]
	ldr	ip, [r0]
	sub	r1, r1, #1
	asr	lr, ip, #8
	and	lr, lr, #255
	and	ip, ip, #255
	stmib	r3, {r5, ip, lr}
	mov	r0, r6
	bl	RIOQueueCmdBlk
	ldr	r3, .L9+20
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L8
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r0, [r4]
	ldr	r1, .L9+24
	bl	rio_dprintk
	ldr	r3, .L9+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r0, [r4]
	ldr	r1, .L9+32
	bl	rio_dprintk
	ldr	r3, .L9+36
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	RIO_DEBUG_CMD
	.word	.LC0
	.word	BOOT_RUP
	.word	IFOAD
	.word	IFOAD_MAGIC
	.word	RIO_FAIL
	.word	.LC1
	.word	ENXIO
	.word	.LC2
	.word	EIO
	.size	RIOFoadRta, .-RIOFoadRta
	.comm	RIO_FAIL,4,4
	.comm	RIO_DEBUG_CMD,4,4
	.comm	IFOAD_MAGIC,4,4
	.comm	IFOAD,4,4
	.comm	ENXIO,4,4
	.comm	EIO,4,4
	.comm	BOOT_RUP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
