	.file	"extr_usb_msctest.c_bbb_command_start.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	":"
.LC1:
	.string	"SCSI cmd = %*D\n"
	.text
	.p2align 4
	.type	bbb_command_start, @function
bbb_command_start:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	test	r8, r8
	cmove	rsi, QWORD PTR DIR_NONE[rip]
	mov	r12, r9
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rax, QWORD PTR USB_MS_HZ[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbp, QWORD PTR 32[rsp]
	mov	rbx, rdi
	add	rax, QWORD PTR 40[rsp]
	mov	QWORD PTR 80[rdi], rcx
	mov	QWORD PTR [rdi], r8
	mov	QWORD PTR 8[rdi], r8
	mov	QWORD PTR 96[rdi], rdx
	mov	edx, 8
	mov	QWORD PTR 88[rdi], rsi
	xor	esi, esi
	mov	QWORD PTR 24[rdi], rbp
	mov	QWORD PTR 72[rdi], rax
	mov	QWORD PTR 64[rdi], 0
	mov	DWORD PTR 16[rdi], 0
	mov	rdi, QWORD PTR 56[rdi]
	call	memset@PLT
	mov	rdi, QWORD PTR 56[rbx]
	mov	rdx, rbp
	mov	rsi, r12
	lea	r12, 44[rbx]
	call	memcpy@PLT
	mov	rax, QWORD PTR 56[rbx]
	mov	edx, ebp
	mov	edi, 1
	lea	r8, .LC0[rip]
	lea	rsi, .LC1[rip]
	mov	rcx, QWORD PTR [rax]
	lea	rbp, 40[rbx]
	call	DPRINTFN@PLT
	mov	rdi, rbp
	call	USB_MTX_LOCK@PLT
	mov	rdx, QWORD PTR 32[rbx]
	mov	rax, QWORD PTR 48[rbx]
	mov	edi, DWORD PTR [rax+rdx*4]
	call	usbd_transfer_start@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, rbp
	mov	rdi, r12
	call	cv_wait@PLT
.L3:
	mov	rdx, QWORD PTR 32[rbx]
	mov	rax, QWORD PTR 48[rbx]
	mov	edi, DWORD PTR [rax+rdx*4]
	call	usbd_transfer_pending@PLT
	test	rax, rax
	jne	.L4
	mov	rdi, rbp
	call	USB_MTX_UNLOCK@PLT
	mov	eax, DWORD PTR 16[rbx]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bbb_command_start, .-bbb_command_start
	.comm	USB_MS_HZ,8,8
	.comm	DIR_NONE,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_usb_msctest.c_bbb_command_start.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SCSI cmd = %*D\012\000"
	.align	2
.LC1:
	.ascii	":\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bbb_command_start, %function
bbb_command_start:
	@ args = 16, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	str	r2, [r0, #52]
	mov	r0, #0
	sub	sp, sp, #8
	ldr	ip, [sp, #24]
	ldr	lr, [sp, #36]
	cmp	ip, #0
	ldreq	r2, .L7
	str	r3, [r4, #44]
	ldreq	r1, [r2]
	ldr	r2, .L7+4
	ldr	r3, [r4, #32]
	ldr	r2, [r2]
	ldr	r5, [sp, #32]
	add	r2, r2, lr
	str	ip, [r4]
	str	ip, [r4, #4]
	str	r1, [r4, #48]
	str	r5, [r4, #12]
	str	r2, [r4, #40]
	str	r0, [r4, #36]
	str	r0, [r4, #8]
	strb	r0, [r3]
	strb	r0, [r3, #1]
	strb	r0, [r3, #2]
	strb	r0, [r3, #3]
	mov	r2, r5
	ldr	r1, [sp, #28]
	ldr	r0, [r4, #32]
	bl	memcpy
	ldr	r3, [r4, #32]
	ldr	r1, .L7+8
	mov	r2, r5
	ldr	r3, [r3]
	add	r5, r4, #20
	str	r1, [sp]
	mov	r0, #1
	ldr	r1, .L7+12
	bl	DPRINTFN
	mov	r0, r5
	bl	USB_MTX_LOCK
	ldr	r2, [r4, #16]
	ldr	r3, [r4, #28]
	add	r6, r4, #24
	ldr	r0, [r3, r2, lsl #2]
	bl	usbd_transfer_start
	b	.L3
.L4:
	mov	r1, r5
	mov	r0, r6
	bl	cv_wait
.L3:
	ldr	r2, [r4, #16]
	ldr	r3, [r4, #28]
	ldr	r0, [r3, r2, lsl #2]
	bl	usbd_transfer_pending
	cmp	r0, #0
	bne	.L4
	mov	r0, r5
	bl	USB_MTX_UNLOCK
	ldr	r0, [r4, #8]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	DIR_NONE
	.word	USB_MS_HZ
	.word	.LC1
	.word	.LC0
	.size	bbb_command_start, .-bbb_command_start
	.comm	USB_MS_HZ,4,4
	.comm	DIR_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
