	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netxen_init_dummy_dma          ## -- Begin function netxen_init_dummy_dma
	.p2align	4, 0x90
_netxen_init_dummy_dma:                 ## @netxen_init_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_NX_IS_REVISION_P2
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	16(%rbx), %rdi
	movq	_NETXEN_HOST_DUMMY_DMA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%rbx), %r15d
	movq	_CRB_HOST_DUMMY_BUF_ADDR_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXWR32
	movq	_CRB_HOST_DUMMY_BUF_ADDR_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_NXWR32
	jmp	LBB0_4
LBB0_2:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETXEN_HOST_DUMMY_DMA_SIZE,4,2 ## @NETXEN_HOST_DUMMY_DMA_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: Could not allocate dummy DMA memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CRB_HOST_DUMMY_BUF_ADDR_HI,4,2 ## @CRB_HOST_DUMMY_BUF_ADDR_HI
	.comm	_CRB_HOST_DUMMY_BUF_ADDR_LO,4,2 ## @CRB_HOST_DUMMY_BUF_ADDR_LO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netxen_init_dummy_dma          ; -- Begin function netxen_init_dummy_dma
	.p2align	2
_netxen_init_dummy_dma:                 ; @netxen_init_dummy_dma
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_NX_IS_REVISION_P2
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x8, _NETXEN_HOST_DUMMY_DMA_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETXEN_HOST_DUMMY_DMA_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_pci_alloc_consistent
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w20, [x19]
Lloh3:
	adrp	x8, _CRB_HOST_DUMMY_BUF_ADDR_HI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRB_HOST_DUMMY_BUF_ADDR_HI@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NXWR32
Lloh6:
	adrp	x8, _CRB_HOST_DUMMY_BUF_ADDR_LO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CRB_HOST_DUMMY_BUF_ADDR_LO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_NXWR32
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	x0, [x19, #16]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NETXEN_HOST_DUMMY_DMA_SIZE,4,2 ; @NETXEN_HOST_DUMMY_DMA_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: Could not allocate dummy DMA memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CRB_HOST_DUMMY_BUF_ADDR_HI,4,2 ; @CRB_HOST_DUMMY_BUF_ADDR_HI
	.comm	_CRB_HOST_DUMMY_BUF_ADDR_LO,4,2 ; @CRB_HOST_DUMMY_BUF_ADDR_LO
.subsections_via_symbols
