	.file	"extr_spider_net.c_spider_net_setup_netdev.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"local-mac-address"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Failed to set MAC address: %i\n"
	.align 8
.LC2:
	.string	"Couldn't register net_device: %i\n"
	.section	.rodata.str1.1
.LC3:
	.string	"Initialized device %s.\n"
	.text
	.p2align 4
	.type	spider_net_setup_netdev, @function
spider_net_setup_netdev:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	rdi, rbx
	lea	rsi, 4[rax]
	call	SET_NETDEV_DEV@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, rbx
	call	pci_set_drvdata@PLT
	lea	rdi, 64[rbp]
	call	init_timer@PLT
	mov	rax, QWORD PTR spider_net_cleanup_tx_ring[rip]
	mov	QWORD PTR 72[rbp], rbp
	lea	rdi, 40[rbp]
	mov	QWORD PTR 64[rbp], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 12[rbx], eax
	mov	QWORD PTR 56[rbp], 0
	call	init_timer@PLT
	mov	QWORD PTR 48[rbp], rbp
	lea	rsi, 32[rbp]
	mov	rdi, rbx
	mov	rax, QWORD PTR spider_net_link_phy@GOTPCREL[rip]
	mov	ecx, DWORD PTR SPIDER_NET_NAPI_WEIGHT[rip]
	mov	edx, DWORD PTR spider_net_poll[rip]
	mov	QWORD PTR 40[rbp], rax
	mov	eax, DWORD PTR SPIDER_NET_RX_CSUM_DEFAULT[rip]
	mov	DWORD PTR 36[rbp], eax
	call	netif_napi_add@PLT
	mov	rdi, rbx
	call	spider_net_setup_netdev_ops@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	eax, DWORD PTR NETIF_F_IP_CSUM[rip]
	or	eax, DWORD PTR NETIF_F_LLTX[rip]
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR [rdi]
	mov	DWORD PTR 12[rbx], eax
	mov	QWORD PTR 24[rbp], 0
	mov	QWORD PTR 16[rbp], 0
	call	pci_device_to_OF_node@PLT
	test	rax, rax
	je	.L20
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	xor	edx, edx
	call	of_get_property@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L20
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	edi, DWORD PTR 4[rsp]
	call	memcpy@PLT
	lea	rsi, 4[rsp]
	mov	rdi, rbx
	call	spider_net_set_mac@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L22
.L6:
	mov	rdi, rbx
	call	register_netdev@PLT
	mov	rdi, rbp
	mov	r12d, eax
	test	eax, eax
	jne	.L23
	call	netif_msg_probe@PLT
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR 4[rbx]
	lea	rdi, .LC3[rip]
	call	pr_info@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	call	netif_msg_probe@PLT
	test	rax, rax
	je	.L1
	mov	rdi, QWORD PTR 0[rbp]
	mov	edx, r12d
	lea	rsi, .LC2[rip]
	add	rdi, 8
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rbp
	call	netif_msg_probe@PLT
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	lea	rdi, 8[rax]
	call	dev_err@PLT
	jmp	.L6
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	spider_net_setup_netdev, .-spider_net_setup_netdev
	.comm	spider_net_poll,4,4
	.comm	spider_net_cleanup_tx_ring,8,8
	.comm	SPIDER_NET_RX_CSUM_DEFAULT,4,4
	.comm	SPIDER_NET_NAPI_WEIGHT,4,4
	.comm	NETIF_F_LLTX,4,4
	.comm	NETIF_F_IP_CSUM,4,4
	.comm	ETH_ALEN,4,4
	.comm	EIO,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_spider_net.c_spider_net_setup_netdev.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"local-mac-address\000"
	.align	2
.LC1:
	.ascii	"Failed to set MAC address: %i\012\000"
	.align	2
.LC2:
	.ascii	"Couldn't register net_device: %i\012\000"
	.align	2
.LC3:
	.ascii	"Initialized device %s.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spider_net_setup_netdev, %function
