	.file	"extr_efx.c_efx_probe_interrupts.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"WARNING: Insufficient MSI-X vectors available (%d < %u).\n"
	.align 8
.LC1:
	.string	"WARNING: Performance may be reduced.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"could not enable MSI-X\n"
.LC3:
	.string	"could not enable MSI\n"
	.text
	.p2align 4
	.type	efx_probe_interrupts, @function
efx_probe_interrupts:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	mov	esi, DWORD PTR EFX_MAX_CHANNELS[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 48[rdi]
	mov	edi, DWORD PTR [rax]
	call	min@PLT
	mov	r14d, DWORD PTR EFX_MAX_EXTRA_CHANNELS[rip]
	mov	r12d, eax
	test	r14d, r14d
	je	.L2
	mov	rax, QWORD PTR 24[rbx]
	lea	edx, -1[r14]
	xor	r14d, r14d
	lea	rdx, 8[rax+rdx*8]
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	QWORD PTR [rax], 1
	sbb	r14d, -1
	add	rax, 8
	cmp	rax, rdx
	jne	.L4
.L2:
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR EFX_INT_MODE_MSIX[rip]
	je	.L60
.L5:
	cmp	QWORD PTR EFX_INT_MODE_MSI[rip], rax
	je	.L61
.L22:
	cmp	QWORD PTR EFX_INT_MODE_LEGACY[rip], rax
	mov	edx, DWORD PTR EFX_MAX_EXTRA_CHANNELS[rip]
	je	.L24
	mov	r13d, DWORD PTR 8[rbx]
	test	edx, edx
	je	.L36
.L27:
	xor	r12d, r12d
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdi, rbx
	call	[QWORD PTR [rax]]
.L32:
	add	r12d, 1
	cmp	DWORD PTR EFX_MAX_EXTRA_CHANNELS[rip], r12d
	jbe	.L36
.L35:
	mov	rdx, QWORD PTR 24[rbx]
	mov	eax, r12d
	lea	r15, [rdx+rax*8]
	mov	rax, QWORD PTR [r15]
	test	rax, rax
	je	.L32
	mov	rcx, QWORD PTR EFX_INT_MODE_MSIX[rip]
	cmp	QWORD PTR [rbx], rcx
	jne	.L33
	cmp	DWORD PTR 8[rbx], r14d
	jbe	.L33
	sub	r13d, 1
	mov	rdi, rbx
	add	r12d, 1
	mov	esi, r13d
	call	efx_get_channel@PLT
	mov	rdx, QWORD PTR [r15]
	cmp	DWORD PTR EFX_MAX_EXTRA_CHANNELS[rip], r12d
	mov	QWORD PTR [rax], rdx
	ja	.L35
	.p2align 4,,10
	.p2align 3
.L36:
	mov	eax, DWORD PTR 16[rbx]
	cmp	eax, 1
	jbe	.L31
.L37:
	mov	DWORD PTR 20[rbx], eax
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L62
	lea	rsp, -40[rbp]
	xor	eax, eax
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L61:
	.cfi_restore_state
	movabs	rax, 4294967297
	mov	DWORD PTR 16[rbx], 1
	mov	rdi, QWORD PTR 32[rbx]
	mov	QWORD PTR 8[rbx], rax
	call	pci_enable_msi@PLT
	test	eax, eax
	je	.L63
	mov	edx, DWORD PTR 44[rbx]
	mov	esi, DWORD PTR drv[rip]
	mov	rdi, rbx
	xor	eax, eax
	lea	rcx, .LC3[rip]
	call	netif_err@PLT
	mov	rax, QWORD PTR EFX_INT_MODE_LEGACY[rip]
	mov	edx, DWORD PTR EFX_MAX_EXTRA_CHANNELS[rip]
	mov	QWORD PTR [rbx], rax
.L24:
	movabs	rax, 4294967297
	xor	r13d, r13d
	cmp	QWORD PTR separate_tx_channels[rip], 0
	mov	QWORD PTR 12[rbx], rax
	mov	rax, QWORD PTR 32[rbx]
	setne	r13b
	add	r13d, 1
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 8[rbx], r13d
	mov	DWORD PTR 40[rbx], eax
	test	edx, edx
	jne	.L27
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, rbx
	call	efx_sriov_wanted@PLT
	test	eax, eax
	jne	.L64
	mov	eax, DWORD PTR 16[rbx]
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L60:
	movsx	rax, DWORD PTR EFX_MAX_CHANNELS[rip]
	mov	rsi, rsp
	mov	r13, rsp
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
.L6:
	cmp	rsp, rax
	je	.L7
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L63:
	mov	r12, QWORD PTR 32[rbx]
	xor	esi, esi
	mov	rdi, rbx
	call	efx_get_channel@PLT
	mov	edx, DWORD PTR [r12]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR [rbx]
	jmp	.L22
.L64:
	mov	rdi, rbx
	call	efx_vf_size@PLT
	jmp	.L37
.L7:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L65
.L8:
	mov	rdi, rbx
	mov	r15, rsp
	call	efx_wanted_parallelism@PLT
	cmp	QWORD PTR separate_tx_channels[rip], 0
	jne	.L66
.L9:
	lea	edi, [rax+r14]
	mov	esi, r12d
	call	min@PLT
	mov	r9d, eax
	lea	ecx, -1[rax]
	xor	eax, eax
	test	r9d, r9d
	je	.L14
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdx, rax
	mov	DWORD PTR [r15+rax*8], eax
	add	rax, 1
	cmp	rdx, rcx
	jne	.L13
.L14:
	mov	rdi, QWORD PTR 32[rbx]
	mov	edx, r9d
	mov	rsi, r15
	mov	DWORD PTR -68[rbp], r9d
	call	pci_enable_msix@PLT
	mov	r9d, DWORD PTR -68[rbp]
	test	eax, eax
	mov	r12d, eax
	jle	.L12
	mov	edx, DWORD PTR 44[rbx]
	mov	esi, DWORD PTR drv[rip]
	mov	r8d, eax
	mov	rdi, rbx
	lea	rcx, .LC0[rip]
	xor	eax, eax
	mov	DWORD PTR -68[rbp], r9d
	call	netif_err@PLT
	mov	edx, DWORD PTR 44[rbx]
	mov	esi, DWORD PTR drv[rip]
	xor	eax, eax
	lea	rcx, .LC1[rip]
	mov	rdi, rbx
	call	netif_err@PLT
	mov	r9d, DWORD PTR -68[rbp]
	mov	DWORD PTR -68[rbp], r12d
	cmp	r12d, r9d
	setnb	dil
	movzx	edi, dil
	call	EFX_BUG_ON_PARANOID@PLT
	mov	edx, DWORD PTR -68[rbp]
	mov	rdi, QWORD PTR 32[rbx]
	mov	rsi, r15
	call	pci_enable_msix@PLT
	mov	edx, DWORD PTR -68[rbp]
	mov	r12d, eax
	mov	r9d, edx
.L12:
	test	r12d, r12d
	jne	.L15
	mov	r12d, r9d
	mov	DWORD PTR 8[rbx], r9d
	sub	r12d, r14d
	cmp	r9d, r14d
	cmovbe	r12d, r9d
	cmp	QWORD PTR separate_tx_channels[rip], 0
	jne	.L67
	mov	DWORD PTR 12[rbx], r12d
	mov	DWORD PTR 16[rbx], r12d
.L20:
	xor	r12d, r12d
	test	r9d, r9d
	je	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	mov	esi, r12d
	mov	rdi, rbx
	call	efx_get_channel@PLT
	mov	edx, r12d
	add	r12d, 1
	mov	edx, DWORD PTR 4[r15+rdx*8]
	mov	DWORD PTR 8[rax], edx
	cmp	DWORD PTR 8[rbx], r12d
	ja	.L18
.L19:
	mov	rsp, r13
	mov	rax, QWORD PTR [rbx]
	jmp	.L5
.L66:
	add	eax, eax
	jmp	.L9
.L15:
	mov	rax, QWORD PTR EFX_INT_MODE_MSI[rip]
	mov	edx, DWORD PTR 44[rbx]
	mov	rdi, rbx
	lea	rcx, .LC2[rip]
	mov	esi, DWORD PTR drv[rip]
	mov	QWORD PTR [rbx], rax
	xor	eax, eax
	call	netif_err@PLT
	jmp	.L19
.L65:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L8
.L67:
	mov	edi, r12d
	mov	esi, 1
	shr	edi
	call	max@PLT
	mov	edi, r12d
	mov	esi, 1
	mov	DWORD PTR 12[rbx], eax
	sub	edi, eax
	call	max@PLT
	mov	r9d, DWORD PTR 8[rbx]
	mov	DWORD PTR 16[rbx], eax
	jmp	.L20
.L62:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	efx_probe_interrupts, .-efx_probe_interrupts
	.comm	separate_tx_channels,8,8
	.comm	drv,4,4
	.comm	EFX_MAX_EXTRA_CHANNELS,4,4
	.comm	EFX_MAX_CHANNELS,4,4
	.comm	EFX_INT_MODE_MSIX,8,8
	.comm	EFX_INT_MODE_MSI,8,8
	.comm	EFX_INT_MODE_LEGACY,8,8
	.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_efx.c_efx_probe_interrupts.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"WARNING: Insufficient MSI-X vectors available (%d <"
	.ascii	" %u).\012\000"
	.align	2
.LC1:
	.ascii	"WARNING: Performance may be reduced.\012\000"
	.align	2
.LC2:
	.ascii	"could not enable MSI-X\012\000"
	.align	2
.LC3:
	.ascii	"could not enable MSI\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	efx_probe_interrupts, %function
efx_probe_interrupts:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	ldr	r3, [r0, #36]
	ldr	r9, .L66
	mov	r4, r0
	ldr	r0, [r3]
	ldr	r3, .L66+4
	ldr	r1, [r9]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	min
	ldr	r6, .L66+8
	mov	r8, r0
	ldr	r5, [r6]
	cmp	r5, #0
	beq	.L2
	ldr	r3, [r4, #20]
	add	r1, r3, r5, lsl #2
	mov	r5, #0
	sub	r1, r1, #4
	sub	r3, r3, #4
.L4:
	ldr	r2, [r3, #4]!
	cmp	r2, #0
	addne	r5, r5, #1
	cmp	r1, r3
	bne	.L4
.L2:
	ldr	r7, .L66+12
	ldr	r3, [r4]
	ldr	r2, [r7]
	cmp	r3, r2
	beq	.L56
	ldr	r8, .L66+16
.L5:
	ldr	r2, [r8]
	cmp	r2, r3
	beq	.L61
.L18:
	ldr	r1, .L66+20
	ldr	r2, [r6]
	ldr	r1, [r1]
	cmp	r1, r3
	beq	.L20
	cmp	r2, #0
	ldr	r9, [r4, #4]
	beq	.L32
.L23:
	mov	r8, #0
	b	.L31
.L29:
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
.L28:
	ldr	r3, [r6]
	add	r8, r8, #1
	cmp	r3, r8
	bls	.L32
.L31:
	ldr	r10, [r4, #20]
	lsl	r2, r8, #2
	ldr	r3, [r10, r8, lsl #2]
	cmp	r3, #0
	beq	.L28
	ldr	r0, [r4]
	ldr	r1, [r7]
	cmp	r0, r1
	bne	.L29
	ldr	r1, [r4, #4]
	cmp	r1, r5
	bls	.L29
	sub	r9, r9, #1
	mov	r1, r9
	mov	r0, r4
	str	r2, [fp, #-48]
	bl	efx_get_channel
	ldr	r2, [fp, #-48]
	add	r8, r8, #1
	ldr	r3, [r10, r2]
	str	r3, [r0]
	ldr	r3, [r6]
	cmp	r3, r8
	bhi	.L31
.L32:
	ldr	r0, [r4, #12]
	cmp	r0, #1
	bls	.L27
.L33:
	ldr	r3, .L66+4
	str	r0, [r4, #16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L62
	mov	r0, #0
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L61:
	mov	r3, #1
	ldr	r0, [r4, #24]
	str	r3, [r4, #4]
	str	r3, [r4, #12]
	str	r3, [r4, #8]
	bl	pci_enable_msi
	subs	r1, r0, #0
	beq	.L63
	ldr	r2, .L66+24
	ldr	r3, .L66+28
	ldr	r1, [r2]
	mov	r0, r4
	ldr	r2, [r4, #32]
	bl	netif_err
	ldr	r3, .L66+20
	ldr	r2, [r6]
	ldr	r3, [r3]
	str	r3, [r4]
.L20:
	mov	r3, #1
	ldr	r1, .L66+32
	str	r3, [r4, #12]
	ldr	r1, [r1]
	cmp	r1, #0
	movne	r9, #2
	moveq	r9, r3
	ldr	r1, [r4, #24]
	cmp	r2, #0
	ldr	r2, [r1]
	str	r9, [r4, #4]
	str	r2, [r4, #28]
	str	r3, [r4, #8]
	bne	.L23
.L27:
	mov	r0, r4
	bl	efx_sriov_wanted
	cmp	r0, #0
	ldreq	r0, [r4, #12]
	beq	.L33
	mov	r0, r4
	bl	efx_vf_size
	b	.L33
.L56:
	mov	r2, sp
	ldr	r3, [r9]
	str	sp, [fp, #-48]
	sub	r3, r2, r3, lsl #3
	mov	sp, r3
	mov	r0, r4
	bl	efx_wanted_parallelism
	ldr	r3, .L66+32
	mov	r1, r8
	ldr	r3, [r3]
	add	r10, sp, #8
	cmp	r3, #0
	lslne	r0, r0, #1
	add	r0, r0, r5
	bl	min
	subs	r8, r0, #0
	movne	r3, #0
	beq	.L10
.L7:
	str	r3, [r10, r3, lsl #3]
	add	r3, r3, #1
	cmp	r8, r3
	bne	.L7
.L10:
	mov	r2, r8
	mov	r1, r10
	ldr	r0, [r4, #24]
	bl	pci_enable_msix
	subs	r9, r0, #0
	bgt	.L64
.L9:
	cmp	r9, #0
	bne	.L11
	cmp	r8, r5
	movls	r9, r8
	ldr	r3, .L66+32
	subhi	r9, r8, r5
	ldr	r3, [r3]
	str	r8, [r4, #4]
	cmp	r3, #0
	streq	r9, [r4, #8]
	streq	r9, [r4, #12]
	bne	.L65
.L16:
	cmp	r8, #0
	movne	r8, #0
	addne	r9, r10, #4
	beq	.L59
.L14:
	mov	r1, r8
	mov	r0, r4
	bl	efx_get_channel
	ldr	r2, [r4, #4]
	ldr	r3, [r9, r8, lsl #3]
	add	r8, r8, #1
	cmp	r2, r8
	str	r3, [r0, #4]
	bhi	.L14
.L59:
	ldr	r8, .L66+16
.L15:
	ldr	sp, [fp, #-48]
	ldr	r3, [r4]
	b	.L5
.L63:
	mov	r0, r4
	ldr	r8, [r4, #24]
	bl	efx_get_channel
	ldr	r2, [r8]
	ldr	r3, [r4]
	str	r2, [r0, #4]
	b	.L18
.L64:
	ldr	r3, .L66+24
	ldr	r2, [r4, #32]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L66+36
	str	r8, [sp, #4]
	str	r9, [sp]
	bl	netif_err
	ldr	r3, .L66+24
	ldr	r2, [r4, #32]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, .L66+40
	bl	netif_err
	cmp	r9, r8
	movcc	r0, #0
	movcs	r0, #1
	bl	EFX_BUG_ON_PARANOID
	mov	r2, r9
	mov	r1, r10
	ldr	r0, [r4, #24]
	bl	pci_enable_msix
	mov	r8, r9
	mov	r9, r0
	b	.L9
.L11:
	ldr	r8, .L66+16
	ldr	r2, .L66+24
	ldr	r3, [r8]
	ldr	r1, [r2]
	mov	r0, r4
	str	r3, [r4]
	ldr	r2, [r4, #32]
	ldr	r3, .L66+44
	bl	netif_err
	b	.L15
.L65:
	mov	r1, #1
	lsr	r0, r9, r1
	bl	max
	mov	r1, #1
	str	r0, [r4, #8]
	sub	r0, r9, r0
	bl	max
	ldr	r8, [r4, #4]
	str	r0, [r4, #12]
	b	.L16
.L62:
	bl	__stack_chk_fail
.L67:
	.align	2
.L66:
	.word	EFX_MAX_CHANNELS
	.word	.LC4
	.word	EFX_MAX_EXTRA_CHANNELS
	.word	EFX_INT_MODE_MSIX
	.word	EFX_INT_MODE_MSI
	.word	EFX_INT_MODE_LEGACY
	.word	drv
	.word	.LC3
	.word	separate_tx_channels
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	efx_probe_interrupts, .-efx_probe_interrupts
	.comm	separate_tx_channels,4,4
	.comm	drv,4,4
	.comm	EFX_MAX_EXTRA_CHANNELS,4,4
	.comm	EFX_MAX_CHANNELS,4,4
	.comm	EFX_INT_MODE_MSIX,4,4
	.comm	EFX_INT_MODE_MSI,4,4
	.comm	EFX_INT_MODE_LEGACY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
