	.file	"extr_mv88e1xxx.c_mv88e1xxx_phy_create.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mv88e1xxx_phy_create, @function
mv88e1xxx_phy_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	call	netdev_priv@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	mov	rbp, rax
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	r8, rbx
	lea	rcx, mv88e1xxx_ops[rip]
	mov	edx, r14d
	mov	rsi, r13
	mov	rdi, rax
	call	cphy_init@PLT
	mov	rdi, rbp
	call	board_info@PLT
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR SUPPORTED_TP[rip], eax
	jne	.L14
.L4:
	mov	rdi, r12
	mov	esi, 1
	call	mv88e1xxx_downshift_set@PLT
	mov	rdi, rbp
	call	is_T2@PLT
	test	rax, rax
	jne	.L15
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L14:
	.cfi_restore_state
	mov	rdi, rbp
	call	board_info@PLT
	mov	rcx, QWORD PTR CHBT_PHY_88E1111[rip]
	cmp	QWORD PTR 8[rax], rcx
	jne	.L4
	mov	esi, DWORD PTR MV88E1XXX_EXTENDED_ADDR_REGISTER[rip]
	mov	rdi, r12
	mov	edx, 11
	call	simple_mdio_write@PLT
	mov	esi, DWORD PTR MV88E1XXX_EXTENDED_REGISTER[rip]
	mov	edx, 32772
	mov	rdi, r12
	call	simple_mdio_write@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, DWORD PTR MV88E1XXX_LED_CONTROL_REGISTER[rip]
	mov	rdi, r12
	mov	edx, 1
	call	simple_mdio_write@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
	.cfi_endproc
.LFE0:
	.size	mv88e1xxx_phy_create, .-mv88e1xxx_phy_create
	.comm	mv88e1xxx_ops,4,4
	.comm	SUPPORTED_TP,4,4
	.comm	MV88E1XXX_LED_CONTROL_REGISTER,4,4
	.comm	MV88E1XXX_EXTENDED_REGISTER,4,4
	.comm	MV88E1XXX_EXTENDED_ADDR_REGISTER,4,4
	.comm	GFP_KERNEL,4,4
	.comm	CHBT_PHY_88E1111,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_mv88e1xxx.c_mv88e1xxx_phy_create.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mv88e1xxx_phy_create, %function
mv88e1xxx_phy_create:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #8
	mov	r6, r1
	mov	r8, r2
	mov	r5, r0
	bl	netdev_priv
	ldr	r3, .L16
	mov	r7, r0
	ldr	r1, [r3]
	mov	r0, #4
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L1
	mov	r2, r6
	ldr	r3, .L16+4
	mov	r1, r5
	str	r8, [sp]
	bl	cphy_init
	mov	r0, r7
	bl	board_info
	ldr	r3, .L16+8
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L14
.L4:
	mov	r1, #1
	mov	r0, r4
	bl	mv88e1xxx_downshift_set
	mov	r0, r7
	bl	is_T2
	cmp	r0, #0
	bne	.L15
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r0, r7
	bl	board_info
	ldr	r3, .L16+12
	ldr	r2, [r0, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L4
	ldr	r3, .L16+16
	mov	r2, #11
	ldr	r1, [r3]
	mov	r0, r4
	bl	simple_mdio_write
	ldr	r3, .L16+20
	mov	r0, r4
	ldr	r2, .L16+24
	ldr	r1, [r3]
	bl	simple_mdio_write
	b	.L4
.L15:
	ldr	r3, .L16+28
	mov	r2, #1
	mov	r0, r4
	ldr	r1, [r3]
	bl	simple_mdio_write
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	.align	2
.L16:
	.word	GFP_KERNEL
	.word	mv88e1xxx_ops
	.word	SUPPORTED_TP
	.word	CHBT_PHY_88E1111
	.word	MV88E1XXX_EXTENDED_ADDR_REGISTER
	.word	MV88E1XXX_EXTENDED_REGISTER
	.word	32772
	.word	MV88E1XXX_LED_CONTROL_REGISTER
	.size	mv88e1xxx_phy_create, .-mv88e1xxx_phy_create
	.comm	mv88e1xxx_ops,4,4
	.comm	SUPPORTED_TP,4,4
	.comm	MV88E1XXX_LED_CONTROL_REGISTER,4,4
	.comm	MV88E1XXX_EXTENDED_REGISTER,4,4
	.comm	MV88E1XXX_EXTENDED_ADDR_REGISTER,4,4
	.comm	GFP_KERNEL,4,4
	.comm	CHBT_PHY_88E1111,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
