	.file	"extr_sh_eth.c_sh_eth_phy_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"phy_connect failed\n"
.LC1:
	.string	"attached phy %i to driver %s\n"
	.text
	.p2align 4
	.type	sh_eth_phy_init, @function
sh_eth_phy_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	call	netdev_priv@PLT
	mov	rcx, rsp
	mov	rbx, rax
	mov	eax, DWORD PTR MII_BUS_ID_SIZE[rip]
	lea	esi, 3[rax]
	movsx	rax, esi
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L13:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L13
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L14
.L4:
	mov	rax, QWORD PTR 32[rbx]
	mov	r8d, DWORD PTR 28[rbx]
	mov	rdi, rsp
	mov	rdx, QWORD PTR PHY_ID_FMT[rip]
	mov	ecx, DWORD PTR [rax]
	call	snprintf@PLT
	mov	eax, DWORD PTR PHY_DOWN[rip]
	xor	ecx, ecx
	mov	rdi, r12
	mov	DWORD PTR [rbx], -1
	mov	r8d, DWORD PTR PHY_INTERFACE_MODE_MII[rip]
	mov	rsi, rsp
	lea	rdx, sh_eth_adjust_link[rip]
	mov	DWORD PTR 24[rbx], eax
	mov	QWORD PTR 16[rbx], 0
	call	phy_connect@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L15
	mov	rax, QWORD PTR 0[r13]
	mov	edx, DWORD PTR 8[r13]
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	mov	ecx, DWORD PTR [rax]
	call	dev_info@PLT
	mov	QWORD PTR 8[rbx], r13
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR -40[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L16
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	rdi, r13
	call	PTR_ERR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sh_eth_phy_init, .-sh_eth_phy_init
	.comm	sh_eth_adjust_link,4,4
	.comm	PHY_INTERFACE_MODE_MII,4,4
	.comm	PHY_ID_FMT,8,8
	.comm	PHY_DOWN,4,4
	.comm	MII_BUS_ID_SIZE,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_sh_eth.c_sh_eth_phy_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"phy_connect failed\012\000"
	.align	2
.LC1:
	.ascii	"attached phy %i to driver %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sh_eth_phy_init, %function
sh_eth_phy_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #16
	ldr	r3, .L9
	mov	r7, r0
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bl	netdev_priv
	ldr	r3, .L9+4
	ldr	r2, [r0, #20]
	ldr	r1, [r3]
	mov	r4, r0
	add	r3, r1, #10
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r5, sp
	ldr	r0, [r0, #16]
	ldr	r3, [r2]
	ldr	r2, .L9+8
	str	r0, [r5], #8
	mov	r0, r5
	ldr	r2, [r2]
	add	r1, r1, #3
	bl	snprintf
	mov	r3, #0
	mvn	r0, #0
	ldr	r1, .L9+12
	ldr	r2, .L9+16
	ldr	ip, [r1]
	ldr	r2, [r2]
	mov	r1, r5
	str	ip, [r4, #12]
	str	r0, [r4]
	str	r3, [r4, #8]
	mov	r0, r7
	str	r2, [sp]
	ldr	r2, .L9+20
	bl	phy_connect
	mov	r6, r0
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L7
	ldr	r3, [r6]
	mov	r0, r7
	ldr	r3, [r3]
	ldr	r2, [r6, #4]
	ldr	r1, .L9+24
	bl	dev_info
	str	r6, [r4, #4]
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r5
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L7:
	ldr	r1, .L9+28
	mov	r0, r7
	bl	dev_err
	mov	r0, r6
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC2
	.word	MII_BUS_ID_SIZE
	.word	PHY_ID_FMT
	.word	PHY_DOWN
	.word	PHY_INTERFACE_MODE_MII
	.word	sh_eth_adjust_link
	.word	.LC1
	.word	.LC0
	.size	sh_eth_phy_init, .-sh_eth_phy_init
	.comm	sh_eth_adjust_link,4,4
	.comm	PHY_INTERFACE_MODE_MII,4,4
	.comm	PHY_ID_FMT,4,4
	.comm	PHY_DOWN,4,4
	.comm	MII_BUS_ID_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
