	.file	"extr_phy-mv-usb.c_mv_otg_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mv_otg_irq, @function
mv_otg_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR 16[rsi]
	call	readl@PLT
	mov	rsi, QWORD PTR 16[rbp]
	mov	edi, eax
	mov	ebx, eax
	call	writel@PLT
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR [rax], 0
	je	.L2
	test	DWORD PTR OTGSC_STS_USB_ID[rip], ebx
	je	.L2
	test	DWORD PTR OTGSC_INTSTS_USB_ID[rip], ebx
	je	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	test	DWORD PTR 0[rbp], ebx
	jne	.L13
.L4:
	mov	eax, DWORD PTR IRQ_NONE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, rbp
	xor	esi, esi
	call	mv_otg_run_state_machine@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mv_otg_irq, .-mv_otg_irq
	.comm	OTGSC_STS_USB_ID,4,4
	.comm	OTGSC_INTSTS_USB_ID,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,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_phy-mv-usb.c_mv_otg_irq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mv_otg_irq, %function
mv_otg_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r0, [r1, #8]
	mov	r4, r1
	bl	readl
	ldr	r1, [r4, #8]
	mov	r5, r0
	bl	writel
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L17
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L2
	ldr	r3, .L17+4
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L4
.L2:
	ldr	r3, [r4]
	tst	r5, r3
	bne	.L16
.L4:
	ldr	r3, .L17+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L16:
	mov	r0, r4
	mov	r1, #0
	bl	mv_otg_run_state_machine
	ldr	r3, .L17+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L18:
	.align	2
.L17:
	.word	OTGSC_STS_USB_ID
	.word	OTGSC_INTSTS_USB_ID
	.word	IRQ_NONE
	.word	IRQ_HANDLED
	.size	mv_otg_irq, .-mv_otg_irq
	.comm	OTGSC_STS_USB_ID,4,4
	.comm	OTGSC_INTSTS_USB_ID,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
