	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_vf_reset
_i40iw_vf_reset:                        ## @i40iw_vf_reset
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	callq	_i40iw_find_i40e_handler
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	movq	_I40IW_MAX_PE_ENABLED_VF_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	16(%r14), %r15
	movq	8(%r14), %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %r13
	testq	%r13, %r13
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r12, (%r13)
	jne	LBB0_6
## %bb.5:
	movq	(%r15), %rdi
	callq	_spin_lock_irqsave
	movq	8(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	movq	(%r15), %rdi
	callq	_spin_unlock_irqrestore
	leaq	12(%r13), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_i40iw_del_hmc_objects
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%r12, -48(%rbp)
	movl	8(%r13), %eax
	movl	%eax, -52(%rbp)
	movl	$1, -56(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i40iw_cqp_manage_hmc_fcn_cmd
	movq	%r13, -64(%rbp)
	movq	_I40IW_HMC_IW_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	16(,%rax,4), %eax
	movl	%eax, -72(%rbp)
	movl	(%r14), %edi
	leaq	-72(%rbp), %rsi
	callq	_i40iw_free_virt_mem
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_MAX_PE_ENABLED_VF_COUNT,4,2 ## @I40IW_MAX_PE_ENABLED_VF_COUNT
	.comm	_I40IW_HMC_IW_MAX,4,2           ## @I40IW_HMC_IW_MAX
	.no_dead_strip	_i40iw_vf_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_vf_reset
_i40iw_vf_reset:                        ; @i40iw_vf_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x2
	bl	_i40iw_find_i40e_handler
	cbz	x0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _I40IW_MAX_PE_ENABLED_VF_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_MAX_PE_ENABLED_VF_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cbz	w9, LBB0_7
; %bb.2:
	mov	x19, x0
	mov	x22, #0
	ldp	x8, x23, [x0, #8]
	lsl	x9, x9, #3
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #8
	cmp	x9, x22
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x8, x22]
	cbz	x21, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x21]
	cmp	x10, x20
	b.ne	LBB0_3
; %bb.6:
	ldr	x0, [x23]
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	str	xzr, [x8, x22]
	ldr	x0, [x23]
	bl	_spin_unlock_irqrestore
	add	x1, x21, #12
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_i40iw_del_hmc_objects
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	x20, [sp, #24]
	ldr	w8, [x21, #8]
	mov	w9, #1
	stp	w9, w8, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_i40iw_cqp_manage_hmc_fcn_cmd
Lloh3:
	adrp	x8, _I40IW_HMC_IW_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IW_HMC_IW_MAX@GOTPAGEOFF]
	str	x21, [sp, #8]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	add	w8, w8, #16
	str	w8, [sp]
	ldr	w0, [x19]
	mov	x1, sp
	bl	_i40iw_free_virt_mem
LBB0_7:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_MAX_PE_ENABLED_VF_COUNT,4,2 ; @I40IW_MAX_PE_ENABLED_VF_COUNT
	.comm	_I40IW_HMC_IW_MAX,4,2           ; @I40IW_HMC_IW_MAX
	.no_dead_strip	_i40iw_vf_reset
.subsections_via_symbols
