	.file	"extr_dp83tc811.c_dp83811_config_intr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dp83811_config_intr, @function
dp83811_config_intr:
.LFB0:
	.cfi_startproc
	endbr64
	mov	esi, DWORD PTR MII_DP83811_INT_STAT1[rip]
	mov	rax, QWORD PTR PHY_INTERRUPT_ENABLED[rip]
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	cmp	QWORD PTR [rdi], rax
	je	.L6
	xor	edx, edx
	call	phy_write@PLT
	test	eax, eax
	js	.L1
	mov	esi, DWORD PTR MII_DP83811_INT_STAT2[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	phy_write@PLT
	test	eax, eax
	js	.L1
	mov	esi, DWORD PTR MII_DP83811_INT_STAT3[rip]
	mov	rdi, rbp
	xor	edx, edx
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	phy_write@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	call	phy_read@PLT
	test	eax, eax
	js	.L1
	mov	edx, DWORD PTR DP83811_RX_ERR_HF_INT_EN[rip]
	mov	esi, DWORD PTR MII_DP83811_INT_STAT1[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR DP83811_MS_TRAINING_INT_EN[rip]
	or	edx, DWORD PTR DP83811_ANEG_COMPLETE_INT_EN[rip]
	or	edx, DWORD PTR DP83811_ESD_EVENT_INT_EN[rip]
	or	edx, DWORD PTR DP83811_WOL_INT_EN[rip]
	or	edx, DWORD PTR DP83811_LINK_STAT_INT_EN[rip]
	or	edx, DWORD PTR DP83811_ENERGY_DET_INT_EN[rip]
	or	edx, DWORD PTR DP83811_LINK_QUAL_INT_EN[rip]
	or	edx, eax
	call	phy_write@PLT
	test	eax, eax
	js	.L1
	mov	esi, DWORD PTR MII_DP83811_INT_STAT2[rip]
	mov	rdi, rbp
	call	phy_read@PLT
	test	eax, eax
	js	.L1
	mov	edx, DWORD PTR DP83811_JABBER_DET_INT_EN[rip]
	mov	esi, DWORD PTR MII_DP83811_INT_STAT2[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR DP83811_POLARITY_INT_EN[rip]
	or	edx, DWORD PTR DP83811_SLEEP_MODE_INT_EN[rip]
	or	edx, DWORD PTR DP83811_OVERTEMP_INT_EN[rip]
	or	edx, DWORD PTR DP83811_OVERVOLTAGE_INT_EN[rip]
	or	edx, DWORD PTR DP83811_UNDERVOLTAGE_INT_EN[rip]
	or	edx, eax
	call	phy_write@PLT
	test	eax, eax
	jns	.L7
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR MII_DP83811_INT_STAT3[rip]
	mov	rdi, rbp
	call	phy_read@PLT
	test	eax, eax
	js	.L1
	mov	edx, DWORD PTR DP83811_LPS_INT_EN[rip]
	mov	esi, DWORD PTR MII_DP83811_INT_STAT3[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR DP83811_NO_FRAME_INT_EN[rip]
	or	edx, DWORD PTR DP83811_POR_DONE_INT_EN[rip]
	or	edx, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	phy_write@PLT
	.cfi_endproc
.LFE0:
	.size	dp83811_config_intr, .-dp83811_config_intr
	.comm	PHY_INTERRUPT_ENABLED,8,8
	.comm	MII_DP83811_INT_STAT3,4,4
	.comm	MII_DP83811_INT_STAT2,4,4
	.comm	MII_DP83811_INT_STAT1,4,4
	.comm	DP83811_WOL_INT_EN,4,4
	.comm	DP83811_UNDERVOLTAGE_INT_EN,4,4
	.comm	DP83811_SLEEP_MODE_INT_EN,4,4
	.comm	DP83811_RX_ERR_HF_INT_EN,4,4
	.comm	DP83811_POR_DONE_INT_EN,4,4
	.comm	DP83811_POLARITY_INT_EN,4,4
	.comm	DP83811_OVERVOLTAGE_INT_EN,4,4
	.comm	DP83811_OVERTEMP_INT_EN,4,4
	.comm	DP83811_NO_FRAME_INT_EN,4,4
	.comm	DP83811_MS_TRAINING_INT_EN,4,4
	.comm	DP83811_LPS_INT_EN,4,4
	.comm	DP83811_LINK_STAT_INT_EN,4,4
	.comm	DP83811_LINK_QUAL_INT_EN,4,4
	.comm	DP83811_JABBER_DET_INT_EN,4,4
	.comm	DP83811_ESD_EVENT_INT_EN,4,4
	.comm	DP83811_ENERGY_DET_INT_EN,4,4
	.comm	DP83811_ANEG_COMPLETE_INT_EN,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_dp83tc811.c_dp83811_config_intr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dp83811_config_intr, %function
dp83811_config_intr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	ldr	r2, [r0]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	ldr	r5, .L8+4
	cmp	r2, r3
	mov	r4, r0
	ldr	r1, [r5]
	beq	.L6
	mov	r2, #0
	bl	phy_write
	subs	r3, r0, #0
	blt	.L1
	ldr	r3, .L8+8
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	phy_write
	subs	r3, r0, #0
	blt	.L1
	ldr	r3, .L8+12
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	mov	r2, #0
	ldr	r1, [r3]
	b	phy_write
.L6:
	bl	phy_read
	subs	r3, r0, #0
	blt	.L1
	ldr	r2, .L8+16
	ldr	r1, .L8+20
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, .L8+24
	orr	r2, r2, r1
	ldr	r0, [r0]
	ldr	r1, .L8+28
	orr	r2, r2, r0
	ldr	r1, [r1]
	ldr	r0, .L8+32
	orr	r2, r2, r1
	ldr	r0, [r0]
	ldr	r1, .L8+36
	orr	r2, r2, r0
	ldr	r1, [r1]
	ldr	r0, .L8+40
	orr	r2, r2, r1
	ldr	r0, [r0]
	ldr	r1, .L8+44
	orr	r2, r2, r0
	ldr	r0, [r1]
	ldr	r1, [r5]
	orr	r2, r2, r0
	orr	r2, r2, r3
	mov	r0, r4
	bl	phy_write
	subs	r3, r0, #0
	blt	.L1
	ldr	r5, .L8+8
	mov	r0, r4
	ldr	r1, [r5]
	bl	phy_read
	subs	r3, r0, #0
	blt	.L1
	ldr	r2, .L8+48
	ldr	r1, .L8+52
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, .L8+56
	orr	r2, r2, r1
	ldr	r0, [r0]
	ldr	r1, .L8+60
	orr	r2, r2, r0
	ldr	r1, [r1]
	ldr	r0, .L8+64
	orr	r2, r2, r1
	ldr	r0, [r0]
	ldr	r1, .L8+68
	orr	r2, r2, r0
	ldr	r0, [r1]
	ldr	r1, [r5]
	orr	r2, r2, r0
	orr	r2, r2, r3
	mov	r0, r4
	bl	phy_write
	subs	r3, r0, #0
	bge	.L7
.L1:
	mov	r0, r3
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r5, .L8+12
	mov	r0, r4
	ldr	r1, [r5]
	bl	phy_read
	subs	r3, r0, #0
	blt	.L1
	ldr	r2, .L8+72
	ldr	r0, .L8+76
	ldr	r1, .L8+80
	ldr	r0, [r0]
	ldr	r2, [r2]
	ldr	r1, [r1]
	orr	r2, r2, r0
	orr	r2, r2, r1
	mov	r0, r4
	ldr	r1, [r5]
	orr	r2, r2, r3
	pop	{r4, r5, r6, lr}
	b	phy_write
.L9:
	.align	2
.L8:
	.word	PHY_INTERRUPT_ENABLED
	.word	MII_DP83811_INT_STAT1
	.word	MII_DP83811_INT_STAT2
	.word	MII_DP83811_INT_STAT3
	.word	DP83811_RX_ERR_HF_INT_EN
	.word	DP83811_MS_TRAINING_INT_EN
	.word	DP83811_ANEG_COMPLETE_INT_EN
	.word	DP83811_ESD_EVENT_INT_EN
	.word	DP83811_WOL_INT_EN
	.word	DP83811_LINK_STAT_INT_EN
	.word	DP83811_ENERGY_DET_INT_EN
	.word	DP83811_LINK_QUAL_INT_EN
	.word	DP83811_JABBER_DET_INT_EN
	.word	DP83811_POLARITY_INT_EN
	.word	DP83811_SLEEP_MODE_INT_EN
	.word	DP83811_OVERTEMP_INT_EN
	.word	DP83811_OVERVOLTAGE_INT_EN
	.word	DP83811_UNDERVOLTAGE_INT_EN
	.word	DP83811_LPS_INT_EN
	.word	DP83811_NO_FRAME_INT_EN
	.word	DP83811_POR_DONE_INT_EN
	.size	dp83811_config_intr, .-dp83811_config_intr
	.comm	PHY_INTERRUPT_ENABLED,4,4
	.comm	MII_DP83811_INT_STAT3,4,4
	.comm	MII_DP83811_INT_STAT2,4,4
	.comm	MII_DP83811_INT_STAT1,4,4
	.comm	DP83811_WOL_INT_EN,4,4
	.comm	DP83811_UNDERVOLTAGE_INT_EN,4,4
	.comm	DP83811_SLEEP_MODE_INT_EN,4,4
	.comm	DP83811_RX_ERR_HF_INT_EN,4,4
	.comm	DP83811_POR_DONE_INT_EN,4,4
	.comm	DP83811_POLARITY_INT_EN,4,4
	.comm	DP83811_OVERVOLTAGE_INT_EN,4,4
	.comm	DP83811_OVERTEMP_INT_EN,4,4
	.comm	DP83811_NO_FRAME_INT_EN,4,4
	.comm	DP83811_MS_TRAINING_INT_EN,4,4
	.comm	DP83811_LPS_INT_EN,4,4
	.comm	DP83811_LINK_STAT_INT_EN,4,4
	.comm	DP83811_LINK_QUAL_INT_EN,4,4
	.comm	DP83811_JABBER_DET_INT_EN,4,4
	.comm	DP83811_ESD_EVENT_INT_EN,4,4
	.comm	DP83811_ENERGY_DET_INT_EN,4,4
	.comm	DP83811_ANEG_COMPLETE_INT_EN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
