	.file	"extr_tlan.c_TLan_PhyDetect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"PHY found at %02x %04x %04x %04x\n"
	.align 8
.LC1:
	.string	"TLAN:  Cannot initialize device, no PHY was found!\n"
	.text
	.p2align 4
	.type	TLan_PhyDetect, @function
TLan_PhyDetect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	netdev_priv@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR TLAN_ADAPTER_UNMANAGED_PHY[rip], eax
	je	.L2
	mov	DWORD PTR 0[rbp], 65535
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR MII_GEN_ID_HI[rip]
	mov	rsi, QWORD PTR TLAN_PHY_MAX_ADDR[rip]
	lea	r12, 16[rsp]
	mov	rdi, rbx
	mov	rcx, r12
	call	TLan_MiiReadReg@PLT
	cmp	DWORD PTR 16[rsp], 65535
	mov	rax, QWORD PTR 8[rbp]
	je	.L4
	mov	rdx, QWORD PTR TLAN_PHY_MAX_ADDR[rip]
	mov	QWORD PTR [rax], rdx
.L5:
	mov	rdx, QWORD PTR TLAN_PHY_NONE[rip]
	cmp	QWORD PTR TLAN_PHY_MAX_ADDR[rip], 0
	mov	QWORD PTR 8[rax], rdx
	js	.L6
	xor	r15d, r15d
	lea	r14, 12[rsp]
	lea	r13, 20[rsp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	add	r15, 1
	cmp	r15, rax
	jg	.L19
.L11:
	mov	edx, DWORD PTR MII_GEN_CTL[rip]
	mov	rcx, r14
	mov	rsi, r15
	mov	rdi, rbx
	call	TLan_MiiReadReg@PLT
	mov	rcx, r12
	mov	rsi, r15
	mov	rdi, rbx
	mov	edx, DWORD PTR MII_GEN_ID_HI[rip]
	call	TLan_MiiReadReg@PLT
	mov	rcx, r13
	mov	rsi, r15
	mov	rdi, rbx
	mov	edx, DWORD PTR MII_GEN_ID_LO[rip]
	call	TLan_MiiReadReg@PLT
	mov	ecx, DWORD PTR 12[rsp]
	mov	r8d, DWORD PTR 16[rsp]
	mov	r9d, DWORD PTR 20[rsp]
	cmp	ecx, 65535
	jne	.L8
	cmp	r8d, 65535
	je	.L20
.L8:
	mov	edi, DWORD PTR TLAN_DEBUG_GNRL[rip]
	mov	rdx, r15
	lea	rsi, .LC0[rip]
	call	TLAN_DBG@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR TLAN_PHY_NONE[rip]
	cmp	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR TLAN_PHY_MAX_ADDR[rip]
	jne	.L9
	cmp	rax, r15
	je	.L9
	mov	QWORD PTR 8[rdx], r15
	add	r15, 1
	cmp	r15, rax
	jle	.L11
.L19:
	mov	rax, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR TLAN_PHY_NONE[rip]
	cmp	QWORD PTR 8[rax], rdx
	je	.L6
	mov	DWORD PTR 0[rbp], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rax, QWORD PTR TLAN_PHY_MAX_ADDR[rip]
	cmp	r9d, 65535
	jne	.L8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, QWORD PTR TLAN_PHY_NONE[rip]
	mov	QWORD PTR [rax], rdx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	QWORD PTR [rax], rdx
	je	.L13
	mov	DWORD PTR 0[rbp], 0
	jmp	.L1
.L13:
	lea	rdi, .LC1[rip]
	call	printk@PLT
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	TLan_PhyDetect, .-TLan_PhyDetect
	.comm	TLAN_PHY_NONE,8,8
	.comm	TLAN_PHY_MAX_ADDR,8,8
	.comm	TLAN_DEBUG_GNRL,4,4
	.comm	TLAN_ADAPTER_UNMANAGED_PHY,4,4
	.comm	MII_GEN_ID_LO,4,4
	.comm	MII_GEN_ID_HI,4,4
	.comm	MII_GEN_CTL,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_tlan.c_TLan_PhyDetect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PHY found at %02x %04x %04x %04x\012\000"
	.align	2
.LC1:
	.ascii	"TLAN:  Cannot initialize device, no PHY was found!\012"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	TLan_PhyDetect, %function
TLan_PhyDetect:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L21
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r5, r0
	bl	netdev_priv
	ldr	r3, .L21+4
	ldr	r2, [r0, #8]
	ldr	r3, [r3]
	ldr	r4, [r2]
	mov	r6, r0
	ands	r4, r4, r3
	beq	.L2
	ldr	r3, .L21+8
	str	r3, [r0]
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r8, .L21+12
	ldr	r10, .L21+16
	ldr	r1, [r8]
	ldr	r2, [r10]
	add	r3, sp, #12
	mov	r0, r5
	bl	TLan_MiiReadReg
	ldr	r3, .L21+8
	ldr	r2, [sp, #12]
	cmp	r2, r3
	ldreq	r9, .L21+20
	ldrne	r3, [r6, #4]
	ldrne	r2, [r8]
	ldreq	r3, [r6, #4]
	ldreq	r2, [r9]
	ldrne	r9, .L21+20
	str	r2, [r3]
	ldr	r1, [r8]
	ldr	r2, [r9]
	cmp	r1, #0
	str	r2, [r3, #4]
	blt	.L6
	ldr	r7, .L21+8
	ldr	fp, .L21+24
	b	.L11
.L8:
	ldr	r0, .L21+28
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r1, fp
	mov	r2, r4
	ldr	r0, [r0]
	bl	TLAN_DBG
	ldr	r2, [r6, #4]
	ldr	r3, [r9]
	ldr	r1, [r2, #4]
	cmp	r1, r3
	ldr	r3, [r8]
	bne	.L9
	cmp	r3, r4
	strne	r4, [r2, #4]
.L9:
	add	r4, r4, #1
	cmp	r4, r3
	bgt	.L20
.L11:
	ldr	r2, .L21+32
	mov	r1, r4
	ldr	r2, [r2]
	add	r3, sp, #8
	mov	r0, r5
	bl	TLan_MiiReadReg
	mov	r1, r4
	ldr	r2, [r10]
	add	r3, sp, #12
	mov	r0, r5
	bl	TLan_MiiReadReg
	ldr	r2, .L21+36
	mov	r1, r4
	ldr	r2, [r2]
	add	r3, sp, #16
	mov	r0, r5
	bl	TLan_MiiReadReg
	ldr	r3, [sp, #8]
	ldr	r2, [sp, #12]
	cmp	r3, r7
	ldr	r1, [sp, #16]
	bne	.L8
	cmp	r2, r7
	bne	.L8
	cmp	r1, r7
	ldreq	r3, [r8]
	bne	.L8
	add	r4, r4, #1
	cmp	r4, r3
	ble	.L11
.L20:
	ldr	r3, [r6, #4]
	ldr	r2, [r9]
	ldr	r1, [r3, #4]
	cmp	r1, r2
	movne	r3, #1
	strne	r3, [r6]
	bne	.L1
.L6:
	ldr	r3, [r3]
	cmp	r3, r2
	movne	r3, #0
	strne	r3, [r6]
	bne	.L1
.L13:
	ldr	r0, .L21+40
	bl	printk
	b	.L1
.L19:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC2
	.word	TLAN_ADAPTER_UNMANAGED_PHY
	.word	65535
	.word	TLAN_PHY_MAX_ADDR
	.word	MII_GEN_ID_HI
	.word	TLAN_PHY_NONE
	.word	.LC0
	.word	TLAN_DEBUG_GNRL
	.word	MII_GEN_CTL
	.word	MII_GEN_ID_LO
	.word	.LC1
	.size	TLan_PhyDetect, .-TLan_PhyDetect
	.comm	TLAN_PHY_NONE,4,4
	.comm	TLAN_PHY_MAX_ADDR,4,4
	.comm	TLAN_DEBUG_GNRL,4,4
	.comm	TLAN_ADAPTER_UNMANAGED_PHY,4,4
	.comm	MII_GEN_ID_LO,4,4
	.comm	MII_GEN_ID_HI,4,4
	.comm	MII_GEN_CTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
