	.file	"extr_et131x_netdev.c_et131x_ioctl_mii.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	et131x_ioctl_mii
	.type	et131x_ioctl_mii, @function
et131x_ioctl_mii:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	call	netdev_priv@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	if_mii@PLT
	mov	rbp, rax
	cmp	ebx, 129
	je	.L2
	cmp	ebx, 130
	je	.L3
	mov	eax, DWORD PTR EOPNOTSUPP[rip]
	neg	eax
	cmp	ebx, 128
	je	.L13
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR CAP_NET_ADMIN[rip]
	call	capable@PLT
	test	eax, eax
	jne	.L7
.L11:
	mov	eax, DWORD PTR EPERM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR CAP_NET_ADMIN[rip]
	call	capable@PLT
	test	eax, eax
	je	.L11
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR 0[rbp]
	mov	rdi, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	MiWrite@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 12[rbp], eax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[rbp]
	pop	rbx
	.cfi_def_cfa_offset 24
	lea	rdx, 8[rbp]
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	MiRead@PLT
	.cfi_endproc
.LFE0:
	.size	et131x_ioctl_mii, .-et131x_ioctl_mii
	.comm	EPERM,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	CAP_NET_ADMIN,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_et131x_netdev.c_et131x_ioctl_mii.c"
	.text
	.align	2
	.global	et131x_ioctl_mii
	.syntax unified
	.arm
	.fpu softvfp
	.type	et131x_ioctl_mii, %function
et131x_ioctl_mii:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r4, r2
	bl	netdev_priv
	mov	r6, r0
	mov	r0, r5
	bl	if_mii
	cmp	r4, #129
	mov	r5, r0
	beq	.L2
	cmp	r4, #130
	beq	.L3
	cmp	r4, #128
	beq	.L13
	ldr	r3, .L14
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L14+4
	ldr	r0, [r3]
	bl	capable
	cmp	r0, #0
	bne	.L7
.L11:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, .L14+4
	ldr	r0, [r3]
	bl	capable
	cmp	r0, #0
	beq	.L11
	mov	r0, r6
	ldr	r2, [r5]
	ldr	r1, [r5, #4]
	pop	{r4, r5, r6, lr}
	b	MiWrite
.L3:
	ldr	r3, [r6]
	mov	r0, #0
	str	r3, [r5, #12]
	pop	{r4, r5, r6, pc}
.L7:
	mov	r0, r6
	ldr	r1, [r5, #4]
	add	r2, r5, #8
	pop	{r4, r5, r6, lr}
	b	MiRead
.L15:
	.align	2
.L14:
	.word	EOPNOTSUPP
	.word	CAP_NET_ADMIN
	.word	EPERM
	.size	et131x_ioctl_mii, .-et131x_ioctl_mii
	.comm	EPERM,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	CAP_NET_ADMIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
