	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_vsi_alloc_arrays
_i40e_vsi_alloc_arrays:                 ## @i40e_vsi_alloc_arrays
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	callq	_i40e_enabled_xdp_vsi
	cmpq	$1, %rax
	movl	$3, %edi
	sbbl	$0, %edi
	imull	%r15d, %edi
	shll	$3, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_kzalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx,8), %r15
	movq	%rbx, %rdi
	callq	_i40e_enabled_xdp_vsi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, 32(%rbx)
	movslq	(%rbx), %rax
	leaq	(%r15,%rax,8), %r15
LBB0_4:
	movq	%r15, 24(%rbx)
	xorl	%r15d, %r15d
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.5:
	movl	4(%rbx), %edi
	shll	$3, %edi
	movl	(%r12), %esi
	callq	_kzalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	8(%rbx), %rdi
	callq	_kfree
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_i40e_vsi_alloc_arrays
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_vsi_alloc_arrays
_i40e_vsi_alloc_arrays:                 ; @i40e_vsi_alloc_arrays
	.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	x20, x1
	mov	x19, x0
	ldr	w21, [x0]
	bl	_i40e_enabled_xdp_vsi
	cmp	x0, #0
	mov	w8, #2
	cinc	w8, w8, ne
	mul	w8, w21, w8
	lsl	w0, w8, #3
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.1:
	ldrsw	x8, [x19]
	add	x22, x0, x8, lsl #3
	mov	x0, x19
	bl	_i40e_enabled_xdp_vsi
	cbz	x0, LBB0_3
; %bb.2:
	str	x22, [x19, #32]
	ldrsw	x8, [x19]
	add	x22, x22, x8, lsl #3
LBB0_3:
	str	x22, [x19, #24]
	cbz	w20, LBB0_8
; %bb.4:
	ldr	w8, [x19, #4]
	lsl	w0, w8, #3
	ldr	w1, [x21]
	bl	_kzalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.5:
	mov	w20, #0
	b	LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_8:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_i40e_vsi_alloc_arrays
.subsections_via_symbols
