	.file	"extr_if_et.c_et_suspend.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	et_suspend, @function
et_suspend:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	call	device_get_softc@PLT
	mov	rbp, rax
	mov	rdi, rax
	call	ET_LOCK@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR IFF_DRV_RUNNING[rip], eax
	jne	.L8
.L2:
	mov	esi, DWORD PTR ET_PM[rip]
	mov	rdi, rbp
	call	CSR_READ_4@PLT
	mov	esi, DWORD PTR ET_PM[rip]
	mov	rdi, rbp
	mov	r8d, eax
	mov	eax, DWORD PTR EM_PM_GIGEPHY_ENB[rip]
	or	eax, DWORD PTR ET_PM_SYSCLK_GATE[rip]
	or	eax, DWORD PTR ET_PM_TXCLK_GATE[rip]
	or	eax, DWORD PTR ET_PM_RXCLK_GATE[rip]
	not	eax
	and	eax, r8d
	or	eax, DWORD PTR ET_PM_PHY_SW_COMA[rip]
	mov	edx, eax
	call	CSR_WRITE_4@PLT
	mov	rdi, rbp
	call	ET_UNLOCK@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	call	et_stop@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	et_suspend, .-et_suspend
	.comm	IFF_DRV_RUNNING,4,4
	.comm	ET_PM_TXCLK_GATE,4,4
	.comm	ET_PM_SYSCLK_GATE,4,4
	.comm	ET_PM_RXCLK_GATE,4,4
	.comm	ET_PM_PHY_SW_COMA,4,4
	.comm	ET_PM,4,4
	.comm	EM_PM_GIGEPHY_ENB,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_if_et.c_et_suspend.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	et_suspend, %function
et_suspend:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	device_get_softc
	mov	r4, r0
	bl	ET_LOCK
	ldr	r2, [r4]
	ldr	r3, .L9
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L8
.L2:
	ldr	r5, .L9+4
	mov	r0, r4
	ldr	r1, [r5]
	bl	CSR_READ_4
	ldr	r3, .L9+8
	ldr	r1, .L9+12
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, .L9+16
	orr	r3, r3, r1
	ldr	r2, [r2]
	ldr	r1, .L9+20
	orr	r3, r3, r2
	ldr	r2, [r1]
	ldr	r1, .L9+24
	orr	r3, r3, r2
	ldr	r2, [r1]
	bic	r3, r0, r3
	ldr	r1, [r5]
	orr	r2, r3, r2
	mov	r0, r4
	bl	CSR_WRITE_4
	mov	r0, r4
	bl	ET_UNLOCK
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	mov	r0, r4
	bl	et_stop
	b	.L2
.L10:
	.align	2
.L9:
	.word	IFF_DRV_RUNNING
	.word	ET_PM
	.word	EM_PM_GIGEPHY_ENB
	.word	ET_PM_SYSCLK_GATE
	.word	ET_PM_TXCLK_GATE
	.word	ET_PM_RXCLK_GATE
	.word	ET_PM_PHY_SW_COMA
	.size	et_suspend, .-et_suspend
	.comm	IFF_DRV_RUNNING,4,4
	.comm	ET_PM_TXCLK_GATE,4,4
	.comm	ET_PM_SYSCLK_GATE,4,4
	.comm	ET_PM_RXCLK_GATE,4,4
	.comm	ET_PM_PHY_SW_COMA,4,4
	.comm	ET_PM,4,4
	.comm	EM_PM_GIGEPHY_ENB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
