	.file	"extr_drd.c_dwc3_otgregs_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dwc3_otgregs_init, @function
dwc3_otgregs_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	esi, DWORD PTR DWC3_OCFG[rip]
	mov	rbx, rdi
	mov	edi, DWORD PTR [rdi]
	call	dwc3_readl@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR DWC3_OCFG[rip]
	or	eax, DWORD PTR DWC3_OCFG_SFTRSTMASK[rip]
	mov	edx, eax
	call	dwc3_writel@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR DWC3_GCTL[rip]
	call	dwc3_readl@PLT
	mov	edx, DWORD PTR DWC3_GCTL_GBLHIBERNATIONEN[rip]
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR DWC3_GCTL[rip]
	not	edx
	and	edx, eax
	call	dwc3_writel@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR DWC3_OCFG[rip]
	call	dwc3_readl@PLT
	mov	edx, DWORD PTR DWC3_OCFG_SRPCAP[rip]
	or	edx, DWORD PTR DWC3_OCFG_HNPCAP[rip]
	mov	esi, DWORD PTR DWC3_OCFG[rip]
	mov	edi, DWORD PTR [rbx]
	not	edx
	and	edx, eax
	call	dwc3_writel@PLT
	mov	rdi, rbx
	call	dwc3_otg_clear_events@PLT
	mov	esi, DWORD PTR DWC3_OTG_ALL_EVENTS[rip]
	mov	rdi, rbx
	call	dwc3_otg_disable_events@PLT
	mov	esi, DWORD PTR DWC3_OTG_ALL_EVENTS[rip]
	mov	rdi, rbx
	call	dwc3_otg_enable_events@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR DWC3_OCTL[rip]
	call	dwc3_readl@PLT
	mov	edx, DWORD PTR DWC3_OCTL_DEVSETHNPEN[rip]
	mov	edi, DWORD PTR [rbx]
	or	edx, DWORD PTR DWC3_OCTL_HSTSETHNPEN[rip]
	or	edx, DWORD PTR DWC3_OCTL_HNPREQ[rip]
	or	eax, DWORD PTR DWC3_OCTL_PERIMODE[rip]
	not	edx
	mov	esi, DWORD PTR DWC3_OCTL[rip]
	and	edx, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	jmp	dwc3_writel@PLT
	.cfi_endproc
.LFE0:
	.size	dwc3_otgregs_init, .-dwc3_otgregs_init
	.comm	DWC3_OTG_ALL_EVENTS,4,4
	.comm	DWC3_OCTL_PERIMODE,4,4
	.comm	DWC3_OCTL_HSTSETHNPEN,4,4
	.comm	DWC3_OCTL_HNPREQ,4,4
	.comm	DWC3_OCTL_DEVSETHNPEN,4,4
	.comm	DWC3_OCTL,4,4
	.comm	DWC3_OCFG_SRPCAP,4,4
	.comm	DWC3_OCFG_SFTRSTMASK,4,4
	.comm	DWC3_OCFG_HNPCAP,4,4
	.comm	DWC3_OCFG,4,4
	.comm	DWC3_GCTL_GBLHIBERNATIONEN,4,4
	.comm	DWC3_GCTL,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_drd.c_dwc3_otgregs_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dwc3_otgregs_init, %function
dwc3_otgregs_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L4
	mov	r4, r0
	ldr	r1, [r5]
	ldr	r0, [r0]
	bl	dwc3_readl
	mov	r2, r0
	ldr	r3, .L4+4
	ldr	r6, .L4+8
	ldr	r3, [r3]
	ldr	r1, [r5]
	orr	r2, r2, r3
	ldr	r0, [r4]
	bl	dwc3_writel
	ldr	r1, [r6]
	ldr	r0, [r4]
	bl	dwc3_readl
	mov	r3, r0
	ldr	r2, .L4+12
	ldr	r1, [r6]
	ldr	r2, [r2]
	ldr	r0, [r4]
	bic	r2, r3, r2
	bl	dwc3_writel
	ldr	r1, [r5]
	ldr	r0, [r4]
	bl	dwc3_readl
	ldr	r3, .L4+16
	ldr	r2, .L4+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r5]
	orr	r2, r3, r2
	bic	r2, r0, r2
	ldr	r6, .L4+24
	ldr	r0, [r4]
	bl	dwc3_writel
	mov	r0, r4
	bl	dwc3_otg_clear_events
	ldr	r5, .L4+28
	ldr	r1, [r6]
	mov	r0, r4
	bl	dwc3_otg_disable_events
	ldr	r1, [r6]
	mov	r0, r4
	bl	dwc3_otg_enable_events
	ldr	r1, [r5]
	ldr	r0, [r4]
	bl	dwc3_readl
	ldr	r1, .L4+32
	ldr	r3, .L4+36
	ldr	ip, [r1]
	ldr	r2, .L4+40
	ldr	r1, .L4+44
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, ip
	orr	r2, r0, r2
	orr	r3, r3, r1
	ldr	r0, [r4]
	ldr	r1, [r5]
	bic	r2, r2, r3
	pop	{r4, r5, r6, lr}
	b	dwc3_writel
.L5:
	.align	2
.L4:
	.word	DWC3_OCFG
	.word	DWC3_OCFG_SFTRSTMASK
	.word	DWC3_GCTL
	.word	DWC3_GCTL_GBLHIBERNATIONEN
	.word	DWC3_OCFG_SRPCAP
	.word	DWC3_OCFG_HNPCAP
	.word	DWC3_OTG_ALL_EVENTS
	.word	DWC3_OCTL
	.word	DWC3_OCTL_HSTSETHNPEN
	.word	DWC3_OCTL_DEVSETHNPEN
	.word	DWC3_OCTL_PERIMODE
	.word	DWC3_OCTL_HNPREQ
	.size	dwc3_otgregs_init, .-dwc3_otgregs_init
	.comm	DWC3_OTG_ALL_EVENTS,4,4
	.comm	DWC3_OCTL_PERIMODE,4,4
	.comm	DWC3_OCTL_HSTSETHNPEN,4,4
	.comm	DWC3_OCTL_HNPREQ,4,4
	.comm	DWC3_OCTL_DEVSETHNPEN,4,4
	.comm	DWC3_OCTL,4,4
	.comm	DWC3_OCFG_SRPCAP,4,4
	.comm	DWC3_OCFG_SFTRSTMASK,4,4
	.comm	DWC3_OCFG_HNPCAP,4,4
	.comm	DWC3_OCFG,4,4
	.comm	DWC3_GCTL_GBLHIBERNATIONEN,4,4
	.comm	DWC3_GCTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
