	.file	"218892938.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	skfd, @object
	.size	skfd, 4
skfd:
	.long	-1
	.local	ifr
	.comm	ifr,40,32
	.section	.rodata
.LC0:
	.string	"SIOCGMIIREG on %s failed: %s\n"
	.text
	.globl	mdio_read
	.type	mdio_read, @function
mdio_read:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	lea	rax, ifr[rip+16]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 2[rax], dx
	mov	eax, DWORD PTR skfd[rip]
	lea	rdx, ifr[rip]
	mov	esi, 35144
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rdx
	lea	rdx, ifr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 6[rax]
	movzx	eax, ax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	mdio_read, .-mdio_read
	.section	.rodata
.LC1:
	.string	"SIOCSMIIREG on %s failed: %s\n"
	.text
	.globl	mdio_write
	.type	mdio_write, @function
mdio_write:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	lea	rax, ifr[rip+16]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 2[rax], dx
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 4[rax], dx
	mov	eax, DWORD PTR skfd[rip]
	lea	rdx, ifr[rip]
	mov	esi, 35145
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rdx
	lea	rdx, ifr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L6
.L5:
	mov	eax, 0
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mdio_write, .-mdio_write
	.section	.rodata
.LC2:
	.string	"socket init failed"
	.text
	.globl	mdio_init
	.type	mdio_init, @function
mdio_init:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR skfd[rip], eax
	mov	eax, DWORD PTR skfd[rip]
	test	eax, eax
	jns	.L9
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L9:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	mdio_init, .-mdio_init
	.section	.rodata
	.align 8
.LC3:
	.string	"SIOCGMIIPHY on '%s' failed: %s\n"
	.text
	.globl	mdio_set_interface
	.type	mdio_set_interface, @function
mdio_set_interface:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 16
	mov	rsi, rax
	lea	rdi, ifr[rip]
	call	strncpy@PLT
	mov	eax, DWORD PTR skfd[rip]
	lea	rdx, ifr[rip]
	mov	esi, 35143
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 19
	je	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L12:
	mov	eax, -1
	jmp	.L13
.L11:
	mov	eax, 0
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	mdio_set_interface, .-mdio_set_interface
	.globl	mdio_done
	.type	mdio_done, @function
mdio_done:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR skfd[rip]
	mov	edi, eax
	call	close@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	mdio_done, .-mdio_done
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"218892938.c"
	.text
	.data
	.align	2
	.type	skfd, %object
	.size	skfd, 4
skfd:
	.word	-1
	.local	ifr
	.comm	ifr,32,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"SIOCGMIIREG on %s failed: %s\012\000"
	.text
	.align	2
	.global	mdio_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	mdio_read, %function
mdio_read:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, .L4
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-16]
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, .L4+4
	ldr	r3, [r3]
	ldr	r2, .L4+8
	ldr	r1, .L4+12
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	ldr	r3, .L4+16
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, .L4+8
	ldr	r1, .L4+20
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3, #6]
.L3:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L5:
	.align	2
.L4:
	.word	ifr+16
	.word	skfd
	.word	ifr
	.word	35144
	.word	stderr
	.word	.LC0
	.size	mdio_read, .-mdio_read
	.section	.rodata
	.align	2
.LC1:
	.ascii	"SIOCSMIIREG on %s failed: %s\012\000"
	.text
	.align	2
	.global	mdio_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	mdio_write, %function
mdio_write:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L9
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-16]
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-16]
	strh	r2, [r3, #4]	@ movhi
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r2, .L9+8
	ldr	r1, .L9+12
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r3, .L9+16
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, .L9+8
	ldr	r1, .L9+20
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L8
.L7:
	mov	r3, #0
.L8:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L10:
	.align	2
.L9:
	.word	ifr+16
	.word	skfd
	.word	ifr
	.word	35145
	.word	stderr
	.word	.LC1
	.size	mdio_write, .-mdio_write
	.section	.rodata
	.align	2
.LC2:
	.ascii	"socket init failed\000"
	.text
	.align	2
	.global	mdio_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	mdio_init, %function
mdio_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L14
	str	r3, [r2]
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L13
	ldr	r0, .L14+4
	bl	perror
	mvn	r0, #0
	bl	exit
.L13:
	nop
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	skfd
	.word	.LC2
	.size	mdio_init, .-mdio_init
	.section	.rodata
	.align	2
.LC3:
	.ascii	"SIOCGMIIPHY on '%s' failed: %s\012\000"
	.text
	.align	2
	.global	mdio_set_interface
	.syntax unified
	.arm
	.fpu softvfp
	.type	mdio_set_interface, %function
mdio_set_interface:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	mov	r2, #16
	ldr	r1, [fp, #-16]
	ldr	r0, .L20
	bl	strncpy
	ldr	r3, .L20+4
	ldr	r3, [r3]
	ldr	r2, .L20
	ldr	r1, .L20+8
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #19
	beq	.L18
	ldr	r3, .L20+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-16]
	ldr	r1, .L20+16
	mov	r0, r4
	bl	fprintf
.L18:
	mvn	r3, #0
	b	.L19
.L17:
	mov	r3, #0
.L19:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	ifr
	.word	skfd
	.word	35143
	.word	stderr
	.word	.LC3
	.size	mdio_set_interface, .-mdio_set_interface
	.align	2
	.global	mdio_done
	.syntax unified
	.arm
	.fpu softvfp
	.type	mdio_done, %function
mdio_done:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L23
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	nop
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	skfd
	.size	mdio_done, .-mdio_done
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
