	.file	"extr_mtk_eth_soc.c_fe_hw_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unable to get clock\n"
	.text
	.p2align 4
	.type	fe_hw_init, @function
fe_hw_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	netdev_priv@PLT
	mov	edi, DWORD PTR 8[rax]
	mov	rbp, rax
	call	dev_name@PLT
	mov	esi, DWORD PTR 4[r12]
	mov	edi, DWORD PTR 8[rbp]
	mov	r9, r12
	mov	edx, DWORD PTR fe_handle_irq[rip]
	mov	r8d, eax
	xor	ecx, ecx
	call	devm_request_irq@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR [r12]
	mov	rdi, rbp
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L3
	call	rax
.L4:
	mov	rsi, QWORD PTR FE_REG_DLY_INT_CFG[rip]
	xor	edi, edi
	call	fe_reg_w32@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rax]
	or	edi, DWORD PTR 4[rax]
	call	fe_int_disable@PLT
	mov	rdx, QWORD PTR FE_REG_FE_DMA_VID_BASE[rip]
	mov	rax, QWORD PTR fe_reg_table[rip]
	mov	rsi, QWORD PTR [rax+rdx*8]
	test	rsi, rsi
	je	.L5
	mov	ebx, 65536
	xor	r14d, r14d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdx, QWORD PTR FE_REG_FE_DMA_VID_BASE[rip]
	mov	rax, QWORD PTR fe_reg_table[rip]
	mov	rsi, QWORD PTR [rax+rdx*8]
.L6:
	add	rsi, r14
	mov	edi, ebx
	add	ebx, 131074
	add	r14, 4
	call	fe_w32@PLT
	cmp	ebx, 1114128
	jne	.L19
.L5:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	call	[QWORD PTR 8[rax]]
	test	rax, rax
	jne	.L20
.L7:
	mov	rsi, QWORD PTR FE_REG_FE_RST_GL[rip]
	mov	rax, QWORD PTR fe_reg_table[rip]
	cmp	QWORD PTR [rax+rsi*8], 0
	jne	.L21
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	edi, 1
	call	fe_reg_w32@PLT
	mov	rsi, QWORD PTR FE_REG_FE_RST_GL[rip]
	xor	edi, edi
	call	fe_reg_w32@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	netdev_err@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	call	fe_hw_set_macaddr@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	fe_hw_init, .-fe_hw_init
	.comm	fe_reg_table,8,8
	.comm	fe_handle_irq,4,4
	.comm	FE_REG_FE_RST_GL,8,8
	.comm	FE_REG_FE_DMA_VID_BASE,8,8
	.comm	FE_REG_DLY_INT_CFG,8,8
	.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_mtk_eth_soc.c_fe_hw_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unable to get clock\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fe_hw_init, %function
fe_hw_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r7, r0
	bl	netdev_priv
	ldr	r4, [r0, #4]
	ldr	r3, .L20
	mov	r6, r0
	mov	r0, r4
	ldr	r8, [r7, #4]
	ldr	r5, [r3]
	bl	dev_name
	mov	r3, r0
	mov	r1, r8
	str	r3, [sp]
	mov	r2, r5
	mov	r0, r4
	mov	r3, #0
	str	r7, [sp, #4]
	bl	devm_request_irq
	subs	r8, r0, #0
	bne	.L1
	ldr	r3, [r6]
	mov	r0, r6
	ldr	r3, [r3, #12]
	ldr	r1, [r7]
	cmp	r3, #0
	beq	.L3
	blx	r3
.L4:
	ldr	r3, .L20+4
	mov	r0, #0
	ldr	r1, [r3]
	bl	fe_reg_w32
	ldr	r3, [r6]
	ldr	fp, .L20+8
	ldr	r9, .L20+12
	ldm	r3, {r0, r3}
	orr	r0, r0, r3
	bl	fe_int_disable
	ldr	r2, [fp]
	ldr	r3, [r9]
	ldr	r1, [r3, r2, lsl #2]
	cmp	r1, #0
	beq	.L5
	mov	r4, #65536
	mov	r5, #0
	ldr	r10, .L20+16
	b	.L6
.L17:
	ldr	r2, [fp]
	ldr	r3, [r9]
	ldr	r1, [r3, r2, lsl #2]
.L6:
	mov	r0, r4
	add	r4, r4, #131072
	add	r1, r5, r1
	add	r4, r4, #2
	bl	fe_w32
	cmp	r4, r10
	add	r5, r5, #4
	bne	.L17
.L5:
	ldr	r3, [r6]
	mov	r0, r6
	ldr	r3, [r3, #8]
	blx	r3
	cmp	r0, #0
	bne	.L18
.L7:
	ldr	r4, .L20+20
	ldr	r3, [r9]
	ldr	r1, [r4]
	ldr	r3, [r3, r1, lsl #2]
	cmp	r3, #0
	moveq	r8, r3
	bne	.L19
.L1:
	mov	r0, r8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	mov	r0, #1
	bl	fe_reg_w32
	ldr	r1, [r4]
	mov	r0, #0
	bl	fe_reg_w32
	mov	r0, r8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r0, r7
	ldr	r1, .L20+24
	bl	netdev_err
	b	.L7
.L3:
	bl	fe_hw_set_macaddr
	b	.L4
.L21:
	.align	2
.L20:
	.word	fe_handle_irq
	.word	FE_REG_DLY_INT_CFG
	.word	FE_REG_FE_DMA_VID_BASE
	.word	fe_reg_table
	.word	1114128
	.word	FE_REG_FE_RST_GL
	.word	.LC0
	.size	fe_hw_init, .-fe_hw_init
	.comm	fe_reg_table,4,4
	.comm	fe_handle_irq,4,4
	.comm	FE_REG_FE_RST_GL,4,4
	.comm	FE_REG_FE_DMA_VID_BASE,4,4
	.comm	FE_REG_DLY_INT_CFG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
