	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_vsi_alloc_q_vectors
_i40e_vsi_alloc_q_vectors:              ## @i40e_vsi_alloc_q_vectors
	.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
	movq	8(%rdi), %rax
	movq	_I40E_FLAG_MSIX_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.4:
	movl	(%r14), %ebx
	movq	_cpu_online_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpumask_first
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.5:
	movl	%eax, %r15d
	jmp	LBB0_6
LBB0_1:
	movq	8(%rax), %rcx
	movq	16(%rax), %rax
	cmpq	%r14, (%rax,%rcx,8)
	je	LBB0_2
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_14
LBB0_2:
	movq	_cpu_online_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpumask_first
	movl	%eax, %r15d
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_6:
	xorl	%ebx, %ebx
	movq	_cpu_online_mask@GOTPCREL(%rip), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	cmpl	%ebx, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_i40e_vsi_alloc_q_vector
	testl	%eax, %eax
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r12), %esi
	movl	%r15d, %edi
	callq	_cpumask_next
	movl	%eax, %r15d
	xorl	%edi, %edi
	movq	_nr_cpu_ids@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r12), %edi
	callq	_cpumask_first
	movl	%eax, %r15d
	jmp	LBB0_12
LBB0_13:
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_8:
	movl	%eax, %r13d
	subl	$1, %ebx
	jb	LBB0_14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_i40e_free_q_vector
	addl	$-1, %ebx
	jb	LBB0_9
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_FLAG_MSIX_ENABLED,4,2     ## @I40E_FLAG_MSIX_ENABLED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_cpu_online_mask,4,2            ## @cpu_online_mask
	.comm	_nr_cpu_ids,4,2                 ## @nr_cpu_ids
	.no_dead_strip	_i40e_vsi_alloc_q_vectors
.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_q_vectors
_i40e_vsi_alloc_q_vectors:              ; @i40e_vsi_alloc_q_vectors
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _I40E_FLAG_MSIX_ENABLED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _I40E_FLAG_MSIX_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x23, _cpu_online_mask@GOTPAGE
Lloh4:
	ldr	x23, [x23, _cpu_online_mask@GOTPAGEOFF]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.1:
	ldr	w24, [x19]
	ldr	w0, [x23]
	bl	_cpumask_first
	cmp	w24, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x20, x0
	b	LBB0_6
LBB0_3:
	ldp	x8, x9, [x8, #8]
	ldr	x8, [x9, x8, lsl #3]
	cmp	x8, x19
	b.eq	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_5:
	ldr	w0, [x23]
	bl	_cpumask_first
	mov	x20, x0
	mov	w24, #1
LBB0_6:
	mov	w21, #0
Lloh8:
	adrp	x25, _nr_cpu_ids@GOTPAGE
Lloh9:
	ldr	x25, [x25, _nr_cpu_ids@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w21, w21, #1
	cmp	w24, w21
	b.eq	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_i40e_vsi_alloc_q_vector
	cbnz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_cpumask_next
	mov	x20, x0
	ldr	w8, [x25]
	cmp	w0, w8
	cset	w0, ge
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x23]
	bl	_cpumask_first
	mov	x20, x0
	b	LBB0_7
LBB0_11:
	mov	w22, #0
	b	LBB0_15
LBB0_12:
	mov	x22, x0
	cbz	w21, LBB0_15
; %bb.13:
	sub	w20, w21, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_i40e_free_q_vector
	sub	w20, w20, #1
	cmn	w20, #1
	b.ne	LBB0_14
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_FLAG_MSIX_ENABLED,4,2     ; @I40E_FLAG_MSIX_ENABLED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_cpu_online_mask,4,2            ; @cpu_online_mask
	.comm	_nr_cpu_ids,4,2                 ; @nr_cpu_ids
	.no_dead_strip	_i40e_vsi_alloc_q_vectors
.subsections_via_symbols
