	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netxen_free_dummy_dma          ## -- Begin function netxen_free_dummy_dma
	.p2align	4, 0x90
_netxen_free_dummy_dma:                 ## @netxen_free_dummy_dma
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	24(%rdi), %edi
	callq	_NX_IS_REVISION_P2
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	cmpq	$0, 8(%r14)
	je	LBB0_9
## %bb.2:
	movq	_NETXEN_DMA_WATCHDOG_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_NXRD32
	movl	%eax, %r12d
	testb	$1, %r12b
	je	LBB0_8
## %bb.3:
	movl	(%r15), %esi
	movl	%r12d, %edx
	orl	$2, %edx
	movq	%r14, %rdi
	callq	_NXWR32
	movl	$-100, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %r12b
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$50, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_NXRD32
	movl	%eax, %r12d
	incl	%ebx
	jne	LBB0_4
	jmp	LBB0_6
LBB0_7:
	testl	%ebx, %ebx
	je	LBB0_6
LBB0_8:
	movq	_NETXEN_HOST_DUMMY_DMA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdi
	movq	8(%r14), %rdx
	movl	16(%r14), %ecx
	callq	_pci_free_consistent
	movq	$0, 8(%r14)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NETXEN_DMA_WATCHDOG_CTRL,4,2   ## @NETXEN_DMA_WATCHDOG_CTRL
	.comm	_NETXEN_HOST_DUMMY_DMA_SIZE,4,2 ## @NETXEN_HOST_DUMMY_DMA_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dma_watchdog_shutdown failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netxen_free_dummy_dma          ; -- Begin function netxen_free_dummy_dma
	.p2align	2
_netxen_free_dummy_dma:                 ; @netxen_free_dummy_dma
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_NX_IS_REVISION_P2
	cbz	w0, LBB0_8
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.2:
Lloh0:
	adrp	x21, _NETXEN_DMA_WATCHDOG_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NETXEN_DMA_WATCHDOG_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_NXRD32
	tbz	w0, #0, LBB0_7
; %bb.3:
	mov	x20, x0
	ldr	w1, [x21]
	orr	w2, w0, #0x2
	mov	x0, x19
	bl	_NXWR32
	mov	w22, #-100
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w20, #0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #50
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_NXRD32
	mov	x20, x0
	adds	w22, w22, #1
	b.lo	LBB0_4
	b	LBB0_9
LBB0_6:
	cbz	w22, LBB0_9
LBB0_7:
Lloh2:
	adrp	x8, _NETXEN_HOST_DUMMY_DMA_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NETXEN_HOST_DUMMY_DMA_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldp	x0, x2, [x19]
	ldr	w3, [x19, #16]
	bl	_pci_free_consistent
	str	xzr, [x19, #8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x0, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NETXEN_DMA_WATCHDOG_CTRL,4,2   ; @NETXEN_DMA_WATCHDOG_CTRL
	.comm	_NETXEN_HOST_DUMMY_DMA_SIZE,4,2 ; @NETXEN_HOST_DUMMY_DMA_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dma_watchdog_shutdown failed\n"

.subsections_via_symbols
