	.file	"extr_bnxt.c_bnxt_init_dflt_ring_mode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Not enough rings available.\n"
	.text
	.p2align 4
	.type	bnxt_init_dflt_ring_mode, @function
bnxt_init_dflt_ring_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR 16[rdi], 0
	je	.L14
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rbp, rdi
	call	bnxt_ulp_irq_stop@PLT
	mov	rdi, rbp
	call	bnxt_clear_int_mode@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	bnxt_set_dflt_rings@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L15
	mov	rdi, rbp
	call	bnxt_init_int_mode@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L16
.L4:
	mov	esi, r12d
	mov	rdi, rbp
	call	bnxt_ulp_irq_restart@PLT
.L17:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, rbp
	mov	QWORD PTR 24[rbp], rax
	call	bnxt_rfs_supported@PLT
	test	rax, rax
	je	.L4
	mov	rdi, rbp
	call	bnxt_rfs_capable@PLT
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR BNXT_FLAG_RFS[rip]
	or	DWORD PTR 8[rbp], eax
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR NETIF_F_NTUPLE[rip]
	or	DWORD PTR [rax], edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, QWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	call	netdev_err@PLT
	mov	esi, r12d
	mov	rdi, rbp
	call	bnxt_ulp_irq_restart@PLT
	jmp	.L17
	.cfi_endproc
.LFE0:
	.size	bnxt_init_dflt_ring_mode, .-bnxt_init_dflt_ring_mode
	.comm	NETIF_F_NTUPLE,4,4
	.comm	BNXT_FLAG_RFS,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_bnxt.c_bnxt_init_dflt_ring_mode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Not enough rings available.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnxt_init_dflt_ring_mode, %function
bnxt_init_dflt_ring_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	movne	r5, #0
	beq	.L13
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L13:
	mov	r4, r0
	bl	bnxt_ulp_irq_stop
	mov	r0, r4
	bl	bnxt_clear_int_mode
	mov	r1, #1
	mov	r0, r4
	bl	bnxt_set_dflt_rings
	subs	r5, r0, #0
	bne	.L14
	mov	r0, r4
	bl	bnxt_init_int_mode
	subs	r5, r0, #0
	beq	.L15
.L4:
	mov	r0, r4
	mov	r1, r5
	bl	bnxt_ulp_irq_restart
.L16:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r3, [r4, #8]
	mov	r0, r4
	str	r3, [r4, #12]
	bl	bnxt_rfs_supported
	cmp	r0, #0
	beq	.L4
	mov	r0, r4
	bl	bnxt_rfs_capable
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L17
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	ldr	r1, [r4]
	ldr	r0, .L17+4
	orr	r2, r2, r3
	ldr	r0, [r0]
	ldr	r3, [r1]
	str	r2, [r4, #4]
	orr	r3, r3, r0
	str	r3, [r1]
	b	.L4
.L14:
	ldr	r1, .L17+8
	ldr	r0, [r4]
	bl	netdev_err
	mov	r0, r4
	mov	r1, r5
	bl	bnxt_ulp_irq_restart
	b	.L16
.L18:
	.align	2
.L17:
	.word	BNXT_FLAG_RFS
	.word	NETIF_F_NTUPLE
	.word	.LC0
	.size	bnxt_init_dflt_ring_mode, .-bnxt_init_dflt_ring_mode
	.comm	NETIF_F_NTUPLE,4,4
	.comm	BNXT_FLAG_RFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
