	.file	"extr_qlcnic_io.c_qlcnic_83xx_napi_disable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qlcnic_83xx_napi_disable
	.type	qlcnic_83xx_napi_disable, @function
qlcnic_83xx_napi_disable:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR QLCNIC_ADAPTER_UP_MAGIC[rip]
	cmp	QWORD PTR [rdi], rax
	jne	.L16
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR 8[rdi]
	test	edx, edx
	jle	.L3
	mov	r13, QWORD PTR 32[rdi]
	xor	ebp, ebp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r12
	add	rbp, 1
	call	napi_synchronize@PLT
	mov	rdi, r12
	call	napi_disable@PLT
	cmp	DWORD PTR 8[rbx], ebp
	jle	.L3
.L5:
	mov	rax, QWORD PTR 0[r13]
	lea	r12, [rax+rbp*4]
	mov	eax, DWORD PTR 12[rbx]
	test	DWORD PTR QLCNIC_MSIX_ENABLED[rip], eax
	je	.L4
	mov	rsi, r12
	mov	rdi, rbx
	call	qlcnic_disable_sds_intr@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR 12[rbx]
	test	DWORD PTR QLCNIC_MSIX_ENABLED[rip], eax
	je	.L1
	test	DWORD PTR QLCNIC_TX_INTR_SHARED[rip], eax
	jne	.L1
	mov	eax, DWORD PTR 16[rbx]
	test	eax, eax
	jle	.L1
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 24[rbx]
	mov	rdi, rbx
	lea	r12, [rax+rbp*4]
	add	rbp, 1
	mov	rsi, r12
	call	qlcnic_disable_tx_intr@PLT
	mov	rdi, r12
	call	napi_synchronize@PLT
	mov	rdi, r12
	call	napi_disable@PLT
	cmp	DWORD PTR 16[rbx], ebp
	jg	.L6
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	qlcnic_83xx_napi_disable, .-qlcnic_83xx_napi_disable
	.comm	QLCNIC_TX_INTR_SHARED,4,4
	.comm	QLCNIC_MSIX_ENABLED,4,4
	.comm	QLCNIC_ADAPTER_UP_MAGIC,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_qlcnic_io.c_qlcnic_83xx_napi_disable.c"
	.text
	.align	2
	.global	qlcnic_83xx_napi_disable
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlcnic_83xx_napi_disable, %function
qlcnic_83xx_napi_disable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L22
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bxne	lr
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	mov	r5, r0
	ldrle	r7, .L22+4
	ble	.L3
	mov	r6, #0
	ldr	r8, [r0, #20]
	ldr	r7, .L22+4
	b	.L5
.L4:
	mov	r0, r4
	bl	napi_synchronize
	mov	r0, r4
	bl	napi_disable
	ldr	r3, [r5, #4]
	cmp	r3, r6
	ble	.L3
.L5:
	ldr	r2, [r5, #8]
	ldr	r3, [r7]
	ldr	r4, [r8]
	tst	r2, r3
	add	r4, r4, r6, lsl #2
	add	r6, r6, #1
	beq	.L4
	mov	r1, r4
	mov	r0, r5
	bl	qlcnic_disable_sds_intr
	b	.L4
.L3:
	ldr	r3, [r7]
	ldr	r6, [r5, #8]
	tst	r6, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L22+8
	ldr	r3, [r3]
	ands	r6, r6, r3
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r5, #12]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r4, [r5, #16]
	mov	r0, r5
	add	r4, r4, r6, lsl #2
	mov	r1, r4
	bl	qlcnic_disable_tx_intr
	mov	r0, r4
	bl	napi_synchronize
	mov	r0, r4
	bl	napi_disable
	ldr	r3, [r5, #12]
	add	r6, r6, #1
	cmp	r3, r6
	bgt	.L6
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	.align	2
.L22:
	.word	QLCNIC_ADAPTER_UP_MAGIC
	.word	QLCNIC_MSIX_ENABLED
	.word	QLCNIC_TX_INTR_SHARED
	.size	qlcnic_83xx_napi_disable, .-qlcnic_83xx_napi_disable
	.comm	QLCNIC_TX_INTR_SHARED,4,4
	.comm	QLCNIC_MSIX_ENABLED,4,4
	.comm	QLCNIC_ADAPTER_UP_MAGIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
