	.file	"extr_e1000_main.c_e1000_has_link.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	e1000_has_link
	.type	e1000_has_link, @function
e1000_has_link:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	eax, DWORD PTR [rdi]
	mov	rbp, rdi
	cmp	eax, 129
	je	.L2
	cmp	eax, 130
	je	.L3
	cmp	eax, 128
	je	.L4
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	e1000_check_for_link@PLT
	mov	edi, DWORD PTR STATUS[rip]
	call	er32@PLT
	test	DWORD PTR E1000_STATUS_LU[rip], eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	setne	al
	movzx	eax, al
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	call	e1000_check_for_link@PLT
	mov	eax, DWORD PTR 8[rbp]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR e1000_ce4100[rip]
	cmp	DWORD PTR 12[rdi], eax
	je	.L11
	mov	ecx, DWORD PTR 4[rdi]
	test	ecx, ecx
	jne	.L7
	mov	eax, 1
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	DWORD PTR 4[rdi], 1
.L7:
	mov	rdi, rbp
	call	e1000_check_for_link@PLT
	mov	edx, DWORD PTR 4[rbp]
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	test	edx, edx
	sete	al
	ret
	.cfi_endproc
.LFE0:
	.size	e1000_has_link, .-e1000_has_link
	.comm	e1000_ce4100,4,4
	.comm	STATUS,4,4
	.comm	E1000_STATUS_LU,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_e1000_main.c_e1000_has_link.c"
	.text
	.align	2
	.global	e1000_has_link
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_has_link, %function
e1000_has_link:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, lr}
	cmp	r3, #129
	beq	.L2
	cmp	r3, #130
	mov	r4, r0
	beq	.L3
	cmp	r3, #128
	beq	.L4
	mov	r0, #0
	pop	{r4, pc}
.L2:
	bl	e1000_check_for_link
	ldr	r3, .L11
	ldr	r0, [r3]
	bl	er32
	ldr	r3, .L11+4
	ldr	r3, [r3]
	tst	r0, r3
	movne	r0, #1
	moveq	r0, #0
	pop	{r4, pc}
.L4:
	bl	e1000_check_for_link
	ldr	r0, [r4, #8]
	pop	{r4, pc}
.L3:
	ldr	r3, .L11+8
	ldr	r2, [r0, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r3, #1
	streq	r3, [r0, #4]
	beq	.L7
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bne	.L7
	mov	r0, #1
	pop	{r4, pc}
.L7:
	mov	r0, r4
	bl	e1000_check_for_link
	ldr	r0, [r4, #4]
	clz	r0, r0
	lsr	r0, r0, #5
	pop	{r4, pc}
.L12:
	.align	2
.L11:
	.word	STATUS
	.word	E1000_STATUS_LU
	.word	e1000_ce4100
	.size	e1000_has_link, .-e1000_has_link
	.comm	e1000_ce4100,4,4
	.comm	STATUS,4,4
	.comm	E1000_STATUS_LU,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
