	.file	"extr_bcmmii.c_bcmgenet_mii_of_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"phy-handle"
.LC1:
	.string	"invalid PHY mode property\n"
	.text
	.p2align 4
	.type	bcmgenet_mii_of_init, @function
bcmgenet_mii_of_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	edx, edx
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR 16[rdi]
	mov	r13, QWORD PTR 0[rbp]
	mov	rdi, r13
	call	of_parse_phandle@PLT
	mov	DWORD PTR 8[rbx], eax
	test	eax, eax
	jne	.L3
	mov	rdi, r13
	call	of_phy_is_fixed_link@PLT
	test	rax, rax
	jne	.L19
.L3:
	mov	rdi, r13
	call	of_get_phy_mode@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L20
	cmp	DWORD PTR PHY_INTERFACE_MODE_INTERNAL[rip], eax
	mov	DWORD PTR [rbx], eax
	jne	.L7
	mov	DWORD PTR 4[rbx], 1
.L7:
	cmp	DWORD PTR PHY_INTERFACE_MODE_MOCA[rip], r12d
	je	.L8
.L17:
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rdi, r13
	call	of_phy_register_fixed_link@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, r13
	call	of_node_get@PLT
	mov	DWORD PTR 8[rbx], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r13
	call	of_phy_find_device@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L17
	mov	QWORD PTR 8[rax], 0
	call	put_device@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bcmgenet_mii_of_init, .-bcmgenet_mii_of_init
	.comm	PHY_INTERFACE_MODE_MOCA,4,4
	.comm	PHY_INTERFACE_MODE_INTERNAL,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_bcmmii.c_bcmgenet_mii_of_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"phy-handle\000"
	.align	2
.LC1:
	.ascii	"invalid PHY mode property\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcmgenet_mii_of_init, %function
bcmgenet_mii_of_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0, #12]
	mov	r5, r0
	ldr	r7, [r6]
	mov	r2, #0
	mov	r0, r7
	ldr	r1, .L20
	bl	of_parse_phandle
	cmp	r0, #0
	str	r0, [r5, #8]
	bne	.L3
	mov	r0, r7
	bl	of_phy_is_fixed_link
	cmp	r0, #0
	bne	.L18
.L3:
	mov	r0, r7
	bl	of_get_phy_mode
	subs	r4, r0, #0
	blt	.L19
	ldr	r3, .L20+4
	str	r4, [r5]
	ldr	r3, [r3]
	cmp	r3, r4
	moveq	r3, #1
	streq	r3, [r5, #4]
	ldr	r3, .L20+8
	ldr	r3, [r3]
	cmp	r3, r4
	mov	r4, #0
	beq	.L8
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r0, r7
	bl	of_phy_register_fixed_link
	subs	r4, r0, #0
	bne	.L1
	mov	r0, r7
	bl	of_node_get
	str	r0, [r5, #8]
	b	.L3
.L8:
	mov	r0, r7
	bl	of_phy_find_device
	subs	r3, r0, #0
	beq	.L1
	str	r4, [r3, #4]
	bl	put_device
	b	.L1
.L19:
	mov	r0, r6
	ldr	r1, .L20+12
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	PHY_INTERFACE_MODE_INTERNAL
	.word	PHY_INTERFACE_MODE_MOCA
	.word	.LC1
	.size	bcmgenet_mii_of_init, .-bcmgenet_mii_of_init
	.comm	PHY_INTERFACE_MODE_MOCA,4,4
	.comm	PHY_INTERFACE_MODE_INTERNAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
