	.file	"extr_netxen_nic_init.c_netxen_free_dummy_dma.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dma_watchdog_shutdown failed\n"
	.text
	.p2align 4
	.globl	netxen_free_dummy_dma
	.type	netxen_free_dummy_dma, @function
netxen_free_dummy_dma:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 24[rdi]
	call	NX_IS_REVISION_P2@PLT
	test	eax, eax
	je	.L1
	cmp	QWORD PTR 8[rbx], 0
	je	.L1
	mov	esi, DWORD PTR NETXEN_DMA_WATCHDOG_CTRL[rip]
	mov	rdi, rbx
	call	NXRD32@PLT
	test	al, 1
	je	.L3
	or	eax, 2
	mov	esi, DWORD PTR NETXEN_DMA_WATCHDOG_CTRL[rip]
	mov	rdi, rbx
	mov	ebp, 100
	mov	edx, eax
	call	NXWR32@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, 50
	call	msleep@PLT
	mov	esi, DWORD PTR NETXEN_DMA_WATCHDOG_CTRL[rip]
	mov	rdi, rbx
	call	NXRD32@PLT
	sub	ebp, 1
	je	.L4
	test	al, 1
	jne	.L5
.L3:
	mov	ecx, DWORD PTR 16[rbx]
	mov	rdx, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR NETXEN_HOST_DUMMY_DMA_SIZE[rip]
	mov	rdi, QWORD PTR [rbx]
	call	pci_free_consistent@PLT
	mov	QWORD PTR 8[rbx], 0
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	lea	rsi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	dev_err@PLT
	.cfi_endproc
.LFE0:
	.size	netxen_free_dummy_dma, .-netxen_free_dummy_dma
	.comm	NETXEN_HOST_DUMMY_DMA_SIZE,4,4
	.comm	NETXEN_DMA_WATCHDOG_CTRL,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_netxen_nic_init.c_netxen_free_dummy_dma.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dma_watchdog_shutdown failed\012\000"
	.text
	.align	2
	.global	netxen_free_dummy_dma
	.syntax unified
	.arm
	.fpu softvfp
	.type	netxen_free_dummy_dma, %function
netxen_free_dummy_dma:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #12]
	bl	NX_IS_REVISION_P2
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r4, #4]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	ldr	r6, .L18
	mov	r0, r4
	ldr	r1, [r6]
	bl	NXRD32
	tst	r0, #1
	beq	.L3
	orr	r2, r0, #2
	ldr	r1, [r6]
	mov	r0, r4
	bl	NXWR32
	mov	r5, #100
.L5:
	mov	r0, #50
	bl	msleep
	mov	r0, r4
	ldr	r1, [r6]
	bl	NXRD32
	subs	r5, r5, #1
	beq	.L4
	tst	r0, #1
	bne	.L5
.L3:
	ldr	r2, .L18+4
	ldr	r3, [r4, #8]
	ldr	r1, [r2]
	ldm	r4, {r0, r2}
	bl	pci_free_consistent
	mov	r3, #0
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r0, [r4]
	ldr	r1, .L18+8
	pop	{r4, r5, r6, lr}
	b	dev_err
.L19:
	.align	2
.L18:
	.word	NETXEN_DMA_WATCHDOG_CTRL
	.word	NETXEN_HOST_DUMMY_DMA_SIZE
	.word	.LC0
	.size	netxen_free_dummy_dma, .-netxen_free_dummy_dma
	.comm	NETXEN_HOST_DUMMY_DMA_SIZE,4,4
	.comm	NETXEN_DMA_WATCHDOG_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
