	.file	"extr_mii.c_generic_mii_ioctl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	generic_mii_ioctl
	.type	generic_mii_ioctl, @function
generic_mii_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rax, rdi
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rcx, rcx
	je	.L2
	mov	DWORD PTR [rcx], 0
.L2:
	mov	esi, DWORD PTR 8[rbx]
	mov	r8d, DWORD PTR [rbx]
	and	esi, DWORD PTR 48[rax]
	and	r8d, DWORD PTR [rax]
	mov	DWORD PTR 8[rbx], esi
	mov	DWORD PTR [rbx], r8d
	cmp	edx, 129
	je	.L3
	cmp	edx, 130
	je	.L4
	cmp	edx, 128
	je	.L25
	mov	eax, DWORD PTR EOPNOTSUPP[rip]
	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
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR 32[rax]
	mov	DWORD PTR 8[rbx], esi
.L3:
	mov	edi, DWORD PTR 16[rax]
	mov	edx, r8d
	call	[QWORD PTR 40[rax]]
	mov	DWORD PTR 12[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	ecx, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 16[rax]
	mov	r9, QWORD PTR 24[rax]
	cmp	esi, DWORD PTR 32[rax]
	je	.L26
.L11:
	mov	edx, r8d
	call	r9
.L23:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	cmp	r8d, 131
	je	.L9
	cmp	r8d, 132
	jne	.L11
	mov	DWORD PTR 12[rax], ecx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, DWORD PTR BMCR_RESET[rip]
	or	edx, DWORD PTR BMCR_ANENABLE[rip]
	xor	r10d, r10d
	and	edx, ecx
	sete	r10b
	mov	DWORD PTR 4[rax], r10d
	mov	r10d, 0
	jne	.L12
	xor	r10d, r10d
	test	DWORD PTR BMCR_FULLDPLX[rip], ecx
	setne	r10b
.L12:
	cmp	DWORD PTR 8[rax], r10d
	je	.L11
	mov	DWORD PTR 8[rax], r10d
	mov	edx, 131
	call	r9
	test	rbp, rbp
	je	.L23
	mov	DWORD PTR 0[rbp], 1
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	generic_mii_ioctl, .-generic_mii_ioctl
	.comm	EOPNOTSUPP,4,4
	.comm	BMCR_RESET,4,4
	.comm	BMCR_FULLDPLX,4,4
	.comm	BMCR_ANENABLE,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_mii.c_generic_mii_ioctl.c"
	.text
	.align	2
	.global	generic_mii_ioctl
	.syntax unified
	.arm
	.fpu softvfp
	.type	generic_mii_ioctl, %function
generic_mii_ioctl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r5, r3, #0
	movne	r3, #0
	mov	r4, r1
	mov	ip, r2
	strne	r3, [r5]
	ldr	lr, [r1, #8]
	ldr	r2, [r0]
	ldr	r1, [r0, #32]
	ldr	r3, [r4]
	and	r1, r1, lr
	and	r2, r2, r3
	cmp	ip, #129
	str	r1, [r4, #8]
	str	r2, [r4]
	beq	.L3
	cmp	ip, #130
	beq	.L4
	cmp	ip, #128
	beq	.L25
	ldr	r3, .L27
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r1, [r0, #24]
	str	r1, [r4, #8]
.L3:
	ldr	r3, [r0, #28]
	ldr	r0, [r0, #16]
	blx	r3
	mov	r3, r0
	mov	r0, #0
	str	r3, [r4, #12]
	pop	{r4, r5, r6, pc}
.L25:
	ldr	ip, [r0, #24]
	ldr	r3, [r4, #4]
	cmp	r1, ip
	ldr	r4, [r0, #20]
	ldr	ip, [r0, #16]
	beq	.L26
.L11:
	mov	r0, ip
	blx	r4
.L23:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L26:
	cmp	r2, #131
	beq	.L9
	cmp	r2, #132
	streq	r3, [r0, #12]
	b	.L11
.L9:
	ldr	lr, .L27+4
	ldr	r6, .L27+8
	ldr	lr, [lr]
	ldr	r6, [r6]
	orr	lr, lr, r6
	and	lr, lr, r3
	cmp	lr, #0
	movne	lr, #0
	moveq	lr, #1
	str	lr, [r0, #4]
	movne	lr, #0
	bne	.L12
	ldr	lr, .L27+12
	ldr	lr, [lr]
	tst	r3, lr
	movne	lr, #1
	moveq	lr, #0
.L12:
	ldr	r6, [r0, #8]
	cmp	r6, lr
	beq	.L11
	str	lr, [r0, #8]
	mov	r2, #131
	mov	r0, ip
	blx	r4
	cmp	r5, #0
	beq	.L23
	mov	r3, #1
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L28:
	.align	2
.L27:
	.word	EOPNOTSUPP
	.word	BMCR_RESET
	.word	BMCR_ANENABLE
	.word	BMCR_FULLDPLX
	.size	generic_mii_ioctl, .-generic_mii_ioctl
	.comm	EOPNOTSUPP,4,4
	.comm	BMCR_RESET,4,4
	.comm	BMCR_FULLDPLX,4,4
	.comm	BMCR_ANENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
