	.file	"extr_slicoss.c_slic_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to enable PCI device\n"
.LC1:
	.string	"failed to setup DMA\n"
.LC2:
	.string	"failed to obtain PCI regions\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"failed to alloc ethernet device\n"
	.section	.rodata.str1.1
.LC4:
	.string	"failed to map registers\n"
.LC5:
	.string	"failed to initialize driver\n"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"failed to register net device: %i\n"
	.text
	.p2align 4
	.type	slic_probe, @function
slic_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	lea	r13, 8[rbp]
	call	pci_enable_device@PLT
	test	eax, eax
	jne	.L20
	mov	rdi, rbp
	call	pci_set_master@PLT
	mov	rdi, rbp
	call	pci_try_set_mwi@PLT
	mov	rdi, rbp
	call	slic_configure_pci@PLT
	mov	edi, 32
	call	DMA_BIT_MASK@PLT
	mov	rdi, r13
	mov	esi, eax
	call	dma_set_mask@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L21
	mov	edi, 32
	call	DMA_BIT_MASK@PLT
	mov	rdi, r13
	mov	esi, eax
	call	dma_set_coherent_mask@PLT
	mov	esi, DWORD PTR DRV_NAME[rip]
	mov	rdi, rbp
	call	pci_request_regions@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L22
	mov	edi, 32
	call	alloc_etherdev@PLT
	mov	r14, rax
	test	rax, rax
	je	.L23
	mov	rsi, r13
	mov	rdi, rax
	call	SET_NETDEV_DEV@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	pci_set_drvdata@PLT
	mov	eax, DWORD PTR 16[rbp]
	mov	rdi, r14
	mov	DWORD PTR 24[r14], eax
	lea	rax, slic_netdev_ops[rip]
	mov	QWORD PTR 16[r14], rax
	mov	eax, DWORD PTR NETIF_F_RXCSUM[rip]
	or	DWORD PTR 12[r14], eax
	mov	DWORD PTR 8[r14], eax
	lea	rax, slic_ethtool_ops[rip]
	mov	QWORD PTR [r14], rax
	call	netdev_priv@PLT
	mov	rcx, QWORD PTR PCI_DEVICE_ID_ALACRITECH_OASIS[rip]
	mov	rbx, rax
	mov	eax, DWORD PTR SLIC_MODEL_MOJAVE[rip]
	cmp	QWORD PTR 0[rbp], rcx
	je	.L24
