	.file	"extr_umass.c_umass_t_bbb_reset1_callback.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"BBB reset!\n"
	.text
	.p2align 4
	.type	umass_t_bbb_reset1_callback, @function
umass_t_bbb_reset1_callback:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	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
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	usbd_xfer_softc@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	USB_GET_STATE@PLT
	cmp	eax, 128
	je	.L2
	cmp	eax, 129
	je	.L3
	mov	esi, r13d
	mov	rdi, rbp
	call	umass_tr_error@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 48
	.cfi_remember_state
	.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 UMASS_T_BBB_RESET2[rip]
	mov	rdi, r12
	call	umass_transfer_start@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR UDMASS_BBB[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r12
	call	DPRINTF@PLT
	mov	eax, DWORD PTR UT_WRITE_CLASS_INTERFACE[rip]
	mov	edi, DWORD PTR 16[rsp]
	xor	esi, esi
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR UR_BBB_RESET[rip]
	mov	DWORD PTR 20[rsp], eax
	call	USETW@PLT
	mov	edx, DWORD PTR [r12]
	mov	rax, QWORD PTR 8[rsp]
	xor	esi, esi
	mov	DWORD PTR [rax], edx
	mov	edi, DWORD PTR [rsp]
	mov	DWORD PTR 4[rax], 0
	call	USETW@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	usbd_xfer_get_frame@PLT
	mov	ecx, 32
	mov	rdx, rsp
	xor	esi, esi
	mov	rdi, rax
	call	usbd_copy_in@PLT
	mov	edx, 32
	xor	esi, esi
	mov	rdi, rbp
	call	usbd_xfer_set_frame_len@PLT
	mov	rdi, rbp
	mov	esi, 1
	call	usbd_xfer_set_frames@PLT
	mov	rdi, rbp
	call	usbd_transfer_submit@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	umass_t_bbb_reset1_callback, .-umass_t_bbb_reset1_callback
	.comm	UT_WRITE_CLASS_INTERFACE,4,4
	.comm	UR_BBB_RESET,4,4
	.comm	UMASS_T_BBB_RESET2,4,4
	.comm	UDMASS_BBB,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_umass.c_umass_t_bbb_reset1_callback.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"BBB reset!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	umass_t_bbb_reset1_callback, %function
umass_t_bbb_reset1_callback:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L11
	sub	sp, sp, #24
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	usbd_xfer_softc
	mov	r6, r0
	mov	r0, r4
	bl	USB_GET_STATE
	cmp	r0, #128
	beq	.L2
	cmp	r0, #129
	beq	.L3
	mov	r1, r5
	mov	r0, r4
	bl	umass_tr_error
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L11+4
	mov	r0, r6
	ldr	r1, [r3]
	bl	umass_transfer_start
	b	.L1
.L3:
	mov	r5, #0
	ldr	r3, .L11+8
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L11+12
	bl	DPRINTF
	ldr	r2, .L11+16
	ldr	r3, .L11+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, r5
	ldr	r0, [sp, #8]
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	bl	USETW
	ldr	r2, [r6]
	ldr	r3, [sp, #4]
	mov	r1, r5
	stm	r3, {r2, r5}
	ldr	r0, [sp]
	bl	USETW
	mov	r1, r5
	mov	r0, r4
	bl	usbd_xfer_get_frame
	mov	r3, #20
	mov	r1, r5
	mov	r2, sp
	bl	usbd_copy_in
	mov	r1, r5
	mov	r2, #20
	mov	r0, r4
	bl	usbd_xfer_set_frame_len
	mov	r1, #1
	mov	r0, r4
	bl	usbd_xfer_set_frames
	mov	r0, r4
	bl	usbd_transfer_submit
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	UMASS_T_BBB_RESET2
	.word	UDMASS_BBB
	.word	.LC0
	.word	UT_WRITE_CLASS_INTERFACE
	.word	UR_BBB_RESET
	.size	umass_t_bbb_reset1_callback, .-umass_t_bbb_reset1_callback
	.comm	UT_WRITE_CLASS_INTERFACE,4,4
	.comm	UR_BBB_RESET,4,4
	.comm	UMASS_T_BBB_RESET2,4,4
	.comm	UDMASS_BBB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
