	.file	"extr_sh_eth.c_sh_eth_dev_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sh_eth_dev_init, @function
sh_eth_dev_init:
.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, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	netdev_priv@PLT
	mov	rdi, rbp
	mov	rbx, rax
	mov	rax, QWORD PTR 8[rax]
	call	[QWORD PTR [rax]]
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR 104[rax], 0
	jne	.L22
.L3:
	mov	rdi, rbp
	call	sh_eth_ring_format@PLT
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR 96[rax], 0
	jne	.L23
.L4:
	mov	edx, DWORD PTR EESIPR[rip]
	xor	esi, esi
	mov	rdi, rbp
	call	sh_eth_write@PLT
	mov	edx, DWORD PTR EDMR[rip]
	xor	esi, esi
	mov	rdi, rbp
	call	sh_eth_write@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR FDR[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR 8[rax]
	call	sh_eth_write@PLT
	mov	edx, DWORD PTR TFTR[rip]
	xor	esi, esi
	mov	rdi, rbp
	call	sh_eth_write@PLT
	mov	edx, DWORD PTR RMCR[rip]
	mov	esi, DWORD PTR RMCR_RNC[rip]
	mov	rdi, rbp
	call	sh_eth_write@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR TRSCER[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR 12[rax]
	call	sh_eth_write@PLT
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR 80[rax], 0
	jne	.L24
	cmp	QWORD PTR 72[rax], 0
	jne	.L25
.L6:
	mov	esi, DWORD PTR 16[rax]
	mov	edx, DWORD PTR FCFTR[rip]
	mov	rdi, rbp
	call	sh_eth_write@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	eax, DWORD PTR 64[rax]
	test	eax, eax
	je	.L26
.L7:
	mov	edx, DWORD PTR RFLR[rip]
	mov	esi, DWORD PTR ETH_HLEN[rip]
	mov	rdi, rbp
	add	esi, DWORD PTR 0[rbp]
	add	esi, DWORD PTR VLAN_HLEN[rip]
	add	esi, DWORD PTR ETH_FCS_LEN[rip]
	call	sh_eth_write@PLT
	mov	esi, DWORD PTR EESR[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, rbp
	call	sh_eth_modify@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR [rbx], 1
	mov	rdi, rbp
	mov	edx, DWORD PTR EESIPR[rip]
	mov	esi, DWORD PTR 20[rax]
	call	sh_eth_write@PLT
	xor	edx, edx
	cmp	QWORD PTR 16[rbx], 0
	mov	r8d, DWORD PTR ECMR[rip]
	je	.L8
	mov	edx, DWORD PTR ECMR_DM[rip]
.L8:
	mov	eax, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR ECMR_ZPF[rip]
	mov	rdi, rbp
	and	eax, DWORD PTR NETIF_F_RXCSUM[rip]
	cmovne	eax, DWORD PTR ECMR_RCSC[rip]
	or	esi, DWORD PTR ECMR_TE[rip]
	or	esi, DWORD PTR ECMR_RE[rip]
	or	esi, edx
	mov	edx, r8d
	or	esi, eax
	call	sh_eth_write@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR 56[rax]
	test	rdx, rdx
	je	.L10
	mov	rdi, rbp
	call	rdx
	mov	rax, QWORD PTR 8[rbx]
.L10:
	mov	esi, DWORD PTR 24[rax]
	mov	edx, DWORD PTR ECSR[rip]
	mov	rdi, rbp
	call	sh_eth_write@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR ECSIPR[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR 28[rax]
	call	sh_eth_write@PLT
	mov	rdi, rbp
	call	update_mac_address@PLT
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR 48[rax], 0
	jne	.L27
	cmp	QWORD PTR 40[rax], 0
	jne	.L28
.L12:
	cmp	QWORD PTR 32[rax], 0
	jne	.L29
.L13:
	mov	edx, DWORD PTR EDRRR[rip]
	mov	esi, DWORD PTR EDRRR_R[rip]
	mov	rdi, rbp
	call	sh_eth_write@PLT
.L1:
	mov	eax, r12d
	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
.L26:
	.cfi_restore_state
	mov	edx, DWORD PTR TRIMD[rip]
	xor	esi, esi
	mov	rdi, rbp
	call	sh_eth_write@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edx, DWORD PTR BCULR[rip]
	mov	esi, 2048
	mov	rdi, rbp
	call	sh_eth_write@PLT
	mov	rax, QWORD PTR 8[rbx]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edx, DWORD PTR EDMR_NBST[rip]
	mov	esi, DWORD PTR EDMR[rip]
	mov	rdi, rbp
	mov	ecx, edx
	call	sh_eth_modify@PLT
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR 72[rax], 0
	je	.L6
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L23:
	mov	esi, DWORD PTR NET_IP_ALIGN[rip]
	mov	edx, DWORD PTR RPADIR[rip]
	mov	rdi, rbp
	sal	esi, 16
	call	sh_eth_write@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edx, DWORD PTR RMIIMODE[rip]
	mov	esi, 1
	mov	rdi, rbp
	call	sh_eth_write@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edx, DWORD PTR TPAUSER[rip]
	mov	esi, DWORD PTR TPAUSER_UNLIMITED[rip]
	mov	rdi, rbp
	call	sh_eth_write@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edx, DWORD PTR MPR[rip]
	mov	esi, 1
	mov	rdi, rbp
	call	sh_eth_write@PLT
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR 32[rax], 0
	je	.L13
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edx, DWORD PTR APR[rip]
	mov	esi, 1
	mov	rdi, rbp
	call	sh_eth_write@PLT
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR 40[rax], 0
	je	.L12
	jmp	.L28
	.cfi_endproc
.LFE0:
	.size	sh_eth_dev_init, .-sh_eth_dev_init
	.comm	VLAN_HLEN,4,4
	.comm	TRSCER,4,4
	.comm	TRIMD,4,4
	.comm	TPAUSER_UNLIMITED,4,4
	.comm	TPAUSER,4,4
	.comm	TFTR,4,4
	.comm	RPADIR,4,4
	.comm	RMIIMODE,4,4
	.comm	RMCR_RNC,4,4
	.comm	RMCR,4,4
	.comm	RFLR,4,4
	.comm	NET_IP_ALIGN,4,4
	.comm	NETIF_F_RXCSUM,4,4
	.comm	MPR,4,4
	.comm	FDR,4,4
	.comm	FCFTR,4,4
	.comm	ETH_HLEN,4,4
	.comm	ETH_FCS_LEN,4,4
	.comm	EESR,4,4
	.comm	EESIPR,4,4
	.comm	EDRRR_R,4,4
	.comm	EDRRR,4,4
	.comm	EDMR_NBST,4,4
	.comm	EDMR_EL,4,4
	.comm	EDMR,4,4
	.comm	ECSR,4,4
	.comm	ECSIPR,4,4
	.comm	ECMR_ZPF,4,4
	.comm	ECMR_TE,4,4
	.comm	ECMR_RE,4,4
	.comm	ECMR_RCSC,4,4
	.comm	ECMR_DM,4,4
	.comm	ECMR,4,4
	.comm	BCULR,4,4
	.comm	APR,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_dev_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sh_eth_dev_init, %function
sh_eth_dev_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	netdev_priv
	ldr	r3, [r0, #4]
	mov	r5, r0
	ldr	r3, [r3]
	mov	r0, r4
	blx	r3
	subs	r6, r0, #0
	bne	.L1
	ldr	r3, [r5, #4]
	ldr	r3, [r3, #64]
	cmp	r3, #0
	bne	.L46
.L3:
	mov	r0, r4
	bl	sh_eth_ring_format
	ldr	r3, [r5, #4]
	ldr	r3, [r3, #60]
	cmp	r3, #0
	bne	.L47
.L4:
	ldr	r7, .L54
	ldr	r8, .L54+4
	mov	r1, #0
	ldr	r2, [r7]
	mov	r0, r4
	bl	sh_eth_write
	mov	r1, #0
	ldr	r2, [r8]
	mov	r0, r4
	bl	sh_eth_write
	ldr	r3, [r5, #4]
	ldr	r2, .L54+8
	ldr	r1, [r3, #4]
	ldr	r2, [r2]
	mov	r0, r4
	bl	sh_eth_write
	ldr	r3, .L54+12
	mov	r1, #0
	ldr	r2, [r3]
	mov	r0, r4
	bl	sh_eth_write
	ldr	r3, .L54+16
	ldr	r2, .L54+20
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	sh_eth_write
	ldr	r3, [r5, #4]
	ldr	r2, .L54+24
	ldr	r1, [r3, #8]
	ldr	r2, [r2]
	mov	r0, r4
	bl	sh_eth_write
	ldr	r3, [r5, #4]
	ldr	r2, [r3, #52]
	cmp	r2, #0
	bne	.L48
	ldr	r2, [r3, #48]
	cmp	r2, #0
	bne	.L49
.L6:
	ldr	r2, .L54+28
	ldr	r1, [r3, #12]
	mov	r0, r4
	ldr	r2, [r2]
	bl	sh_eth_write
	ldr	r3, [r5, #4]
	ldr	r1, [r3, #44]
	cmp	r1, #0
	beq	.L50
.L7:
	ldr	r3, .L54+32
	ldr	r0, .L54+36
	ldr	r1, [r3]
	ldr	r2, .L54+40
	ldr	r3, [r4]
	ldr	r0, [r0]
	add	r3, r3, r1
	ldr	r1, [r2]
	ldr	r2, .L54+44
	add	r3, r3, r0
	add	r1, r3, r1
	ldr	r2, [r2]
	mov	r0, r4
	bl	sh_eth_write
	mov	r3, #0
	ldr	r1, .L54+48
	mov	r2, r3
	ldr	r1, [r1]
	mov	r0, r4
	bl	sh_eth_modify
	mov	r1, #1
	ldr	r3, [r5, #4]
	ldr	r2, [r7]
	mov	r0, r4
	str	r1, [r5]
	ldr	r1, [r3, #16]
	bl	sh_eth_write
	ldr	r0, [r5, #8]
	ldr	r2, [r4, #4]
	cmp	r0, #0
	ldrne	r3, .L54+52
	ldr	ip, .L54+56
	ldrne	r0, [r3]
	ldr	r3, .L54+60
	ldr	ip, [ip]
	ldr	r1, [r3]
	ldr	r3, .L54+64
	ands	r1, r2, r1
	ldrne	r2, .L54+68
	ldr	r3, [r3]
	ldrne	r1, [r2]
	ldr	r2, .L54+72
	orr	r3, r3, ip
	ldr	r2, [r2]
	orr	r3, r3, r2
	ldr	r2, .L54+76
	orr	r3, r3, r0
	ldr	r2, [r2]
	orr	r1, r3, r1
	mov	r0, r4
	bl	sh_eth_write
	ldr	r3, [r5, #4]
	ldr	r2, [r3, #40]
	cmp	r2, #0
	beq	.L10
	mov	r0, r4
	blx	r2
	ldr	r3, [r5, #4]
.L10:
	ldr	r2, .L54+80
	ldr	r1, [r3, #20]
	ldr	r2, [r2]
	mov	r0, r4
	bl	sh_eth_write
	ldr	r3, [r5, #4]
	ldr	r2, .L54+84
	ldr	r1, [r3, #24]
	ldr	r2, [r2]
	mov	r0, r4
	bl	sh_eth_write
	mov	r0, r4
	bl	update_mac_address
	ldr	r3, [r5, #4]
	ldr	r2, [r3, #36]
	cmp	r2, #0
	bne	.L51
	ldr	r2, [r3, #32]
	cmp	r2, #0
	bne	.L52
.L12:
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bne	.L53
.L13:
	ldr	r2, .L54+88
	ldr	r3, .L54+92
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	sh_eth_write
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L50:
	ldr	r3, .L54+96
	mov	r0, r4
	ldr	r2, [r3]
	bl	sh_eth_write
	b	.L7
.L49:
	ldr	r3, .L54+100
	mov	r1, #2048
	ldr	r2, [r3]
	mov	r0, r4
	bl	sh_eth_write
	ldr	r3, [r5, #4]
	b	.L6
.L48:
	ldr	r3, .L54+104
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r1, [r8]
	mov	r2, r3
	bl	sh_eth_modify
	ldr	r3, [r5, #4]
	ldr	r2, [r3, #48]
	cmp	r2, #0
	beq	.L6
	b	.L49
.L47:
	ldr	r2, .L54+108
	ldr	r3, .L54+112
	ldr	r1, [r2]
	mov	r0, r4
	ldr	r2, [r3]
	lsl	r1, r1, #16
	bl	sh_eth_write
	b	.L4
.L46:
	ldr	r3, .L54+116
	mov	r1, #1
	mov	r0, r4
	ldr	r2, [r3]
	bl	sh_eth_write
	b	.L3
.L53:
	ldr	r3, .L54+120
	ldr	r2, .L54+124
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	sh_eth_write
	b	.L13
.L52:
	ldr	r3, .L54+128
	mov	r1, #1
	ldr	r2, [r3]
	mov	r0, r4
	bl	sh_eth_write
	ldr	r3, [r5, #4]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L13
	b	.L53
.L51:
	ldr	r3, .L54+132
	mov	r1, #1
	ldr	r2, [r3]
	mov	r0, r4
	bl	sh_eth_write
	ldr	r3, [r5, #4]
	ldr	r2, [r3, #32]
	cmp	r2, #0
	beq	.L12
	b	.L52
.L55:
	.align	2
.L54:
	.word	EESIPR
	.word	EDMR
	.word	FDR
	.word	TFTR
	.word	RMCR_RNC
	.word	RMCR
	.word	TRSCER
	.word	FCFTR
	.word	ETH_HLEN
	.word	VLAN_HLEN
	.word	ETH_FCS_LEN
	.word	RFLR
	.word	EESR
	.word	ECMR_DM
	.word	ECMR_TE
	.word	NETIF_F_RXCSUM
	.word	ECMR_ZPF
	.word	ECMR_RCSC
	.word	ECMR_RE
	.word	ECMR
	.word	ECSR
	.word	ECSIPR
	.word	EDRRR
	.word	EDRRR_R
	.word	TRIMD
	.word	BCULR
	.word	EDMR_NBST
	.word	NET_IP_ALIGN
	.word	RPADIR
	.word	RMIIMODE
	.word	TPAUSER_UNLIMITED
	.word	TPAUSER
	.word	MPR
	.word	APR
	.size	sh_eth_dev_init, .-sh_eth_dev_init
	.comm	VLAN_HLEN,4,4
	.comm	TRSCER,4,4
	.comm	TRIMD,4,4
	.comm	TPAUSER_UNLIMITED,4,4
	.comm	TPAUSER,4,4
	.comm	TFTR,4,4
	.comm	RPADIR,4,4
	.comm	RMIIMODE,4,4
	.comm	RMCR_RNC,4,4
	.comm	RMCR,4,4
	.comm	RFLR,4,4
	.comm	NET_IP_ALIGN,4,4
	.comm	NETIF_F_RXCSUM,4,4
	.comm	MPR,4,4
	.comm	FDR,4,4
	.comm	FCFTR,4,4
	.comm	ETH_HLEN,4,4
	.comm	ETH_FCS_LEN,4,4
	.comm	EESR,4,4
	.comm	EESIPR,4,4
	.comm	EDRRR_R,4,4
	.comm	EDRRR,4,4
	.comm	EDMR_NBST,4,4
	.comm	EDMR_EL,4,4
	.comm	EDMR,4,4
	.comm	ECSR,4,4
	.comm	ECSIPR,4,4
	.comm	ECMR_ZPF,4,4
	.comm	ECMR_TE,4,4
	.comm	ECMR_RE,4,4
	.comm	ECMR_RCSC,4,4
	.comm	ECMR_DM,4,4
	.comm	ECMR,4,4
	.comm	BCULR,4,4
	.comm	APR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
