	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_trigger_vf_reset
_ice_trigger_vf_reset:                  ## @ice_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	8(%rax), %r12d
	addl	(%rdi), %r12d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	$8, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ICE_VF_STATE_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	_clear_bit
	movq	_ICE_VF_STATE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %esi
	callq	_clear_bit
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	testl	%r15d, %r15d
	je	LBB0_3
LBB0_4:
	leal	31(%r12), %edi
	testl	%r12d, %r12d
	cmovnsl	%r12d, %edi
	movl	%edi, %eax
	andl	$-32, %eax
	movl	%r12d, %ebx
	subl	%eax, %ebx
	sarl	$5, %edi
	callq	_GLGEN_VFLRSTAT
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_BIT
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_wr32
	movq	%rbx, %rdi
	callq	_ice_flush
	movq	_PF_PCI_CIAA@GOTPCREL(%rip), %rax
	movq	_PF_PCI_CIAA_VF_NUM_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r12d
	movl	(%rax), %esi
	movq	_VF_DEVICE_STATUS@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_wr32
	movq	_ICE_PCI_CIAD_WAIT_COUNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.5:
	xorl	%r13d, %r13d
	movq	_PF_PCI_CIAD@GOTPCREL(%rip), %r14
	movq	_VF_TRANS_PENDING_M@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %rbx
	movq	_ICE_PCI_CIAD_WAIT_DELAY_US@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rd32
	testl	%eax, (%r15)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_dev_err
	movl	(%r12), %edi
	callq	_udelay
	incl	%r13d
	movq	_ICE_PCI_CIAD_WAIT_COUNT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jl	LBB0_6
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r12d, %edi
	callq	_VF_MBX_ARQLEN
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_wr32
	testl	%r15d, %r15d
	jne	LBB0_4
LBB0_3:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edi
	callq	_VPGEN_VFRTRIG
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_rd32
	movl	%eax, %ebx
	movq	_VPGEN_VFRTRIG_VFSWR_M@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r14), %edi
	callq	_VPGEN_VFRTRIG
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_wr32
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_VF_STATE_ACTIVE,4,2        ## @ICE_VF_STATE_ACTIVE
	.comm	_ICE_VF_STATE_INIT,4,2          ## @ICE_VF_STATE_INIT
	.comm	_VPGEN_VFRTRIG_VFSWR_M,4,2      ## @VPGEN_VFRTRIG_VFSWR_M
	.comm	_PF_PCI_CIAA,4,2                ## @PF_PCI_CIAA
	.comm	_VF_DEVICE_STATUS,4,2           ## @VF_DEVICE_STATUS
	.comm	_PF_PCI_CIAA_VF_NUM_S,4,2       ## @PF_PCI_CIAA_VF_NUM_S
	.comm	_ICE_PCI_CIAD_WAIT_COUNT,4,2    ## @ICE_PCI_CIAD_WAIT_COUNT
	.comm	_PF_PCI_CIAD,4,2                ## @PF_PCI_CIAD
	.comm	_VF_TRANS_PENDING_M,4,2         ## @VF_TRANS_PENDING_M
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF %d PCI transactions stuck\n"

	.comm	_ICE_PCI_CIAD_WAIT_DELAY_US,4,2 ## @ICE_PCI_CIAD_WAIT_DELAY_US
	.no_dead_strip	_ice_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 ice_trigger_vf_reset
