	.file	"extr_cassini.c_cas_remove_one.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cas_remove_one, @function
cas_remove_one:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	pci_get_drvdata@PLT
	test	rax, rax
	je	.L1
	mov	rdi, rax
	mov	r12, rax
	call	netdev_priv@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	unregister_netdev@PLT
	mov	edi, DWORD PTR 44[rbx]
	lea	r13, 24[rbx]
	call	vfree@PLT
	mov	rdi, r13
	call	mutex_lock@PLT
	lea	rdi, 40[rbx]
	call	cancel_work_sync@PLT
	cmp	QWORD PTR 32[rbx], 0
	jne	.L10
.L3:
	mov	rdi, r13
	call	mutex_unlock@PLT
	mov	rdx, QWORD PTR 16[rbx]
	test	rdx, rdx
	jne	.L11
.L4:
	mov	ecx, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	esi, 4
	call	pci_free_consistent@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbp
	call	pci_iounmap@PLT
	mov	rdi, r12
	call	free_netdev@PLT
	mov	rdi, rbp
	call	pci_release_regions@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR PCI_CACHE_LINE_SIZE[rip]
	mov	rdi, rbp
	call	pci_write_config_byte@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbx
	call	cas_shutdown@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.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
	.cfi_endproc
.LFE0:
	.size	cas_remove_one, .-cas_remove_one
	.comm	PCI_CACHE_LINE_SIZE,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_cassini.c_cas_remove_one.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cas_remove_one, %function
cas_remove_one:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	pci_get_drvdata
	subs	r6, r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	bl	netdev_priv
	mov	r4, r0
	mov	r0, r6
	bl	unregister_netdev
	add	r7, r4, #16
	ldr	r0, [r4, #28]
	bl	vfree
	mov	r0, r7
	bl	mutex_lock
	add	r0, r4, #24
	bl	cancel_work_sync
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L13
.L3:
	mov	r0, r7
	bl	mutex_unlock
	ldr	r2, [r4, #12]
	cmp	r2, #0
	bne	.L14
.L4:
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	mov	r1, #4
	mov	r0, r5
	bl	pci_free_consistent
	ldr	r1, [r4]
	mov	r0, r5
	bl	pci_iounmap
	mov	r0, r6
	bl	free_netdev
	mov	r0, r5
	bl	pci_release_regions
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	pci_disable_device
.L14:
	ldr	r3, .L15
	mov	r0, r5
	ldr	r1, [r3]
	bl	pci_write_config_byte
	b	.L4
.L13:
	mov	r0, r4
	bl	cas_shutdown
	b	.L3
.L16:
	.align	2
.L15:
	.word	PCI_CACHE_LINE_SIZE
	.size	cas_remove_one, .-cas_remove_one
	.comm	PCI_CACHE_LINE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
