	.file	"extr_aq_nic.c_aq_nic_start.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	aq_nic_start
	.type	aq_nic_start, @function
aq_nic_start:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edx, DWORD PTR 80[rdi]
	mov	rax, QWORD PTR 24[rbx]
	mov	esi, DWORD PTR 84[rdi]
	mov	edi, DWORD PTR 16[rdi]
	call	[QWORD PTR [rax]]
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 24[rbx]
	mov	esi, DWORD PTR 76[rbx]
	mov	edi, DWORD PTR 16[rbx]
	call	[QWORD PTR 8[rax]]
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 56[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	rdi, QWORD PTR [rax]
	test	edx, edx
	je	.L3
	xor	ebp, ebp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR 56[rbx]
	lea	edx, 1[rbp]
	mov	rbp, rdx
	mov	rdi, QWORD PTR [rax+rdx*8]
	cmp	DWORD PTR [rbx], edx
	jbe	.L3
.L4:
	call	aq_vec_start@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L17
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.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
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rbx]
	mov	edi, DWORD PTR 16[rbx]
	call	[QWORD PTR 16[rax]]
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rdi, rbx
	call	aq_nic_update_interrupt_moderation_settings@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR aq_nic_service_task[rip]
	lea	rdi, 72[rbx]
	lea	rbp, 68[rbx]
	call	INIT_WORK@PLT
	mov	rsi, QWORD PTR aq_nic_service_timer_cb@GOTPCREL[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	timer_setup@PLT
	mov	rdi, rbp
	call	aq_nic_service_timer_cb@PLT
	cmp	QWORD PTR 40[rbx], 0
	jne	.L18
	mov	rax, QWORD PTR 56[rbx]
	mov	r12, QWORD PTR [rax]
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L7
	xor	ebp, ebp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rax, QWORD PTR 56[rbx]
	lea	edx, 1[rbp]
	mov	rbp, rdx
	mov	r12, QWORD PTR [rax+rdx*8]
	cmp	DWORD PTR [rbx], edx
	jbe	.L7
.L8:
	mov	rdi, r12
	call	aq_vec_get_affinity_mask@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	r8, r12
	mov	esi, ebp
	mov	ecx, DWORD PTR aq_vec_isr[rip]
	mov	r9d, eax
	mov	rdi, rbx
	mov	edx, DWORD PTR [rdx]
	call	aq_pci_func_alloc_irq@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L19
	jmp	.L1
.L7:
	mov	esi, DWORD PTR 32[rbx]
	test	esi, esi
	jne	.L20
.L9:
	mov	rax, QWORD PTR 24[rbx]
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR AQ_CFG_IRQ_MASK[rip]
	call	[QWORD PTR 24[rax]]
	mov	r12d, eax
	test	eax, eax
	js	.L1
.L6:
	mov	rdi, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR [rbx]
	call	netif_set_real_num_tx_queues@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rdi, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR [rbx]
	call	netif_set_real_num_rx_queues@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
.L2:
	endbr64
	mov	rdi, QWORD PTR 8[rbx]
	call	netif_tx_start_all_queues@PLT
	jmp	.L1
.L18:
	lea	rbp, 64[rbx]
	mov	rsi, QWORD PTR aq_nic_polling_timer_cb@GOTPCREL[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	timer_setup@PLT
	mov	rsi, QWORD PTR AQ_CFG_POLLING_TIMER_INTERVAL[rip]
	mov	rdi, rbp
	add	rsi, QWORD PTR jiffies[rip]
	call	mod_timer@PLT
	jmp	.L6
.L20:
	mov	edi, DWORD PTR 48[rbx]
	call	pci_irq_vector@PLT
	mov	edx, DWORD PTR aq_linkstate_threaded_isr[rip]
	mov	r9, rbx
	xor	esi, esi
	mov	edi, eax
	mov	rax, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR IRQF_SHARED[rip]
	or	ecx, DWORD PTR IRQF_ONESHOT[rip]
	mov	r8d, DWORD PTR [rax]
	call	request_threaded_irq@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	ecx, DWORD PTR 32[rbx]
	mov	eax, 1
	sal	eax, cl
	or	DWORD PTR 4[rbx], eax
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	aq_nic_start, .-aq_nic_start
	.comm	jiffies,8,8
	.comm	aq_vec_isr,4,4
	.comm	aq_nic_service_task,4,4
	.comm	aq_linkstate_threaded_isr,4,4
	.comm	IRQF_SHARED,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	AQ_CFG_POLLING_TIMER_INTERVAL,8,8
	.comm	AQ_CFG_IRQ_MASK,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_aq_nic.c_aq_nic_start.c"
	.text
	.align	2
	.global	aq_nic_start
	.syntax unified
	.arm
	.fpu softvfp
	.type	aq_nic_start, %function
aq_nic_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, [r0, #16]
	ldr	r2, [r0, #52]
	ldr	r1, [r0, #56]
	mov	r5, r0
	ldr	r3, [r3]
	ldr	r0, [r0, #12]
	sub	sp, sp, #12
	blx	r3
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, [r5, #16]
	ldr	r1, [r5, #48]
	ldr	r3, [r3, #4]
	ldr	r0, [r5, #12]
	blx	r3
	subs	r4, r0, #0
	blt	.L1
	ldr	r2, [r5]
	ldr	r3, [r5, #32]
	cmp	r2, #0
	ldr	r0, [r3]
	beq	.L3
	mov	r6, #0
	b	.L4
.L23:
	ldr	r2, [r5]
	ldr	r3, [r5, #32]
	cmp	r2, r6
	ldr	r0, [r3, r6, lsl #2]
	bls	.L3
.L4:
	bl	aq_vec_start
	subs	r4, r0, #0
	add	r6, r6, #1
	bge	.L23
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L3:
	ldr	r3, [r5, #16]
	ldr	r0, [r5, #12]
	ldr	r3, [r3, #8]
	blx	r3
	subs	r4, r0, #0
	blt	.L1
	mov	r0, r5
	bl	aq_nic_update_interrupt_moderation_settings
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L27
	add	r6, r5, #40
	ldr	r1, [r3]
	add	r0, r5, #44
	bl	INIT_WORK
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L27+4
	bl	timer_setup
	mov	r0, r6
	bl	aq_nic_service_timer_cb
	ldr	r6, [r5, #24]
	cmp	r6, #0
	bne	.L24
	ldr	r2, [r5]
	ldr	r3, [r5, #32]
	cmp	r2, #0
	ldr	r4, [r3]
	beq	.L7
	ldr	r8, .L27+8
	b	.L8
.L25:
	ldr	r2, [r5]
	ldr	r3, [r5, #32]
	cmp	r2, r6
	ldr	r4, [r3, r6, lsl #2]
	bls	.L7
.L8:
	ldr	r3, [r5, #8]
	mov	r0, r4
	ldr	r9, [r3]
	ldr	r7, [r8]
	bl	aq_vec_get_affinity_mask
	mov	r1, r6
	str	r0, [sp, #4]
	str	r4, [sp]
	mov	r2, r9
	mov	r3, r7
	mov	r0, r5
	bl	aq_pci_func_alloc_irq
	subs	r4, r0, #0
	add	r6, r6, #1
	bge	.L25
	b	.L1
.L7:
	ldr	r1, [r5, #20]
	cmp	r1, #0
	bne	.L26
.L9:
	ldr	r2, .L27+12
	ldr	r3, [r5, #16]
	ldr	r1, [r2]
	ldr	r3, [r3, #12]
	ldr	r0, [r5, #12]
	blx	r3
	subs	r4, r0, #0
	blt	.L1
.L6:
	ldr	r1, [r5]
	ldr	r0, [r5, #8]
	bl	netif_set_real_num_tx_queues
	subs	r4, r0, #0
	blt	.L1
	ldr	r1, [r5]
	ldr	r0, [r5, #8]
	bl	netif_set_real_num_rx_queues
	subs	r4, r0, #0
	blt	.L1
.L2:
	ldr	r0, [r5, #8]
	bl	netif_tx_start_all_queues
	b	.L1
.L24:
	add	r3, r5, #36
	mov	r2, r4
	mov	r4, r3
	mov	r0, r3
	ldr	r1, .L27+16
	bl	timer_setup
	ldr	r2, .L27+20
	ldr	r3, .L27+24
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r4
	add	r1, r1, r3
	bl	mod_timer
	b	.L6
.L26:
	ldr	r0, [r5, #28]
	bl	pci_irq_vector
	ldr	r1, [r5, #8]
	ldr	r2, .L27+28
	str	r5, [sp, #4]
	ldr	r3, .L27+32
	ldr	ip, [r1]
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r2, .L27+36
	str	ip, [sp]
	orr	r3, r1, r3
	ldr	r2, [r2]
	mov	r1, #0
	bl	request_threaded_irq
	subs	r4, r0, #0
	blt	.L1
	mov	r1, #1
	ldr	r3, [r5, #4]
	ldr	r2, [r5, #20]
	orr	r3, r3, r1, lsl r2
	str	r3, [r5, #4]
	b	.L9
.L28:
	.align	2
.L27:
	.word	aq_nic_service_task
	.word	aq_nic_service_timer_cb
	.word	aq_vec_isr
	.word	AQ_CFG_IRQ_MASK
	.word	aq_nic_polling_timer_cb
	.word	jiffies
	.word	AQ_CFG_POLLING_TIMER_INTERVAL
	.word	IRQF_SHARED
	.word	IRQF_ONESHOT
	.word	aq_linkstate_threaded_isr
	.size	aq_nic_start, .-aq_nic_start
	.comm	jiffies,4,4
	.comm	aq_vec_isr,4,4
	.comm	aq_nic_service_task,4,4
	.comm	aq_linkstate_threaded_isr,4,4
	.comm	IRQF_SHARED,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	AQ_CFG_POLLING_TIMER_INTERVAL,4,4
	.comm	AQ_CFG_IRQ_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
