	.file	"extr_mdio_mt7620.c_mt7620_mdio_link_adjust.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mt7620_mdio_link_adjust
	.type	mt7620_mdio_link_adjust, @function
mt7620_mdio_link_adjust:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rdx, QWORD PTR [rdi]
	mov	rbp, rdi
	movsx	rax, esi
	mov	rdi, QWORD PTR DUPLEX_FULL[rip]
	mov	rcx, QWORD PTR [rdx]
	mov	rdx, QWORD PTR 8[rdx]
	cmp	QWORD PTR [rcx+rax*8], rdi
	mov	ecx, DWORD PTR [rdx+rax*4]
	mov	rdi, rbp
	mov	rdx, QWORD PTR 8[rbp]
	sete	r8b
	movzx	r8d, r8b
	mov	edx, DWORD PTR [rdx+rax*4]
	call	mt7620_print_link_state@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	mt7620_handle_carrier@PLT
	.cfi_endproc
.LFE0:
	.size	mt7620_mdio_link_adjust, .-mt7620_mdio_link_adjust
	.comm	DUPLEX_FULL,8,8
	.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_mdio_mt7620.c_mt7620_mdio_link_adjust.c"
	.text
	.align	2
	.global	mt7620_mdio_link_adjust
	.syntax unified
	.arm
	.fpu softvfp
	.type	mt7620_mdio_link_adjust, %function
mt7620_mdio_link_adjust:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, lr}
	ldr	ip, [r3]
	ldr	lr, .L4
	ldr	ip, [ip, r1, lsl #2]
	ldr	lr, [lr]
	mov	r4, r0
	sub	ip, ip, lr
	clz	ip, ip
	ldr	lr, [r0, #4]
	ldr	r3, [r3, #4]
	sub	sp, sp, #8
	lsr	ip, ip, #5
	ldr	r3, [r3, r1, lsl #2]
	ldr	r2, [lr, r1, lsl #2]
	str	ip, [sp]
	bl	mt7620_print_link_state
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, lr}
	b	mt7620_handle_carrier
.L5:
	.align	2
.L4:
	.word	DUPLEX_FULL
	.size	mt7620_mdio_link_adjust, .-mt7620_mdio_link_adjust
	.comm	DUPLEX_FULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
