	.file	"extr_ethernet-rx.c_cvm_oct_rx_initialize.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Ethernet"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Could not acquire Ethernet IRQ %d\n"
	.align 8
.LC2:
	.string	"No net_devices were allocated."
	.text
	.p2align 4
	.globl	cvm_oct_rx_initialize
	.type	cvm_oct_rx_initialize, @function
cvm_oct_rx_initialize:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR TOTAL_NUMBER_OF_PORTS[rip]
	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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	edx, edx
	jle	.L2
	mov	rax, QWORD PTR cvm_oct_device[rip]
	sub	edx, 1
	lea	rdx, 8[rax+rdx*8]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	add	rax, 8
	cmp	rax, rdx
	je	.L2
.L4:
	mov	r12, QWORD PTR [rax]
	test	r12, r12
	je	.L20
.L3:
	xor	ebx, ebx
	lea	r13, .LC0[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	call	CVMX_SSO_WQ_INT_THRX@PLT
	movabs	rsi, 4294967297
	mov	edi, eax
	call	cvmx_write_csr@PLT
	mov	edi, DWORD PTR CVMX_SSO_WQ_INT_PC[rip]
	mov	esi, 5
	call	cvmx_write_csr@PLT
.L9:
	mov	rdi, QWORD PTR oct_rx_group[rip]
	add	rdi, rbp
	add	rdi, 4
	call	napi_schedule@PLT
.L6:
	add	rbx, 1
.L5:
	mov	rdi, QWORD PTR oct_rx_group[rip]
	mov	r14d, ebx
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jle	.L21
	mov	edi, ebx
	call	BIT@PLT
	test	DWORD PTR pow_receive_groups[rip], eax
	je	.L6
	mov	rsi, QWORD PTR oct_rx_group[rip]
	mov	rbp, rbx
	mov	ecx, DWORD PTR rx_napi_weight[rip]
	mov	rdi, r12
	sal	rbp, 4
	mov	edx, DWORD PTR cvm_oct_napi_poll[rip]
	add	rsi, rbp
	add	rsi, 4
	call	netif_napi_add@PLT
	mov	rdi, QWORD PTR oct_rx_group[rip]
	add	rdi, rbp
	add	rdi, 4
	call	napi_enable@PLT
	mov	esi, DWORD PTR cvm_oct_do_interrupt[rip]
	xor	edx, edx
	mov	rcx, r13
	mov	rax, QWORD PTR oct_rx_group[rip]
	mov	rdi, QWORD PTR OCTEON_IRQ_WORKQ0[rip]
	add	rax, rbp
	add	rdi, rbx
	mov	QWORD PTR 8[rax], rdi
	lea	r8, 4[rax]
	mov	DWORD PTR [rax], ebx
	call	request_irq@PLT
	test	eax, eax
	jne	.L22
.L7:
	mov	rax, QWORD PTR oct_rx_group[rip]
	mov	rdi, QWORD PTR 8[rax+rbp]
	call	disable_irq_nosync@PLT
	mov	edi, DWORD PTR OCTEON_CN68XX[rip]
	call	OCTEON_IS_MODEL@PLT
	mov	edi, r14d
	test	rax, rax
	jne	.L23
	call	CVMX_POW_WQ_INT_THRX@PLT
	movabs	rsi, 4294967297
	mov	edi, eax
	call	cvmx_write_csr@PLT
	mov	edi, DWORD PTR CVMX_POW_WQ_INT_PC[rip]
	mov	esi, 5
	call	cvmx_write_csr@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rax, QWORD PTR oct_rx_group[rip]
	lea	rdi, .LC1[rip]
	mov	rsi, QWORD PTR 8[rax+rbp]
	xor	eax, eax
	call	panic@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rdi, oct_rx_ready[rip]
	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
	jmp	atomic_inc@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	xor	eax, eax
	xor	r12d, r12d
	call	panic@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	cvm_oct_rx_initialize, .-cvm_oct_rx_initialize
	.comm	rx_napi_weight,4,4
	.comm	pow_receive_groups,4,4
	.comm	oct_rx_ready,4,4
	.comm	oct_rx_group,8,8
	.comm	cvm_oct_napi_poll,4,4
	.comm	cvm_oct_do_interrupt,4,4
	.comm	cvm_oct_device,8,8
	.comm	TOTAL_NUMBER_OF_PORTS,4,4
	.comm	OCTEON_IRQ_WORKQ0,8,8
	.comm	OCTEON_CN68XX,4,4
	.comm	CVMX_SSO_WQ_INT_PC,4,4
	.comm	CVMX_POW_WQ_INT_PC,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_ethernet-rx.c_cvm_oct_rx_initialize.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Ethernet\000"
	.align	2
.LC1:
	.ascii	"Could not acquire Ethernet IRQ %d\012\000"
	.align	2
.LC2:
	.ascii	"No net_devices were allocated.\000"
	.text
	.align	2
	.global	cvm_oct_rx_initialize
	.syntax unified
	.arm
	.fpu softvfp
	.type	cvm_oct_rx_initialize, %function
cvm_oct_rx_initialize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L25
	sub	sp, sp, #12
	ldr	r1, [r3]
	cmp	r1, #0
	ble	.L2
	ldr	r2, .L25+4
	mov	r3, #0
	ldr	r2, [r2]
	sub	r2, r2, #4
	b	.L4
.L21:
	cmp	r3, r1
	beq	.L2
.L4:
	ldr	r8, [r2, #4]!
	add	r3, r3, #1
	cmp	r8, #0
	beq	.L21
.L3:
	mov	r4, #0
	ldr	r5, .L25+8
	ldr	r9, .L25+12
	ldr	fp, .L25+16
	ldr	r10, .L25+20
	b	.L5
.L24:
	bl	CVMX_SSO_WQ_INT_THRX
	mov	r1, #1
	bl	cvmx_write_csr
	ldr	r3, .L25+24
	mov	r1, #5
	ldr	r0, [r3]
	bl	cvmx_write_csr
.L9:
	ldr	r0, [r5]
	add	r0, r0, r6
	add	r0, r0, #4
	bl	napi_schedule
.L6:
	add	r4, r4, #1
.L5:
	ldr	r0, [r5]
	bl	ARRAY_SIZE
	add	r7, r4, r4, lsl #1
	cmp	r0, r4
	lsl	r6, r7, #2
	ble	.L22
	mov	r0, r4
	bl	BIT
	ldr	r3, [r9]
	tst	r0, r3
	beq	.L6
	ldr	r1, [r5]
	ldr	r3, .L25+28
	ldr	r2, .L25+32
	add	r1, r1, r7, lsl #2
	ldr	r3, [r3]
	ldr	r2, [r2]
	add	r1, r1, #4
	mov	r0, r8
	bl	netif_napi_add
	ldr	r0, [r5]
	add	r0, r0, r6
	add	r0, r0, #4
	bl	napi_enable
	ldr	r3, [r5]
	ldr	r0, [fp]
	add	r2, r3, r6
	add	r1, r2, #4
	add	r0, r4, r0
	str	r0, [r2, #8]
	str	r4, [r3, r7, lsl #2]
	str	r1, [sp]
	ldr	r1, .L25+36
	mov	r3, r10
	mov	r2, #0
	ldr	r1, [r1]
	bl	request_irq
	cmp	r0, #0
	bne	.L23
.L7:
	ldr	r3, [r5]
	add	r3, r3, r6
	ldr	r0, [r3, #8]
	bl	disable_irq_nosync
	ldr	r3, .L25+40
	ldr	r0, [r3]
	bl	OCTEON_IS_MODEL
	cmp	r0, #0
	mov	r0, r4
	bne	.L24
	bl	CVMX_POW_WQ_INT_THRX
	mov	r1, #1
	bl	cvmx_write_csr
	ldr	r3, .L25+44
	mov	r1, #5
	ldr	r0, [r3]
	bl	cvmx_write_csr
	b	.L9
.L23:
	ldr	r3, [r5]
	ldr	r0, .L25+48
	add	r3, r3, r6
	ldr	r1, [r3, #8]
	bl	panic
	b	.L7
.L22:
	ldr	r0, .L25+52
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	atomic_inc
.L2:
	ldr	r0, .L25+56
	bl	panic
	mov	r8, #0
	b	.L3
.L26:
	.align	2
.L25:
	.word	TOTAL_NUMBER_OF_PORTS
	.word	cvm_oct_device
	.word	oct_rx_group
	.word	pow_receive_groups
	.word	OCTEON_IRQ_WORKQ0
	.word	.LC0
	.word	CVMX_SSO_WQ_INT_PC
	.word	rx_napi_weight
	.word	cvm_oct_napi_poll
	.word	cvm_oct_do_interrupt
	.word	OCTEON_CN68XX
	.word	CVMX_POW_WQ_INT_PC
	.word	.LC1
	.word	oct_rx_ready
	.word	.LC2
	.size	cvm_oct_rx_initialize, .-cvm_oct_rx_initialize
	.comm	rx_napi_weight,4,4
	.comm	pow_receive_groups,4,4
	.comm	oct_rx_ready,4,4
	.comm	oct_rx_group,4,4
	.comm	cvm_oct_napi_poll,4,4
	.comm	cvm_oct_do_interrupt,4,4
	.comm	cvm_oct_device,4,4
	.comm	TOTAL_NUMBER_OF_PORTS,4,4
	.comm	OCTEON_IRQ_WORKQ0,4,4
	.comm	OCTEON_CN68XX,4,4
	.comm	CVMX_SSO_WQ_INT_PC,4,4
	.comm	CVMX_POW_WQ_INT_PC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
