	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_trigger_vf_reset
_i40e_trigger_vf_reset:                 ## @i40e_trigger_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
	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, %r12
	movq	8(%rdi), %r13
	leaq	8(%r13), %r14
	movq	_I40E_VF_STATE_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r12), %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_I40E_VF_STATE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	callq	_I40E_VPGEN_VFRTRIG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	movl	%eax, %ebx
	movq	_I40E_VPGEN_VFRTRIG_VFSWR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r12), %edi
	callq	_I40E_VPGEN_VFRTRIG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_wr32
	movq	%r14, %rdi
	callq	_i40e_flush
LBB0_2:
	movl	(%r14), %eax
	movl	(%r12), %ecx
	leal	(%rcx,%rax), %edi
	addl	$31, %edi
	movl	%ecx, %ebx
	addl	%eax, %ebx
	cmovnsl	%ebx, %edi
	movl	%edi, %eax
	andl	$-32, %eax
	subl	%eax, %ebx
	sarl	$5, %edi
	callq	_I40E_GLGEN_VFLRSTAT
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_wr32
	movq	%r14, %rdi
	callq	_i40e_flush
	movq	%r12, %rdi
	callq	_i40e_quiesce_vf_pci
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%r13), %rdi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_VF_STATE_ACTIVE,4,2       ## @I40E_VF_STATE_ACTIVE
	.comm	_I40E_VF_STATE_INIT,4,2         ## @I40E_VF_STATE_INIT
	.comm	_I40E_VPGEN_VFRTRIG_VFSWR_MASK,4,2 ## @I40E_VPGEN_VFRTRIG_VFSWR_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF %d PCI transactions stuck\n"

	.no_dead_strip	_i40e_trigger_vf_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_trigger_vf_reset
_i40e_trigger_vf_reset:                 ; @i40e_trigger_vf_reset
	.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	x21, x1
	mov	x19, x0
	ldr	x23, [x0, #8]
	add	x20, x23, #8
Lloh0:
	adrp	x8, _I40E_VF_STATE_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_VF_STATE_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x22, x19, #4
	mov	x1, x22
	bl	_clear_bit
Lloh3:
	adrp	x8, _I40E_VF_STATE_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_VF_STATE_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_clear_bit
	cbnz	w21, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_I40E_VPGEN_VFRTRIG
	mov	x1, x0
	mov	x0, x20
	bl	_rd32
Lloh6:
	adrp	x8, _I40E_VPGEN_VFRTRIG_VFSWR_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40E_VPGEN_VFRTRIG_VFSWR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w21, w8, w0
	ldr	w0, [x19]
	bl	_I40E_VPGEN_VFRTRIG
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_wr32
	mov	x0, x20
	bl	_i40e_flush
LBB0_2:
	ldr	w8, [x20]
	ldr	w9, [x19]
	add	w8, w9, w8
	add	w9, w8, #31
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w0, w9, #5
	and	w9, w9, #0xffffffe0
	sub	w21, w8, w9
	bl	_I40E_GLGEN_VFLRSTAT
	mov	x22, x0
	mov	x0, x21
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_wr32
	mov	x0, x20
	bl	_i40e_flush
	mov	x0, x19
	bl	_i40e_quiesce_vf_pci
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x23]
	ldr	w2, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_err
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_VF_STATE_ACTIVE,4,2       ; @I40E_VF_STATE_ACTIVE
	.comm	_I40E_VF_STATE_INIT,4,2         ; @I40E_VF_STATE_INIT
	.comm	_I40E_VPGEN_VFRTRIG_VFSWR_MASK,4,2 ; @I40E_VPGEN_VFRTRIG_VFSWR_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF %d PCI transactions stuck\n"

	.no_dead_strip	_i40e_trigger_vf_reset
.subsections_via_symbols