spider_net_setup_netdev:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r6, #0
	ldr	r5, [r0]
	ldr	r1, [r0, #4]
	ldr	r3, .L23
	sub	sp, sp, #8
	add	r1, r1, #4
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	SET_NETDEV_DEV
	mov	r1, r5
	ldr	r0, [r4, #4]
	bl	pci_set_drvdata
	add	r0, r4, #36
	bl	init_timer
	ldr	r3, [r4, #4]
	ldr	r2, .L23+4
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r4, [r4, #40]
	str	r2, [r4, #36]
	add	r0, r4, #24
	str	r3, [r5, #12]
	str	r6, [r4, #32]
	bl	init_timer
	ldr	r3, .L23+8
	ldr	r0, .L23+12
	ldr	r1, [r3]
	ldr	r2, .L23+16
	ldr	r3, .L23+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r0, [r4, #24]
	str	r1, [r4, #20]
	mov	r0, r5
	add	r1, r4, #16
	str	r4, [r4, #28]
	bl	netif_napi_add
	mov	r0, r5
	bl	spider_net_setup_netdev_ops
	ldr	r2, .L23+24
	ldr	r3, .L23+28
	ldr	r0, [r4, #4]
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r0]
	orr	r3, r3, r1
	str	r3, [r5]
	str	r2, [r5, #12]
	str	r6, [r4, #12]
	str	r6, [r4, #8]
	bl	pci_device_to_OF_node
	cmp	r0, r6
	beq	.L18
	ldr	r1, .L23+32
	mov	r2, r6
	bl	of_get_property
	subs	r1, r0, #0
	beq	.L18
	ldr	r3, .L23+36
	ldr	r0, [sp]
	ldr	r2, [r3]
	bl	memcpy
	mov	r1, sp
	mov	r0, r5
	bl	spider_net_set_mac
	subs	r6, r0, #0
	bne	.L20
.L6:
	mov	r0, r5
	bl	register_netdev
	subs	r6, r0, #0
	mov	r0, r4
	bne	.L21
	bl	netif_msg_probe
	cmp	r0, #0
	beq	.L1
	ldr	r1, [r5, #4]
	ldr	r0, .L23+40
	bl	pr_info
	mov	r0, r6
	b	.L1
.L18:
	ldr	r3, .L23+44
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L21:
	bl	netif_msg_probe
	cmp	r0, #0
	moveq	r0, r6
	beq	.L1
	ldr	r0, [r4]
	mov	r2, r6
	ldr	r1, .L23+48
	add	r0, r0, #8
	bl	dev_err
	mov	r0, r6
	b	.L1
.L20:
	mov	r0, r4
	bl	netif_msg_probe
	cmp	r0, #0
	beq	.L6
	ldr	r0, [r4]
	mov	r2, r6
	ldr	r1, .L23+52
	add	r0, r0, #8
	bl	dev_err
	b	.L6
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC4
	.word	spider_net_cleanup_tx_ring
	.word	SPIDER_NET_RX_CSUM_DEFAULT
	.word	spider_net_link_phy
	.word	spider_net_poll
	.word	SPIDER_NET_NAPI_WEIGHT
	.word	NETIF_F_LLTX
	.word	NETIF_F_IP_CSUM
	.word	.LC0
	.word	ETH_ALEN
	.word	.LC3
	.word	EIO
	.word	.LC2
	.word	.LC1
	.size	spider_net_setup_netdev, .-spider_net_setup_netdev
	.comm	spider_net_poll,4,4
	.comm	spider_net_cleanup_tx_ring,4,4
	.comm	SPIDER_NET_RX_CSUM_DEFAULT,4,4
	.comm	SPIDER_NET_NAPI_WEIGHT,4,4
	.comm	NETIF_F_LLTX,4,4
	.comm	NETIF_F_IP_CSUM,4,4
	.comm	ETH_ALEN,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