.L10:
	mov	DWORD PTR 28[rbx], eax
	mov	edi, DWORD PTR 12[rbp]
	call	slic_is_fiber@PLT
	mov	QWORD PTR 16[rbx], rbp
	xor	esi, esi
	mov	rdi, rbp
	mov	DWORD PTR 24[rbx], eax
	mov	QWORD PTR 8[rbx], r14
	call	pci_resource_len@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	r12d, eax
	call	pci_resource_start@PLT
	mov	esi, r12d
	mov	edi, eax
	call	ioremap_nocache@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	je	.L25
	mov	rdi, rbx
	call	slic_init@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L26
	mov	ecx, DWORD PTR SLIC_NAPI_WEIGHT[rip]
	mov	edx, DWORD PTR slic_poll[rip]
	lea	rsi, 4[rbx]
	mov	rdi, r14
	call	netif_napi_add@PLT
	mov	rdi, r14
	call	netif_carrier_off@PLT
	mov	rdi, r14
	call	register_netdev@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	edx, eax
	lea	rsi, .LC6[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
.L5:
	mov	rdi, rbp
	call	pci_disable_device@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	r12d, eax
	mov	rdi, r13
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	lea	rsi, .LC4[rip]
	mov	rdi, r13
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L12:
	mov	rdi, r14
	call	free_netdev@PLT
.L8:
	mov	rdi, rbp
	call	pci_release_regions@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L24:
	mov	eax, DWORD PTR SLIC_MODEL_OASIS[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rsi, .LC5[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
.L14:
	mov	edi, DWORD PTR [rbx]
	call	iounmap@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	slic_probe, .-slic_probe
	.comm	slic_poll,4,4
	.comm	slic_netdev_ops,4,4
	.comm	slic_ethtool_ops,4,4
	.comm	SLIC_NAPI_WEIGHT,4,4
	.comm	SLIC_MODEL_OASIS,4,4
	.comm	SLIC_MODEL_MOJAVE,4,4
	.comm	PCI_DEVICE_ID_ALACRITECH_OASIS,8,8
	.comm	NETIF_F_RXCSUM,4,4
	.comm	ENOMEM,4,4
	.comm	DRV_NAME,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_slicoss.c_slic_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to enable PCI device\012\000"
	.align	2
.LC1:
	.ascii	"failed to setup DMA\012\000"
	.align	2
.LC2:
	.ascii	"failed to obtain PCI regions\012\000"
	.align	2
.LC3:
	.ascii	"failed to alloc ethernet device\012\000"
	.align	2
.LC4:
	.ascii	"failed to map registers\012\000"
	.align	2
.LC5:
	.ascii	"failed to initialize driver\012\000"
	.align	2
.LC6:
	.ascii	"failed to register net device: %i\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	slic_probe, %function
slic_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	pci_enable_device
	subs	r4, r0, #0
	add	r7, r5, #4
	bne	.L20
	mov	r0, r5
	bl	pci_set_master
	mov	r0, r5
	bl	pci_try_set_mwi
	mov	r0, r5
	bl	slic_configure_pci
	mov	r0, #32
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r7
	bl	dma_set_mask
	subs	r4, r0, #0
	bne	.L21
	mov	r0, #32
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r7
	bl	dma_set_coherent_mask
	ldr	r3, .L26
	mov	r0, r5
	ldr	r1, [r3]
	bl	pci_request_regions
	subs	r4, r0, #0
	bne	.L22
	mov	r0, #24
	bl	alloc_etherdev
	subs	r6, r0, #0
	beq	.L23
	mov	r1, r7
	bl	SET_NETDEV_DEV
	mov	r1, r6
	mov	r0, r5
	bl	pci_set_drvdata
	ldr	r2, .L26+4
	ldr	r3, [r6, #8]
	ldr	r2, [r2]
	ldr	r0, [r5, #12]
	orr	r3, r3, r2
	ldr	r1, .L26+8
	str	r3, [r6, #8]
	ldr	r3, .L26+12
	str	r1, [r6, #12]
	str	r2, [r6, #4]
	str	r0, [r6, #16]
	str	r3, [r6]
	mov	r0, r6
	bl	netdev_priv
	ldr	r3, .L26+16
	ldr	r2, [r5]
	ldr	r3, [r3]
	mov	r8, r0
	cmp	r2, r3
	ldreq	r3, .L26+20
	ldrne	r3, .L26+24
	ldr	r3, [r3]
	str	r3, [r0, #20]
	ldr	r0, [r5, #8]
	bl	slic_is_fiber
	mov	r1, #0
	str	r0, [r8, #16]
	str	r5, [r8, #12]
	mov	r0, r5
	str	r6, [r8, #8]
	bl	pci_resource_start
	mov	r1, #0
	mov	r4, r0
	mov	r0, r5
	bl	pci_resource_len
	mov	r1, r0
	mov	r0, r4
	bl	ioremap_nocache
	cmp	r0, #0
	str	r0, [r8]
	beq	.L24
	mov	r0, r8
	bl	slic_init
	subs	r4, r0, #0
	bne	.L25
	ldr	r3, .L26+28
	ldr	r2, .L26+32
	ldr	r3, [r3]
	ldr	r2, [r2]
	add	r1, r8, #4
	mov	r0, r6
	bl	netif_napi_add
	mov	r0, r6
	bl	netif_carrier_off
	mov	r0, r6
	bl	register_netdev
	subs	r4, r0, #0
	beq	.L1
	mov	r0, r7
	mov	r2, r4
	ldr	r1, .L26+36
	bl	dev_err
	b	.L14
.L21:
	mov	r0, r7
	ldr	r1, .L26+40
	bl	dev_err
.L5:
	mov	r0, r5
	bl	pci_disable_device
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	mov	r0, r7
	ldr	r1, .L26+44
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	mov	r0, r7
	ldr	r1, .L26+48
	bl	dev_err
	ldr	r3, .L26+52
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L12:
	mov	r0, r6
	bl	free_netdev
.L8:
	mov	r0, r5
	bl	pci_release_regions
	b	.L5
.L22:
	mov	r0, r7
	ldr	r1, .L26+56
	bl	dev_err
	b	.L5
.L25:
	mov	r0, r7
	ldr	r1, .L26+60
	bl	dev_err
.L14:
	ldr	r0, [r8]
	bl	iounmap
	b	.L12
.L23:
	mov	r0, r7
	ldr	r1, .L26+64
	bl	dev_err
	ldr	r3, .L26+52
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L8
.L27:
	.align	2
.L26:
	.word	DRV_NAME
	.word	NETIF_F_RXCSUM
	.word	slic_netdev_ops
	.word	slic_ethtool_ops
	.word	PCI_DEVICE_ID_ALACRITECH_OASIS
	.word	SLIC_MODEL_OASIS
	.word	SLIC_MODEL_MOJAVE
	.word	SLIC_NAPI_WEIGHT
	.word	slic_poll
	.word	.LC6
	.word	.LC1
	.word	.LC0
	.word	.LC4
	.word	ENOMEM
	.word	.LC2
	.word	.LC5
	.word	.LC3
	.size	slic_probe, .-slic_probe
	.comm	slic_poll,4,4
	.comm	slic_netdev_ops,4,4
	.comm	slic_ethtool_ops,4,4
	.comm	SLIC_NAPI_WEIGHT,4,4
	.comm	SLIC_MODEL_OASIS,4,4
	.comm	SLIC_MODEL_MOJAVE,4,4
	.comm	PCI_DEVICE_ID_ALACRITECH_OASIS,4,4
	.comm	NETIF_F_RXCSUM,4,4
	.comm	ENOMEM,4,4
	.comm	DRV_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
