	.file	"extr_skge.c_skge_up.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"enabling interface\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"pci_alloc_consistent region crosses 4G boundary\n"
	.align 8
.LC2:
	.string	"Unable to allocate interrupt %d error: %d\n"
	.text
	.p2align 4
	.type	skge_up, @function
skge_up:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	netdev_priv@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	r12, QWORD PTR 112[rax]
	movsx	r13, DWORD PTR [rax]
	mov	r15, rax
	call	is_valid_ether_addr@PLT
	test	eax, eax
	jne	.L2
	mov	ebx, DWORD PTR EINVAL[rip]
	neg	ebx
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, ebx
	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 108[r15]
	mov	esi, DWORD PTR ifup[rip]
	lea	rcx, .LC0[rip]
	mov	rdi, r15
	call	netif_info@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR RX_BUF_SIZE[rip]
	cmp	rdx, rax
	jle	.L4
	mov	rax, QWORD PTR ETH_HLEN[rip]
	add	rax, rdx
.L4:
	movsx	r14, DWORD PTR 40[r15]
	mov	QWORD PTR 8[r15], rax
	lea	rdx, 24[r15]
	mov	rdi, QWORD PTR 16[r12]
	lea	rax, 0[0+r14*4]
	mov	rcx, rax
	mov	QWORD PTR 8[rsp], rax
	movsx	rax, DWORD PTR 72[r15]
	lea	rsi, [rcx+rax*4]
	mov	QWORD PTR 16[r15], rsi
	call	pci_alloc_consistent@PLT
	mov	ebx, DWORD PTR ENOMEM[rip]
	mov	QWORD PTR 32[r15], rax
	neg	ebx
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR 24[r15]
	and	edi, 7
	call	BUG_ON@PLT
	mov	edi, DWORD PTR 24[r15]
	call	upper_32_bits@PLT
	mov	edi, DWORD PTR 24[r15]
	add	edi, DWORD PTR 16[r15]
	mov	rbx, rax
	call	upper_32_bits@PLT
	cmp	rbx, rax
	je	.L6
	mov	rax, QWORD PTR 16[r12]
	lea	rsi, .LC1[rip]
	lea	rdi, 4[rax]
	call	dev_err@PLT
	mov	ebx, DWORD PTR EINVAL[rip]
	neg	ebx
.L7:
	movsx	rcx, DWORD PTR 24[r15]
	mov	rdx, QWORD PTR 32[r15]
	mov	rdi, QWORD PTR 16[r12]
	mov	esi, DWORD PTR 16[r15]
	call	pci_free_consistent@PLT
	mov	QWORD PTR 32[r15], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	movsx	rdx, DWORD PTR 24[r15]
	mov	rsi, QWORD PTR 32[r15]
	lea	rdi, 40[r15]
	call	skge_ring_alloc@PLT
	mov	ebx, eax
	test	eax, eax
	jne	.L7
	mov	rdi, rbp
	call	skge_rx_fill@PLT
	mov	ebx, eax
	test	eax, eax
	je	.L17
.L8:
	mov	rdi, r15
	call	skge_rx_clean@PLT
	mov	edi, DWORD PTR 64[r15]
	call	kfree@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rsi, QWORD PTR 32[r15]
	sal	r14, 4
	movsx	rdx, DWORD PTR 24[r15]
	lea	rdi, 72[r15]
	add	rdx, QWORD PTR 8[rsp]
	add	rsi, r14
	call	skge_ring_alloc@PLT
	mov	ebx, eax
	test	eax, eax
	jne	.L8
	cmp	DWORD PTR [r12], 1
	je	.L18
.L9:
	mov	rdi, rbp
	lea	r14, 32[r12]
	call	netif_carrier_off@PLT
	mov	rdi, r14
	call	spin_lock_bh@PLT
	mov	rdi, r12
	call	is_genesis@PLT
	mov	esi, r13d
	mov	rdi, r12
	test	rax, rax
	je	.L10
	call	genesis_mac_init@PLT
