	.file	"extr_cxgb_ael1002.c_ael2005_intr_handler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ael2005_intr_handler, @function
ael2005_intr_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR AEL2005_GPIO_STAT[rip]
	mov	esi, DWORD PTR MDIO_DEV_PMA_PMD[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rcx, 4[rsp]
	call	mdio_read@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR AEL2005_MODDET_IRQ[rip], eax
	jne	.L15
.L3:
	mov	rdi, rbp
	call	t3_phy_lasi_intr_handler@PLT
	test	eax, eax
	js	.L9
	or	r12d, eax
	cmove	r12d, DWORD PTR cphy_cause_link_change[rip]
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edx, DWORD PTR AEL2005_GPIO_CTRL[rip]
	mov	esi, DWORD PTR MDIO_DEV_PMA_PMD[rip]
	mov	ecx, 3328
	mov	rdi, rbp
	call	mdio_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	esi, 300
	mov	rdi, rbp
	call	ael2005_get_module_type@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	cdqe
	cmp	DWORD PTR phy_modtype_none[rip], r12d
	mov	QWORD PTR 8[rbp], rax
	je	.L4
	cmp	DWORD PTR phy_modtype_twinax[rip], r12d
	je	.L5
	cmp	DWORD PTR phy_modtype_twinax_long[rip], r12d
	mov	eax, DWORD PTR edc_sr[rip]
	je	.L5
.L7:
	cmp	DWORD PTR 0[rbp], eax
	je	.L4
	xor	esi, esi
	mov	rdi, rbp
	call	ael2005_reset@PLT
	mov	r12d, eax
	test	eax, eax
	cmove	r12d, DWORD PTR cphy_cause_module_change[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12d, DWORD PTR cphy_cause_module_change[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR edc_twinax[rip]
	jmp	.L7
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ael2005_intr_handler, .-ael2005_intr_handler
	.comm	phy_modtype_twinax_long,4,4
	.comm	phy_modtype_twinax,4,4
	.comm	phy_modtype_none,4,4
	.comm	edc_twinax,4,4
	.comm	edc_sr,4,4
	.comm	cphy_cause_module_change,4,4
	.comm	cphy_cause_link_change,4,4
	.comm	MDIO_DEV_PMA_PMD,4,4
	.comm	AEL2005_MODDET_IRQ,4,4
	.comm	AEL2005_GPIO_STAT,4,4
	.comm	AEL2005_GPIO_CTRL,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_cxgb_ael1002.c_ael2005_intr_handler.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ael2005_intr_handler, %function
ael2005_intr_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L17
	ldr	r5, .L17+4
	sub	sp, sp, #8
	ldr	ip, .L17+8
	ldr	r2, [r3]
	ldr	r1, [r5]
	mov	r3, sp
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	mov	r6, r0
	bl	mdio_read
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L17+12
	ldr	r2, [sp]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L15
.L3:
	mov	r0, r6
	bl	t3_phy_lasi_intr_handler
	cmp	r0, #0
	movlt	r4, r0
	blt	.L1
	orrs	r4, r4, r0
	ldreq	r3, .L17+16
	ldreq	r4, [r3]
.L1:
	ldr	r3, .L17+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r3, .L17+20
	mov	r0, r6
	ldr	r2, [r3]
	ldr	r1, [r5]
	mov	r3, #3328
	bl	mdio_write
	subs	r4, r0, #0
	bne	.L1
	mov	r1, #300
	mov	r0, r6
	bl	ael2005_get_module_type
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, .L17+24
	str	r4, [r6, #4]
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L4
	ldr	r3, .L17+28
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L5
	ldr	r3, .L17+32
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L5
	ldr	r3, .L17+36
	ldr	r3, [r3]
.L7:
	ldr	r2, [r6]
	cmp	r2, r3
	beq	.L4
	mov	r0, r6
	mov	r1, #0
	bl	ael2005_reset
	subs	r4, r0, #0
	ldreq	r3, .L17+40
	ldreq	r4, [r3]
	b	.L1
.L4:
	ldr	r3, .L17+40
	ldr	r4, [r3]
	b	.L3
.L5:
	ldr	r3, .L17+44
	ldr	r3, [r3]
	b	.L7
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	AEL2005_GPIO_STAT
	.word	MDIO_DEV_PMA_PMD
	.word	.LC0
	.word	AEL2005_MODDET_IRQ
	.word	cphy_cause_link_change
	.word	AEL2005_GPIO_CTRL
	.word	phy_modtype_none
	.word	phy_modtype_twinax
	.word	phy_modtype_twinax_long
	.word	edc_sr
	.word	cphy_cause_module_change
	.word	edc_twinax
	.size	ael2005_intr_handler, .-ael2005_intr_handler
	.comm	phy_modtype_twinax_long,4,4
	.comm	phy_modtype_twinax,4,4
	.comm	phy_modtype_none,4,4
	.comm	edc_twinax,4,4
	.comm	edc_sr,4,4
	.comm	cphy_cause_module_change,4,4
	.comm	cphy_cause_link_change,4,4
	.comm	MDIO_DEV_PMA_PMD,4,4
	.comm	AEL2005_MODDET_IRQ,4,4
	.comm	AEL2005_GPIO_STAT,4,4
	.comm	AEL2005_GPIO_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
