	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_reset_vf
_ice_reset_vf:                          ## @ice_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	32(%rdi), %r12
	movq	___ICE_VF_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r12), %esi
	callq	_test_bit
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_25
## %bb.1:
	movq	_ICE_VF_STATE_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r15), %esi
	callq	_test_and_set_bit
	testq	%rax, %rax
	jne	LBB0_25
## %bb.2:
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_ice_trigger_vf_reset
	movq	8(%r12), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	_ICE_VF_STATE_QS_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r15), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_ice_dis_vf_qs
LBB0_4:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movq	_ICE_VF_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	28(%r15), %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rbx
	pushq	%rax
	pushq	$0
	callq	_ice_dis_vsi_txq
	addq	$32, %rsp
	leaq	16(%r12), %r14
	movl	28(%r15), %edi
	callq	_VPGEN_VFRSTAT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	movq	_VPGEN_VFRSTAT_VFRD_M@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	jne	LBB0_15
## %bb.5:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	28(%r15), %edi
	callq	_VPGEN_VFRSTAT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	testl	%eax, (%rbx)
	jne	LBB0_15
## %bb.6:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	28(%r15), %edi
	callq	_VPGEN_VFRSTAT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	testl	%eax, (%rbx)
	jne	LBB0_15
## %bb.7:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	28(%r15), %edi
	callq	_VPGEN_VFRSTAT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	testl	%eax, (%rbx)
	jne	LBB0_15
## %bb.8:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	28(%r15), %edi
	callq	_VPGEN_VFRSTAT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	testl	%eax, (%rbx)
	jne	LBB0_15
## %bb.9:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	28(%r15), %edi
	callq	_VPGEN_VFRSTAT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	testl	%eax, (%rbx)
	jne	LBB0_15
## %bb.10:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	28(%r15), %edi
	callq	_VPGEN_VFRSTAT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	testl	%eax, (%rbx)
	jne	LBB0_15
## %bb.11:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	28(%r15), %edi
	callq	_VPGEN_VFRSTAT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	testl	%eax, (%rbx)
	jne	LBB0_15
## %bb.12:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	28(%r15), %edi
	callq	_VPGEN_VFRSTAT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	testl	%eax, (%rbx)
	jne	LBB0_15
## %bb.13:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movl	28(%r15), %edi
	callq	_VPGEN_VFRSTAT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	testl	%eax, (%rbx)
	jne	LBB0_15
## %bb.14:
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movq	(%r12), %rdi
	movl	28(%r15), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_15:
	movq	_ICE_VF_STATE_UC_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r15), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movq	_ICE_VF_STATE_MC_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r15), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_24
LBB0_17:
	cmpq	$0, 16(%r15)
	jne	LBB0_21
## %bb.19:
	cmpq	$0, 8(%r15)
	jne	LBB0_21
## %bb.20:
	movq	_ICE_UCAST_PROMISC_BITS@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_21:
	movq	_ICE_UCAST_VLAN_PROMISC_BITS@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %edx
	movq	8(%r12), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_ice_vf_set_vsi_promisc
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_24:
	movq	%r15, %rdi
	callq	_ice_free_vf_res
	movq	%r15, %rdi
	callq	_ice_cleanup_and_realloc_vf
	movq	%r14, %rdi
	callq	_ice_flush
	movl	$1, %ebx
LBB0_25:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___ICE_VF_DIS,4,2               ## @__ICE_VF_DIS
	.comm	_ICE_VF_STATE_DIS,4,2           ## @ICE_VF_STATE_DIS
	.comm	_ICE_VF_STATE_QS_ENA,4,2        ## @ICE_VF_STATE_QS_ENA
	.comm	_ICE_VF_RESET,4,2               ## @ICE_VF_RESET
	.comm	_VPGEN_VFRSTAT_VFRD_M,4,2       ## @VPGEN_VFRSTAT_VFRD_M
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF reset check timeout on VF %d\n"

	.comm	_ICE_VF_STATE_UC_PROMISC,4,2    ## @ICE_VF_STATE_UC_PROMISC
	.comm	_ICE_VF_STATE_MC_PROMISC,4,2    ## @ICE_VF_STATE_MC_PROMISC
	.comm	_ICE_UCAST_VLAN_PROMISC_BITS,4,2 ## @ICE_UCAST_VLAN_PROMISC_BITS
	.comm	_ICE_UCAST_PROMISC_BITS,4,2     ## @ICE_UCAST_PROMISC_BITS
L_.str.1:                               ## @.str.1
	.asciz	"disabling promiscuous mode failed\n"

	.no_dead_strip	_ice_reset_vf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_reset_vf
