	.file	"extr_driversusb.h_usb_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	usb_reset
	.type	usb_reset, @function
usb_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	rax
	.cfi_def_cfa_offset 16
	pop	rax
	.cfi_def_cfa_offset 8
	xor	edi, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	rax, QWORD PTR USBx_DEVICE[rip]
	mov	QWORD PTR [rax], -1
	mov	QWORD PTR 8[rax], -1
	call	USBx_INEP@PLT
	xor	edi, edi
	mov	DWORD PTR [rax], 255
	call	USBx_OUTEP@PLT
	mov	rdx, QWORD PTR USBx_DEVICE[rip]
	movabs	rcx, 18014673387388992
	mov	DWORD PTR [rax], 255
	mov	eax, DWORD PTR USB_OTG_DCFG_DAD[rip]
	not	eax
	and	DWORD PTR 20[rdx], eax
	mov	rax, QWORD PTR USBx[rip]
	mov	rdx, QWORD PTR 8[rax]
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR [rdx], 4194432
	mov	edx, DWORD PTR USB_OTG_GRSTCTL_TXFFLSH[rip]
	or	edx, DWORD PTR USB_OTG_GRSTCTL_TXFNUM_4[rip]
	mov	DWORD PTR 16[rax], edx
.L2:
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	usb_reset, .-usb_reset
	.comm	USBx_DEVICE,8,8
	.comm	USBx,8,8
	.comm	USB_OTG_GRSTCTL_TXFNUM_4,4,4
	.comm	USB_OTG_GRSTCTL_TXFFLSH,4,4
	.comm	USB_OTG_GRSTCTL_RXFFLSH,4,4
	.comm	USB_OTG_DOEPTSIZ_STUPCNT,4,4
	.comm	USB_OTG_DOEPTSIZ_PKTCNT,4,4
	.comm	USB_OTG_DCTL_CGINAK,4,4
	.comm	USB_OTG_DCFG_DAD,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_driversusb.h_usb_reset.c"
	.text
	.align	2
	.global	usb_reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	usb_reset, %function
usb_reset:
	@ Volatile: function does not return.
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mvn	r2, #0
	ldr	r5, .L5
	push	{r4, lr}
	ldr	r3, [r5]
	mov	r0, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	bl	USBx_INEP
	mov	r4, #255
	mov	r3, r0
	mov	r0, #0
	str	r4, [r3]
	bl	USBx_OUTEP
	mov	r6, #64
	ldr	r1, [r5]
	ldr	r2, .L5+4
	ldr	r3, .L5+8
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r2, [r1, #20]
	ldr	lr, .L5+12
	str	r4, [r0]
	bic	r2, r2, ip
	ldr	r0, [r3, #8]
	ldr	ip, .L5+16
	str	r2, [r1, #20]
	ldr	r2, .L5+20
	ldr	r1, .L5+24
	str	r6, [r3]
	str	lr, [r3, #4]
	str	ip, [r0]
	ldr	r2, [r2]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r3, #12]
.L2:
	b	.L2
.L6:
	.align	2
.L5:
	.word	USBx_DEVICE
	.word	USB_OTG_DCFG_DAD
	.word	USBx
	.word	4194368
	.word	4194432
	.word	USB_OTG_GRSTCTL_TXFFLSH
	.word	USB_OTG_GRSTCTL_TXFNUM_4
	.size	usb_reset, .-usb_reset
	.comm	USBx_DEVICE,4,4
	.comm	USBx,4,4
	.comm	USB_OTG_GRSTCTL_TXFNUM_4,4,4
	.comm	USB_OTG_GRSTCTL_TXFFLSH,4,4
	.comm	USB_OTG_GRSTCTL_RXFFLSH,4,4
	.comm	USB_OTG_DOEPTSIZ_STUPCNT,4,4
	.comm	USB_OTG_DOEPTSIZ_PKTCNT,4,4
	.comm	USB_OTG_DCTL_CGINAK,4,4
	.comm	USB_OTG_DCFG_DAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
