	.file	"extr_usbh_msc_bot.c_USBH_MSC_DecodeCSW.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	USBH_MSC_DecodeCSW, @function
USBH_MSC_DecodeCSW:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR [rdi]
	mov	r12d, DWORD PTR BOT_CSW_CMD_FAILED[rip]
	mov	rbx, QWORD PTR [rax]
	mov	esi, DWORD PTR 32[rbx]
	call	USBH_LL_GetLastXferSize@PLT
	cmp	rax, QWORD PTR BOT_CSW_LENGTH[rip]
	je	.L2
.L4:
	mov	r12d, DWORD PTR BOT_CSW_PHASE_ERROR[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR BOT_CSW_SIGNATURE[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L4
	mov	rax, QWORD PTR 24[rbx]
	cmp	QWORD PTR 8[rbx], rax
	jne	.L1
	mov	eax, DWORD PTR 16[rbx]
	test	eax, eax
	jne	.L5
	mov	r12d, DWORD PTR BOT_CSW_CMD_PASSED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	eax, 1
	je	.L12
	cmp	eax, 2
	jne	.L1
	jmp	.L4
.L12:
	mov	r12d, DWORD PTR BOT_CSW_CMD_FAILED[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	USBH_MSC_DecodeCSW, .-USBH_MSC_DecodeCSW
	.comm	BOT_CSW_SIGNATURE,8,8
	.comm	BOT_CSW_PHASE_ERROR,4,4
	.comm	BOT_CSW_LENGTH,8,8
	.comm	BOT_CSW_CMD_PASSED,4,4
	.comm	BOT_CSW_CMD_FAILED,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_usbh_msc_bot.c_USBH_MSC_DecodeCSW.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	USBH_MSC_DecodeCSW, %function
USBH_MSC_DecodeCSW:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	ldr	r5, [r3]
	ldr	r6, .L12
	ldr	r1, [r5, #16]
	ldr	r4, [r6]
	bl	USBH_LL_GetLastXferSize
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L2
.L4:
	ldr	r3, .L12+8
	ldr	r4, [r3]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L12+12
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L4
	ldr	r2, [r5, #4]
	ldr	r3, [r5, #12]
	cmp	r2, r3
	bne	.L1
	ldr	r3, [r5, #8]
	cmp	r3, #0
	ldreq	r3, .L12+16
	ldreq	r4, [r3]
	beq	.L1
.L5:
	cmp	r3, #1
	ldreq	r4, [r6]
	beq	.L1
	cmp	r3, #2
	bne	.L1
	b	.L4
.L13:
	.align	2
.L12:
	.word	BOT_CSW_CMD_FAILED
	.word	BOT_CSW_LENGTH
	.word	BOT_CSW_PHASE_ERROR
	.word	BOT_CSW_SIGNATURE
	.word	BOT_CSW_CMD_PASSED
	.size	USBH_MSC_DecodeCSW, .-USBH_MSC_DecodeCSW
	.comm	BOT_CSW_SIGNATURE,4,4
	.comm	BOT_CSW_PHASE_ERROR,4,4
	.comm	BOT_CSW_LENGTH,4,4
	.comm	BOT_CSW_CMD_PASSED,4,4
	.comm	BOT_CSW_CMD_FAILED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
