	.file	"extr_r8152.c_rtl_eee_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rtl_eee_enable, @function
rtl_eee_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	eax, DWORD PTR [rdi]
	mov	rbp, rdi
	cmp	eax, 134
	jg	.L2
	cmp	eax, 130
	jg	.L3
	jne	.L14
.L4:
	test	esi, esi
	je	.L6
	mov	esi, 1
	mov	rdi, rbp
	call	r8152_eee_en@PLT
	mov	ecx, DWORD PTR 4[rbp]
.L12:
	mov	edx, DWORD PTR MDIO_AN_EEE_ADV[rip]
	mov	esi, DWORD PTR MDIO_MMD_AN[rip]
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	r8152_mmd_write@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	sub	eax, 135
	cmp	eax, 1
	jbe	.L4
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	cmp	eax, 127
	jle	.L1
.L3:
	test	esi, esi
	je	.L7
	mov	rdi, rbp
	mov	esi, 1
	call	r8153_eee_en@PLT
	mov	edx, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR OCP_EEE_ADV[rip]
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	ocp_reg_write@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	xor	esi, esi
	call	r8153_eee_en@PLT
	mov	esi, DWORD PTR OCP_EEE_ADV[rip]
	mov	rdi, rbp
	xor	edx, edx
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	ocp_reg_write@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, rbp
	call	r8152_eee_en@PLT
	xor	ecx, ecx
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	rtl_eee_enable, .-rtl_eee_enable
	.comm	OCP_EEE_ADV,4,4
	.comm	MDIO_MMD_AN,4,4
	.comm	MDIO_AN_EEE_ADV,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_r8152.c_rtl_eee_enable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl_eee_enable, %function
rtl_eee_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0]
	mov	r5, r1
	sub	r0, r0, #128
	cmp	r0, #8
	ldrls	pc, [pc, r0, asl #2]
	b	.L1
.L4:
	.word	.L5
	.word	.L5
	.word	.L3
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L3
	.word	.L3
.L5:
	cmp	r1, #0
	beq	.L7
	mov	r1, #1
	mov	r0, r4
	bl	r8153_eee_en
	ldr	r3, .L10
	mov	r0, r4
	ldr	r2, [r4, #4]
	ldr	r1, [r3]
	pop	{r4, r5, r6, lr}
	b	ocp_reg_write
.L3:
	cmp	r1, #0
	beq	.L6
	mov	r1, #1
	mov	r0, r4
	bl	r8152_eee_en
	ldr	r3, .L10+4
	ldr	r2, .L10+8
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4, #4]
	pop	{r4, r5, r6, lr}
	b	r8152_mmd_write
.L6:
	mov	r0, r4
	bl	r8152_eee_en
	ldr	r2, .L10+8
	ldr	r1, .L10+4
	mov	r3, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r2, [r2]
	ldr	r1, [r1]
	b	r8152_mmd_write
.L7:
	mov	r0, r4
	bl	r8153_eee_en
	ldr	r3, .L10
	mov	r2, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	ocp_reg_write
.L1:
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	OCP_EEE_ADV
	.word	MDIO_MMD_AN
	.word	MDIO_AN_EEE_ADV
	.size	rtl_eee_enable, .-rtl_eee_enable
	.comm	OCP_EEE_ADV,4,4
	.comm	MDIO_MMD_AN,4,4
	.comm	MDIO_AN_EEE_ADV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