_ice_reset_vf:                          ; @ice_reset_vf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #32]
Lloh0:
	adrp	x8, ___ICE_VF_DIS@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___ICE_VF_DIS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x21, #20]
	bl	_test_bit
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ICE_VF_STATE_DIS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_VF_STATE_DIS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	_test_and_set_bit
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
	add	sp, sp, #64
	ret
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_ice_trigger_vf_reset
	ldr	x8, [x21, #8]
	ldr	x9, [x19]
	ldr	x20, [x8, x9, lsl #3]
Lloh6:
	adrp	x8, _ICE_VF_STATE_QS_ENA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICE_VF_STATE_QS_ENA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_ice_dis_vf_qs
LBB0_6:
	ldp	w1, w0, [x20]
Lloh9:
	adrp	x8, _ICE_VF_RESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_VF_RESET@GOTPAGEOFF]
Lloh11:
	ldr	w7, [x8]
	ldr	w8, [x19, #28]
	str	xzr, [sp, #8]
	str	w8, [sp]
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	bl	_ice_dis_vsi_txq
	add	x20, x21, #16
	ldr	w0, [x19, #28]
	bl	_VPGEN_VFRSTAT
	mov	x1, x0
	mov	x0, x20
	bl	_rd32
Lloh12:
	adrp	x22, _VPGEN_VFRSTAT_VFRD_M@GOTPAGE
Lloh13:
	ldr	x22, [x22, _VPGEN_VFRSTAT_VFRD_M@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_17
; %bb.7:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w0, [x19, #28]
	bl	_VPGEN_VFRSTAT
	mov	x1, x0
	mov	x0, x20
	bl	_rd32
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_17
; %bb.8:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w0, [x19, #28]
	bl	_VPGEN_VFRSTAT
	mov	x1, x0
	mov	x0, x20
	bl	_rd32
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_17
; %bb.9:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w0, [x19, #28]
	bl	_VPGEN_VFRSTAT
	mov	x1, x0
	mov	x0, x20
	bl	_rd32
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_17
; %bb.10:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w0, [x19, #28]
	bl	_VPGEN_VFRSTAT
	mov	x1, x0
	mov	x0, x20
	bl	_rd32
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_17
; %bb.11:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w0, [x19, #28]
	bl	_VPGEN_VFRSTAT
	mov	x1, x0
	mov	x0, x20
	bl	_rd32
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_17
; %bb.12:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w0, [x19, #28]
	bl	_VPGEN_VFRSTAT
	mov	x1, x0
	mov	x0, x20
	bl	_rd32
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_17
; %bb.13:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w0, [x19, #28]
	bl	_VPGEN_VFRSTAT
	mov	x1, x0
	mov	x0, x20
	bl	_rd32
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_17
; %bb.14:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w0, [x19, #28]
	bl	_VPGEN_VFRSTAT
	mov	x1, x0
	mov	x0, x20
	bl	_rd32
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_17
; %bb.15:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	w0, [x19, #28]
	bl	_VPGEN_VFRSTAT
	mov	x1, x0
	mov	x0, x20
	bl	_rd32
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_17
; %bb.16:
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	x0, [x21]
	ldr	w2, [x19, #28]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_17:
Lloh16:
	adrp	x8, _ICE_VF_STATE_UC_PROMISC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ICE_VF_STATE_UC_PROMISC@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	_test_bit
	cbnz	x0, LBB0_19
; %bb.18:
Lloh19:
	adrp	x8, _ICE_VF_STATE_MC_PROMISC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ICE_VF_STATE_MC_PROMISC@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	_test_bit
	cbz	x0, LBB0_23
LBB0_19:
	ldr	x9, [x19, #16]
Lloh22:
	adrp	x8, _ICE_UCAST_VLAN_PROMISC_BITS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ICE_UCAST_VLAN_PROMISC_BITS@GOTPAGEOFF]
	cbnz	x9, LBB0_21
; %bb.20:
	ldr	x9, [x19, #8]
Lloh24:
	adrp	x10, _ICE_UCAST_PROMISC_BITS@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ICE_UCAST_PROMISC_BITS@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
LBB0_21:
	ldr	w2, [x8]
	ldr	x8, [x21, #8]
	ldr	x9, [x19]
	ldr	x1, [x8, x9, lsl #3]
	mov	x0, x19
	mov	w3, #1
	bl	_ice_vf_set_vsi_promisc
	cbz	x0, LBB0_23
; %bb.22:
	ldr	x0, [x21]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_23:
	mov	x0, x19
	bl	_ice_free_vf_res
	mov	x0, x19
	bl	_ice_cleanup_and_realloc_vf
	mov	x0, x20
	bl	_ice_flush
	mov	w0, #1
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	___ICE_VF_DIS,4,2               ; @__ICE_VF_DIS
	.comm	_ICE_VF_STATE_DIS,4,2           ; @ICE_VF_STATE_DIS
	.comm	_ICE_VF_STATE_QS_ENA,4,2        ; @ICE_VF_STATE_QS_ENA
	.comm	_ICE_VF_RESET,4,2               ; @ICE_VF_RESET
	.comm	_VPGEN_VFRSTAT_VFRD_M,4,2       ; @VPGEN_VFRSTAT_VFRD_M
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF reset check timeout on VF %d\n"

	.comm	_ICE_VF_STATE_UC_PROMISC,4,2    ; @ICE_VF_STATE_UC_PROMISC
	.comm	_ICE_VF_STATE_MC_PROMISC,4,2    ; @ICE_VF_STATE_MC_PROMISC
	.comm	_ICE_UCAST_VLAN_PROMISC_BITS,4,2 ; @ICE_UCAST_VLAN_PROMISC_BITS
	.comm	_ICE_UCAST_PROMISC_BITS,4,2     ; @ICE_UCAST_PROMISC_BITS
l_.str.1:                               ; @.str.1
	.asciz	"disabling promiscuous mode failed\n"

	.no_dead_strip	_ice_reset_vf
.subsections_via_symbols
