	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_cleanup_reset_vf
_i40e_cleanup_reset_vf:                 ## @i40e_cleanup_reset_vf
	.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, %r12
	movq	24(%rdi), %r14
	movl	20(%rdi), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_i40e_config_vf_promiscuous_mode
	movq	%r12, %rdi
	callq	_i40e_free_vf_res
	movl	(%r12), %edi
	callq	_I40E_VPGEN_VFRTRIG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	movq	_I40E_VPGEN_VFRTRIG_VFSWR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r12), %edi
	callq	_I40E_VPGEN_VFRTRIG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_wr32
	movq	%r12, %rdi
	callq	_i40e_alloc_vf_res
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%r12), %r13d
	movl	(%r14), %r15d
	movq	%r12, %rdi
	callq	_i40e_enable_vf_mappings
	movq	_I40E_VF_STATE_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r12), %rbx
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_I40E_VF_STATE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_I40E_VF_STATE_PRE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	addl	%r13d, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_i40e_notify_client_of_vf_reset
LBB0_3:
	movq	$0, 8(%r12)
LBB0_4:
	movl	(%r12), %edi
	callq	_I40E_VFGEN_RSTAT1
	movq	_VIRTCHNL_VFR_VFACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wr32                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_VPGEN_VFRTRIG_VFSWR_MASK,4,2 ## @I40E_VPGEN_VFRTRIG_VFSWR_MASK
	.comm	_I40E_VF_STATE_ACTIVE,4,2       ## @I40E_VF_STATE_ACTIVE
	.comm	_I40E_VF_STATE_DISABLED,4,2     ## @I40E_VF_STATE_DISABLED
	.comm	_I40E_VF_STATE_PRE_ENABLE,4,2   ## @I40E_VF_STATE_PRE_ENABLE
	.comm	_VIRTCHNL_VFR_VFACTIVE,4,2      ## @VIRTCHNL_VFR_VFACTIVE
	.no_dead_strip	_i40e_cleanup_reset_vf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_cleanup_reset_vf
_i40e_cleanup_reset_vf:                 ; @i40e_cleanup_reset_vf
	.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	x20, x0
	ldr	x19, [x0, #24]
	ldr	w1, [x0, #20]
	mov	w2, #0
	mov	w3, #0
	bl	_i40e_config_vf_promiscuous_mode
	mov	x0, x20
	bl	_i40e_free_vf_res
	ldr	w0, [x20]
	bl	_I40E_VPGEN_VFRTRIG
	mov	x1, x0
	mov	x0, x19
	bl	_rd32
Lloh0:
	adrp	x8, _I40E_VPGEN_VFRTRIG_VFSWR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_VPGEN_VFRTRIG_VFSWR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w21, w0, w8
	ldr	w0, [x20]
	bl	_I40E_VPGEN_VFRTRIG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_wr32
	mov	x0, x20
	bl	_i40e_alloc_vf_res
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x21, x20
	ldr	w22, [x21], #16
	ldr	w23, [x19]
	mov	x0, x20
	bl	_i40e_enable_vf_mappings
Lloh3:
	adrp	x8, _I40E_VF_STATE_ACTIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_VF_STATE_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
Lloh6:
	adrp	x8, _I40E_VF_STATE_DISABLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40E_VF_STATE_DISABLED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
Lloh9:
	adrp	x8, _I40E_VF_STATE_PRE_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40E_VF_STATE_PRE_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_and_clear_bit
	cbnz	w0, LBB0_3
; %bb.2:
	add	w1, w23, w22
	mov	x0, x19
	bl	_i40e_notify_client_of_vf_reset
LBB0_3:
	str	xzr, [x20, #8]
LBB0_4:
	ldr	w0, [x20]
	bl	_I40E_VFGEN_RSTAT1
	mov	x1, x0
Lloh12:
	adrp	x8, _VIRTCHNL_VFR_VFACTIVE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VIRTCHNL_VFR_VFACTIVE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	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
	b	_wr32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_VPGEN_VFRTRIG_VFSWR_MASK,4,2 ; @I40E_VPGEN_VFRTRIG_VFSWR_MASK
	.comm	_I40E_VF_STATE_ACTIVE,4,2       ; @I40E_VF_STATE_ACTIVE
	.comm	_I40E_VF_STATE_DISABLED,4,2     ; @I40E_VF_STATE_DISABLED
	.comm	_I40E_VF_STATE_PRE_ENABLE,4,2   ; @I40E_VF_STATE_PRE_ENABLE
	.comm	_VIRTCHNL_VFR_VFACTIVE,4,2      ; @VIRTCHNL_VFR_VFACTIVE
	.no_dead_strip	_i40e_cleanup_reset_vf
.subsections_via_symbols
