	.file	"extr_lio_vf_main.c_stop_pci_io.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Device state is now %s\n"
	.text
	.p2align 4
	.type	stop_pci_io, @function
stop_pci_io:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	lea	r12, 16[rdi]
	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
	mov	rdi, r12
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR OCT_DEV_IN_RESET[rip]
	call	atomic_set@PLT
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	jle	.L2
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 56[rbx]
	mov	edi, DWORD PTR [rax+rbp*4]
	add	rbp, 1
	call	netif_device_detach@PLT
	cmp	DWORD PTR [rbx], ebp
	jg	.L3
.L2:
	mov	esi, DWORD PTR OCTEON_ALL_INTR[rip]
	mov	rdi, rbx
	call	[QWORD PTR 48[rbx]]
	mov	rdi, rbx
	call	pcierror_quiesce_device@PLT
	cmp	QWORD PTR 40[rbx], 0
	je	.L4
	mov	eax, DWORD PTR 4[rbx]
	mov	r13, QWORD PTR 24[rbx]
	test	eax, eax
	jle	.L5
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR 0[r13+rbp*4]
	xor	esi, esi
	call	irq_set_affinity_hint@PLT
	mov	rax, QWORD PTR 32[rbx]
	mov	edi, DWORD PTR 0[r13+rbp*4]
	lea	rsi, [rax+rbp*4]
	add	rbp, 1
	call	free_irq@PLT
	cmp	DWORD PTR 4[rbx], ebp
	jg	.L6
.L5:
	mov	rdi, QWORD PTR 8[rbx]
	call	pci_disable_msix@PLT
	mov	rdi, QWORD PTR 24[rbx]
	call	kfree@PLT
	mov	QWORD PTR 24[rbx], 0
	mov	rdi, rbx
	call	octeon_free_ioq_vector@PLT
.L4:
	mov	rdi, r12
	call	lio_get_state_string@PLT
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC0[rip]
	mov	edx, eax
	call	dev_dbg@PLT
	mov	rdi, QWORD PTR 8[rbx]
	call	cleanup_aer_uncorrect_error_status@PLT
	mov	rdi, QWORD PTR 8[rbx]
	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
	jmp	pci_disable_device@PLT
	.cfi_endproc
.LFE0:
	.size	stop_pci_io, .-stop_pci_io
	.comm	OCT_DEV_IN_RESET,4,4
	.comm	OCTEON_ALL_INTR,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_lio_vf_main.c_stop_pci_io.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Device state is now %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stop_pci_io, %function
stop_pci_io:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L14
	add	r7, r0, #12
	ldr	r1, [r3]
	mov	r0, r7
	bl	atomic_set
	ldr	r3, [r4]
	cmp	r3, #0
	ble	.L2
	mov	r5, #0
.L3:
	ldr	r3, [r4, #32]
	ldr	r0, [r3, r5, lsl #2]
	bl	netif_device_detach
	ldr	r3, [r4]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L3
.L2:
	ldr	r2, .L14+4
	ldr	r3, [r4, #28]
	ldr	r1, [r2]
	mov	r0, r4
	blx	r3
	mov	r0, r4
	bl	pcierror_quiesce_device
	ldr	r3, [r4, #24]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [r4, #4]
	ldr	r6, [r4, #16]
	cmp	r3, #0
	ble	.L5
	mov	r5, #0
	sub	r6, r6, #4
.L6:
	mov	r1, #0
	ldr	r0, [r6, #4]!
	bl	irq_set_affinity_hint
	ldr	r1, [r4, #20]
	ldr	r0, [r6]
	add	r1, r1, r5, lsl #2
	bl	free_irq
	ldr	r3, [r4, #4]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L6
.L5:
	ldr	r0, [r4, #8]
	bl	pci_disable_msix
	ldr	r0, [r4, #16]
	bl	kfree
	mov	r3, #0
	mov	r0, r4
	str	r3, [r4, #16]
	bl	octeon_free_ioq_vector
.L4:
	mov	r0, r7
	ldr	r5, [r4, #8]
	bl	lio_get_state_string
	ldr	r1, .L14+8
	mov	r2, r0
	mov	r0, r5
	bl	dev_dbg
	ldr	r0, [r4, #8]
	bl	cleanup_aer_uncorrect_error_status
	ldr	r0, [r4, #8]
	pop	{r4, r5, r6, r7, r8, lr}
	b	pci_disable_device
.L15:
	.align	2
.L14:
	.word	OCT_DEV_IN_RESET
	.word	OCTEON_ALL_INTR
	.word	.LC0
	.size	stop_pci_io, .-stop_pci_io
	.comm	OCT_DEV_IN_RESET,4,4
	.comm	OCTEON_ALL_INTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
