	.file	"extr_dpio-driver.c_dpaa2_dpio_remove.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dpio_open() failed\n"
	.text
	.p2align 4
	.type	dpaa2_dpio_remove, @function
dpaa2_dpio_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 12[rdi]
	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
	mov	rdi, r13
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	dev_get_drvdata@PLT
	mov	edi, DWORD PTR [rax]
	mov	r12, rax
	call	dpaa2_io_get_cpu@PLT
	mov	edi, DWORD PTR [r12]
	mov	ebp, eax
	call	dpaa2_io_down@PLT
	mov	rdi, rbx
	call	dpio_teardown_irqs@PLT
	mov	esi, DWORD PTR cpus_unused_mask[rip]
	mov	edi, ebp
	call	cpumask_set_cpu@PLT
	mov	edx, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rbx]
	lea	rcx, 4[rbx]
	xor	esi, esi
	call	dpio_open@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	mov	edx, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR [rbx]
	xor	esi, esi
	call	dpio_disable@PLT
	mov	edx, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR [rbx]
	xor	esi, esi
	call	dpio_close@PLT
	mov	edi, DWORD PTR [rbx]
	call	fsl_mc_portal_free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L6:
	.cfi_restore_state
	mov	rdi, r13
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	edi, DWORD PTR [rbx]
	call	fsl_mc_portal_free@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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	dpaa2_dpio_remove, .-dpaa2_dpio_remove
	.comm	cpus_unused_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_dpio-driver.c_dpaa2_dpio_remove.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dpio_open() failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dpaa2_dpio_remove, %function
dpaa2_dpio_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	add	r7, r0, #12
	mov	r4, r0
	mov	r0, r7
	bl	dev_get_drvdata
	mov	r5, r0
	ldr	r0, [r0]
	bl	dpaa2_io_get_cpu
	mov	r6, r0
	ldr	r0, [r5]
	bl	dpaa2_io_down
	mov	r0, r4
	bl	dpio_teardown_irqs
	ldr	r3, .L7
	mov	r0, r6
	ldr	r1, [r3]
	bl	cpumask_set_cpu
	mov	r1, #0
	ldr	r2, [r4, #8]
	ldr	r0, [r4]
	add	r3, r4, #4
	bl	dpio_open
	subs	r5, r0, #0
	bne	.L6
	mov	r1, r5
	ldr	r2, [r4, #4]
	ldr	r0, [r4]
	bl	dpio_disable
	mov	r1, r5
	ldr	r2, [r4, #4]
	ldr	r0, [r4]
	bl	dpio_close
	ldr	r0, [r4]
	bl	fsl_mc_portal_free
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r1, .L7+4
	mov	r0, r7
	bl	dev_err
	ldr	r0, [r4]
	bl	fsl_mc_portal_free
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	cpus_unused_mask
	.word	.LC0
	.size	dpaa2_dpio_remove, .-dpaa2_dpio_remove
	.comm	cpus_unused_mask,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
