	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ace_allocate_descriptors
_ace_allocate_descriptors:              ## @ace_allocate_descriptors
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	_RX_STD_RING_ENTRIES@GOTPCREL(%rip), %r13
	movq	_RX_JUMBO_RING_ENTRIES@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	addl	(%r13), %esi
	movq	_RX_MINI_RING_ENTRIES@GOTPCREL(%rip), %r12
	addl	(%r12), %esi
	movq	_RX_RETURN_RING_ENTRIES@GOTPCREL(%rip), %rcx
	addl	(%rcx), %esi
	movq	%rax, %rbx
	shll	$2, %esi
	movl	12(%rax), %edi
	leaq	112(%rax), %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 104(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movslq	(%r13), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 96(%rbx)
	movslq	(%r15), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 80(%rbx)
	movslq	(%r12), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 88(%rbx)
	movq	_EVT_RING_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movl	12(%rbx), %edi
	leaq	72(%rbx), %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 64(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rbx, %rdi
	callq	_ACE_IS_TIGON_I
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_MAX_TX_RING_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movl	12(%rbx), %edi
	leaq	56(%rbx), %rdx
	callq	_pci_alloc_consistent
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	movl	12(%rbx), %edi
	leaq	40(%rbx), %rdx
	movl	$4, %esi
	callq	_pci_alloc_consistent
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	12(%rbx), %edi
	leaq	24(%rbx), %rdx
	movl	$4, %esi
	callq	_pci_alloc_consistent
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	12(%rbx), %edi
	movq	%rbx, %rdx
	addq	$8, %rdx
	movl	$4, %esi
	callq	_pci_alloc_consistent
	movq	%rax, %rcx
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_ace_init_cleanup
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_STD_RING_ENTRIES,4,2        ## @RX_STD_RING_ENTRIES
	.comm	_RX_JUMBO_RING_ENTRIES,4,2      ## @RX_JUMBO_RING_ENTRIES
	.comm	_RX_MINI_RING_ENTRIES,4,2       ## @RX_MINI_RING_ENTRIES
	.comm	_RX_RETURN_RING_ENTRIES,4,2     ## @RX_RETURN_RING_ENTRIES
	.comm	_EVT_RING_ENTRIES,4,2           ## @EVT_RING_ENTRIES
	.comm	_MAX_TX_RING_ENTRIES,4,2        ## @MAX_TX_RING_ENTRIES
	.no_dead_strip	_ace_allocate_descriptors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ace_allocate_descriptors
_ace_allocate_descriptors:              ; @ace_allocate_descriptors
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x23, _RX_STD_RING_ENTRIES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RX_STD_RING_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x21, _RX_JUMBO_RING_ENTRIES@GOTPAGE
Lloh3:
	ldr	x21, [x21, _RX_JUMBO_RING_ENTRIES@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh4:
	adrp	x22, _RX_MINI_RING_ENTRIES@GOTPAGE
Lloh5:
	ldr	x22, [x22, _RX_MINI_RING_ENTRIES@GOTPAGEOFF]
	ldr	w10, [x22]
Lloh6:
	adrp	x11, _RX_RETURN_RING_ENTRIES@GOTPAGE
Lloh7:
	ldr	x11, [x11, _RX_RETURN_RING_ENTRIES@GOTPAGEOFF]
	add	w8, w9, w8
	add	w8, w8, w10
Lloh8:
	ldr	w9, [x11]
	add	w8, w8, w9
	lsl	w1, w8, #2
	ldr	w0, [x0, #12]
	add	x2, x20, #112
	bl	_pci_alloc_consistent
	str	x0, [x20, #104]
	cbz	x0, LBB0_8
; %bb.1:
	ldrsw	x8, [x23]
	add	x8, x0, x8, lsl #2
	str	x8, [x20, #96]
	ldrsw	x9, [x21]
	add	x8, x8, x9, lsl #2
	ldrsw	x9, [x22]
	add	x9, x8, x9, lsl #2
	stp	x8, x9, [x20, #80]
Lloh9:
	adrp	x8, _EVT_RING_ENTRIES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVT_RING_ENTRIES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	ldr	w0, [x20, #12]
	add	x2, x20, #72
	bl	_pci_alloc_consistent
	str	x0, [x20, #64]
	cbz	x0, LBB0_8
; %bb.2:
	mov	x0, x20
	bl	_ACE_IS_TIGON_I
	cbnz	w0, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _MAX_TX_RING_ENTRIES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX_TX_RING_ENTRIES@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	ldr	w0, [x20, #12]
	add	x2, x20, #56
	bl	_pci_alloc_consistent
	str	x0, [x20, #48]
	cbz	x0, LBB0_8
LBB0_4:
	ldr	w0, [x20, #12]
	add	x2, x20, #40
	mov	w1, #4
	bl	_pci_alloc_consistent
	str	x0, [x20, #32]
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w0, [x20, #12]
	add	x2, x20, #24
	mov	w1, #4
	bl	_pci_alloc_consistent
	str	x0, [x20, #16]
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w0, [x20, #12]
	add	x2, x20, #8
	mov	w1, #4
	bl	_pci_alloc_consistent
	str	x0, [x20]
	cbz	x0, LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_ace_init_cleanup
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_STD_RING_ENTRIES,4,2        ; @RX_STD_RING_ENTRIES
	.comm	_RX_JUMBO_RING_ENTRIES,4,2      ; @RX_JUMBO_RING_ENTRIES
	.comm	_RX_MINI_RING_ENTRIES,4,2       ; @RX_MINI_RING_ENTRIES
	.comm	_RX_RETURN_RING_ENTRIES,4,2     ; @RX_RETURN_RING_ENTRIES
	.comm	_EVT_RING_ENTRIES,4,2           ; @EVT_RING_ENTRIES
	.comm	_MAX_TX_RING_ENTRIES,4,2        ; @MAX_TX_RING_ENTRIES
	.no_dead_strip	_ace_allocate_descriptors
.subsections_via_symbols
