	.file	"extr_xlpge.c_nlm_xlpge_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nlm_xlpge_init, @function
nlm_xlpge_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR 16[rdi]
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR IFF_DRV_RUNNING[rip], eax
	jne	.L1
	mov	rbp, rdi
	mov	rdi, QWORD PTR 8[rdi]
	test	rdi, rdi
	jne	.L9
.L3:
	mov	rdi, rbp
	call	nlm_xlpge_gmac_config_speed@PLT
	mov	eax, DWORD PTR [rbx]
	or	eax, DWORD PTR IFF_DRV_RUNNING[rip]
	mov	rdi, rbp
	mov	DWORD PTR [rbx], eax
	mov	edx, eax
	mov	eax, DWORD PTR IFF_DRV_OACTIVE[rip]
	not	eax
	and	eax, edx
	mov	DWORD PTR [rbx], eax
	call	nlm_xlpge_port_enable@PLT
	mov	edx, DWORD PTR nlm_mii_pollstat[rip]
	mov	rcx, rbp
	mov	rdi, rbp
	mov	esi, DWORD PTR hz[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	callout_reset@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	call	device_get_softc@PLT
	mov	rdi, rax
	call	mii_mediachg@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	nlm_xlpge_init, .-nlm_xlpge_init
	.comm	nlm_mii_pollstat,4,4
	.comm	hz,4,4
	.comm	IFF_DRV_RUNNING,4,4
	.comm	IFF_DRV_OACTIVE,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_xlpge.c_nlm_xlpge_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nlm_xlpge_init, %function
nlm_xlpge_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L10
	ldr	r5, [r0, #8]
	ldr	r3, [r6]
	ldr	r2, [r5]
	tst	r2, r3
	popne	{r4, r5, r6, pc}
	mov	r4, r0
	ldr	r0, [r0, #4]
	cmp	r0, #0
	bne	.L9
.L3:
	mov	r0, r4
	bl	nlm_xlpge_gmac_config_speed
	ldr	r1, [r6]
	ldr	r3, [r5]
	ldr	r2, .L10+4
	orr	r3, r3, r1
	str	r3, [r5]
	ldr	r2, [r2]
	mov	r0, r4
	bic	r3, r3, r2
	str	r3, [r5]
	bl	nlm_xlpge_port_enable
	ldr	r3, .L10+8
	ldr	r2, .L10+12
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, r4
	pop	{r4, r5, r6, lr}
	b	callout_reset
.L9:
	bl	device_get_softc
	bl	mii_mediachg
	b	.L3
.L11:
	.align	2
.L10:
	.word	IFF_DRV_RUNNING
	.word	IFF_DRV_OACTIVE
	.word	hz
	.word	nlm_mii_pollstat
	.size	nlm_xlpge_init, .-nlm_xlpge_init
	.comm	nlm_mii_pollstat,4,4
	.comm	hz,4,4
	.comm	IFF_DRV_RUNNING,4,4
	.comm	IFF_DRV_OACTIVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
