	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_reset_vf                  ## -- Begin function i40e_reset_vf
	.p2align	4, 0x90
_i40e_reset_vf:                         ## @i40e_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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	___I40E_VF_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_test_and_set_bit
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_13
## %bb.1:
	leaq	24(%r12), %r14
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_i40e_trigger_vf_reset
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movl	8(%rbx), %edi
	callq	_I40E_VPGEN_VFRSTAT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	movq	_I40E_VPGEN_VFRSTAT_VFRD_MASK@GOTPCREL(%rip), %r13
	movl	%r15d, %ecx
	movb	$1, %r15b
	testl	%eax, (%r13)
	jne	LBB0_6
## %bb.2:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %r15d
	cmpl	$9, %ecx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movl	8(%rbx), %edi
	callq	_I40E_VPGEN_VFRSTAT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	leal	1(%r15), %ecx
	testl	%eax, (%r13)
	je	LBB0_3
LBB0_5:
	cmpl	$9, %r15d
	setb	%r15b
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_6:
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.7:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
LBB0_8:
	testb	%r15b, %r15b
	jne	LBB0_10
## %bb.9:
	movq	16(%r12), %rdi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_10:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	8(%r12), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_i40e_vsi_stop_rings
LBB0_12:
	movq	%rbx, %rdi
	callq	_i40e_cleanup_reset_vf
	movq	%r14, %rdi
	callq	_i40e_flush
	movq	___I40E_VF_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_clear_bit
	movl	$1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___I40E_VF_DISABLE,4,2          ## @__I40E_VF_DISABLE
	.comm	_I40E_VPGEN_VFRSTAT_VFRD_MASK,4,2 ## @I40E_VPGEN_VFRSTAT_VFRD_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF reset check timeout on VF %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_reset_vf                  ; -- Begin function i40e_reset_vf
	.p2align	2
_i40e_reset_vf:                         ; @i40e_reset_vf
	.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	x21, x1
	mov	x20, x0
	ldr	x22, [x0, #16]
	mov	x19, x22
	ldr	w1, [x19], #24
Lloh0:
	adrp	x23, ___I40E_VF_DISABLE@GOTPAGE
Lloh1:
	ldr	x23, [x23, ___I40E_VF_DISABLE@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_test_and_set_bit
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_10
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	bl	_i40e_trigger_vf_reset
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldr	w0, [x20, #8]
	bl	_I40E_VPGEN_VFRSTAT
	mov	x1, x0
	mov	x0, x19
	bl	_rd32
Lloh2:
	adrp	x24, _I40E_VPGEN_VFRSTAT_VFRD_MASK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _I40E_VPGEN_VFRSTAT_VFRD_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.3:
	mov	w24, #1
	cbz	w21, LBB0_5
LBB0_4:
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
LBB0_5:
	tbnz	w24, #0, LBB0_7
; %bb.6:
	ldr	x0, [x22, #16]
	ldr	w2, [x20, #8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_7:
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x9, [x22, #8]
	ldr	w0, [x9, x8, lsl #2]
	bl	_i40e_vsi_stop_rings
LBB0_9:
	mov	x0, x20
	bl	_i40e_cleanup_reset_vf
	mov	x0, x19
	bl	_i40e_flush
	ldr	w0, [x23]
	ldr	w1, [x22]
	bl	_clear_bit
	mov	w0, #1
LBB0_10:
	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
LBB0_11:
	mov	w8, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x25, x8
	cmp	w8, #9
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldr	w0, [x20, #8]
	bl	_I40E_VPGEN_VFRSTAT
	mov	x1, x0
	mov	x0, x19
	bl	_rd32
	ldr	w9, [x24]
	add	w8, w25, #1
	tst	w9, w0
	b.eq	LBB0_12
LBB0_14:
	cmp	w25, #9
	cset	w24, lo
	cbnz	w21, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	___I40E_VF_DISABLE,4,2          ; @__I40E_VF_DISABLE
	.comm	_I40E_VPGEN_VFRSTAT_VFRD_MASK,4,2 ; @I40E_VPGEN_VFRSTAT_VFRD_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF reset check timeout on VF %d\n"

.subsections_via_symbols
