	.file	"extr_sddr55.c_sddr55_status.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Result for send_command in status %d\n"
	.text
	.p2align 4
	.type	sddr55_status, @function
sddr55_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	esi, esi
	mov	edx, 8
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR [rdi]
	mov	r13, QWORD PTR 8[rdi]
	mov	rdi, r12
	call	memset@PLT
	mov	ecx, 8
	mov	rdx, r12
	mov	rdi, rbp
	mov	BYTE PTR 5[r12], -80
	mov	esi, DWORD PTR DMA_TO_DEVICE[rip]
	mov	BYTE PTR 7[r12], -128
	call	sddr55_bulk_transport@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	mov	ebx, eax
	call	US_DEBUGP@PLT
	cmp	DWORD PTR USB_STOR_XFER_GOOD[rip], ebx
	je	.L2
	xor	edx, edx
	xor	esi, esi
	mov	edi, 4
	call	set_sense_info@PLT
	mov	eax, DWORD PTR USB_STOR_TRANSPORT_ERROR[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	ecx, 4
	mov	rdx, r12
	mov	rdi, rbp
	call	sddr55_bulk_transport@PLT
	cmp	DWORD PTR USB_STOR_XFER_SHORT[rip], eax
	je	.L4
	cmp	DWORD PTR USB_STOR_XFER_STALLED[rip], eax
	je	.L4
	cmp	DWORD PTR USB_STOR_XFER_GOOD[rip], eax
	jne	.L11
	movzx	eax, BYTE PTR [r12]
	mov	ecx, 2
	mov	rdx, r12
	mov	rdi, rbp
	and	eax, 32
	mov	BYTE PTR 0[r13], al
	mov	esi, DWORD PTR DMA_FROM_DEVICE[rip]
	call	sddr55_bulk_transport@PLT
	cmp	DWORD PTR USB_STOR_XFER_GOOD[rip], eax
	mov	ebx, eax
	jne	.L7
.L8:
	mov	eax, DWORD PTR USB_STOR_TRANSPORT_GOOD[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	xor	edx, edx
	xor	esi, esi
	mov	edi, 4
	call	set_sense_info@PLT
	mov	eax, DWORD PTR USB_STOR_TRANSPORT_FAILED[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L4:
	.cfi_restore_state
	mov	rdi, QWORD PTR 32[r13]
	call	kfree@PLT
	mov	rdi, QWORD PTR 24[r13]
	call	kfree@PLT
	mov	QWORD PTR 32[r13], 0
	xor	edx, edx
	mov	esi, 58
	mov	QWORD PTR 24[r13], 0
	mov	edi, 2
	mov	QWORD PTR 16[r13], 0
	mov	QWORD PTR 8[r13], 0
	call	set_sense_info@PLT
	mov	eax, DWORD PTR USB_STOR_TRANSPORT_FAILED[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
	xor	edx, edx
	xor	esi, esi
	mov	edi, 4
	call	set_sense_info@PLT
	cmp	DWORD PTR USB_STOR_XFER_GOOD[rip], ebx
	je	.L8
	mov	eax, DWORD PTR USB_STOR_TRANSPORT_FAILED[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sddr55_status, .-sddr55_status
	.comm	USB_STOR_XFER_STALLED,4,4
	.comm	USB_STOR_XFER_SHORT,4,4
	.comm	USB_STOR_XFER_GOOD,4,4
	.comm	USB_STOR_TRANSPORT_GOOD,4,4
	.comm	USB_STOR_TRANSPORT_FAILED,4,4
	.comm	USB_STOR_TRANSPORT_ERROR,4,4
	.comm	DMA_TO_DEVICE,4,4
	.comm	DMA_FROM_DEVICE,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_sddr55.c_sddr55_status.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Result for send_command in status %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sddr55_status, %function
sddr55_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r5, [r0]
	mov	r2, #8
	mov	r1, #0
	mov	r0, r5
	ldr	r8, [r4, #4]
	bl	memset
	mvn	r1, #79
	mvn	r2, #127
	ldr	r3, .L12
	strb	r1, [r5, #5]
	strb	r2, [r5, #7]
	ldr	r1, [r3]
	mov	r2, r5
	mov	r3, #8
	mov	r0, r4
	bl	sddr55_bulk_transport
	mov	r6, r0
	ldr	r7, .L12+4
	mov	r1, r0
	ldr	r0, .L12+8
	bl	US_DEBUGP
	ldr	r3, [r7]
	cmp	r3, r6
	beq	.L2
	mov	r2, #0
	mov	r0, #4
	mov	r1, r2
	bl	set_sense_info
	ldr	r3, .L12+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r6, .L12+16
	mov	r3, #4
	mov	r2, r5
	mov	r0, r4
	ldr	r1, [r6]
	bl	sddr55_bulk_transport
	ldr	r3, .L12+20
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L4
	ldr	r3, .L12+24
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L4
	ldr	r3, [r7]
	cmp	r3, r0
	bne	.L11
	ldrb	r3, [r5]	@ zero_extendqisi2
	mov	r0, r4
	and	r3, r3, #32
	strb	r3, [r8]
	mov	r2, r5
	mov	r3, #2
	ldr	r1, [r6]
	bl	sddr55_bulk_transport
	ldr	r3, [r7]
	mov	r4, r0
	cmp	r3, r0
	bne	.L7
.L8:
	ldr	r3, .L12+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r2, #0
	mov	r0, #4
	mov	r1, r2
	bl	set_sense_info
	ldr	r3, .L12+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r0, [r8, #16]
	bl	kfree
	ldr	r0, [r8, #12]
	bl	kfree
	mov	r2, #0
	mov	r1, #58
	str	r2, [r8, #16]
	str	r2, [r8, #12]
	str	r2, [r8, #8]
	str	r2, [r8, #4]
	mov	r0, #2
	bl	set_sense_info
	ldr	r3, .L12+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r2, #0
	mov	r0, #4
	mov	r1, r2
	bl	set_sense_info
	ldr	r3, [r7]
	cmp	r3, r4
	beq	.L8
	ldr	r3, .L12+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	DMA_TO_DEVICE
	.word	USB_STOR_XFER_GOOD
	.word	.LC0
	.word	USB_STOR_TRANSPORT_ERROR
	.word	DMA_FROM_DEVICE
	.word	USB_STOR_XFER_SHORT
	.word	USB_STOR_XFER_STALLED
	.word	USB_STOR_TRANSPORT_GOOD
	.word	USB_STOR_TRANSPORT_FAILED
	.size	sddr55_status, .-sddr55_status
	.comm	USB_STOR_XFER_STALLED,4,4
	.comm	USB_STOR_XFER_SHORT,4,4
	.comm	USB_STOR_XFER_GOOD,4,4
	.comm	USB_STOR_TRANSPORT_GOOD,4,4
	.comm	USB_STOR_TRANSPORT_FAILED,4,4
	.comm	USB_STOR_TRANSPORT_ERROR,4,4
	.comm	DMA_TO_DEVICE,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
