	.file	"extr_cxgb_vsc8211.c_vsc8211_set_automdi.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vsc8211_set_automdi, @function
vsc8211_set_automdi:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ecx, 21173
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	xor	esi, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR VSC8211_EXT_PAGE_AXS[rip]
	call	mdio_write@PLT
	test	eax, eax
	je	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	esi, esi
	mov	ecx, 18
	mov	edx, 18
	mov	rdi, rbp
	call	mdio_write@PLT
	test	eax, eax
	jne	.L1
	cmp	ebx, 1
	mov	edx, 17
	mov	rdi, rbp
	sbb	ecx, ecx
	xor	esi, esi
	and	ecx, 2048
	add	ecx, 10243
	call	mdio_write@PLT
	test	eax, eax
	jne	.L1
	xor	esi, esi
	mov	ecx, 34810
	mov	edx, 16
	mov	rdi, rbp
	call	mdio_write@PLT
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR VSC8211_EXT_PAGE_AXS[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	xor	ecx, ecx
	pop	rbx
	.cfi_def_cfa_offset 16
	xor	esi, esi
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	mdio_write@PLT
	.cfi_endproc
.LFE0:
	.size	vsc8211_set_automdi, .-vsc8211_set_automdi
	.comm	VSC8211_EXT_PAGE_AXS,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_vsc8211.c_vsc8211_set_automdi.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vsc8211_set_automdi, %function
vsc8211_set_automdi:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L8
	mov	r6, r1
	ldr	r3, .L8+4
	mov	r1, #0
	ldr	r2, [r5]
	mov	r4, r0
	bl	mdio_write
	subs	r1, r0, #0
	beq	.L7
.L1:
	mov	r0, r1
	pop	{r4, r5, r6, pc}
.L7:
	mov	r3, #18
	mov	r0, r4
	mov	r2, r3
	bl	mdio_write
	subs	r1, r0, #0
	bne	.L1
	ldr	r2, .L8+8
	cmp	r6, #0
	ldr	r3, .L8+12
	mov	r0, r4
	movne	r3, r2
	mov	r2, #17
	bl	mdio_write
	subs	r1, r0, #0
	bne	.L1
	mov	r2, #16
	mov	r0, r4
	ldr	r3, .L8+16
	bl	mdio_write
	subs	r1, r0, #0
	bne	.L1
	mov	r0, r4
	ldr	r2, [r5]
	mov	r3, r1
	pop	{r4, r5, r6, lr}
	b	mdio_write
.L9:
	.align	2
.L8:
	.word	VSC8211_EXT_PAGE_AXS
	.word	21173
	.word	10243
	.word	12291
	.word	34810
	.size	vsc8211_set_automdi, .-vsc8211_set_automdi
	.comm	VSC8211_EXT_PAGE_AXS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
