	.file	"extr_ich8lan.c_e1000_phy_is_accessible_pchlan.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	e1000_phy_is_accessible_pchlan, @function
e1000_phy_is_accessible_pchlan:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, 2
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 0
	lea	r12, 4[rsp]
.L7:
	mov	esi, DWORD PTR MII_PHYSID1[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	e1e_rphy_locked@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L2
	mov	r13d, DWORD PTR 4[rsp]
	cmp	r13d, 65535
	je	.L2
	mov	esi, DWORD PTR MII_PHYSID2[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	e1e_rphy_locked@PLT
	test	rax, rax
	jne	.L22
	mov	ecx, DWORD PTR 4[rsp]
	cmp	ecx, 65535
	je	.L2
	mov	eax, DWORD PTR PHY_REVISION_MASK[rip]
	mov	edx, ecx
	mov	edi, DWORD PTR 8[rbp]
	sal	r13d, 16
	mov	rsi, QWORD PTR e1000_pch_lpt[rip]
	and	edx, eax
	or	r13d, edx
	mov	rdx, QWORD PTR 0[rbp]
	test	edi, edi
	jne	.L35
	test	r13d, r13d
	je	.L11
	not	eax
	mov	DWORD PTR 8[rbp], r13d
	and	eax, ecx
	mov	DWORD PTR 12[rbp], eax
	cmp	rsi, rdx
	jle	.L17
.L33:
	mov	eax, 1
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L36
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L22:
	.cfi_restore_state
	mov	rbx, rax
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	r14d, 1
	jne	.L37
	mov	rax, QWORD PTR e1000_pch_lpt[rip]
	cmp	QWORD PTR 0[rbp], rax
	jge	.L38
.L12:
	mov	rdi, rbp
	call	[QWORD PTR 24[rbp]]
	mov	rdi, rbp
	call	e1000_set_mdio_slow_mode_hv@PLT
	mov	rdi, rbp
	test	rax, rax
	je	.L39
	call	[QWORD PTR 16[rbp]]
.L20:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L38:
	test	rbx, rbx
	jne	.L20
.L17:
	mov	edi, DWORD PTR FWSM[rip]
	call	er32@PLT
	test	DWORD PTR E1000_ICH_FWSM_FW_VALID[rip], eax
	jne	.L33
	mov	esi, DWORD PTR CV_SMB_CTRL[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	e1e_rphy_locked@PLT
	mov	edx, DWORD PTR CV_SMB_CTRL_FORCE_SMBUS[rip]
	mov	esi, DWORD PTR CV_SMB_CTRL[rip]
	mov	rdi, rbp
	not	edx
	and	edx, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[rsp], edx
	call	e1e_wphy_locked@PLT
	mov	edi, DWORD PTR CTRL_EXT[rip]
	call	er32@PLT
	mov	esi, DWORD PTR E1000_CTRL_EXT_FORCE_SMBUS[rip]
	mov	edi, DWORD PTR CTRL_EXT[rip]
	not	esi
	and	esi, eax
	call	ew32@PLT
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L37:
	mov	r14d, 1
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L39:
	call	e1000e_get_phy_id@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	[QWORD PTR 16[rbp]]
	test	rbx, rbx
	jne	.L20
	mov	rdx, QWORD PTR 0[rbp]
	mov	rsi, QWORD PTR e1000_pch_lpt[rip]
.L9:
	cmp	rsi, rdx
	jg	.L33
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L35:
	cmp	edi, r13d
	je	.L9
.L11:
	cmp	rdx, rsi
	jl	.L12
	jmp	.L17
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	e1000_phy_is_accessible_pchlan, .-e1000_phy_is_accessible_pchlan
	.comm	e1000_pch_lpt,8,8
	.comm	PHY_REVISION_MASK,4,4
	.comm	MII_PHYSID2,4,4
	.comm	MII_PHYSID1,4,4
	.comm	FWSM,4,4
	.comm	E1000_ICH_FWSM_FW_VALID,4,4
	.comm	E1000_CTRL_EXT_FORCE_SMBUS,4,4
	.comm	CV_SMB_CTRL_FORCE_SMBUS,4,4
	.comm	CV_SMB_CTRL,4,4
	.comm	CTRL_EXT,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_ich8lan.c_e1000_phy_is_accessible_pchlan.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_phy_is_accessible_pchlan, %function
e1000_phy_is_accessible_pchlan:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r6, #2
	ldr	r2, .L37
	sub	sp, sp, #8
	ldr	r7, .L37+4
	ldr	r8, .L37+8
	ldr	r9, .L37+12
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	str	r3, [sp]
.L7:
	mov	r2, sp
	mov	r0, r4
	ldr	r1, [r7]
	bl	e1e_rphy_locked
	subs	r5, r0, #0
	bne	.L2
	ldr	r10, [sp]
	cmp	r10, r8
	beq	.L2
	mov	r2, sp
	mov	r0, r4
	ldr	r1, [r9]
	bl	e1e_rphy_locked
	cmp	r0, #0
	bne	.L22
	ldr	r3, [sp]
	cmp	r3, r8
	beq	.L2
	ldr	r2, .L37+16
	ldr	ip, [r4, #4]
	ldr	r0, [r2]
	ldr	r6, .L37+20
	and	r2, r3, r0
	cmp	ip, #0
	orr	r10, r2, r10, lsl #16
	ldr	r1, [r6]
	ldr	r2, [r4]
	bne	.L32
	cmp	r10, #0
	beq	.L11
	bic	r3, r3, r0
	cmp	r1, r2
	str	r3, [r4, #8]
	str	r10, [r4, #4]
	ble	.L17
.L30:
	mov	r0, #1
	b	.L1
.L22:
	mov	r5, r0
.L2:
	cmp	r6, #1
	bne	.L33
	ldr	r6, .L37+20
	ldr	r2, [r4]
	ldr	r3, [r6]
	cmp	r2, r3
	bge	.L34
.L12:
	ldr	r3, [r4, #16]
	mov	r0, r4
	blx	r3
	mov	r0, r4
	bl	e1000_set_mdio_slow_mode_hv
	cmp	r0, #0
	beq	.L35
	mov	r0, r4
	ldr	r3, [r4, #12]
	blx	r3
.L20:
	mov	r0, #0
.L1:
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L34:
	cmp	r5, #0
	bne	.L20
.L17:
	ldr	r3, .L37+24
	ldr	r0, [r3]
	bl	er32
	ldr	r3, .L37+28
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L30
	ldr	r6, .L37+32
	mov	r2, sp
	ldr	r1, [r6]
	mov	r0, r4
	bl	e1e_rphy_locked
	ldr	r3, .L37+36
	ldr	r2, [sp]
	ldr	r3, [r3]
	ldr	r5, .L37+40
	bic	r2, r2, r3
	ldr	r1, [r6]
	mov	r0, r4
	str	r2, [sp]
	bl	e1e_wphy_locked
	ldr	r0, [r5]
	bl	er32
	mov	r3, r0
	ldr	r2, .L37+44
	ldr	r0, [r5]
	ldr	r1, [r2]
	bic	r1, r3, r1
	bl	ew32
	b	.L30
.L33:
	mov	r6, #1
	b	.L7
.L35:
	mov	r0, r4
	bl	e1000e_get_phy_id
	mov	r5, r0
	ldr	r3, [r4, #12]
	mov	r0, r4
	blx	r3
	cmp	r5, #0
	bne	.L20
	ldr	r1, [r6]
	ldr	r2, [r4]
.L9:
	cmp	r1, r2
	ble	.L17
	mov	r0, #1
	b	.L1
.L32:
	cmp	ip, r10
	beq	.L9
.L11:
	cmp	r2, r1
	blt	.L12
	b	.L17
.L36:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	.LC0
	.word	MII_PHYSID1
	.word	65535
	.word	MII_PHYSID2
	.word	PHY_REVISION_MASK
	.word	e1000_pch_lpt
	.word	FWSM
	.word	E1000_ICH_FWSM_FW_VALID
	.word	CV_SMB_CTRL
	.word	CV_SMB_CTRL_FORCE_SMBUS
	.word	CTRL_EXT
	.word	E1000_CTRL_EXT_FORCE_SMBUS
	.size	e1000_phy_is_accessible_pchlan, .-e1000_phy_is_accessible_pchlan
	.comm	e1000_pch_lpt,4,4
	.comm	PHY_REVISION_MASK,4,4
	.comm	MII_PHYSID2,4,4
	.comm	MII_PHYSID1,4,4
	.comm	FWSM,4,4
	.comm	E1000_ICH_FWSM_FW_VALID,4,4
	.comm	E1000_CTRL_EXT_FORCE_SMBUS,4,4
	.comm	CV_SMB_CTRL_FORCE_SMBUS,4,4
	.comm	CV_SMB_CTRL,4,4
	.comm	CTRL_EXT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
