	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_free_vf_res
_i40e_free_vf_res:                      ## @i40e_free_vf_res
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	56(%rdi), %r12
	movq	_I40E_VF_STATE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r15), %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_clear_bit
	movq	(%r15), %rax
	movq	_I40E_DEFAULT_QUEUES_PER_VF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_2
## %bb.1:
	subl	%ecx, %eax
	addl	%eax, 16(%r12)
LBB0_2:
	movslq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%r12), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_i40e_vsi_release
	movl	$0, 8(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r15)
LBB0_4:
	cmpq	$0, 32(%r15)
	je	LBB0_10
## %bb.5:
	movq	24(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.6:
	movl	12(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	cmpl	$1, %ecx
	je	LBB0_10
## %bb.8:
	movl	$1, %r14d
	movl	$16, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	movq	(%rax,%rbx), %rax
	movl	(%rcx,%rax,4), %edi
	callq	_i40e_vsi_release
	xorps	%xmm0, %xmm0
	movq	24(%r15), %rax
	movslq	12(%r15), %rcx
	incq	%r14
	movups	%xmm0, (%rax,%rbx)
	addq	$16, %rbx
	cmpq	%rcx, %r14
	jl	LBB0_9
LBB0_10:
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	jle	LBB0_18
## %bb.11:
	movl	16(%r15), %edi
	callq	_I40E_VFINT_DYN_CTL0
	movq	_I40E_VFINT_DYN_CTLN_CLEARPBA_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_wr32
	movq	%r12, %rdi
	callq	_i40e_flush
	cmpl	$1, %ebx
	jne	LBB0_12
## %bb.17:
	movl	16(%r15), %edi
	callq	_I40E_VPINT_LNKLST0
	movq	_I40E_VPINT_LNKLSTN_FIRSTQ_TYPE_MASK@GOTPCREL(%rip), %rcx
	movq	_I40E_VPINT_LNKLSTN_FIRSTQ_INDX_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_wr32
	movq	%r12, %rdi
	callq	_i40e_flush
	jmp	LBB0_18
LBB0_12:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leal	-1(%rbx), %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r15), %edi
	imull	%r13d, %edi
	addl	%ebx, %edi
	callq	_I40E_VFINT_DYN_CTLN
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_wr32
	movq	%r12, %rdi
	callq	_i40e_flush
	incl	%ebx
	cmpl	%ebx, %r13d
	jne	LBB0_13
## %bb.14:
	movl	16(%r15), %edi
	callq	_I40E_VPINT_LNKLST0
	movq	_I40E_VPINT_LNKLSTN_FIRSTQ_TYPE_MASK@GOTPCREL(%rip), %rcx
	movq	_I40E_VPINT_LNKLSTN_FIRSTQ_INDX_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	orl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_wr32
	movq	%r12, %rdi
	callq	_i40e_flush
	cmpl	$1, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
## %bb.15:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r15), %edi
	imull	%r13d, %edi
	addl	%r14d, %edi
	callq	_I40E_VPINT_LNKLSTN
	movl	(%rbx), %edx
	movq	_I40E_VPINT_LNKLSTN_FIRSTQ_TYPE_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_wr32
	movq	%r12, %rdi
	callq	_i40e_flush
	incl	%r14d
	cmpl	%r14d, %r13d
	jne	LBB0_16
LBB0_18:
	movq	$0, (%r15)
	movq	_I40E_VF_STATE_MC_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_I40E_VF_STATE_UC_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_VF_STATE_INIT,4,2         ## @I40E_VF_STATE_INIT
	.comm	_I40E_DEFAULT_QUEUES_PER_VF,8,3 ## @I40E_DEFAULT_QUEUES_PER_VF
	.comm	_I40E_VFINT_DYN_CTLN_CLEARPBA_MASK,4,2 ## @I40E_VFINT_DYN_CTLN_CLEARPBA_MASK
	.comm	_I40E_VPINT_LNKLSTN_FIRSTQ_TYPE_MASK,4,2 ## @I40E_VPINT_LNKLSTN_FIRSTQ_TYPE_MASK
	.comm	_I40E_VPINT_LNKLSTN_FIRSTQ_INDX_MASK,4,2 ## @I40E_VPINT_LNKLSTN_FIRSTQ_INDX_MASK
	.comm	_I40E_VF_STATE_MC_PROMISC,4,2   ## @I40E_VF_STATE_MC_PROMISC
	.comm	_I40E_VF_STATE_UC_PROMISC,4,2   ## @I40E_VF_STATE_UC_PROMISC
	.no_dead_strip	_i40e_free_vf_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_free_vf_res
_i40e_free_vf_res:                      ; @i40e_free_vf_res
	.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	x20, x0
	ldr	x21, [x0, #56]
Lloh0:
	adrp	x8, _I40E_VF_STATE_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_VF_STATE_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x19, x20, #20
	mov	x1, x19
	bl	_clear_bit
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _I40E_DEFAULT_QUEUES_PER_VF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I40E_DEFAULT_QUEUES_PER_VF@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
	ldr	w10, [x21, #16]
	sub	w8, w8, w9
	add	w8, w10, w8
	str	w8, [x21, #16]
LBB0_2:
	ldrsw	x8, [x20, #8]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	x9, [x21, #8]
	ldr	w0, [x9, x8, lsl #2]
	bl	_i40e_vsi_release
	str	wzr, [x20, #8]
	stp	xzr, xzr, [x20, #40]
LBB0_4:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_10
; %bb.5:
	ldr	x8, [x20, #24]
	ldr	x9, [x8]
	cbz	x9, LBB0_10
; %bb.6:
	ldr	w9, [x20, #12]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.7:
	stp	xzr, xzr, [x8]
	cmp	w9, #1
	b.eq	LBB0_10
; %bb.8:
	mov	w22, #1
	mov	w23, #16
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	ldr	x8, [x8, x23]
	ldr	w0, [x9, x8, lsl #2]
	bl	_i40e_vsi_release
	ldr	x8, [x20, #24]
	ldrsw	x9, [x20, #12]
	add	x22, x22, #1
	add	x10, x8, x23
	stp	xzr, xzr, [x10]
	add	x23, x23, #16
	cmp	x22, x9
	b.lt	LBB0_9
LBB0_10:
	ldr	w23, [x21]
	cmp	w23, #1
	b.lt	LBB0_18
; %bb.11:
	ldr	w0, [x20, #16]
	bl	_I40E_VFINT_DYN_CTL0
	mov	x1, x0
Lloh6:
	adrp	x24, _I40E_VFINT_DYN_CTLN_CLEARPBA_MASK@GOTPAGE
Lloh7:
	ldr	x24, [x24, _I40E_VFINT_DYN_CTLN_CLEARPBA_MASK@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x21
	bl	_wr32
	mov	x0, x21
	bl	_i40e_flush
	subs	w22, w23, #1
	b.ne	LBB0_13
; %bb.12:
	ldr	w0, [x20, #16]
	bl	_I40E_VPINT_LNKLST0
	mov	x1, x0
Lloh8:
	adrp	x8, _I40E_VPINT_LNKLSTN_FIRSTQ_TYPE_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I40E_VPINT_LNKLSTN_FIRSTQ_TYPE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _I40E_VPINT_LNKLSTN_FIRSTQ_INDX_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _I40E_VPINT_LNKLSTN_FIRSTQ_INDX_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_wr32
	mov	x0, x21
	bl	_i40e_flush
	b	LBB0_18
LBB0_13:
	mov	w25, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #16]
	madd	w0, w8, w22, w25
	bl	_I40E_VFINT_DYN_CTLN
	mov	x1, x0
	ldr	w2, [x24]
	mov	x0, x21
	bl	_wr32
	mov	x0, x21
	bl	_i40e_flush
	add	w25, w25, #1
	cmp	w22, w25
	b.ne	LBB0_14
; %bb.15:
	ldr	w0, [x20, #16]
	bl	_I40E_VPINT_LNKLST0
	mov	x1, x0
Lloh14:
	adrp	x24, _I40E_VPINT_LNKLSTN_FIRSTQ_TYPE_MASK@GOTPAGE
Lloh15:
	ldr	x24, [x24, _I40E_VPINT_LNKLSTN_FIRSTQ_TYPE_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh16:
	adrp	x25, _I40E_VPINT_LNKLSTN_FIRSTQ_INDX_MASK@GOTPAGE
Lloh17:
	ldr	x25, [x25, _I40E_VPINT_LNKLSTN_FIRSTQ_INDX_MASK@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_wr32
	mov	x0, x21
	bl	_i40e_flush
	cmp	w23, #1
	b.eq	LBB0_18
; %bb.16:
	mov	w23, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #16]
	madd	w0, w8, w22, w23
	bl	_I40E_VPINT_LNKLSTN
	mov	x1, x0
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_wr32
	mov	x0, x21
	bl	_i40e_flush
	add	w23, w23, #1
	cmp	w22, w23
	b.ne	LBB0_17
LBB0_18:
	str	xzr, [x20]
Lloh18:
	adrp	x8, _I40E_VF_STATE_MC_PROMISC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I40E_VF_STATE_MC_PROMISC@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
Lloh21:
	adrp	x8, _I40E_VF_STATE_UC_PROMISC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I40E_VF_STATE_UC_PROMISC@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x19
	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
	b	_clear_bit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_VF_STATE_INIT,4,2         ; @I40E_VF_STATE_INIT
	.comm	_I40E_DEFAULT_QUEUES_PER_VF,8,3 ; @I40E_DEFAULT_QUEUES_PER_VF
	.comm	_I40E_VFINT_DYN_CTLN_CLEARPBA_MASK,4,2 ; @I40E_VFINT_DYN_CTLN_CLEARPBA_MASK
	.comm	_I40E_VPINT_LNKLSTN_FIRSTQ_TYPE_MASK,4,2 ; @I40E_VPINT_LNKLSTN_FIRSTQ_TYPE_MASK
	.comm	_I40E_VPINT_LNKLSTN_FIRSTQ_INDX_MASK,4,2 ; @I40E_VPINT_LNKLSTN_FIRSTQ_INDX_MASK
	.comm	_I40E_VF_STATE_MC_PROMISC,4,2   ; @I40E_VF_STATE_MC_PROMISC
	.comm	_I40E_VF_STATE_UC_PROMISC,4,2   ; @I40E_VF_STATE_UC_PROMISC
	.no_dead_strip	_i40e_free_vf_res
.subsections_via_symbols
