	.file	"extr_skge.c_skge_devinit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	skge_devinit, @function
skge_devinit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, 72
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	alloc_etherdev@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	rsi, QWORD PTR 16[rbp]
	mov	rdi, rax
	call	SET_NETDEV_DEV@PLT
	lea	rax, skge_netdev_ops[rip]
	mov	QWORD PTR 40[r12], rax
	lea	rax, skge_ethtool_ops[rip]
	mov	QWORD PTR 32[r12], rax
	mov	eax, DWORD PTR TX_WATCHDOG[rip]
	mov	DWORD PTR 24[r12], eax
	mov	rax, QWORD PTR 16[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR 20[r12], eax
	mov	eax, DWORD PTR ETH_ZLEN[rip]
	mov	DWORD PTR 16[r12], eax
	mov	eax, DWORD PTR ETH_JUMBO_MTU[rip]
	mov	DWORD PTR 12[r12], eax
	test	ebx, ebx
	jne	.L18
.L3:
	mov	rdi, r12
	call	netdev_priv@PLT
	mov	ecx, DWORD PTR NAPI_WEIGHT[rip]
	mov	edx, DWORD PTR skge_poll[rip]
	mov	rdi, r12
	mov	rbx, rax
	lea	rsi, 64[rax]
	call	netif_napi_add@PLT
	mov	QWORD PTR 56[rbx], r12
	mov	esi, DWORD PTR default_msg[rip]
	mov	QWORD PTR 48[rbx], rbp
	mov	edi, DWORD PTR debug[rip]
	call	netif_msg_init@PLT
	mov	rdi, rbp
	mov	DWORD PTR 40[rbx], eax
	mov	eax, DWORD PTR DEFAULT_TX_RING_SIZE[rip]
	mov	DWORD PTR 36[rbx], eax
	mov	eax, DWORD PTR DEFAULT_RX_RING_SIZE[rip]
	mov	DWORD PTR 32[rbx], eax
	mov	eax, DWORD PTR AUTONEG_ENABLE[rip]
	mov	DWORD PTR 28[rbx], eax
	mov	eax, DWORD PTR FLOW_MODE_SYM_OR_REM[rip]
	mov	QWORD PTR [rbx], -1
	mov	DWORD PTR 24[rbx], eax
	call	skge_supported_modes@PLT
	mov	rdi, QWORD PTR 16[rbp]
	mov	DWORD PTR 20[rbx], eax
	call	device_can_wakeup@PLT
	test	rax, rax
	jne	.L19
.L4:
	mov	rdx, QWORD PTR 8[rbp]
	movsx	rax, r13d
	mov	rdi, rbp
	mov	QWORD PTR [rdx+rax*8], r12
	mov	DWORD PTR 12[rbx], r13d
	call	is_genesis@PLT
	test	rax, rax
	jne	.L20
	mov	eax, DWORD PTR NETIF_F_IP_CSUM[rip]
	or	eax, DWORD PTR NETIF_F_SG[rip]
	or	eax, DWORD PTR NETIF_F_RXCSUM[rip]
	or	DWORD PTR [r12], eax
	mov	DWORD PTR 4[r12], eax
.L6:
	mov	rsi, QWORD PTR B2_MAC_1[rip]
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR 8[r12]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	add	rax, rsi
	lea	esi, 0[0+r13*8]
	movsx	rsi, esi
	add	rsi, rax
	call	memcpy_fromio@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	eax, DWORD PTR NETIF_F_HIGHDMA[rip]
	or	DWORD PTR [r12], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	mov	esi, DWORD PTR xm_link_timer[rip]
	lea	rdi, 16[rbx]
	xor	edx, edx
	call	timer_setup@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, rbp
	call	wol_supported@PLT
	and	eax, DWORD PTR WAKE_MAGIC[rip]
	mov	rdi, QWORD PTR 16[rbp]
	mov	DWORD PTR 8[rbx], eax
	mov	esi, eax
	call	device_set_wakeup_enable@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	skge_devinit, .-skge_devinit
	.comm	xm_link_timer,4,4
	.comm	skge_poll,4,4
	.comm	skge_netdev_ops,4,4
	.comm	skge_ethtool_ops,4,4
	.comm	default_msg,4,4
	.comm	debug,4,4
	.comm	WAKE_MAGIC,4,4
	.comm	TX_WATCHDOG,4,4
	.comm	NETIF_F_SG,4,4
	.comm	NETIF_F_RXCSUM,4,4
	.comm	NETIF_F_IP_CSUM,4,4
	.comm	NETIF_F_HIGHDMA,4,4
	.comm	NAPI_WEIGHT,4,4
	.comm	FLOW_MODE_SYM_OR_REM,4,4
	.comm	ETH_ZLEN,4,4
	.comm	ETH_JUMBO_MTU,4,4
	.comm	ETH_ALEN,4,4
	.comm	DEFAULT_TX_RING_SIZE,4,4
	.comm	DEFAULT_RX_RING_SIZE,4,4
	.comm	B2_MAC_1,8,8
	.comm	AUTONEG_ENABLE,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_devinit.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	skge_devinit, %function
skge_devinit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r0, #56
	mov	r7, r1
	mov	r5, r2
	bl	alloc_etherdev
	subs	r4, r0, #0
	beq	.L1
	ldr	r1, [r6, #8]
	bl	SET_NETDEV_DEV
	ldr	r2, .L20
	ldr	r3, [r6, #8]
	ldr	r2, [r2]
	ldr	r3, [r3, #4]
	str	r2, [r4, #24]
	ldr	r2, .L20+4
	cmp	r5, #0
	str	r2, [r4, #32]
	str	r3, [r4, #20]
	ldrne	r2, .L20+8
	ldr	r3, .L20+12
	ldr	r0, .L20+16
	ldr	r1, .L20+20
	ldrne	r2, [r2]
	str	r3, [r4, #28]
	ldrne	r3, [r4]
	ldr	r0, [r0]
	ldr	r1, [r1]
	orrne	r3, r3, r2
	strne	r3, [r4]
	str	r0, [r4, #16]
	str	r1, [r4, #12]
	mov	r0, r4
	bl	netdev_priv
	mov	r5, r0
	ldr	r3, .L20+24
	ldr	r2, .L20+28
	add	r1, r0, #52
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	netif_napi_add
	ldr	r2, .L20+32
	ldr	r3, .L20+36
	ldr	r1, [r2]
	ldr	r0, [r3]
	str	r4, [r5, #48]
	str	r6, [r5, #44]
	bl	netif_msg_init
	mvn	r3, #0
	ldr	lr, .L20+40
	ldr	ip, .L20+44
	ldr	r1, .L20+48
	ldr	r2, .L20+52
	ldr	lr, [lr]
	ldr	ip, [ip]
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r0, [r5, #40]
	str	lr, [r5, #36]
	str	ip, [r5, #32]
	str	r1, [r5, #28]
	str	r2, [r5, #24]
	str	r3, [r5]
	str	r3, [r5, #4]
	mov	r0, r6
	bl	skge_supported_modes
	mov	r3, r0
	ldr	r0, [r6, #8]
	str	r3, [r5, #20]
	bl	device_can_wakeup
	cmp	r0, #0
	bne	.L18
.L4:
	ldr	r3, [r6, #4]
	mov	r0, r6
	str	r4, [r3, r7, lsl #2]
	str	r7, [r5, #12]
	bl	is_genesis
	cmp	r0, #0
	bne	.L19
	ldr	r3, .L20+56
	ldr	r2, .L20+60
	ldr	r1, .L20+64
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r2, [r4]
	orr	r3, r3, r1
	orr	r2, r2, r3
	stm	r4, {r2, r3}
.L6:
	ldr	r3, .L20+68
	ldr	r1, [r6]
	ldr	r2, [r3]
	ldr	r3, .L20+72
	add	r1, r1, r2
	ldr	r0, [r4, #8]
	ldr	r2, [r3]
	add	r1, r1, r7, lsl #3
	bl	memcpy_fromio
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r0, r6
	bl	wol_supported
	mov	r1, r0
	ldr	r3, .L20+76
	ldr	r0, [r6, #8]
	ldr	r3, [r3]
	and	r1, r1, r3
	str	r1, [r5, #8]
	bl	device_set_wakeup_enable
	b	.L4
.L19:
	ldr	r3, .L20+80
	mov	r2, #0
	ldr	r1, [r3]
	add	r0, r5, #16
	bl	timer_setup
	b	.L6
.L21:
	.align	2
.L20:
	.word	TX_WATCHDOG
	.word	skge_netdev_ops
	.word	NETIF_F_HIGHDMA
	.word	skge_ethtool_ops
	.word	ETH_ZLEN
	.word	ETH_JUMBO_MTU
	.word	NAPI_WEIGHT
	.word	skge_poll
	.word	default_msg
	.word	debug
	.word	DEFAULT_TX_RING_SIZE
	.word	DEFAULT_RX_RING_SIZE
	.word	AUTONEG_ENABLE
	.word	FLOW_MODE_SYM_OR_REM
	.word	NETIF_F_IP_CSUM
	.word	NETIF_F_SG
	.word	NETIF_F_RXCSUM
	.word	B2_MAC_1
	.word	ETH_ALEN
	.word	WAKE_MAGIC
	.word	xm_link_timer
	.size	skge_devinit, .-skge_devinit
	.comm	xm_link_timer,4,4
	.comm	skge_poll,4,4
	.comm	skge_netdev_ops,4,4
	.comm	skge_ethtool_ops,4,4
	.comm	default_msg,4,4
	.comm	debug,4,4
	.comm	WAKE_MAGIC,4,4
	.comm	TX_WATCHDOG,4,4
	.comm	NETIF_F_SG,4,4
	.comm	NETIF_F_RXCSUM,4,4
	.comm	NETIF_F_IP_CSUM,4,4
	.comm	NETIF_F_HIGHDMA,4,4
	.comm	NAPI_WEIGHT,4,4
	.comm	FLOW_MODE_SYM_OR_REM,4,4
	.comm	ETH_ZLEN,4,4
	.comm	ETH_JUMBO_MTU,4,4
	.comm	ETH_ALEN,4,4
	.comm	DEFAULT_TX_RING_SIZE,4,4
	.comm	DEFAULT_RX_RING_SIZE,4,4
	.comm	B2_MAC_1,4,4
	.comm	AUTONEG_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
