	.file	"extr_hcd.c_dwc2_port_resume.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dwc2_port_resume, @function
dwc2_port_resume:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	lea	rbp, 4[rdi]
	mov	rsi, r12
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR 8[rbx]
	test	eax, eax
	je	.L5
.L2:
	mov	rdi, rbx
	xor	r12d, r12d
	call	dwc2_read_hprt0@PLT
	mov	esi, DWORD PTR HPRT0_SUSP[rip]
	mov	edx, DWORD PTR HPRT0[rip]
	mov	rdi, rbx
	or	eax, DWORD PTR HPRT0_RES[rip]
	not	esi
	and	esi, eax
	call	dwc2_writel@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
	mov	edi, DWORD PTR USB_RESUME_TIMEOUT[rip]
	call	msleep@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	rdi, rbx
	call	dwc2_read_hprt0@PLT
	mov	esi, DWORD PTR HPRT0_RES[rip]
	or	esi, DWORD PTR HPRT0_SUSP[rip]
	mov	rdi, rbx
	mov	edx, DWORD PTR HPRT0[rip]
	not	esi
	and	esi, eax
	call	dwc2_writel@PLT
	mov	DWORD PTR [rbx], 0
	mov	rsi, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR PCGCTL[rip]
	mov	rdi, rbx
	call	dwc2_readl@PLT
	mov	esi, DWORD PTR PCGCTL_STOPPCLK[rip]
	mov	edx, DWORD PTR PCGCTL[rip]
	mov	rdi, rbx
	not	esi
	and	esi, eax
	call	dwc2_writel@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
	mov	edi, 20
	call	msleep@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	dwc2_port_resume, .-dwc2_port_resume
	.comm	USB_RESUME_TIMEOUT,4,4
	.comm	PCGCTL_STOPPCLK,4,4
	.comm	PCGCTL,4,4
	.comm	HPRT0_SUSP,4,4
	.comm	HPRT0_RES,4,4
	.comm	HPRT0,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_hcd.c_dwc2_port_resume.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dwc2_port_resume, %function
dwc2_port_resume:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	add	r5, r0, #4
	mov	r0, r5
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L5
.L2:
	mov	r0, r4
	bl	dwc2_read_hprt0
	mov	r6, #0
	ldr	r9, .L6
	ldr	r8, .L6+4
	ldr	r3, [r9]
	ldr	r1, [r8]
	ldr	r7, .L6+8
	orr	r0, r0, r3
	ldr	r2, [r7]
	bic	r1, r0, r1
	mov	r0, r4
	bl	dwc2_writel
	mov	r1, r6
	mov	r0, r5
	bl	spin_unlock_irqrestore
	ldr	r3, .L6+12
	ldr	r0, [r3]
	bl	msleep
	mov	r1, r6
	mov	r0, r5
	bl	spin_lock_irqsave
	mov	r0, r4
	bl	dwc2_read_hprt0
	ldr	r3, [r9]
	ldr	r1, [r8]
	ldr	r2, [r7]
	orr	r1, r3, r1
	bic	r1, r0, r1
	mov	r0, r4
	bl	dwc2_writel
	mov	r1, r6
	mov	r0, r5
	str	r6, [r4]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	spin_unlock_irqrestore
.L5:
	ldr	r7, .L6+16
	mov	r0, r4
	ldr	r1, [r7]
	bl	dwc2_readl
	mov	r6, #0
	ldr	r3, .L6+20
	ldr	r2, [r7]
	ldr	r1, [r3]
	bic	r1, r0, r1
	mov	r0, r4
	bl	dwc2_writel
	mov	r1, r6
	mov	r0, r5
	bl	spin_unlock_irqrestore
	mov	r0, #20
	bl	msleep
	mov	r1, r6
	mov	r0, r5
	bl	spin_lock_irqsave
	b	.L2
.L7:
	.align	2
.L6:
	.word	HPRT0_RES
	.word	HPRT0_SUSP
	.word	HPRT0
	.word	USB_RESUME_TIMEOUT
	.word	PCGCTL
	.word	PCGCTL_STOPPCLK
	.size	dwc2_port_resume, .-dwc2_port_resume
	.comm	USB_RESUME_TIMEOUT,4,4
	.comm	PCGCTL_STOPPCLK,4,4
	.comm	PCGCTL,4,4
	.comm	HPRT0_SUSP,4,4
	.comm	HPRT0_RES,4,4
	.comm	HPRT0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
