	.file	"extr_ifxmips_ptm_adsl.c_mailbox_irq_handler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mailbox_irq_handler, @function
mailbox_irq_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edi, DWORD PTR MBOX_IGU1_ISR[rip]
	mov	r12d, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	IFX_REG_R32@PLT
	mov	esi, DWORD PTR MBOX_IGU1_ISRC[rip]
	mov	edi, eax
	mov	ebp, eax
	call	IFX_REG_W32@PLT
	mov	edi, DWORD PTR MBOX_IGU1_IER[rip]
	call	IFX_REG_R32@PLT
	and	ebp, eax
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, ebp
	call	__fls@PLT
	movsx	rbx, eax
	test	ebx, ebx
	js	.L8
.L5:
	mov	edi, r12d
	mov	ecx, ebx
	mov	edx, DWORD PTR MBOX_IGU1_IER[rip]
	xor	esi, esi
	sal	edi, cl
	xor	ebp, edi
	cmp	ebx, 15
	jle	.L3
	call	IFX_REG_W32_MASK@PLT
	sub	ebx, 16
	cmp	DWORD PTR MAX_ITF_NUMBER[rip], ebx
	jle	.L2
	mov	rax, QWORD PTR g_net_dev[rip]
	movsx	rbx, ebx
	mov	edi, DWORD PTR [rax+rbx*4]
	call	netif_wake_queue@PLT
	mov	edi, ebp
	call	__fls@PLT
	movsx	rbx, eax
	test	ebx, ebx
	jns	.L5
.L8:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	call	IFX_REG_W32_MASK@PLT
	mov	rax, QWORD PTR g_ptm_priv_data[rip]
	lea	rdi, [rax+rbx*4]
	call	napi_schedule@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	mailbox_irq_handler, .-mailbox_irq_handler
	.comm	g_ptm_priv_data,8,8
	.comm	g_net_dev,8,8
	.comm	MBOX_IGU1_ISRC,4,4
	.comm	MBOX_IGU1_ISR,4,4
	.comm	MBOX_IGU1_IER,4,4
	.comm	MAX_ITF_NUMBER,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_ifxmips_ptm_adsl.c_mailbox_irq_handler.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mailbox_irq_handler, %function
mailbox_irq_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, [r3]
	bl	IFX_REG_R32
	ldr	r3, .L9+4
	ldr	r6, .L9+8
	ldr	r1, [r3]
	mov	r5, r0
	bl	IFX_REG_W32
	ldr	r0, [r6]
	bl	IFX_REG_R32
	ldr	r8, .L9+12
	ldr	r7, .L9+16
	ldr	r9, .L9+20
	and	r5, r5, r0
.L2:
	mov	r0, r5
	bl	__fls
	subs	r4, r0, #0
	blt	.L8
.L5:
	mov	r0, #1
	cmp	r4, #15
	lsl	r0, r0, r4
	mov	r1, #0
	ldr	r2, [r6]
	eor	r5, r5, r0
	ble	.L3
	bl	IFX_REG_W32_MASK
	ldr	r3, [r7]
	sub	r4, r4, #16
	cmp	r3, r4
	ble	.L2
	ldr	r3, [r9]
	ldr	r0, [r3, r4, lsl #2]
	bl	netif_wake_queue
	mov	r0, r5
	bl	__fls
	subs	r4, r0, #0
	bge	.L5
.L8:
	ldr	r3, .L9+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	bl	IFX_REG_W32_MASK
	ldr	r0, [r8]
	add	r0, r0, r4, lsl #2
	bl	napi_schedule
	b	.L2
.L10:
	.align	2
.L9:
	.word	MBOX_IGU1_ISR
	.word	MBOX_IGU1_ISRC
	.word	MBOX_IGU1_IER
	.word	g_ptm_priv_data
	.word	MAX_ITF_NUMBER
	.word	g_net_dev
	.word	IRQ_HANDLED
	.size	mailbox_irq_handler, .-mailbox_irq_handler
	.comm	g_ptm_priv_data,4,4
	.comm	g_net_dev,4,4
	.comm	MBOX_IGU1_ISRC,4,4
	.comm	MBOX_IGU1_ISR,4,4
	.comm	MBOX_IGU1_IER,4,4
	.comm	MAX_ITF_NUMBER,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
