	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function i40e_alloc_rings
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_i40e_alloc_rings:                      ## @i40e_alloc_rings
	.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, %r15
	callq	_i40e_enabled_xdp_vsi
	cmpq	$1, %rax
	movl	$3, %eax
	sbbl	$0, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%r15)
	jle	LBB0_11
## %bb.1:
	movq	48(%r15), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_set_ring_xdp
	movl	16(%r13), %eax
	movl	%eax, 88(%rbx)
	addq	$160, %rbx
	movq	40(%r15), %rax
	movl	%r12d, (%rax,%r14,4)
	movq	%rbx, %r12
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, (%r12)
	movq	32(%r15), %rax
	addq	%r14, %rax
	movq	%rax, 64(%r12)
	movl	$0, 4(%r12)
	movq	%r15, 56(%r12)
	movq	24(%r15), %rax
	movq	%rax, 48(%r12)
	movq	8(%r13), %rax
	movq	%rax, 40(%r12)
	movl	16(%r15), %eax
	movl	%eax, 32(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r12)
	movl	4(%r13), %eax
	movl	%eax, 8(%r12)
	movq	8(%r15), %rax
	movq	%r12, (%rax,%r14,8)
	incq	%r14
	movslq	(%r15), %rax
	cmpq	%rax, %r14
	jge	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$80, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movl	%r14d, (%rax)
	movq	32(%r15), %rax
	addq	%r14, %rax
	movq	%rax, 64(%rbx)
	movl	$0, 4(%rbx)
	movq	%r15, 56(%rbx)
	movq	24(%r15), %rax
	movq	%rax, 48(%rbx)
	movq	8(%r13), %rax
	movq	%rax, 40(%rbx)
	movl	56(%r15), %eax
	movl	%eax, 32(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	48(%r15), %rax
	movq	_I40E_HW_WB_ON_ITR_CAPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_I40E_TXR_FLAGS_WB_ON_ITR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%rbx)
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	16(%r13), %eax
	movl	%eax, 8(%rbx)
	leaq	80(%rbx), %r12
	movq	64(%r15), %rax
	movl	%ebx, (%rax,%r14,4)
	movq	%r15, %rdi
	callq	_i40e_enabled_xdp_vsi
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %eax
	addq	%r14, %rax
	movl	%eax, 80(%rbx)
	cltq
	addq	32(%r15), %rax
	movq	%rax, 144(%rbx)
	movl	$0, 84(%rbx)
	movq	%r15, 136(%rbx)
	movq	$0, 128(%rbx)
	movq	8(%r13), %rax
	movq	%rax, 120(%rbx)
	movl	56(%r15), %eax
	movl	%eax, 112(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 96(%rbx)
	movq	48(%r15), %rax
	movq	_I40E_HW_WB_ON_ITR_CAPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_I40E_TXR_FLAGS_WB_ON_ITR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 152(%rbx)
	jmp	LBB0_2
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_12:
	movq	%r15, %rdi
	callq	_i40e_vsi_clear_rings
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_I40E_HW_WB_ON_ITR_CAPABLE,4,2  ## @I40E_HW_WB_ON_ITR_CAPABLE
	.comm	_I40E_TXR_FLAGS_WB_ON_ITR,8,3   ## @I40E_TXR_FLAGS_WB_ON_ITR
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_i40e_alloc_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_alloc_rings
_i40e_alloc_rings:                      ; @i40e_alloc_rings
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_i40e_enabled_xdp_vsi
	cmp	x0, #0
	mov	w8, #2
	cinc	w20, w8, ne
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x23, #0
	ldr	x24, [x19, #48]
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	adrp	x26, _I40E_HW_WB_ON_ITR_CAPABLE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _I40E_HW_WB_ON_ITR_CAPABLE@GOTPAGEOFF]
Lloh4:
	adrp	x27, _I40E_TXR_FLAGS_WB_ON_ITR@GOTPAGE
Lloh5:
	ldr	x27, [x27, _I40E_TXR_FLAGS_WB_ON_ITR@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_set_ring_xdp
	ldr	w8, [x24, #16]
	str	w8, [x21, #88]
	ldr	x8, [x19, #40]
	str	w22, [x8, x23, lsl #2]
	add	x22, x21, #160
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x8, [x19, #24]
	add	x8, x23, x8
	stp	w23, wzr, [x22]
	stp	x19, x8, [x22, #56]
	ldr	x8, [x24, #8]
	stp	x8, x9, [x22, #40]
	ldr	w8, [x19, #16]
	str	w8, [x22, #32]
	stp	xzr, xzr, [x22, #16]
	ldr	w8, [x24, #4]
	str	w8, [x22, #8]
	ldr	x8, [x19, #8]
	str	x22, [x8, x23, lsl #3]
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x25]
	mov	x0, x20
	mov	w1, #80
	bl	_kcalloc
	cbz	x0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	ldp	x9, x8, [x19, #24]
	add	x8, x23, x8
	stp	w23, wzr, [x0]
	stp	x19, x8, [x0, #56]
	ldr	x8, [x24, #8]
	stp	x8, x9, [x0, #40]
	ldr	w8, [x19, #56]
	str	w8, [x0, #32]
	stp	xzr, xzr, [x0, #16]
	ldr	x8, [x19, #48]
	ldr	w8, [x8]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	str	x8, [x21, #72]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24, #16]
	str	w8, [x21, #8]
	add	x22, x21, #80
	ldr	x8, [x19, #64]
	str	w21, [x8, x23, lsl #2]
	mov	x0, x19
	bl	_i40e_enabled_xdp_vsi
	cbz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	add	x8, x23, x8
	ldr	x9, [x19, #32]
	add	x9, x9, w8, sxtw
	stp	w8, wzr, [x21, #80]
	stp	x19, x9, [x21, #136]
	ldr	x8, [x24, #8]
	stp	x8, xzr, [x21, #120]
	ldr	w8, [x19, #56]
	str	w8, [x21, #112]
	stp	xzr, xzr, [x21, #96]
	ldr	x8, [x19, #48]
	ldr	w8, [x8]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27]
	str	x8, [x21, #152]
	b	LBB0_2
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_i40e_vsi_clear_rings
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_I40E_HW_WB_ON_ITR_CAPABLE,4,2  ; @I40E_HW_WB_ON_ITR_CAPABLE
	.comm	_I40E_TXR_FLAGS_WB_ON_ITR,8,3   ; @I40E_TXR_FLAGS_WB_ON_ITR
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_i40e_alloc_rings
.subsections_via_symbols