_ice_trigger_vf_reset:                  ; @ice_trigger_vf_reset
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x24, [x0, #8]
	mov	x20, x24
	ldr	w8, [x20, #8]!
	ldp	w9, w1, [x0]
	add	w21, w8, w9
Lloh0:
	adrp	x8, _ICE_VF_STATE_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_VF_STATE_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_clear_bit
Lloh3:
	adrp	x8, _ICE_VF_STATE_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_VF_STATE_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_clear_bit
	cbz	w23, LBB0_7
; %bb.1:
	cbz	w22, LBB0_8
LBB0_2:
	add	w8, w21, #31
	cmp	w21, #0
	csel	w8, w8, w21, lt
	asr	w0, w8, #5
	and	w8, w8, #0xffffffe0
	sub	w22, w21, w8
	bl	_GLGEN_VFLRSTAT
	mov	x23, x0
	mov	x0, x22
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_wr32
	mov	x0, x20
	bl	_ice_flush
Lloh6:
	adrp	x8, _PF_PCI_CIAA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PF_PCI_CIAA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _VF_DEVICE_STATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VF_DEVICE_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _PF_PCI_CIAA_VF_NUM_S@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PF_PCI_CIAA_VF_NUM_S@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w9, w21, w9
	orr	w2, w9, w8
	mov	x0, x20
	bl	_wr32
Lloh15:
	adrp	x22, _ICE_PCI_CIAD_WAIT_COUNT@GOTPAGE
Lloh16:
	ldr	x22, [x22, _ICE_PCI_CIAD_WAIT_COUNT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w23, #0
Lloh17:
	adrp	x25, _PF_PCI_CIAD@GOTPAGE
Lloh18:
	ldr	x25, [x25, _PF_PCI_CIAD@GOTPAGEOFF]
Lloh19:
	adrp	x26, _VF_TRANS_PENDING_M@GOTPAGE
Lloh20:
	ldr	x26, [x26, _VF_TRANS_PENDING_M@GOTPAGEOFF]
Lloh21:
	adrp	x21, l_.str@PAGE
Lloh22:
	add	x21, x21, l_.str@PAGEOFF
Lloh23:
	adrp	x27, _ICE_PCI_CIAD_WAIT_DELAY_US@GOTPAGE
Lloh24:
	ldr	x27, [x27, _ICE_PCI_CIAD_WAIT_DELAY_US@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	bl	_rd32
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x24]
	ldr	w2, [x19]
	mov	x1, x21
	bl	_dev_err
	ldr	w0, [x27]
	bl	_udelay
	add	w23, w23, #1
	ldr	w8, [x22]
	cmp	w23, w8
	b.lt	LBB0_4
LBB0_6:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x21
	bl	_VF_MBX_ARQLEN
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_wr32
	cbnz	w22, LBB0_2
LBB0_8:
	ldr	w0, [x19]
	bl	_VPGEN_VFRTRIG
	mov	x1, x0
	mov	x0, x20
	bl	_rd32
Lloh25:
	adrp	x8, _VPGEN_VFRTRIG_VFSWR_M@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VPGEN_VFRTRIG_VFSWR_M@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	orr	w22, w8, w0
	ldr	w0, [x19]
	bl	_VPGEN_VFRTRIG
	mov	x1, x0
	mov	x0, x20
	mov	x2, x22
	bl	_wr32
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_VF_STATE_ACTIVE,4,2        ; @ICE_VF_STATE_ACTIVE
	.comm	_ICE_VF_STATE_INIT,4,2          ; @ICE_VF_STATE_INIT
	.comm	_VPGEN_VFRTRIG_VFSWR_M,4,2      ; @VPGEN_VFRTRIG_VFSWR_M
	.comm	_PF_PCI_CIAA,4,2                ; @PF_PCI_CIAA
	.comm	_VF_DEVICE_STATUS,4,2           ; @VF_DEVICE_STATUS
	.comm	_PF_PCI_CIAA_VF_NUM_S,4,2       ; @PF_PCI_CIAA_VF_NUM_S
	.comm	_ICE_PCI_CIAD_WAIT_COUNT,4,2    ; @ICE_PCI_CIAD_WAIT_COUNT
	.comm	_PF_PCI_CIAD,4,2                ; @PF_PCI_CIAD
	.comm	_VF_TRANS_PENDING_M,4,2         ; @VF_TRANS_PENDING_M
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF %d PCI transactions stuck\n"

	.comm	_ICE_PCI_CIAD_WAIT_DELAY_US,4,2 ; @ICE_PCI_CIAD_WAIT_DELAY_US
	.no_dead_strip	_ice_trigger_vf_reset
.subsections_via_symbols
