	.file	"extr_drd.c_dwc3_otg_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dwc3_otg_irq, @function
dwc3_otg_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 12[rsi]
	mov	esi, DWORD PTR DWC3_OEVT[rip]
	mov	r12d, DWORD PTR IRQ_NONE[rip]
	call	dwc3_readl@PLT
	test	eax, eax
	je	.L1
	mov	esi, DWORD PTR DWC3_OEVT[rip]
	mov	edi, DWORD PTR 12[rbx]
	mov	edx, eax
	test	DWORD PTR DWC3_OTG_ALL_EVENTS[rip], eax
	je	.L10
	mov	rax, QWORD PTR DWC3_OTG_ROLE_HOST[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L11
.L4:
	call	dwc3_writel@PLT
	mov	r12d, DWORD PTR IRQ_WAKE_THREAD[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	call	dwc3_writel@PLT
	mov	r12d, DWORD PTR IRQ_NONE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	test	DWORD PTR DWC3_OEVT_DEVICEMODE[rip], edx
	jne	.L4
	mov	DWORD PTR 8[rbx], 1
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	dwc3_otg_irq, .-dwc3_otg_irq
	.comm	IRQ_WAKE_THREAD,4,4
	.comm	IRQ_NONE,4,4
	.comm	DWC3_OTG_ROLE_HOST,8,8
	.comm	DWC3_OTG_ALL_EVENTS,4,4
	.comm	DWC3_OEVT_DEVICEMODE,4,4
	.comm	DWC3_OEVT,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_otg_irq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dwc3_otg_irq, %function
dwc3_otg_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L11
	ldr	r7, .L11+4
	ldr	r0, [r1, #8]
	mov	r4, r1
	ldr	r1, [r5]
	ldr	r6, [r7]
	bl	dwc3_readl
	subs	r2, r0, #0
	beq	.L1
	ldr	r3, .L11+8
	ldr	r1, [r5]
	ldr	r3, [r3]
	ldr	r0, [r4, #8]
	tst	r2, r3
	beq	.L10
	ldr	r3, .L11+12
	ldr	ip, [r4]
	ldr	r3, [r3]
	cmp	ip, r3
	bne	.L4
	ldr	r3, .L11+16
	ldr	r3, [r3]
	tst	r2, r3
	moveq	r3, #1
	streq	r3, [r4, #4]
.L4:
	bl	dwc3_writel
	ldr	r3, .L11+20
	ldr	r6, [r3]
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	bl	dwc3_writel
	ldr	r6, [r7]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	DWC3_OEVT
	.word	IRQ_NONE
	.word	DWC3_OTG_ALL_EVENTS
	.word	DWC3_OTG_ROLE_HOST
	.word	DWC3_OEVT_DEVICEMODE
	.word	IRQ_WAKE_THREAD
	.size	dwc3_otg_irq, .-dwc3_otg_irq
	.comm	IRQ_WAKE_THREAD,4,4
	.comm	IRQ_NONE,4,4
	.comm	DWC3_OTG_ROLE_HOST,4,4
	.comm	DWC3_OTG_ALL_EVENTS,4,4
	.comm	DWC3_OEVT_DEVICEMODE,4,4
	.comm	DWC3_OEVT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