.L11:
	mov	rdi, r14
	call	spin_unlock_bh@PLT
	mov	esi, DWORD PTR 8[r12]
	mov	eax, DWORD PTR 4[r12]
	mov	rdi, r12
	mov	ecx, DWORD PTR [r12]
	sub	eax, esi
	add	ecx, ecx
	cdq
	idiv	ecx
	mov	ecx, eax
	mov	eax, r13d
	imul	eax, ecx
	mov	DWORD PTR 8[rsp], ecx
	lea	r14d, [rsi+rax*2]
	mov	rax, QWORD PTR rxqaddr[rip]
	mov	edx, r14d
	mov	esi, DWORD PTR [rax+r13*4]
	call	skge_ramset@PLT
	mov	rax, QWORD PTR rxqaddr[rip]
	mov	rdx, QWORD PTR 48[r15]
	mov	rdi, r15
	mov	esi, DWORD PTR [rax+r13*4]
	call	skge_qset@PLT
	mov	rax, QWORD PTR 80[r15]
	xor	edi, edi
	cmp	QWORD PTR 88[r15], rax
	setne	dil
	call	BUG_ON@PLT
	mov	rax, QWORD PTR txqaddr[rip]
	mov	ecx, DWORD PTR 8[rsp]
	mov	rdi, r12
	mov	esi, DWORD PTR [rax+r13*4]
	lea	edx, [rcx+r14]
	call	skge_ramset@PLT
	mov	rax, QWORD PTR txqaddr[rip]
	mov	rdx, QWORD PTR 88[r15]
	mov	rdi, r15
	mov	esi, DWORD PTR [rax+r13*4]
	call	skge_qset@PLT
	xor	eax, eax
	call	wmb@PLT
	mov	rax, QWORD PTR rxqaddr[rip]
	mov	esi, DWORD PTR Q_CSR[rip]
	mov	r14d, DWORD PTR CSR_START[rip]
	or	r14d, DWORD PTR CSR_IRQ_CL_F[rip]
	mov	edi, DWORD PTR [rax+r13*4]
	call	Q_ADDR@PLT
	mov	edx, r14d
	mov	rdi, r12
	lea	r14, 24[r12]
	mov	esi, eax
	call	skge_write8@PLT
	mov	esi, DWORD PTR LED_MODE_ON[rip]
	mov	rdi, r15
	call	skge_led@PLT
	mov	rdi, r14
	call	spin_lock_irq@PLT
	mov	rax, QWORD PTR portmask[rip]
	mov	esi, DWORD PTR B0_IMSK[rip]
	mov	rdi, r12
	mov	edx, DWORD PTR [rax+r13*4]
	or	edx, DWORD PTR 28[r12]
	mov	DWORD PTR 28[r12], edx
	call	skge_write32@PLT
	mov	esi, DWORD PTR B0_IMSK[rip]
	mov	rdi, r12
	call	skge_read32@PLT
	mov	rdi, r14
	call	spin_unlock_irq@PLT
	lea	rdi, 104[r15]
	call	napi_enable@PLT
	mov	rdi, rbp
	call	skge_set_multicast@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	call	yukon_mac_init@PLT
	jmp	.L11
.L18:
	mov	rax, QWORD PTR 16[r12]
	mov	ecx, DWORD PTR 8[rbp]
	mov	r8, r12
	mov	edx, DWORD PTR IRQF_SHARED[rip]
	mov	esi, DWORD PTR skge_intr[rip]
	mov	edi, DWORD PTR [rax]
	call	request_irq@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L9
	mov	rax, QWORD PTR 16[r12]
	mov	ecx, r14d
	mov	rdi, rbp
	mov	ebx, r14d
	lea	rsi, .LC2[rip]
	mov	edx, DWORD PTR [rax]
	call	netdev_err@PLT
	mov	edi, DWORD PTR 96[r15]
	call	kfree@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	skge_up, .-skge_up
	.comm	txqaddr,8,8
	.comm	skge_intr,4,4
	.comm	rxqaddr,8,8
	.comm	portmask,8,8
	.comm	ifup,4,4
	.comm	RX_BUF_SIZE,8,8
	.comm	Q_CSR,4,4
	.comm	LED_MODE_ON,4,4
	.comm	IRQF_SHARED,4,4
	.comm	ETH_HLEN,8,8
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	CSR_START,4,4
	.comm	CSR_IRQ_CL_F,4,4
	.comm	B0_IMSK,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_skge.c_skge_up.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"enabling interface\012\000"
	.align	2
