	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_ring
_alloc_ring:                            ## @alloc_ring
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	20(%rax), %edi
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %r14
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	(%r14), %esi
	shll	$2, %esi
	leaq	16(%rbx), %rdx
	callq	_pci_alloc_consistent
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movslq	(%r14), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alloc_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_ring
_alloc_ring:                            ; @alloc_ring
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x0, #20]
Lloh0:
	adrp	x20, _RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _TX_RING_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TX_RING_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	add	w8, w9, w8
	lsl	w1, w8, #2
	add	x2, x19, #16
	bl	_pci_alloc_consistent
	str	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #2
	str	x8, [x19, #8]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alloc_ring
.subsections_via_symbols