.LC1:
	.ascii	"pci_alloc_consistent region crosses 4G boundary\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"Unable to allocate interrupt %d error: %d\012\000"
	.global	__aeabi_idiv
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	skge_up, %function
skge_up:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r6, r0
	bl	netdev_priv
	mov	r4, r0
	ldr	r0, [r6, #8]
	ldr	r7, [r4, #60]
	ldr	r9, [r4]
	bl	is_valid_ether_addr
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L20
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r2, .L20+4
	ldr	r3, .L20+8
	ldr	r1, [r2]
	mov	r0, r4
	ldr	r2, [r4, #56]
	bl	netif_info
	ldr	r3, .L20+12
	ldr	r2, [r6]
	ldr	r3, [r3]
	ldr	r1, [r4, #36]
	cmp	r2, r3
	ldrgt	r3, .L20+16
	ldr	r8, [r4, #20]
	ldrgt	r3, [r3]
	lsl	r1, r1, #2
	addgt	r3, r2, r3
	add	r1, r1, r8, lsl #2
	ldr	r0, [r7, #12]
	str	r3, [r4, #4]
	str	r1, [r4, #8]
	add	r2, r4, #12
	bl	pci_alloc_consistent
	cmp	r0, #0
	str	r0, [r4, #16]
	lsl	r10, r8, #2
	beq	.L17
	ldr	r0, [r4, #12]
	and	r0, r0, #7
	bl	BUG_ON
	ldr	r0, [r4, #12]
	bl	upper_32_bits
	ldr	r2, [r4, #12]
	ldr	r3, [r4, #8]
	mov	r5, r0
	add	r0, r2, r3
	bl	upper_32_bits
	cmp	r5, r0
	beq	.L6
	ldr	r0, [r7, #12]
	ldr	r1, .L20+20
	add	r0, r0, #4
	bl	dev_err
	ldr	r3, .L20
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L7:
	ldr	r3, [r4, #12]
	ldr	r0, [r7, #12]
	ldr	r2, [r4, #16]
	ldr	r1, [r4, #8]
	bl	pci_free_consistent
	mov	r3, #0
	mov	r0, r5
	str	r3, [r4, #16]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #16]
	add	r0, r4, #20
	bl	skge_ring_alloc
	subs	r5, r0, #0
	bne	.L7
	mov	r0, r6
	bl	skge_rx_fill
	subs	r5, r0, #0
	beq	.L18
.L8:
	mov	r0, r4
	bl	skge_rx_clean
	ldr	r0, [r4, #32]
	bl	kfree
	b	.L7
.L17:
	ldr	r3, .L20+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #16]
	add	r2, r10, r2
	add	r1, r1, r8, lsl #4
	add	r0, r4, #36
	bl	skge_ring_alloc
	subs	r5, r0, #0
	bne	.L8
	ldr	r3, [r7]
	cmp	r3, #1
	beq	.L19
.L9:
	mov	r0, r6
	add	r8, r7, #24
	bl	netif_carrier_off
	mov	r0, r8
	bl	spin_lock_bh
	mov	r0, r7
	bl	is_genesis
	cmp	r0, #0
	mov	r1, r9
	mov	r0, r7
	beq	.L10
	bl	genesis_mac_init
.L11:
	mov	r0, r8
	bl	spin_unlock_bh
	ldmib	r7, {r0, r8}
	ldr	r1, [r7]
	sub	r0, r0, r8
	lsl	r1, r1, #1
	bl	__aeabi_idiv
	mul	r2, r0, r9
	ldr	r10, .L20+28
	add	r8, r8, r2, lsl #1
	ldr	r1, [r10]
	mov	r3, r0
	mov	r2, r8
	ldr	r1, [r1, r9, lsl #2]
	str	r0, [sp, #12]
	mov	r0, r7
	bl	skge_ramset
	ldr	r1, [r10]
	ldr	r2, [r4, #24]
	ldr	r1, [r1, r9, lsl #2]
	mov	r0, r4
	bl	skge_qset
	ldr	r2, [r4, #40]
	ldr	r0, [r4, #44]
	ldr	fp, .L20+32
	subs	r0, r0, r2
	movne	r0, #1
	bl	BUG_ON
	ldr	r3, [sp, #12]
	ldr	r1, [fp]
	add	r2, r3, r8
	ldr	r1, [r1, r9, lsl #2]
	mov	r0, r7
	bl	skge_ramset
	ldr	r3, [fp]
	ldr	r2, [r4, #44]
	ldr	r1, [r3, r9, lsl #2]
	mov	r0, r4
	bl	skge_qset
	bl	wmb
	ldr	r2, [r10]
	ldr	r3, .L20+36
	ldr	r0, [r2, r9, lsl #2]
	ldr	r1, [r3]
	bl	Q_ADDR
	ldr	r2, .L20+40
	ldr	r3, .L20+44
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, r0
	orr	r2, r2, r3
	mov	r0, r7
	bl	skge_write8
	ldr	r3, .L20+48
	add	r8, r7, #16
	ldr	r1, [r3]
	mov	r0, r4
	bl	skge_led
	mov	r0, r8
	bl	spin_lock_irq
	ldr	r2, .L20+52
	ldr	r3, [r7, #20]
	ldr	r2, [r2]
	ldr	r10, .L20+56
	ldr	r2, [r2, r9, lsl #2]
	ldr	r1, [r10]
	orr	r2, r2, r3
	str	r2, [r7, #20]
	mov	r0, r7
	bl	skge_write32
	ldr	r1, [r10]
	mov	r0, r7
	bl	skge_read32
	mov	r0, r8
	bl	spin_unlock_irq
	add	r0, r4, #52
	bl	napi_enable
	mov	r0, r6
	bl	skge_set_multicast
	b	.L1
.L10:
	bl	yukon_mac_init
	b	.L11
.L19:
	ldr	r3, [r7, #12]
	ldr	r2, .L20+60
	ldr	r0, [r3]
	ldr	r3, .L20+64
	str	r7, [sp]
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r6, #4]
	bl	request_irq
	subs	r8, r0, #0
	beq	.L9
	ldr	r3, [r7, #12]
	mov	r0, r6
	ldr	r2, [r3]
	ldr	r1, .L20+68
	mov	r3, r8
	bl	netdev_err
	ldr	r0, [r4, #48]
	mov	r5, r8
	bl	kfree
	b	.L8
.L21:
	.align	2
.L20:
	.word	EINVAL
	.word	ifup
	.word	.LC0
	.word	RX_BUF_SIZE
	.word	ETH_HLEN
	.word	.LC1
	.word	ENOMEM
	.word	rxqaddr
	.word	txqaddr
	.word	Q_CSR
	.word	CSR_START
	.word	CSR_IRQ_CL_F
	.word	LED_MODE_ON
	.word	portmask
	.word	B0_IMSK
	.word	IRQF_SHARED
	.word	skge_intr
	.word	.LC2
	.size	skge_up, .-skge_up
	.comm	txqaddr,4,4
	.comm	skge_intr,4,4
	.comm	rxqaddr,4,4
	.comm	portmask,4,4
	.comm	ifup,4,4
	.comm	RX_BUF_SIZE,4,4
	.comm	Q_CSR,4,4
	.comm	LED_MODE_ON,4,4
	.comm	IRQF_SHARED,4,4
	.comm	ETH_HLEN,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	CSR_START,4,4
	.comm	CSR_IRQ_CL_F,4,4
	.comm	B0_IMSK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
